Ignacio Roldán Etcheverry
1191d26ddc
Merge pull request #35208 from neikeq/mono-lazy-thread-attach
...
Mono/C#: Script interface calls now attach the current thread
2020-01-16 21:27:08 +01:00
Bojidar Marinov
da5b138e64
Fix errors raised when showing parse errors in the editor
...
Fixes #26691
2020-01-16 22:12:24 +02:00
Ignacio Etcheverry
d68b9c20d6
Mono/C#: Script interface calls now attach the current thread
...
Added guards to all C# script interface calls to attach the current thread
for the current scope if the thread is not already attached.
This is far from ideal, as attaching the thread is not cheap and all managed
thread local storage is lost when we detach the thread at the end of the calls.
However, it's the best we can do for now to avoid crashing
when an unattached thread tries to interact with C# code.
2020-01-16 17:47:36 +01:00
Rémi Verschelde
f2aa99a8e2
Merge pull request #35201 from bojidar-bg/27582-gdfunction-validate-instance
...
Validate instances of objects before trying to check their type in GDScript
2020-01-16 15:57:44 +01:00
Rémi Verschelde
4998983bd5
Merge pull request #35199 from dalexeev/master
...
Fix function arguments hint format in GDScript editor
2020-01-16 15:53:28 +01:00
Rémi Verschelde
df13245408
Merge pull request #35203 from timothyqiu/image-loader-null
...
Adds null check before using image loader
2020-01-16 15:51:46 +01:00
Rémi Verschelde
cd7b51b943
Merge pull request #35102 from ChibiDenDen/reuse_orphaned_subclass
...
#34161 : Keep a weak reference to orphan subclasses to reuse on class reload
2020-01-16 15:49:52 +01:00
Bojidar Marinov
dc4455d819
Validate instances of objects before trying to check their type in GDScript
...
Fixes #27582
2020-01-16 16:39:59 +02:00
Rémi Verschelde
9986f3804c
Merge pull request #35198 from bojidar-bg/27575-poolarrayexport-default
...
Fix slight problems related to default values of exported typed arrays
2020-01-16 14:58:06 +01:00
Haoyu Qiu
92b36d4706
Adds NULL check before using image loader
2020-01-16 21:49:23 +08:00
Bojidar Marinov
19ce2d5159
Fix slight problems related to default values of exported typed arrays
2020-01-16 14:50:29 +02:00
Danil Alexeev
45b510b332
Fix function arguments hint format in GDScript editor
...
for consistency with the format of the documentation:
"type func_name(arg1: type, arg2: type)"
2020-01-16 15:41:02 +03:00
Rémi Verschelde
1de633205f
Validate input in (CPU)Particles set_emission_shape()
...
Fixes #29777 .
Co-authored-by: Cameron Reikes <cameronreikes@gmail.com>
2020-01-16 11:08:51 +01:00
Ignacio Etcheverry
1a40f250bd
Mono/C#: Fix false positive in unsafe reference checks
2020-01-15 23:46:42 +01:00
ChibiDenDen
86aa12e806
Keep a weak reference to orphan subclasses to reuse on class reload
2020-01-15 22:54:01 +02:00
Rémi Verschelde
5f99e3396f
Merge pull request #35156 from MadEqua/fix-grid-map
...
Fix GridMap getter of baked meshes.
2020-01-15 17:55:52 +01:00
Bruno Lourenço
da9eede933
Fix GridMap getter of baked meshes.
2020-01-15 14:30:17 +00:00
Rémi Verschelde
9b8d1383ce
Mono: Fix parsing assembly names as UTF-8
...
Fixes #27185 .
2020-01-15 11:51:03 +01:00
Houkime
e1a0ce5af9
Prevent GDScript language server from listening to external hosts by default
...
* Add bind_ip property to WebSocketServer defaulting to "*" (listen to everyone)
* Set default for GDscript Language Server to listen only to localhost
Fixes potential security issue with GDScript language server being exposed to the
broad net by default.
Since it is the server which primary usage is to provide utility to the local
editor there is no need to expose it.
2020-01-15 00:29:59 +00:00
Rémi Verschelde
40f0649e5b
Fix typos with codespell
...
Using codespell 1.16.0.
See ab3bccdb78
for procedure.
2020-01-15 00:49:52 +01:00
Rémi Verschelde
3d88a7bb22
Merge pull request #35122 from ChibiDenDen/fully_qualified_name_gdscript
...
Add fully_qualified_name for GDScript class
2020-01-14 18:54:52 +01:00
Rémi Verschelde
1bafd2d2c8
Merge pull request #35120 from Faless/docs/html5_restrictions
...
Update documentation to reflect HTML5 limitations.
2020-01-14 17:23:54 +01:00
Dani Frank
d6f10cd08e
Add fully_qualified_name for GDScript class
2020-01-14 17:33:33 +02:00
Fabio Alessandrelli
aa744aee7d
Update documentation to reflect HTML5 limitations.
2020-01-14 15:42:47 +01:00
Haoyu Qiu
ddde73cc62
Makes adding port in Visual Script nodes deferred
2020-01-14 21:03:09 +08:00
Rémi Verschelde
f06372cb73
Merge pull request #35097 from neikeq/issue-34954
...
Mono/C#: Fix _update_exports() leaking temporary Object/Node instances
2020-01-13 22:01:11 +01:00
Ignacio Etcheverry
a6a5ef0fd6
Mono/C#: Add error checks to detect possible Reference leaks
2020-01-13 21:00:07 +01:00
Ignacio Etcheverry
ea737db43c
Mono/C#: Fix _update_exports() leaking temporary Object/Node instances
2020-01-13 20:58:46 +01:00
George Marques
1d129f9bec
GDScript: Check function arguments on release too
...
Needed because otherwise the certain type operations (such as type
casting) used as a function argument might become unresolved on release,
causing a compilation failure.
Fix #28680
2020-01-13 15:58:53 -03:00
Rémi Verschelde
c7b701dfd2
Image: Include S3TC compression via Squish in non-tools build
...
We already build Squish in templates build for S3TC decompression,
so we can as well expose the compression feature.
Fixes #25640 .
2020-01-13 15:58:49 +01:00
Rémi Verschelde
e32d232053
Merge pull request #35076 from vnen/gdscript-type-match-assign
...
Type match on assignment only if operators have type
2020-01-13 13:14:57 +01:00
George Marques
e6060706ca
GDScript: Type match on assignment only if operators have type
...
This ensures that a value without type won't be wrongly assigned to a
typed variable when the types mismatch.
2020-01-13 08:51:24 -03:00
Geequlim
d5e1890c85
Fix infinite loop error in document link parsing
2020-01-13 19:23:29 +08:00
geequlim
e804eebfe5
Remove completion triggers for ',' and '(' which may conflict with signature helper
2020-01-11 23:51:25 +08:00
geequlim
d901d5993b
Allow enable/disable threading for LSP server
...
Restart LSP server when configurations change without restart the editor
2020-01-11 23:50:32 +08:00
Rémi Verschelde
0b185278f3
Merge pull request #34225 from madmiraal/fix-34210
...
Add check for zero length motion at beginning of each sweep test loop in SpaceBullet::test_body_motion
2020-01-11 11:57:41 +01:00
Rémi Verschelde
0ab1726b43
Merge pull request #35003 from vnen/gdscript-forbid-script-as-member
...
GDScript: Forbid using "script" as member name
2020-01-11 00:03:55 +01:00
George Marques
4c20d9407d
GDScript: Forbid using "script" as member name
...
Avoids the user breaking things by creating a "script" variable with
something else, effectively overwriting the "script" slot on Object.
2020-01-10 19:43:33 -03:00
K. S. Ernest (iFire) Lee
dfb713bce6
Use cycle and loop hint flags in FBX.
2020-01-10 08:23:24 -08:00
Rémi Verschelde
673f4fabd8
Merge pull request #34962 from KoBeWi/randocs
...
Complete documentation of various classes
2020-01-10 14:41:30 +01:00
Tomasz Chabora
508e624b87
Complete documentation of various classes
2020-01-10 14:14:07 +01:00
toasteater
677e72d2f6
Expose instance_from_id to GDNative
...
This function is available to GDScript but not to GDNative. When exposed, it
allows building more ergonomic safe abstractions over the GDNative APIs, and
covers the use cases of the original PR.
Close #28478 . Supersedes #28791 .
Co-authored-by: Markus Ewald <cygon@nuclex.org>
2020-01-10 11:59:37 +00:00
Rémi Verschelde
0d2993659b
Merge pull request #34978 from GodotExplorer/lsp-fix-bracket-completion
...
LSP: Fix bracket completion for functions with one argument
2020-01-10 07:58:26 +01:00
Rémi Verschelde
09aa12a0dd
Merge pull request #34958 from vnen/gdscript-is-check-valid-instance
...
GDScript: Validate object instance on `is` operation
2020-01-10 07:40:56 +01:00
Geequlim
6190d42825
LSP: Fix bracket completion for functions with one argument
2020-01-10 14:23:01 +08:00
George Marques
76678b2609
GDScript: Fix type name on error message for function parameters
2020-01-09 15:50:06 -03:00
George Marques
1aef8bfeb1
GDScript: Fix resolution of default parameter values
...
Fix #26556
2020-01-09 15:42:31 -03:00
George Marques
3718f8f592
GDScript: Validate object instance on is
operation
...
Avoids crashes on debug mode. Instead it now breaks the execution and
show the error in-editor. Will still crash on release.
Also add a similar check to Marshalls to ensure the debugger doesn't
crash when trying to serialize the invalid instance.
2020-01-09 13:59:33 -03:00
George Marques
cc9ca9eb34
GDScript: Don't re-evaluate index on assigment with operation
...
Pass the calculated index from the stack and use the same to get and set
the value. This avoids a function with side effects being evaluated
twice when using indexing in an assignment with operation statement
(e.g. a[function()] += 1).
2020-01-09 10:43:29 -03:00
Rémi Verschelde
e97e951741
Merge pull request #34948 from vnen/gdscript-copy-constructor
...
GDScript: Allow copy constructor for built-in types
2020-01-09 13:42:10 +01:00
George Marques
41ed905c1a
GDScript: Allow copy constructor for built-in types
...
Those are implicitly defined in Variant.
2020-01-09 09:03:09 -03:00
George Marques
7d4fc79eb3
Add GDScript warning for standalone expression
...
This makes the error message clearer as it might be used to call
functions with side effects.
2020-01-09 08:30:14 -03:00
George Marques
e7b7dc57fc
GDScript: set assign operation on local var made by match
...
This is needed in a all local variables with assigment to properly set
the typed operation.
Fix #34928
2020-01-08 19:28:07 -03:00
Rémi Verschelde
b9a553f99d
Merge pull request #34921 from akien-mga/bullet-2.89
...
bullet: Sync with upstream 2.89
2020-01-08 21:17:33 +01:00
Rémi Verschelde
5a8107f70a
Merge pull request #34920 from GodotExplorer/lsp-signatureHelper
...
GDScript LSP: Implement signatureHelp
2020-01-08 18:29:39 +01:00
Rémi Verschelde
c456d87ee6
Merge pull request #34918 from vnen/gdscript-assign-op
...
GDScript: enable type checks on release mode
2020-01-08 18:22:38 +01:00
Rémi Verschelde
29e07dfa4e
bullet: Sync with upstream 2.89
...
This allows distro unbundling again for distros that ship Bullet 2.89+.
2020-01-08 18:05:43 +01:00
geequlim
d35c018a7a
GDScript LSP: Implement signatureHelp
...
Enable smart resolve default to true as it is required for script symbol lookup
2020-01-09 00:57:54 +08:00
George Marques
d26414f9fe
GDScript: enable type checks on release mode
...
Also make builtin GDScript functions report return type as Variant in
release so type is converted when needed.
2020-01-08 12:38:18 -03:00
George Marques
899f7999b4
GDScript: properly set type of local variable initialization
...
Properly sets the type of the identifier for the local variable
that is stored in the assignment operation. This makes sure that the
compiler is aware of typing for local variables when they are
initialized with the declaration.
2020-01-08 11:36:50 -03:00
Rémi Verschelde
cd408c5256
Merge pull request #34886 from JFonS/fix_32699
...
Make NoiseTexture threading more robust
2020-01-07 12:46:43 +01:00
JFonS
4e10c62024
Make NoiseTexture threading more robust
...
Fixes crash when a NoiseTexture was freed before the generation thread finished.
2020-01-07 11:35:34 +01:00
geequlim
eb5861f9f1
GDScript LSP: Implement goto declaration
2020-01-04 20:02:26 +08:00
Rémi Verschelde
34c71157f0
Merge pull request #34795 from dankan1890/mono_cs_icon
...
[Mono]: the C# script icon is now visible in the editor.
2020-01-04 00:03:38 +01:00
dankan1890
51c601d2e3
[Mono]: the C# script icon is now visible in the editor.
2020-01-03 22:49:22 +01:00
Rémi Verschelde
db1a01501b
Merge pull request #34790 from clayjohn/ETC-support-alpha
...
Add support for Lum-alpha textures to ETC fallback
2020-01-03 22:48:22 +01:00
Fabio Alessandrelli
411f08c506
Fix ENet max clients highest value.
...
Was 4096, while actually it's 4095. Fixed now in both docs and
`create_server` check.
2020-01-03 20:18:33 +01:00
clayjohn
cd21200944
Add support for Lum-alpha textures to ETC fallback
2020-01-03 11:10:44 -08:00
Fabio Alessandrelli
ce47d5af77
ENet optional server_relay when disconnecting peer
...
Was not correctly enforced before, always notifying other peers of the
disconnection.
2020-01-03 20:09:49 +01:00
Rémi Verschelde
399e53e8c3
Merge pull request #34784 from neikeq/fix-hintpath-godottools
...
Mono/C#: Fix wrong HintPath for package in GodotTools
2020-01-03 16:34:08 +01:00
Ignacio Etcheverry
9ce0ddcf0d
Mono/C#: Fix wrong HintPath for package in GodotTools
2020-01-03 15:53:16 +01:00
Rémi Verschelde
09b4327805
Merge pull request #34452 from aaronfranke/color-arith
...
[Mono] Color arithmetic operators
2020-01-03 15:07:17 +01:00
Rémi Verschelde
136846a6ec
Merge pull request #34772 from clayjohn/ETC-support-alpha
...
Fallback to RGBA4444 for textures with alpha set to ETC compression
2020-01-03 14:29:19 +01:00
Aaron Franke
68ba2588b8
[Mono] Color arithmetic operators
2020-01-03 06:00:14 -05:00
Rémi Verschelde
9d3424f61d
Merge pull request #34688 from sheepandshepherd/gdnative_class_ptr
...
Expose is_class_ptr to GDNative for dynamic casts
2020-01-03 11:32:01 +01:00
clayjohn
7a9fc69a16
Fallback to RGBA4444 for textures with alpha set to ETC compression
2020-01-02 21:37:48 -08:00
sheepandshepherd
3056c4bd5a
Expose cast_to to GDNative for dynamic casts
2020-01-03 04:27:13 +01:00
Aaron Franke
0b3f1cc70a
[Mono] Make Sign methods consistent with GDScript and System.Math
2020-01-02 16:41:41 -05:00
Rémi Verschelde
d84cf797a2
Merge pull request #34758 from neikeq/mono-bindings-void-vararg
...
Mono/C#: Fix bindings generator with void vararg methods
2020-01-02 18:34:38 +01:00
Rémi Verschelde
1fe8dedf33
Merge pull request #34756 from bojidar-bg/34689-export-line-break
...
Allow the usage of newlines in export hints
2020-01-02 18:20:28 +01:00
Ignacio Etcheverry
c1ff3ef9e8
Mono/C#: Fix comment generation for non-constant param default
...
- Generate the comment for the param, even if the method has no description.
- Generate the comment outside the <summary> element.
2020-01-02 18:10:02 +01:00
Ignacio Etcheverry
f3aa793ba3
Mono/C#: Fix bindings generator with void vararg methods
...
Commit 4d727f1ee6
made it possible for vararg
methods to return void. This broke the C# bindings generator which was
assuming in one place that vararg methods always return Variant.
2020-01-02 18:02:48 +01:00
Bojidar Marinov
b93b7aca74
Allow the usage of newlines in export hints
...
Fixes #34689
2020-01-02 18:03:11 +02:00
Ignacio Etcheverry
844a8d215b
Mono/C#: Make 'GD.Print' and its variants fallback to 'ToString()'
...
Up until now, 'GD.Print' would convert parameters first to
Variant and only then to String. This meant parameters that cannot be
converted to Variant would be printed as "Null".
This commit makes 'GD.Print' fallback to 'System.Object.ToString()'
if the parameter could not be converted to Variant.
The same applies to all 'GD.Print' variants:
'GD.PrintS', 'GD.PrintT', 'GD.PrintErr' and 'GD.PrintRaw'.
2020-01-02 13:54:20 +01:00
Ignacio Etcheverry
ea75ea50d2
Mono/C#: Fix GD.PrintErr now showing in the Output panel
2020-01-02 13:13:22 +01:00
Rémi Verschelde
5aa96b72c7
Merge pull request #34706 from KoBeWi/grindput
...
Don't handle Gridmap input when have no effect
2020-01-01 11:35:39 +01:00
Rémi Verschelde
a7f49ac9a1
Update copyright statements to 2020
...
Happy new year to the wonderful Godot community!
We're starting a new decade with a well-established, non-profit, free
and open source game engine, and tons of further improvements in the
pipeline from hundreds of contributors.
Godot will keep getting better, and we're looking forward to all the
games that the community will keep developing and releasing with it.
2020-01-01 11:16:22 +01:00
Ignacio Roldán Etcheverry
7fddf5eb7c
Merge pull request #34699 from van800/godot-guid
...
Custom property for Godot generated project
2019-12-31 20:28:14 +01:00
Tomasz Chabora
bf143c05d2
Don't handle Gridmap input when have no effect
2019-12-30 23:35:43 +01:00
Rémi Verschelde
e37ad996a1
Merge pull request #34625 from timothyqiu/i18n
...
Makes more editor strings translatable
2019-12-30 17:28:11 +01:00
Rémi Verschelde
edf2ed5e50
Merge pull request #34582 from timothyqiu/forward-decl
...
Cleans up headers included in editor_node.h
2019-12-30 16:28:47 +01:00
Ivan Shakhov
af2e6e12d1
add custom property to csproj, which identifies that project is generated by Godot
2019-12-30 16:16:47 +01:00
Haoyu Qiu
8cf941a8cb
Makes more editor strings translatable
...
* Title of Sprite Editor convert preview dialogs
* Title of UV Channel Debug dialog
* Various editor warnings
* GridMap popup menu item "Paste Selects"
* Tileset editor shape button texts
* MeshLibrary update confirmation text
2019-12-30 10:36:31 +08:00
Dan Kramer
1b26f2c505
Fix msbuild target argument
2019-12-29 17:03:21 -05:00
Ignacio Etcheverry
86274b9fc9
Mono/C#: Re-structure API solution and GodotTools post-build target
...
Previously we had a placeholder solution called 'Managed' to benefit from
tooling while editing the a part of the C# API.
Later the bindings generator would create the final 'GodotSharp' solution
including these C# files as well as the auto-generated C# API.
Now we replaced the 'Managed' solution with the final 'GodotSharp' solution
which is no longer auto-generated, and the bindings generator only takes
care of the auto-generated C# API.
This has the following benefits:
- It's less confusing as there will no longer be two versions of the same file
(the original and a generated copy of it). Now there's only one.
- We no longer need placeholder for auto-generated API classes, like Node or
Resource. We used them for benefiting from tooling. Now we can just use the
auto-generated API itself.
- Simplifies the build system and bindings generator. Removed lot of code
that is not needed anymore.
Also added a post-build target to the GodotTools project to copy the output to
the data dir. This makes it easy to iterate when doing changes to GodotTools,
as SCons doesn't have to be executed anymore just to copy these new files.
2019-12-28 20:48:55 +01:00
Ignacio Roldán Etcheverry
318c693516
Merge pull request #34595 from van800/mac_rider
...
Fix search for Rider path on Mac
2019-12-26 02:16:55 +01:00
Ignacio Roldán Etcheverry
f90e8c41a2
Merge pull request #34604 from neikeq/issue-27674
...
Mono/C#: Fix memory leak with new Reference instances created from C#
2019-12-25 20:47:07 +01:00
Ignacio Etcheverry
0ef635c0e3
Mono/C#: Fix memory leak with new Reference instances created from C#
2019-12-25 19:33:59 +01:00
Ivan.Shakhov
682dd04b2d
fix Rider path on Mac
2019-12-25 00:14:31 +01:00
Haoyu Qiu
078c0d75f2
Cleans up headers included in editor_node.h
2019-12-24 21:46:05 +08:00
Rémi Verschelde
e4ecfe90f9
Merge pull request #34515 from Faless/ws/closing_ws
...
WSLPeer now prevents receiving data after close.
2019-12-22 12:32:52 +01:00
Dan Kramer
097d1c9383
add suggested fix
2019-12-21 13:26:29 -05:00
Rémi Verschelde
a10449bbbc
Merge pull request #34514 from neikeq/remove-dep-on-mono-posix
...
Mono/C#: Remove GodotTools dependency on the Mono.Posix assembly
2019-12-21 17:07:18 +01:00
Fabio Alessandrelli
9afdb9dcd3
WSLPeer now prevents receiving data after close.
...
Used to spit error and report empty packets when connection was still
half-closed (waiting for confirmation from other end).
2019-12-21 16:38:36 +01:00
Ignacio Etcheverry
5a3ccf4f14
Mono/C#: Remove GodotTools dependency on the Mono.Posix assembly
...
MSBuild on Windows uses the system .NET Framework BCL instead of Mono's. Because
of this, it may not be able to find the Mono.Posix assembly, so it's better
not to depend on it. We needed Mono.Posix to call Syscall.access, so we can
replace this with an internal call that does the same in C++.
2019-12-21 15:55:45 +01:00
Haoyu Qiu
0693718164
Makes more editor strings translatable
...
* "Add" button text in Groups Editor
* "Receiver Method" in Connect Signal Dialog
* "Play Mode" in Animation State Machine Editor
* "Mesh Library" button text in Mesh Library editor plugin
* Compose Array node button texts in Visual Script
* Various button texts in TileSet Editor
* Various Run Script errors
2019-12-21 20:58:17 +08:00
Rémi Verschelde
2a4c528d06
Merge pull request #34465 from neikeq/no-hardcode-debugger-wait
...
Mono/C#: Remove hard-coded debugger wait at initialization
2019-12-19 21:27:59 +01:00
Ignacio Etcheverry
f3c6c63b94
Mono/C#: Remove hard-coded debugger wait at initialization
...
Up until now debug builds would always wait up to 500 ms during initialization
to give time for debuggers to attach to the game.
We no longer want this as it increases startup time unnecesarily.
The way forward is to setup the debugger agent as client instead of server.
This way it's the game that connect to the debugger, not the other way around.
If server mode is still desired, suspend=y can be used to indefinitely wait
for the debugger to attach. This all can be specified with the environment
variable 'GODOT_MONO_DEBUGGER_AGENT' when launching the game.
2019-12-19 17:07:20 +01:00
Ignacio Etcheverry
98dc07f25f
Mono/C#: Fix Variant -> MonoString* when type is Variant:NIL
...
`Variant::operator String()` returns "Null" if the type is `Variant:NIL`.
We must consider that and return a null `MonoString*` instead when marshalling.
This was also causing a "Null" error to be displayed when exporting a game
because null string members would be set to "Null" during hot-reload.
2019-12-19 16:51:32 +01:00
Rémi Verschelde
1c6b9bfdff
Mono: Copy native and btls libs on macOS
2019-12-18 08:39:37 +01:00
Ignacio Etcheverry
20d7013c60
Mono/C#: Fix project export and fix FindLast/GetFile regression
...
d09193b08a
introduced a regression in
StringExtensions.FindLast. StringExtensions.GetFile was also affected as it
relies on FindLast. This in turn broke the project exporter as it uses GetFile.
The cause of the regression is that now FindLast is calling LastIndexOf
with 'startIndex: 0'. This should be 'startIndex: str.Length - 1' instead.
Also fixed another regression in the project exporter:
de7c2ad21b
moved 'GodotTools/GodotSharpExport.cs'
to 'GodotTools/Export/ExportPlugin.cs' and in doing so accidently reverted
the changes from commit e439581198
.
2019-12-17 13:06:41 +01:00
Haoyu Qiu
9adeec789c
Fixes size of create function dialog
2019-12-17 09:04:30 +08:00
Rémi Verschelde
c3ea4ea9b7
Merge pull request #34382 from van800/profiler
...
Allow attaching any external profiler, including JetBrains dotTrace
2019-12-16 22:00:36 +01:00
Ivan Shakhov
7c64779516
Allow attaching any external profiler, including JetBrains dotTrace
2019-12-16 20:34:30 +01:00
Rémi Verschelde
a866028a7a
Mono: Enable threads suspend workaround on Windows
...
This appears to be necessary for current official builds cross-compiled
with MinGW from Linux, using Mono 6.6.0.160.
Follow-up to #31784 , see #29812 for details.
2019-12-16 15:40:26 +01:00
Rémi Verschelde
d4601776db
Merge pull request #34377 from timothyqiu/i18n
...
Makes more strings in editor translatable
2019-12-16 09:56:23 +01:00
Haoyu Qiu
7a9c337dfe
Makes more strings in editor translatable
...
* File type names in file dialogs
* Layout option names
* Visual shader editor UI
2019-12-16 16:41:07 +08:00
Rémi Verschelde
74977277fa
Merge pull request #34280 from zaksnet/fix-yield-documentation
...
Fix documentation for yield
2019-12-16 08:49:32 +01:00
Haoyu Qiu
468fcd80bb
Updates docs for GDScript built-in functions
...
* Adds description for `ord()`
* Adds relationship description between `char()` and `ord()`
* Describes the argument of `char()` as Unicode code point instead of ASCII code
* Fixes wrong interval notation in `randi()` description
2019-12-15 19:06:29 +08:00
Rémi Verschelde
12ee35737f
Merge pull request #34334 from neikeq/issue-33503
...
Mono/C#: Fix class parser bug with 'where T : struct'
2019-12-13 20:13:28 +01:00
Rémi Verschelde
e65db6a16b
Merge pull request #34333 from vnen/gdscript-assign-op
...
Fix some cases where typed assignment gets invalid
2019-12-13 20:13:12 +01:00
Ignacio Etcheverry
f2a2293709
Mono/C#: Fix class parser incorrectly handling nested namespaces
...
It would incorrectly error thinking the nested namespace is being declared inside a struct/class. This was because of an incorrect nesting level being used for classes and structs.
2019-12-13 19:55:32 +01:00
Ignacio Etcheverry
c1ab956dd0
Mono/C#: Fix class parser bug with 'where T : struct'
...
The struct decl parsing was outdated. Make both struct decl and class declparsing share the same code.
2019-12-13 19:50:42 +01:00
George Marques
cb887324e6
GDScript: Convert values when setting member variables
...
This allows doing: self.x = 1 even if self.x is declared as float.
2019-12-13 12:51:53 -03:00
George Marques
475d7f0e52
GDScript: Fix type conversion in assignment with operation
2019-12-13 12:51:08 -03:00
Rémi Verschelde
9f68626fb2
doc: Sync classref with current source
...
Also apply clang-format.
2019-12-13 10:41:06 +01:00
Zak
0fd7186971
Fix documentation for yield
...
#33872 PR was misleading as i though inheritance from GDScriptFunctionState was optional.
2019-12-13 11:17:12 +02:00
Rémi Verschelde
d39284a65f
Merge pull request #34295 from aaronfranke/potato-knishes
...
[Mono] Fix string Find methods having reversed case sensitivity
2019-12-13 08:47:26 +01:00
Rémi Verschelde
f065b34e96
Merge pull request #34286 from bojidar-bg/31818-cast-autocomplete
...
Fix GDScript autocompletion with "as" or typed variables
2019-12-12 14:53:38 +01:00
Aaron Franke
d09193b08a
Fix string Find methods having reversed case sensitivity
2019-12-12 02:21:16 -05:00
Bojidar Marinov
a665b3878b
Fix GDScript autocompletion with as
or typed variables
...
Fixes #31818 , fixes #33434
2019-12-12 01:16:23 +02:00
Aaron Franke
5771f9959c
Mono formatting
...
No space for casting, add spaces inside braces, 4 space indentation, remove trailing indentation, remove BOM.
2019-12-11 16:32:47 -05:00
Michael Alexsander
6cc3bb2d9b
Add note in 'load()' docs that the path must be absolute
2019-12-11 17:14:58 -03:00
Rémi Verschelde
98c3990f7d
Merge pull request #34271 from vnen/gdscript-unused-class-variable-disable
...
Disable GDScript warning for unused class variable by default
2019-12-11 16:27:42 +01:00
Rémi Verschelde
70a8c37957
Merge pull request #34227 from akien-mga/scons-mingw-split-libmodules
...
SCons: Add 'split_libmodules' option to workaround linker issue
2019-12-11 16:21:16 +01:00
Rémi Verschelde
c320a82213
SCons: Add 'split_libmodules' option to workaround linker issue
...
The new 'split_libmodules=yes' option is useful to work around linker
command line size limitations when linking a huge number of objects.
We're currently over 64k chars when linking libmodules.a on Windows
with MinGW, which triggers issues as seen in #30892 .
Even on Linux, we can also reach linker command line size limitations
by adding more custom modules.
We force this option to True for MinGW on Windows, which fixes #30892 .
Additional changes to lib splitting:
- Fix linking of the split module libs with interdependent symbols,
hacking our way into LINKCOM and SHLINKCOM to set the `--start-group`
and `--end-group` flags.
- Fix Python 3 compatibility in `methods.split_lib()`.
- Drop seemingly obsolete condition for 'msys' on 'posix'.
- Drop the unnecessary 'split_drivers' as the drivers lib is no longer
too big since we moved all thirdparty builds to modules.
Co-authored-by: Hein-Pieter van Braam-Stewart <hp@tmm.cx>
2019-12-11 15:40:28 +01:00
Rémi Verschelde
df2e3e3f7f
Merge pull request #33018 from Xrayez/fix-inst2dict-getters
...
Fix `inst2dict` calling to getters to retrieve value
2019-12-11 15:06:38 +01:00
George Marques
cbf5641a74
Disable GDScript warning for unused class variable by default
2019-12-11 11:02:07 -03:00
Rémi Verschelde
cd9d513285
Merge pull request #34181 from van800/rider
...
Support Rider as external editor for Godot mono version
2019-12-11 09:20:31 +01:00
Ivan Shakhov
8fbc9d33fd
Support Rider as External Editor
2019-12-11 08:39:04 +01:00
Rémi Verschelde
2845e6a21a
Merge pull request #34040 from qarmin/unused_variable_more_precise_numbers
...
Removed unused variables, add some constants numbers
2019-12-10 08:25:31 +01:00
Marcel Admiraal
e0d252311e
Add check for zero length motion at beginning of each sweep test loop
...
in SpaceBullet::test_body_motion.
2019-12-10 08:16:32 +01:00
Rafał Mikrut
ed1c4bc77d
Removed unused variables, add some constants numbers
2019-12-10 05:13:02 +01:00
Marcel Admiraal
78055cbdaf
Check that motion is not zero before doing a sweep test.
...
Fixes #25476 .
2019-12-09 09:21:38 +01:00
Rémi Verschelde
4eff13d768
doc: Markup fixes for enums and constants
2019-12-06 23:09:20 +01:00
Jonas
11258db001
Fix missing null checks in Mono Binding of GD
...
The print methods of mono binding was missing null checks for the params
2019-12-06 11:56:50 +01:00
Ignacio Roldán Etcheverry
6544a0e908
Merge pull request #34018 from dsge/show-template-directory-path-in-error-message
...
Make sure to include the path in the "Data template directory not found" error message
2019-12-05 14:17:23 +01:00
codecustard
601d870ae9
Fixes wrong position when adding node in VS editor
...
When adding a node in the visual script editor while zoomed in, the position of the newly added node would be wrong.
2019-12-04 17:12:01 -08:00
Ignacio Etcheverry
066ae9d83b
Mono/C#: Several android fixes
...
- Added correct config file for android dllmaps.
- Fix __Internal DllImports with a dlopen fallback.
- Add missing P/Invoke functions and internal calls expected by the monodroid BCL and our custom version of the 'Android.Runtime.AndroidEnvironment' class (this last one can be found in the godot-mono-builds repo).
- Make sure to set 'btls' instead of 'legacy' as the default TLS provider on Android.
2019-12-04 19:03:42 +01:00
Ignacio Etcheverry
3797f19926
C#: Add Duplicate method to the Array and Dictionary bindings
2019-12-04 15:22:30 +01:00
Rémi Verschelde
fc8bbaa8e9
Merge pull request #34094 from volzhs/compile-windows-on-linux
...
Fix compile error for Windows on Linux
2019-12-04 07:08:23 +01:00
Rémi Verschelde
f326913f4d
Merge pull request #34067 from bojidar-bg/32370-retype-message
...
Make error when accidentially redeclaring a variable's type clearer
2019-12-04 06:52:22 +01:00
volzhs
d1270f3d4c
Fix compile error for Windows on Linux
2019-12-04 08:06:07 +09:00
Hugo Locurcio
1fcdeaee39
Mention that int()
can be used as an alternative to floor()
2019-12-03 08:43:24 +01:00
Bojidar Marinov
79c26344e8
Make error when accidentially redeclaring a variable's type clearer
...
Fixes #32370
2019-12-02 22:26:05 +02:00
Rémi Verschelde
e64a663c59
Merge pull request #33992 from bruvzg/ios_modular_build
...
iOS modular build and export implementation.
2019-12-01 22:35:45 +01:00
bruvzg
2ef8c5fac5
iOS modular build and export implementation.
2019-12-01 21:57:18 +02:00
Emmanuel Leblond
fb9b010384
Add missing on error manifest struct destroy in pluginscript script init
2019-12-01 16:15:31 +01:00
Rémi Verschelde
ea7f3037da
Merge pull request #34002 from KoBeWi/crashonat
...
Don't try to initialize empty NativeLibrary
2019-12-01 11:53:19 +01:00
Rémi Verschelde
7140d766a2
Merge pull request #33997 from akien-mga/doc-makerst-escape
...
makerst: Escape default values using reST markup
2019-12-01 11:52:20 +01:00
Aaron Franke
3231fca934
Add docs for is_equal_approx on structures
2019-11-30 16:52:27 -05:00
miere43
d747c61187
Fixed typo in docs for Script and GDScript classes ("exends" -> "extends")
2019-11-30 21:16:11 +03:00
dsge
81cae314b4
Make sure to include the path in the "Data template directory not found" error message
2019-11-30 15:44:18 +01:00
Rémi Verschelde
52e3944846
Merge pull request #34009 from flyingpimonster/gridmap-docs
...
Docs: GridMap and MeshLibrary
2019-11-30 11:13:42 +01:00
James Westman
7ef16ca136
Docs: GridMap and MeshLibrary
...
The only methods left to document are resource_changed, set_clip, and
the methods dealing with baked meshes.
2019-11-29 18:21:34 -06:00
Tomasz Chabora
f4a1a79d01
Don't try to initialize empty NativeLibrary
2019-11-29 21:10:20 +01:00
Rémi Verschelde
55676b16da
makerst: Escape default values using reST markup
...
Otherwise the docs would complain about values like "godot_"
which reST tries to interpret as an identifier.
2019-11-29 14:25:37 +01:00
Rémi Verschelde
fa0e682027
Merge pull request #33982 from neikeq/issue-29349
...
Mono/C#: Add option to export assemblies outside of PCK
2019-11-29 11:37:18 +01:00
Ignacio Etcheverry
85d8c42763
Mono/C#: Fix crash on exported games that don't use C#
2019-11-29 01:35:46 +01:00
Ignacio Etcheverry
66de28eda8
Mono/C#: Add option to export assemblies outside of PCK
...
When using this options, assemblies will be saved in the Assemblies folder of the data directory: 'data_AppName/Assemblies/'.
2019-11-29 00:36:05 +01:00
Hugo Locurcio
247767eb89
Document how to bypass the unused argument/variable warning in message
...
Note that prefixing with an underscore only works with unused arguments
and local variables, not class variables and signals.
This closes #26056 .
2019-11-27 22:52:43 +01:00
Rémi Verschelde
aae9e11a1e
Merge pull request #33946 from NeoSpark314/remove_exr_dbgprint
...
Remove .exr saver debug print
2019-11-27 17:55:23 +01:00
Holger Dammertz
365c5bd0e5
Remove .exr saver debug print
2019-11-27 17:17:29 +01:00
marcosjouron
6d2b21c6a4
VideoStreamGDNative: Fix playing video files without audio stream
2019-11-27 16:40:16 +01:00
Rémi Verschelde
a87e2f85ee
Merge pull request #33939 from KoBeWi/grideprecatedmap
...
Remove deprecated theme property from GridMap
2019-11-27 15:32:59 +01:00
Tomasz Chabora
96b30e7727
Remove deprecated theme property from GridMap
2019-11-27 14:40:43 +01:00
Rémi Verschelde
31272d0956
Merge pull request #33921 from Faless/enet/no_relay
...
Add ENet option to disable server relaying.
2019-11-27 14:35:44 +01:00
Fabio Alessandrelli
7e592f9641
Add ENet option to disable server relaying.
...
It's useless when building fully authoritative servers, and prevents
various kinds of abuse.
2019-11-27 11:48:31 +01:00
Hugo Locurcio
4f14a1f59c
Remove type hint from the @GDScript class documentation
...
The current consensus in the Godot documentation is to avoid using
type hints unless they're relevant to the behavior explained.
2019-11-26 19:13:55 +01:00
Fabio Alessandrelli
391f6ff2c6
Fix memory leak in NetworkedMultiplayerENet.
...
Dynamically allocated ids of peers where not correctly freed when
calling close_connection and disconnect_peer (with now=true).
2019-11-26 16:00:55 +01:00
Zak Stam
5cfff77ca6
Added missing documentation for yield()
...
Added some missing documentation about yield() being able to wait for a function also. I cant believe something like that was missing from the docs, it would have saved me so much time (and others i assume).
2019-11-25 18:08:18 +02:00
Rémi Verschelde
636bc5c32f
Merge pull request #33828 from neikeq/貴様
...
Mono/C#: Prevent SCons from building API solutions in parallel
2019-11-23 11:24:48 +01:00
Ignacio Etcheverry
ebdd2bc474
Mono/C#: Prevent SCons from building API solutions in parallel
2019-11-22 23:42:24 +01:00
Rémi Verschelde
c41c24562d
Style: Add missing copyright headers
2019-11-22 08:37:09 +01:00
Rémi Verschelde
ab3bccdb78
Fix typos with codespell
...
Using codespell 1.16.0.
Method:
```
$ cat > ../godot-word-whitelist.txt << EOF
ang
curvelinear
dof
doubleclick
leapyear
lod
merchantibility
nd
numer
ois
ony
que
seeked
synching
te
uint
unselect
webp
EOF
$ codespell -w -q 3 -I ../godot-word-whitelist.txt --skip="./thirdparty,*.po"
$ git diff // undo unwanted changes
```
2019-11-22 08:35:03 +01:00
Ignacio Roldán Etcheverry
63b321dbbb
Merge pull request #33791 from neikeq/issue-33761
...
C#: Fix PathWhich on Windows when name already has extension
2019-11-21 21:34:12 +01:00
Ignacio Etcheverry
f91416d9ac
C#: Fix PathWhich on Windows when name already has extension
...
Also make the Posix version of PathWhich check if the file has executable access.
2019-11-21 14:53:00 +01:00
Rémi Verschelde
719254ae0d
Merge pull request #33759 from bruvzg/arkit_dyn_load
...
[iOS] Link and load ARKit framework dynamically.
2019-11-20 21:17:43 +01:00
K. S. Ernest (iFire) Lee
5d70a95fe1
33714 Check if the image is null before use.
2019-11-20 11:22:35 -08:00
Rémi Verschelde
73323a2838
Merge pull request #33763 from neikeq/issue-33725
...
Fix C# export error dialog showing up when it should not
2019-11-20 13:23:20 +01:00
Ignacio Etcheverry
d79aeca599
Fix C# export error dialog showing up when it should not
2019-11-20 13:07:26 +01:00
bruvzg
a9fef1a774
[iOS] Link and load ARKit framework dynamically.
2019-11-20 11:18:01 +02:00
Rémi Verschelde
02913f53d3
pcre2: Use scons option to disable JIT on some platforms
...
Third-party platforms (e.g. console ports) need to be able to
disable JIT support in the regex module too, so it can't be
hardcoded in the module SCsub. This is cleaner this way anyway.
Fixes #19316 .
2019-11-20 08:54:52 +01:00
Ignacio Etcheverry
3f247ea507
Mono/C#: Bundle libmono-btls-shared.dll on Windows if it exists
2019-11-19 17:22:06 +01:00
Rémi Verschelde
8450658fa2
Merge pull request #33673 from YeldhamDev/script_templates_lines_style
...
Make the script templates' blank lines conform with the official style guide
2019-11-19 10:41:36 +01:00
Ignacio Etcheverry
008769aee9
C#: Throw NullReferenceException for null NodePath/RID params
2019-11-18 12:23:54 +01:00
Rémi Verschelde
46ae64cd60
Revert "Update opus to 1.3.1 and opusfile to 0.11"
...
This reverts commit e00426c512
.
The way we handle platform-specific intrinsics is not good, so the
current state will not compile on armv8. This commit also requires
SSE4.1 support, which is likely not a good idea for portable binaries.
We'll have to redo this with more caution after 3.2 is released, or
we might simply drop opus as we're only using it as dependency for
theora right now.
Fixes #33606 .
2019-11-18 09:56:48 +01:00
Michael Alexsander
7ecaff578b
Make the script templates' blank lines conform with the official style guide
2019-11-17 08:54:43 -03:00
Rémi Verschelde
3c83137771
Merge pull request #33662 from touilleMan/issue-30577
...
Add singleton_name field to autogenerated json api
2019-11-16 23:00:07 +01:00
Rémi Verschelde
e9f905dccc
Merge pull request #33637 from madmiraal/fix-c4334-warning
...
Fix Visual Studio throwing C4334 warning.
2019-11-16 22:55:09 +01:00
Rémi Verschelde
53bc47a4da
Merge pull request #33643 from Calinou/visual-script-multiply-sign
...
Use the Unicode "multiply" sign for the "A x B" visual script node
2019-11-16 22:54:41 +01:00
Rémi Verschelde
6cde380cee
Merge pull request #33603 from neikeq/ばか
...
Mono/C#: WebAssembly and initial AOT support
2019-11-16 22:44:13 +01:00
Emmanuel Leblond
03e1568aeb
Add singleton_name field to autogenerated json api
2019-11-16 20:29:54 +01:00
Hugo Locurcio
08b4671e03
Use the Unicode "multiply" sign for the "A x B" visual script node
2019-11-15 19:06:53 +01:00
Marcel Admiraal
8fa72a20f3
Fix Visual Studio throwing C4334 warning.
2019-11-15 14:11:12 +01:00
Ignacio Etcheverry
8cbe4a3db4
Make C# internal calls return structs as ref parameters
...
The Mono IL interpreter's WebAssembly to native trampolines don't support passing structs by value, so we need to do it this way.
Also now we pass and return long, ulong, float and double as ref parameters as well. This is due to missing trampolines for float and long types. This is likely a temporary workaround that will be reverted in the future. The correct solution would be to patch 'mono/mini/m2n-gen.cs' when building the Mono runtime for WASM in order to generate the trampolines we need.
2019-11-15 03:22:25 +01:00
Ignacio Etcheverry
2b67924a0b
Mono/C#: Initial exporter support for AOT compilation
2019-11-15 03:22:18 +01:00
lupoDharkael
9254961297
Parser: Check all the arguments of the ternary operator
2019-11-15 01:29:18 +01:00
Ignacio Etcheverry
de7c2ad21b
Mono/C#: WebAssembly support
2019-11-13 21:41:11 +01:00
Rémi Verschelde
30d4c923cb
Merge pull request #32966 from ffaristocrat/fix-hex-parsing
...
Fix base 16 hex literal parsing
2019-11-12 23:04:20 +01:00
Micheál Keane
4b9fd961d6
Fixes #32963 by correctly parsing bin/hex literals
2019-11-12 15:57:38 -05:00
Ignacio Roldán Etcheverry
953f37f49b
Merge pull request #33249 from JoshLee0915/MonoHeadlessServer
...
Added missing server platform checks to template dir and shared lib copy in mono_configure.py
2019-11-12 14:57:29 +01:00
Rémi Verschelde
ba4c808721
Merge pull request #33311 from SneakyFish5/update-opus
...
Update opus to 1.3.1 and opusfile to 0.11
2019-11-12 07:55:25 +01:00
Rémi Verschelde
51d1be5156
AudioStreamOGGVorbis: Expose loop and loop_offset as properties
...
Fixes #11231 .
2019-11-11 15:14:37 +01:00
Rémi Verschelde
6b1628f9fc
Merge pull request #33517 from madmiraal/fix-_MSG-macros
...
Send *_MSG macros' explanations directly to the _err_print_error().
2019-11-11 13:27:51 +01:00
Marcel Admiraal
83069a3c0f
Remove ERR_EXPLAIN macros and the scaffolding they needed.
2019-11-11 10:57:00 +01:00
Marcel Admiraal
d18b2e599d
Remove all uses of ERR_EXPLAIN macros.
2019-11-11 10:24:04 +01:00
Rémi Verschelde
2143f46df2
Merge pull request #33516 from qarmin/small_fixes
...
Memory leaks and crash fixes
2019-11-10 10:17:19 +01:00
Rafał Mikrut
7dda9309f9
Memory leak and crash fixes
2019-11-10 09:49:13 +01:00
unknown
e00426c512
Update opus to 1.3.1 and opusfile to 0.11
2019-11-09 13:06:56 -06:00
mashumafi
d7137a6b72
Add setting to exclude addons from script warnings
2019-11-07 23:01:22 -05:00
Rémi Verschelde
77816fea8b
Merge pull request #32477 from aaronfranke/equal-approx-separate
...
Make is_equal_approx separate and make == exact again
2019-11-07 14:54:15 +01:00
Rémi Verschelde
f0fc28f0fd
Merge pull request #33160 from aaronfranke/alphabetize-mathf
...
[Mono] Alphabetize Mathf
2019-11-07 13:37:33 +01:00
Rémi Verschelde
91518defa5
Merge pull request #33257 from aaronfranke/printraw
...
Document behavior of GDScript printraw
2019-11-07 13:21:09 +01:00
Rémi Verschelde
c4ecec1d33
Merge pull request #32853 from OsamaElHariri/visual_script_setter_props_fix
...
Set the properties of a Set node after add_node
2019-11-07 13:13:33 +01:00
RevoluPowered
5fb160c7c6
Updated assimp to 308db73 from https://github.com/assimp/assimp/
2019-11-05 20:38:26 +00:00
RevoluPowered
0bd877780f
FBX Importer Generation 3
...
Basic skin support
Various fixes
- Fixes bind mount id and mesh index
- Fixed duplicate nodes being created
- Prevented leak when instances being freed during re-import.
- Improved camera and light transform import
- skeleton handling and technical debt removal
- ASSIMP: bone nodes were unlinked from bones by this code
- bone_add working can distinguish between armatutes
- Updated transform to be the correct offset
- Added safety for state.root node errors
- Fixed memory leak with leaf bones
- Implemented children re-parenting for mesh template
- import_animation fixes to basic skeleton data
- Adds some more debug messages
- Fixed Godot import segfault
- Fix build failing on mono
- Clear resources we use which are no longer required after import
- Fixed bone duplication issue
- Working skeleton_bone_map which can lookup armatures properly now.
- Fixed stack being used up when mesh swapped & Fixed bone ID
Additional notes:
We use a mesh template which is a fake node to instance the initial
mesh nodes . This is to ensure the entire tree can be built.
We replace mesh node templates with the real mesh after the
skeleton is available, since this makes it ensure that the fully
built skeleton exists with all bones, all nodes, etc.
The bone stack is a stack which pops when it finds bones,
this overcomes duplicate bones with the same names.
FBX has lots of these because animation armature has bone names like bone001
and another armature will also have bone001
Fixed errors in node path assignment
Simple explanation:
- Every mesh uses a node from the stack
- Node stack was empties before completed
- Every time node not found, stack must be rebuilt to maintain correct armature order :)
Additional fixes:
- Fixes destructor in assimp
- Implements aiNode* mArmature in bone data
- Implements aiNode* mParent in bone data
- Fixes parent ID on bones.
Implemented skeleton assignment in generate_mesh_indicies
This is the only place we can safely do a lookup for the skeleton for the mesh.h
I used a pointer reference so we can pass this back out, since the skeleton assignment happens inside the function.
Added mesh re-parenting to the armature node this is a permanent feature and must be enforced, just like GLTF2 specification.
Fixed import_animation spawning tracks per skin
2019-11-05 17:54:57 +00:00
Rémi Verschelde
6dca64140c
Merge pull request #33330 from nekomatata/fix-label-autowrap-size
...
Fixed cases where labels with autowrap can overflow the editor ui
2019-11-04 16:57:53 +01:00
PouleyKetchoupp
13c88878c4
Fixed cases where labels with autowrap can overflow the editor ui
...
Fixes #33155
2019-11-04 10:12:36 +01:00
Rémi Verschelde
76aa975460
Merge pull request #33266 from Xrayez/inst2dict-original-path
...
Use GDScript resource path over script path for `inst2dict`
2019-11-04 08:59:30 +01:00
Rémi Verschelde
0195ecdb0f
Merge pull request #33258 from aaronfranke/color8
...
Fix Color8 GDScript documentation
2019-11-02 23:08:23 +01:00
bruvzg
047ecffaac
Restore GDNative compatibility by moving new functions introduced in #33210 to core API 1.2 extension.
2019-11-02 15:25:43 +02:00
Andrii Doroshenko (Xrayez)
7f40b69022
Use GDScript resource path over script path for inst2dict
...
The resource path holds the original path which can be used to convert
a dictionary to instance consistently both within editor and exported projects
as the original path is automatically remapped from `gd` to `gdc` or `gde` in
exported projects.
2019-11-02 15:11:52 +02:00
Aaron Franke
c4e46b8800
Document behavior of printraw
2019-11-02 04:55:39 -04:00
Aaron Franke
b67f252016
Fix Color8 GDScript documentation
2019-11-02 04:48:08 -04:00
Rémi Verschelde
af4fd9de9c
Merge pull request #33238 from qarmin/other_fixes
...
Fix some crashes, overflows and using variables without values
2019-11-01 22:12:47 +01:00
George Marques
9fcd38fc70
GDScript: validate instance before accessing it on error
...
Make sure the instance is valid before trying to access the script in
after an error happened. If the instance is not valid it's possible that
the script is invalid as well.
Fix #29623
2019-11-01 14:41:52 -03:00
Rafał Mikrut
9ddb3265e1
Fix some crashes, overflows and using variables without values
2019-11-01 16:16:31 +01:00
Omicron
79a59a3587
Fix: typo atleast -> at least
...
Typo found in source string, reported by linux-man on weblate
2019-11-01 16:10:21 +01:00
George Marques
15800b4db8
GDScript: Avoid editor crashes when there's cyclic inheritance
...
Make sure the script is fully compiled before looking into the base.
2019-11-01 12:00:20 -03:00
Rémi Verschelde
962fc725c0
Merge pull request #33210 from nekomatata/pool-array-empty
...
Added empty() function to pool array types
2019-11-01 14:04:16 +01:00
PouleyKetchoupp
475115c0c3
Added empty() function to pool array types
2019-10-31 16:27:32 +01:00
Andrii Doroshenko (Xrayez)
56925b9c28
Provide and print error messages for JSON parsing
...
Core is not touched, only for binding and scripting.
2019-10-31 13:15:44 +02:00
PouleyKetchoupp
bcbe5b5850
Fixed leak in gdscript when creating empty WeakRef
...
Fixes #33150
2019-10-29 23:53:56 +01:00
Aaron Franke
4922a48a9e
[Mono] Alphabetize Mathf
2019-10-29 10:10:24 -04:00
Rémi Verschelde
b8daad9779
i18n: Sync translation template with current source
2019-10-29 13:57:45 +01:00
Osama El Hariri
858afd53d8
Set the properties of a Set node after add_node
2019-10-28 21:03:12 +02:00
Rémi Verschelde
63c5cd7eb8
Merge pull request #33104 from qarmin/fix_some_crashes
...
Fix some crashes and using null pointers
2019-10-28 08:37:59 +01:00
Rafał Mikrut
e53e1c566a
Fix some crashes and using null pointers
2019-10-28 08:07:29 +01:00
Rémi Verschelde
aa0fa6b14f
doc: Sync classref with current source
2019-10-26 16:40:41 +02:00