summaryrefslogtreecommitdiff
path: root/modules
AgeCommit message (Collapse)Author
2021-02-13Fix Mono build after resource load cache changesXartorx
2021-02-12Fix LineEdit minimum widthreduz
-Changed theme setting name to make more sense of what it does -Reduced amount of minimum characters, so minimum size is smaller.
2021-02-11Improve resource load cachereduz
-Added a new method in Resource: reset_state , used for reloading the same resource from disk -Added a new cache mode "replace" in ResourceLoader, which reuses existing loaded sub-resources but resets their data from disk (or replaces them if they chaged type) -Because the correct sub-resource paths are always loaded now, this fixes bugs with subresource folding or subresource ordering when saving.
2021-02-11Fix broken gdnative variant testHenry Conklin
2021-02-11Merge pull request #45847 from vnen/gdnative-bindingsRémi Verschelde
Improve GDNative API and JSON generation further
2021-02-10Removed _change_notifyreduz
-For inspector refresh, the inspector now detects if a property change by polling a few times per second and then does update the control if so. This process is very cheap. -For property list refresh, a new signal (property_list_changed) was added to Object. _change_notify() is replaced by notify_property_list_changed() -Changed all objects using the old method to the signal, or just deleted the calls to _change_notify(<property>) since they are unnecesary now.
2021-02-10Make Servers truly Thread Safereduz
-Rendering server now uses a split RID allocate/initialize internally, this allows generating RIDs immediately but initialization to happen later on the proper thread (as rendering APIs generally requiere to call on the right thread). -RenderingServerWrapMT is no more, multithreading is done in RenderingServerDefault. -Some functions like texture or mesh creation, when renderer supports it, can register and return immediately (so no waiting for server API to flush, and saving staging and command buffer memory). -3D physics server changed to be made multithread friendly. -Added PhysicsServer3DWrapMT to use 3D physics server from multiple threads. -Disablet Bullet (too much effort to make multithread friendly, this needs to be fixed eventually).
2021-02-09Improve GDNative api.json generatorGeorge Marques
- Add indexed type to the builtin types output, which is useful for bindings implementing array-like access. - Use getter type instead of hint for property types, as the hint can be unreliable and include multiple comma-separated possible types.
2021-02-09Further changes to GDNative APIGeorge Marques
- Moved Variant struct definition to its own file so it can be used without include cycles (like on Dictionary). - Add `index` operator function so bindings like C++ can implement the operator[] overload (which needs a reference to the actual value). - Added missing new/destroy functions to Vector3i array. - Added print error/warning functions as helpers so bindings can print messages in the same manner as Godot itself does.
2021-02-08Initialize class/struct variables with default values in modules/Rafał Mikrut
2021-02-07Invert spotlight angle attenuationjfons
Inverted the spotlight angle attenuation so a higher value results in a dimmer light, this makes it more consistent with the distance attenuation. Also changed the way spotlighs are computed in SDFGI and GIPorbes and GPU lightmapper, now it matches the falloff used in the scene rendering code.
2021-02-06Snap VisualScript comment to grid when resizingKanabenki
2021-02-05Merge pull request #45667 from Calinou/doc-gridmap-no-visual-layersRémi Verschelde
Document that GridMap doesn't support visual layers or cull masks
2021-02-04[Mono] Use the same search logic for both `MSBuild` and `dotnet`, add custom ↵bruvzg
search paths on macOS.
2021-02-04Fix a crash in the TGA loader with malformed inputHein-Pieter van Braam-Stewart
2021-02-02Document that GridMap doesn't support visual layers or cull masksHugo Locurcio
See #40245.
2021-02-02C conformance: Include stdbool.h to define `bool`Miguel de Icaza
`bool` is otherwise not defined in C.
2021-02-01Replace ColorN and from HTML with a string constructorAaron Franke
2021-02-01Merge pull request #37547 from aaronfranke/tauRémi Verschelde
Use Math_TAU and deg2rad/etc in more places and optimize code
2021-02-01Merge pull request #45608 from bruvzg/font_int_coordsRémi Verschelde
Use integer coordinates for the font glyphs rendering.
2021-02-01Fix C# string.Hash()zaevi
2021-01-31Use integer coordinates for the font glyphs rendering.bruvzg
2021-01-31Merge pull request #45315 from RandomShaper/modernize_threadRémi Verschelde
Modernize Thread
2021-01-30Fix WebXRInterface code sample in the class referenceHugo Locurcio
This also fixes the code sample's indentation to look correct in the editor help.
2021-01-29Merge pull request #45519 from aaronfranke/physics-real_tRémi Verschelde
Use real_t in physics code
2021-01-29Add GDNative JSON generator for the builtin APIGeorge Marques
Which can be used by language bindings to generate code statically. This is generated as a different file from the class API because it has different requirements (the builtin types have constructors and don't have signals), so bindings can better make use of each JSON file without extra parsing. This also cleans up a bit the old API generator, mainly initializing structs and renaming "instanciable" to the more correct "instantiable". The argument description in help text was updated to better reflect how it should be used. The <path> argument is mandatory.
2021-01-29Modernize ThreadPedro J. Estébanez
- Based on C++11's `thread` and `thread_local` - No more need to allocate-deallocate or check for null - No pointer anymore, just a member variable - Platform-specific implementations no longer needed (except for the few cases of non-portable functions) - Simpler for `NO_THREADS` - Thread ids are now the same across platforms (main is 1; others follow)
2021-01-28Remove reference to CanvasLayer in WebXR example, because it can cause ↵David Snopek
rendering issues in AR.
2021-01-28Use real_t in physics codeAaron Franke
2021-01-28Merge pull request #45525 from van800/rider-lineRémi Verschelde
Navigating to error line number in Rider from Godot editor debugger console is off-by-one.
2021-01-28Fix off by one error navigating to line number in RiderIvan Shakhov
Fixes https://github.com/JetBrains/godot-support/issues/61
2021-01-28Unify URI encoding/decoding and add to C#Aaron Franke
http_escape and percent_encode have been unified into uri_encode, and http_unescape and percent_decode have been unified into uri_decode.
2021-01-28Make hex_to_int and bin_to_int handle the prefix automaticallyAaron Franke
Also add BinToInt to C#
2021-01-27Prevent fatal error in WebXR when 'immersize-ar' loses and regains trackingDavid Snopek
2021-01-27Merge pull request #45444 from dsnopek/webxr-master-monoRémi Verschelde
Support mono devices in WebXR
2021-01-26Fix zero scaling and material mappings being mapped to wrong fieldsGordon MacPherson
- fixes scale values of 0.0013 (det == 0.00004) not rendering, they should render even at small values, but not at zero like the editor grid plugin supplies zero exactly. - fixes node_3d_editor_plugin visibility bug when scale is zero - fix culling with small scaling values - which are still valid to be rendered like 0.00004 note: grid is still not fixed, it has det == 0 issues but this fixes one of them.
2021-01-26Merge pull request #45373 from aaronfranke/gdnative-sizeofGeorge Marques
Define GDNative sizes using sizeof(godot_real) and sizeof(int32_t)
2021-01-26Merge pull request #45466 from reduz/reorganize-rendering-device-layersJuan Linietsky
Reorganize RenderingDevice barriers
2021-01-26Merge pull request #45479 from lucasvanmol/highlight-patchRémi Verschelde
Fix highlight color for class attributes that are also keywords
2021-01-26Merge pull request #44617 from geekrelief/gdnative_unloadRémi Verschelde
free library when no nativescripts reference it
2021-01-26Merge pull request #45029 from neikeq/issue-40023Rémi Verschelde
C#: Fix System.Collections.Generic.List marshalling
2021-01-26Fix highlight color for class attributes that are also keywordsLucas Van Mol
2021-01-26Merge pull request #45252 from naithar/feature/plugins-migrationRémi Verschelde
[4.0] [iOS] iOS Plugins Migration
2021-01-26Reorganize RenderingDevice barriersreduz
-Removed sync to draw, now everything syncs to draw by default. -Fixed many validation layer errors. -Added support for VkImageViewUsageCreateInfo to fix validation layer warnings. -Texture, buffer, raster and compute functions now all allow spcifying which barriers will be used.
2021-01-26Merge pull request #45435 from fire/gltf-node-anim-exportRémi Verschelde
Restore gltf node animation export.
2021-01-26Remove Quat set methods in favour of constructorsMarcel Admiraal
2021-01-26Merge pull request #45375 from aaronfranke/gltf-csg-gridmapRémi Verschelde
Make GLTF not depend on CSG or GridMap
2021-01-25Define GDNative sizes using sizeof(godot_real_t) and sizeof(int32_t)Aaron Franke
2021-01-25Merge pull request #44989 from vnen/gdnative-new-apiRémi Verschelde
New API for GDNative
2021-01-25Merge pull request #45447 from pycbouh/graphedit-minimap-active-invisibleRémi Verschelde
Fix minimap capturing events and improve its theme and editor settings