summaryrefslogtreecommitdiff
path: root/modules
AgeCommit message (Collapse)Author
2020-01-22Merge pull request #35412 from DaividFrank/check_overriding_selfRémi Verschelde
Disabled re-assigning 'self'
2020-01-22GDScript: Added checks in assign operations to disable re-assigning 'self'DaividFrank
2020-01-21Remove unused #if 0'ed codeRémi Verschelde
2020-01-21Merge pull request #35408 from Faless/ws/fix_packet_countRémi Verschelde
Fix MultiplayerAPI crash when peer implementation misbehave.
2020-01-21Fix MultiplayerAPI crash when peer impl misbehave.Fabio Alessandrelli
Also fix WebSocketMultiplayer::get_available_packet_count() return value when peer is not configured to use the multiplayer API.
2020-01-21Merge pull request #35407 from neikeq/issue-27285Ignacio Roldán Etcheverry
Add dummy preprocessor for the C# script class parser
2020-01-21Make script class parser errors to not abort the buildIgnacio Etcheverry
As our script class parser is error prone, we should not impede the build from continuing because of a parsing error. This should be reverted in the future once we switch to Roslyn.
2020-01-21Add dummy preprocessor for the C# script class parserIgnacio Etcheverry
No attempts are made at conditional compilation. The main if branch is always assumed to be true.
2020-01-21Bullet: Prevent potential division by zeroRémi Verschelde
Fixes #33715.
2020-01-20Mono/C#: Fix error when parsing nested genericsIgnacio Etcheverry
Also fixed the editor not including the parse error message in the error.
2020-01-19Merge pull request #35270 from ChibiDenDen/fix_extends_sub_subclassRémi Verschelde
Fix subclass finding in extend statement for sub-sub classes
2020-01-19Fix ClassDB API portability with some android and editor classesIgnacio Etcheverry
- `EditorNavigationMeshGenerator` was being registered as part of the Core API, even after d3f48f88bb84d22b7805ce971ac86cf1953a29fd. We must make sure to set Editor as the current ClassDB API type before creating an instance. - The `VisualScriptEngineSingleton.constant` property has a property hint string that's different between tools and non-tools builds. This commit makes the hint string to no longer be set in `_bind_methods`, and to instead set it in `_validate_property`. This way it's ignored when calculating the API hash. - `JavaClassWrapper` is now registered in ClassDB on all platforms, using a dummy implementation on platforms other than Android. This fixes API portability between Android and other platforms. - Updated `--class-db-json` command to ignore non-virtual methods that start with an underscore (see: 4be87c6016a5893cbde897924e540df4c988cee5).
2020-01-18Fix subclass finding in extend statement for sub-sub classesDani Frank
lookup was always done on top level script instead of advancing to subclass each time. this commit changes the lookup to always be at last found subclass
2020-01-17Merge pull request #35224 from ↵Rémi Verschelde
ChibiDenDen/constant_lookup_through_subclass_instance Fix constant access in base class through subclass instance
2020-01-17Fix constant access in base class through subclass instanceChibiDenDen
Fixes as issue where a subclass calls a base class method that tries to access a constant from the script. The original code went through every ower class, and for each owner, went through its inheritance tree. This seems like the wrong order, the modified code goes to each base class, and for each base class goes through the owner tree. This is more in line with what the parser does, as the current impelemtation allows an access that the parser does not support. This change should not negatively affect existing code due to the way the parser works
2020-01-16Merge pull request #34789 from Faless/enet/disconnect_relayRémi Verschelde
ENet optional server_relay when disconnecting peer
2020-01-16Merge pull request #35218 from bojidar-bg/26691-parse-error-errorsRémi Verschelde
Fix errors raised when showing parse errors in the editor
2020-01-16Merge pull request #35208 from neikeq/mono-lazy-thread-attachIgnacio Roldán Etcheverry
Mono/C#: Script interface calls now attach the current thread
2020-01-16Fix errors raised when showing parse errors in the editorBojidar Marinov
Fixes #26691
2020-01-16Mono/C#: Script interface calls now attach the current threadIgnacio Etcheverry
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-16Merge pull request #35201 from bojidar-bg/27582-gdfunction-validate-instanceRémi Verschelde
Validate instances of objects before trying to check their type in GDScript
2020-01-16Merge pull request #35199 from dalexeev/masterRémi Verschelde
Fix function arguments hint format in GDScript editor
2020-01-16Merge pull request #35203 from timothyqiu/image-loader-nullRémi Verschelde
Adds null check before using image loader
2020-01-16Merge pull request #35102 from ChibiDenDen/reuse_orphaned_subclassRémi Verschelde
#34161: Keep a weak reference to orphan subclasses to reuse on class reload
2020-01-16Validate instances of objects before trying to check their type in GDScriptBojidar Marinov
Fixes #27582
2020-01-16Merge pull request #35198 from bojidar-bg/27575-poolarrayexport-defaultRémi Verschelde
Fix slight problems related to default values of exported typed arrays
2020-01-16Adds NULL check before using image loaderHaoyu Qiu
2020-01-16Fix slight problems related to default values of exported typed arraysBojidar Marinov
2020-01-16Fix function arguments hint format in GDScript editorDanil Alexeev
for consistency with the format of the documentation: "type func_name(arg1: type, arg2: type)"
2020-01-16Validate input in (CPU)Particles set_emission_shape()Rémi Verschelde
Fixes #29777. Co-authored-by: Cameron Reikes <cameronreikes@gmail.com>
2020-01-15Mono/C#: Fix false positive in unsafe reference checksIgnacio Etcheverry
2020-01-15Keep a weak reference to orphan subclasses to reuse on class reloadChibiDenDen
2020-01-15Merge pull request #35156 from MadEqua/fix-grid-mapRémi Verschelde
Fix GridMap getter of baked meshes.
2020-01-15Fix GridMap getter of baked meshes.Bruno Lourenço
2020-01-15Mono: Fix parsing assembly names as UTF-8Rémi Verschelde
Fixes #27185.
2020-01-15Prevent GDScript language server from listening to external hosts by defaultHoukime
* 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-15Fix typos with codespellRémi Verschelde
Using codespell 1.16.0. See ab3bccdb78cc7dffb6ab796053ef63489f05558d for procedure.
2020-01-14Merge pull request #35122 from ChibiDenDen/fully_qualified_name_gdscriptRémi Verschelde
Add fully_qualified_name for GDScript class
2020-01-14Merge pull request #35120 from Faless/docs/html5_restrictionsRémi Verschelde
Update documentation to reflect HTML5 limitations.
2020-01-14Add fully_qualified_name for GDScript classDani Frank
2020-01-14Update documentation to reflect HTML5 limitations.Fabio Alessandrelli
2020-01-14Makes adding port in Visual Script nodes deferredHaoyu Qiu
2020-01-13Merge pull request #35097 from neikeq/issue-34954Rémi Verschelde
Mono/C#: Fix _update_exports() leaking temporary Object/Node instances
2020-01-13Mono/C#: Add error checks to detect possible Reference leaksIgnacio Etcheverry
2020-01-13Mono/C#: Fix _update_exports() leaking temporary Object/Node instancesIgnacio Etcheverry
2020-01-13GDScript: Check function arguments on release tooGeorge Marques
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-13Image: Include S3TC compression via Squish in non-tools buildRémi Verschelde
We already build Squish in templates build for S3TC decompression, so we can as well expose the compression feature. Fixes #25640.
2020-01-13Merge pull request #35076 from vnen/gdscript-type-match-assignRémi Verschelde
Type match on assignment only if operators have type
2020-01-13GDScript: Type match on assignment only if operators have typeGeorge Marques
This ensures that a value without type won't be wrongly assigned to a typed variable when the types mismatch.
2020-01-13Fix infinite loop error in document link parsingGeequlim