Commit Graph

41110 Commits

Author SHA1 Message Date
jfons
dd970482c5 Improvements and fixes to occluders
Improvements:
* Occluder3D is now an abstract type inherited by: ArrayOccluder3D, QuadOccluder3D, BoxOccluder3D, SphereOccluder3D and PolygonOccluder3D. ArrayOccluder3D serves the same purpose as the old Occluder3D (triangle mesh occluder) while the rest are primitives that can be used to manually place simple occluders.
* Occluder baking can now apply simplification. The "bake_simplification_distance" property can be used to set a world-space distance as the desired maximum error, set to 0.1 by default.
* Occluders can now be generated on import. Using the "occ" and "occonly" keywords (similar to "col" and "colonly" for colliders) or by enabling on MeshInstance3Ds in the scene's import window.

Fixes:
* Fixed saving of occluder files after bake.
* Fixed a small error where occluders didn't correctly update in the rendering server.

Bonus content:
* Generalized "CollisionPolygon3DEditor" so it can also be used to edit Resources. Renamed it to "Polygon3DEditor" since it was already being used by other things, not just colliders.
* Fixed a small bug in "EditorPropertyArray" where a call to "remove" was left after the "remove_at" rename.
2022-02-07 13:04:51 +01:00
Rémi Verschelde
6f425242dc
Merge pull request #57743 from akien-mga/resource-importer-insert-opt-in 2022-02-07 11:16:27 +01:00
Rémi Verschelde
a6abeb6b20
Merge pull request #57682 from clayjohn/VULKAN-canvas-blur 2022-02-07 10:16:50 +01:00
Rémi Verschelde
404364d4b4
Merge pull request #57684 from KoBeWi/todo_optimize 2022-02-07 09:52:11 +01:00
Rémi Verschelde
ec00283f91
ResourceImporter: Restore default append logic for new importers
This was changed in #56943 to allow adding new importers from plugins that
take precedence over built-in ones, but this should be opt-in, not the default
behavior.

Fixes #57730.
2022-02-07 09:47:16 +01:00
Rémi Verschelde
863f2840a5
Merge pull request #57735 from YeldhamDev/popups_and_mirrors
Make popups from `MenuButton`, `OptionButton`, and submenus obey the layout direction
2022-02-07 08:19:58 +01:00
Rémi Verschelde
c2a540de51
Merge pull request #57732 from KoBeWi/leftplication
Move Replication tab to a fixed position
2022-02-07 08:14:30 +01:00
Rémi Verschelde
602cacae21
Merge pull request #57727 from kleonc/sprite_frames_editor_fix_loading_non_texture_crash
`SpriteFramesEditor` Fix crash when selecting non-`Texture2D` file for splitting
2022-02-07 08:00:24 +01:00
Ignacio Roldán Etcheverry
481b05fef1
Merge pull request #57738 from raulsntos/fix-57503
Attach mono thread before getting `nativeName` field
2022-02-07 04:58:16 +01:00
Raul Santos
303f0c8626 Attach mono thread before getting nativeName field
In order to access the `nativeName` constant field from a C# class, the
mono scope thread must be attached or the mono domain will be null.
2022-02-07 03:43:34 +01:00
Michael Alexsander
8bde86da10 Make popups from MenuButton, OptionButton, and submenus obey the layout direction 2022-02-06 23:07:08 -03:00
kobewi
ee3b7bc747 Move Replication tab to a fixed position 2022-02-07 01:06:55 +01:00
Rémi Verschelde
8aa4ed8b5b
Merge pull request #57729 from TechnoPorg/astar-fix-invalid-include
Remove a cross include from a_star.cpp
2022-02-07 00:35:42 +01:00
kleonc
803ac608a6 SpriteFramesEditor Fix crash when selecting non-Texture2D file for splitting 2022-02-06 23:39:04 +01:00
Rémi Verschelde
3ae38edc8e
Merge pull request #56844 from Calinou/ssr-fix-background-line-master
Fix visible background line in intersections in screen-space reflections
2022-02-06 23:22:15 +01:00
TechnoPorg
5108af42ad Remove a cross include from a_star.cpp 2022-02-06 15:05:17 -07:00
Rémi Verschelde
61dd3136fc
Merge pull request #57701 from Calinou/contributing-prefer-attachments
Recommend using GitHub attachments for minimal reproduction projects
2022-02-06 21:25:42 +01:00
Rémi Verschelde
9cf6e5113b
Merge pull request #57716 from Chaosus/vs_vector_3d
Rename `PORT_TYPE_VECTOR` to `PORT_TYPE_VECTOR_3D` in visual shaders
2022-02-06 21:24:47 +01:00
Rémi Verschelde
784b74ef56
Merge pull request #57721 from YeldhamDev/separate_from_separators
Better handle icons and checkboxes with separators in `PopupMenu`
2022-02-06 21:24:06 +01:00
Michael Alexsander
989caab0ad Better handle icons and checkboxes with separators in PopupMenu 2022-02-06 16:05:45 -03:00
Yuri Roubinsky
db18faf660 Rename PORT_TYPE_VECTOR to PORT_TYPE_VECTOR_3D 2022-02-06 20:15:28 +03:00
Rémi Verschelde
95719930a8
Merge pull request #57672 from fire-forge/fix-image-drop-nodes 2022-02-06 18:11:12 +01:00
Rémi Verschelde
79a4d782a5
Merge pull request #57709 from jmb462/missing-sname-optimization 2022-02-06 17:03:11 +01:00
Rémi Verschelde
e38df41de8
Merge pull request #57607 from reduz/fix-variant-vec-integer-float-mul-div 2022-02-06 16:40:59 +01:00
Rémi Verschelde
762a31169d
Merge pull request #57633 from jordigcs/x11-snap-refresh-rate 2022-02-06 16:40:48 +01:00
Rémi Verschelde
fb6cf1e3b7
Merge pull request #57689 from NeilKleistGao/master 2022-02-06 16:39:42 +01:00
jmb462
1ce81dc5f2 Add missing SNAME macro optimization in some function calls 2022-02-06 15:54:04 +01:00
reduz
8c7268664d
Fix integer vector mul/div operators and bindings.
* Vector2i and Vector3i mul/div by a float results in Vector2 and Vector3 respectively.
* Create specializations to allow proper bindings.

This fixes #44408 and supersedes #44441 and keeps the same rule of int <op> float returnig float, like with scalars.
2022-02-06 13:34:41 +01:00
jordi
635da44ef8 Snap refresh rate to hundreths place on X11 2022-02-06 13:24:57 +01:00
Hugo Locurcio
01c1667836
Recommend using GitHub attachments for minimal reproduction projects
Third-party file hosts can have their files expire or be removed
by the owner. In comparison, GitHub attachments are more resilient.

This also fixes the link to create a bug report.
2022-02-06 12:33:40 +01:00
NeilKleistGao
729c1f056b Edit font properties on multiple objects at once 2022-02-06 18:32:55 +08:00
Rémi Verschelde
fd0d2dcabf
Merge pull request #57694 from Chaosus/shader_fix-for_loop
Fix unknown identifier error in for loop
2022-02-06 11:18:20 +01:00
Yuri Roubinsky
a2484c3293 Fix unknown identifier error in for loop 2022-02-06 08:38:33 +03:00
FireForge
871b9fc352 Fix node types in image drag-and-drop and add node icons 2022-02-05 21:01:29 -06:00
kobewi
ab5b5e1577 Rework CanvasItem visibility propagation 2022-02-06 00:26:28 +01:00
clayjohn
60d8df3fee Optimize and fix backbuffer gaussian blur 2022-02-05 15:03:39 -08:00
Rémi Verschelde
9d1626b4d7
Merge pull request #57017 from godotengine/string-name-static-false-unclaimed 2022-02-05 20:26:34 +01:00
Rémi Verschelde
bd32dd4a48
Merge pull request #56943 from V-Sekai/override-import
Make add_importer and add_post_importer_plugin override existing importers.
2022-02-05 19:50:37 +01:00
Rémi Verschelde
5f42e0d0ab
Merge pull request #57646 from Faless/mp/4.x_interfaces
[Net] Move RPC, Node cache out of MultiplayerAPI.
2022-02-05 18:26:04 +01:00
Rémi Verschelde
eb4b4a317b
Merge pull request #57649 from Faless/net/4.x_ws_queue_hostres
[Net] Non-blocking WebSocket hostname resolution.
2022-02-05 18:23:11 +01:00
Rémi Verschelde
feb34dfb2e
Merge pull request #57385 from madmiraal/update-mouse-pointer-definitions
Update definitions of get_mouse_position methods
2022-02-05 16:09:52 +01:00
Rémi Verschelde
eac1883791
Merge pull request #57657 from lawnjelly/err_macros_flush
Add fflush to error macros
2022-02-05 16:08:41 +01:00
Rémi Verschelde
aecff478b7
Merge pull request #48006 from KoBeWi/incognito_layer
Add visibility to CanvasLayer
2022-02-05 16:05:53 +01:00
Rémi Verschelde
69d7d1ec52
Merge pull request #57655 from reduz/remove-get-rid-by-index
Remove RID_Owner.get_rid_by_index
2022-02-05 14:38:56 +01:00
Rémi Verschelde
dd9426d14b
Merge pull request #56503 from gerhean/Add-shortcut_cell-double-click-functionality
Add shortcut_cell double click functionality
2022-02-05 14:36:33 +01:00
kobewi
189dab2d76 Add visibility to CanvasLayer 2022-02-05 14:02:21 +01:00
lawnjelly
9963c4f0d3 Add fflush to error macros
CRASH_NOW macros would previously crash before outputting any error messages. This PR ensures calling fflush for stdout before terminating.
2022-02-05 12:31:54 +00:00
Ger Hean
8acc8838c4 Add shortcut_cell double click functionality 2022-02-05 19:06:54 +08:00
reduz
74adf0bf2e Remove RID_Owner.get_rid_by_index
* Implementing this function efficiently is not really possible.
* Replaced by an option to get all RIDs into a buffer for performance.
2022-02-05 11:59:34 +01:00
Rémi Verschelde
df1724470d
Merge pull request #49775 from fire/faster-cvtt
Faster CVTT by lowering default quality
2022-02-05 10:28:07 +01:00