summaryrefslogtreecommitdiff
path: root/modules
AgeCommit message (Collapse)Author
2020-02-10Merge pull request #33950 from Calinou/gridmap-editor-zoom-shortcutRémi Verschelde
Implement zooming using Ctrl + Mouse wheel in the GridMap editor
2020-02-10Merge pull request #35812 from ↵Rémi Verschelde
touilleMan/gdnative-uses-godot_string_name-where-possible Use StringName in pluginscript's set/get_prop and add_global_constant
2020-02-10Fix VisualScriptClassConstant to be updated properlyYuri Roubinsky
2020-02-09Merge pull request #36048 from AndreaCatania/SoftBodyStiffRémi Verschelde
Make softbody completelly stiff to attachment point
2020-02-09Merge pull request #35649 from aaronfranke/color-unsignedRémi Verschelde
Use uint/ulong for Color in C#
2020-02-09Make softbody completelly stiff to attachment pointAndrea Catania
2020-02-09Merge pull request #36013 from raulsntos/fix-issubsequenceofRémi Verschelde
Avoid going out of bounds in IsSubsequenceOf
2020-02-08Merge pull request #36011 from madmiraal/fix-33391Rémi Verschelde
Remove do{ } while(0) wrapper around error macros.
2020-02-08Merge pull request #35982 from akien-mga/scons-modules-enabled-header-and-splitRémi Verschelde
SCons: Split libmodules.a in folder-based libs
2020-02-08Avoid going out of bounds in IsSubsequenceOfRaul Santos
Closes #35598
2020-02-08Remove do{ } while(0) wrapper around error macros.Marcel Admiraal
As pointed out by Faless, a do{ } while(0) wrapper around a continue or break just ends the do{ } while(0) loop. The do{ } while(0) loop exists to enable the macro to be used as a function which requires a semicolon. The alternative approach is to use an if(1) { } else ((void)0) wrapper. Since the macro already has an if(unlikely(m_cond)) { } this patch simply adds the else ((void)0) to this if statement instead. For consistency all the macros have been updated in the same way, and trailing else warnings corrected. However, the wrappers around ERR_PRINT and WARN_PRINT were removed, because they generated too many ambiguous trailing else warnings. They are also single line macros so a wrapper is not needed.
2020-02-07Workaround WebM playback bug after AudioServer latency fixesRémi Verschelde
af9bb0ea15dfd3dfe8950fcfcce364485dadd92a fixed AudioServer's `get_output_delay()` (which used to always return 0) while renaming it to `get_output_latency()`. It now returns the latency from the AudioDriver, which can be non-0. While this was a clear bugfix, it broke playback for WebM files without audio track. It seems like the playback code, even though it queried the output delay to calculate a time compensation, was designed to work even though the delay value was actually bogus. Now that it's correct, it's not working. As a workaround we comment out uses of the output latency, restoring the behavior of Godot 3.1. This code should still be reviewed by someone more versed in video playback and fixed to properly account for the non-0 driver latency. Fixes #35760.
2020-02-07SCons: Split libmodules.a in folder-based libsRémi Verschelde
This removes the need for the hacky split_libmodules logic on Windows, since all libs are now of manageable size.
2020-02-07Use modules_enabled.gen.h to improve inter dependency checksRémi Verschelde
- Fix build with gdscript module disabled. Fixes #31011. - Remove unused `gdscript` compile option. - Fix build with regex module disabled. - Fix ImageLoaderSVG to forward declare thirdparty structs.
2020-02-07SCons: Generate header with info on which modules are enabledRémi Verschelde
We already had `MODULE_*_ENABLED` defines but only in the modules environment, and a few custom `*_ENABLED` defines in the main env when we needed the information in core. Now this is defined in a single header which can be included in the files that need this information.
2020-02-07Remove the last ERR_PRINTS that was missed by #33391unknown
2020-02-06Merge pull request #35749 from Chaosus/vst_fix_constantsRémi Verschelde
Fix GlobalConstant/BasicTypeConstant return type in visual scripts
2020-02-05Merge pull request #35912 from bruce965/fix-empty-audio-loopRémi Verschelde
Fix empty audio infinite loop
2020-02-05Add do..while(0) wrappers to macros without one.Marcel Admiraal
- Add do..while(0) wrapper to ERR_FAIL_NULL macros. - Add do..while(0) wrapper to ERR_FAIL_COND macros. - Add do..while(0) wrapper to ERR_CONTINUE macros. - Add do..while(0) wrapper to ERR_BREAK macros. - Add do..while(0) wrapper to CRASH_COND macros. - Add do..while(0) wrapper to ERR_FAIL macros. - Add do..while(0) wrapper to ERR_PRINT macros. - Add do..while(0) wrapper to WARN_PRINT macros. - Add do..while(0) wrapper to WARN_DEPRECATED macros. - Add do..while(0) wrapper to CRASH_NOW macros.
2020-02-05Remove duplicate WARN_PRINT macro.Marcel Admiraal
2020-02-05Remove duplicate ERR_PRINT macro.Marcel Admiraal
2020-02-04Fix empty audio infinite loopFabio Iotti
2020-02-01Merge pull request #35809 from clayjohn/DOCS-update-versionRémi Verschelde
Update docs to version 4.0
2020-02-01Merge pull request #35811 from ↵Rémi Verschelde
touilleMan/remove-useless-pluginscript-get_rpc-rset_mode Remove useless pluginscript godot_pluginscript_script_desc.get_rpc/rset_mode fields
2020-02-01Use StringName in pluginscript's set/get_prop and add_global_constantEmmanuel Leblond
2020-02-01Remove useless pluginscript godot_pluginscript_script_desc.get_rpc/rset_mode ↵Emmanuel Leblond
fields
2020-01-31Update docs to version 4.0clayjohn
2020-01-31Merge pull request #35778 from touilleMan/remove-gdnative-wrapperRémi Verschelde
Remove deprecated GDNative wrapper code
2020-01-31Remove deprecated GDNative wrapper codeEmmanuel Leblond
2020-01-31Merge pull request #35761 from Calinou/opensimplexnoise-increase-max-octavesRémi Verschelde
Increase the maximum number of octaves in OpenSimplexNoise to 9
2020-01-31Merge pull request #35340 from Calinou/optimize-editor-icon-generationRémi Verschelde
Optimize the editor icon generation
2020-01-30Increase the maximum number of octaves in OpenSimplexNoise to 9Hugo Locurcio
An error message is now printed when trying to set the number of octaves above the maximum allowed value. The magic constant was also replaced with a define that can be easily changed. This closes #28714.
2020-01-30Fix GlobalConstant/BasicTypeConstant return type in visual scriptsYuri Roubinsky
2020-01-29Fixed GetNodeOrNull<T>Fabián L
GetNodeOrNull<T> was using GetNode instead of GetNodeOrNull
2020-01-29Use uint/ulong for Color in C#Aaron Franke
2020-01-28Fix static functions loop using class' functionsFrancois Belair
Besides being incorrect, it also caused a hard editor crash for purely static classes or classes with more static functions than methods.
2020-01-28Disable Nagle's algorithm for WebSocket TCP.Fabio Alessandrelli
This should greatly decrease latency for the most common use cases. A new function WebSocketPeer::set_no_delay will allow to configure it if so desired.
2020-01-26Merge pull request #35516 from Faless/ws/fix_latency_32Rémi Verschelde
Lower WebSocket latency, fixes.
2020-01-26Merge pull request #35589 from akien-mga/doc-drop-category-propertyRémi Verschelde
doc: Drop unused 'category' property from header
2020-01-26doc: Do not expose Variant::NIL as a type in the class referenceRémi Verschelde
Fix signals Variant arguments incorrectly listed as Nil. Fixes #12520.
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.