summaryrefslogtreecommitdiff
path: root/modules
AgeCommit message (Collapse)Author
2020-01-26doc: Drop unused 'category' property from headerRémi Verschelde
We already removed it from the online docs with #35132. Currently it can only be "Built-In Types" (Variant types) or "Core" (everything else), which is of limited use. We might also want to consider dropping it from `ClassDB` altogether in Godot 4.0.
2020-01-26Merge pull request #35581 from akien-mga/doc-color-constantsRémi Verschelde
doc: Document named color constants
2020-01-26doc: Document named color constantsRémi Verschelde
Busywork but it's good for our completion rate :)
2020-01-26doc: Complete documentation for VideoStreamsRémi Verschelde
Also quick clean up of the matching C++ files.
2020-01-26Merge pull request #35567 from Xrayez/doc-noise-null-dataRémi Verschelde
Mention that `NoiseTexture` uses threads internally
2020-01-26Complete various class referencesclayjohn
2020-01-26Mention that `NoiseTexture` uses threads internallyAndrii Doroshenko (Xrayez)
Provided a snippet on how to properly retrieve the noise texture data given that it's generated in a thread.
2020-01-24Merge pull request #35527 from neikeq/issue-35259Rémi Verschelde
Mono/C#: Fix _update_exports possible crash with Reference types
2020-01-24Merge pull request #35524 from neikeq/issue-35496Rémi Verschelde
Fix C# preprocessor infinite loop and incorrect parsing of `#if!`
2020-01-24Mono/C#: Fix _update_exports possible crash with Reference typesIgnacio Etcheverry
The code was attempting to dynamic cast the native instance to Reference after the managed instance was disposed. As the managed instance acts as a Ref, the native instance was freed during that disposal. This made the dynamic cast fail and we attempted to memdelete a second time. The fix is to make the dynamic cast before disposal.
2020-01-24Fix C# preprocessor infinite loop and incorrect parsing of `#if!`Ignacio Etcheverry
2020-01-24Add explanations for errors related to Vector/Quat normalizationHugo Locurcio
2020-01-23Merge pull request #35491 from neikeq/issue-35450Rémi Verschelde
Mono/C#: Lighten up unsafe reference checks
2020-01-23Mono/C#: Lighten up unsafe reference checksIgnacio Etcheverry
Because of the weird case with multi-threading and ResourceLoader, it can be the case that a resource is GCed while being referenced again in the main thread. In such cases, a new unsafe reference is created before the finalizer thread removes the previous one.
2020-01-23Merge pull request #35478 from neikeq/issue-32260Rémi Verschelde
Mono/C#: Add setting to include I18N assemblies in the exported game
2020-01-23Mono/C#: Add setting to include I18N assemblies in the exported gameIgnacio Etcheverry
2020-01-23Merge pull request #35473 from neikeq/default-to-net47Rémi Verschelde
Mono/C#: Default to net47 for new projects
2020-01-23Merge pull request #35472 from neikeq/issue-35448Ignacio Roldán Etcheverry
Mono/C#: Add Basis.Slerp, update Quat.Xform and add some math checks
2020-01-23Mono/C#: Add Basis.Slerp, update Quat.Xform and add some math checksIgnacio Etcheverry
2020-01-23Mono/C#: Default to net47 for new projectsIgnacio Etcheverry
2020-01-23Finish documenting CSG* and *probesclayjohn
2020-01-23doc: Misc updates for AnimationNode* and othersRémi Verschelde
- Add some missing descriptions. - Add links to tutorials for ARVR and AnimationTree. - Style fixes. - Engine changes: * Make `AnimationNodeTransition.input_<number>` properties internal so that they don't appear in the docs. They still appear in the inspector based on the actual number of inputs requested. * Drop unimplemented `CPUParticles.flatness`. It's only used for 3D particles in `ParticlesMaterial`, and thus only relevant for `CPUParticles3D`.
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