Commit Graph

198 Commits

Author SHA1 Message Date
lawnjelly
84864fbe35 Optimize Editor _init_grid()
Use static `LocalVectors` instead of `PoolVectors` for temporaries.
2024-07-14 08:22:51 +02:00
06e0be8d04 Remove unused variable. 2024-04-26 23:55:16 +02:00
a0cbd4f777 Remove unused variable. 2024-04-26 22:30:55 +02:00
Haoyu Qiu
63fac11503 Add option to toggle visibility of position gizmos in 2D editor
Co-authored-by: J. N. Witch <127793256+J-N-Witch@users.noreply.github.com>
2024-04-21 14:27:27 +02:00
lawnjelly
909acac329 Discrete Level of Detail
Add scene side discrete level of detail.

New node `LOD` for UI, and `LODManager` within `World` for automatically updating child visibilities based on distance from cameras.
2024-04-06 12:06:01 +02:00
lawnjelly
da78ed110a Fix Mesh::get_face_count()
This fixes a minor bug whereby facecount was actually returning the facecount * 3.
There were no major problems from this, but it did mean the optional threshold poly count used when merging was out by a factor of 3.
2024-04-06 10:42:03 +02:00
cf7b59b6c8 Fix small formatting inconsistencies. 2024-03-01 16:25:19 +01:00
6a6d3acd96 Clang format everything. 2024-03-01 11:56:19 +01:00
c3c6d64a50 Portred: Add MergeGroup node to simplify merging Meshes at runtime.
- lawnjelly
8b79135538
2024-02-08 21:00:07 +01:00
kleonc
44453b1d58 Make gizmo plugin handle SpriteBase3D instead of Sprite3D 2023-12-20 22:44:23 +01:00
99621357a0 File copyright header updates pt4. 2023-12-17 22:50:00 +01:00
88e9ad04f2 Moved back the servers and resources from core. 2023-12-10 23:11:07 +01:00
11945d7f1d Split material.h. 2023-12-10 21:26:28 +01:00
63c895747a Moved Curve and Gradient to core. 2023-12-10 20:23:51 +01:00
e32155717c Moved 2d shapes to core. 2023-12-10 20:03:16 +01:00
9d2309bfe1 Moved shapes to core. 2023-12-10 19:58:44 +01:00
dbcc6e33da Moved the physics server to core. 2023-12-10 19:36:00 +01:00
238bf1b331 Moved the RenderingServer to core. 2023-12-10 19:04:24 +01:00
049440aaf1 Moved BitMap to core. 2023-12-10 18:07:25 +01:00
3902cf1924 Moved ScneeStringNames and PropertyUtils into scene/main. 2023-12-10 18:01:51 +01:00
9df5649c1b Moved CanvasItem, Control, Node2D and Spatial under scene/main. 2023-12-10 15:50:54 +01:00
763f662263 Moved meshes to a new subfolder. 2023-12-10 15:22:09 +01:00
deccaed2cc Moved materials into a new subfolder. 2023-12-10 14:59:22 +01:00
08160fd63f Moved fonts into a new subfolder. 2023-12-10 14:42:30 +01:00
4cbc387c53 Moved the navigation relatred resources into subfolders. 2023-12-10 14:23:24 +01:00
2cc42b045a Moved shapes under a new shapes folder. 2023-12-10 14:10:10 +01:00
e50ab7fa84 Moved 2d shapes under a new shapes_2d folder. 2023-12-10 13:55:20 +01:00
b34258606b Moved Animation from scene/resources to scene/animation. 2023-12-10 13:30:23 +01:00
b81253b22d Removed the text from the layouts buttons in the CanvasItemEditor. 2023-09-22 12:46:06 +02:00
f315784d22 Added shortcust for toggling the default bottom menu items. CTRL + ALT + 1 - 5. 2023-09-09 14:38:45 +02:00
c1622601f1 Fix maybe uninitialized warning. 2023-09-09 14:03:21 +02:00
ccb6074ca9 Backported the editor constrol changes for the new shortcut system from godot4. 2023-09-07 13:41:05 +02:00
9a2bf73280 Backported _shortcut_input() virtual from godot4. 2023-09-07 09:56:16 +02:00
24d7260169 Replaced the text with an icon on the SpatialEditor's and the CanvasItemEditor's view button. 2023-09-03 14:17:49 +02:00
e0bafda416 Replace the Transform text with an icon in SpatialEditor's toolbar. 2023-09-03 14:04:00 +02:00
3b602c87d4 Removed superfluous VSeparator from the SpatialEditor. 2023-09-03 13:56:04 +02:00
0db05de552 Convert MeshInstanceEditorPlugin's toolbar to the new style. 2023-09-03 13:52:22 +02:00
fc1a75c678 Converted the menu buttons of the Portals and Rooms system to the new style. 2023-09-03 13:35:55 +02:00
a5219d45d5 Never show text for the Convert Rooms button. 2023-09-03 13:23:16 +02:00
72119a0ec0 Group the Anchor and Presets buttons under a common HBoxContainer in CanvasItemEditor. 2023-09-03 13:00:55 +02:00
86ee8840ac Removed the diffferently styled context menu from the SpatialEditor and the CanvasItemEditor. New controls are now added directly to the main FlowContainer, so they wrap properly. While having a different background for context sensitive items can look good, it doesn't work well if it's not per plugin. 2023-09-03 12:36:23 +02:00
37fa118ec4 Ported: Adds a scale_gizmo_handles entry to the Touchscreen editor settings
When enabled, this scales the editor icons to improve usability on touchscreen devices.
In addition this commit fixes touch detection for the collision_shape_2d_editor_plugin so it scales with the icons size.
- m4gr3d
b78935ef51
2023-06-11 13:16:13 +02:00
f058c87868 Backported from godot4: Rework Navigation Avoidance
Rework Navigation Avoidance.
- smix8
a6ac305f96
2023-06-10 20:58:49 +02:00
7acef201ce Fix inconsistent overrides. 2023-06-08 21:00:23 +02:00
0438c3cc3f Backported from godot4: Added node for Navigation links .
- DarkKilauea
3dd59013f4
2023-06-08 20:46:09 +02:00
1af5c4c412 Removed the old NavigationPolygonEditorPlugin. 2023-06-06 23:09:16 +02:00
654cfb81b7 Renamed NavigationRegion2D back to NavigationPolygonInstance, as I think it fits the engine better. 2023-06-05 18:09:53 +02:00
2114b2239b Split NavigationPolygon and NavigationPolygonInstance into 2 files. Also renamedNavigationPolygonInstance to NavigationRegion2D. 2023-06-03 16:54:48 +02:00
6026725f3b Renamed ScriptEditor to EditorScriptEditor. 2023-02-18 16:52:26 +01:00
990f8aaecd Prefix filenames in the editor_script_editor module with editor_. 2023-02-18 16:22:59 +01:00