Commit Graph

903 Commits

Author SHA1 Message Date
8f6bb119f4 Merge pull request #100602 from KoBeWi/over_100_changes_in_50_random_files_aka_the_best_kind_of_PR
Add templated version of `ObjectDB::get_instance()`
2025-03-31 12:03:47 -05:00
e8bc75f056 Merge pull request #103373 from YeldhamDev/build_remove_physics
Allow to compile templates without physics servers
2025-03-28 17:30:03 +01:00
5ad414d046 Allow to compile templates without physics servers 2025-03-28 11:00:44 -03:00
17db92b8b8 Clarify API for top selected nodes in EditorSelection and make public 2025-03-27 16:09:08 -07:00
bc9d0c7835 Add templated version of ObjectDB::get_instance() 2025-03-27 15:43:23 +01:00
10f6c01b9c Remove ABS in favor of Math::abs 2025-03-19 13:52:40 +01:00
1f6426066e Merge pull request #98768 from Repiteo/core/constexpr-math-operators
Core: Add `constexpr` constructors/operators to math structs
2025-03-17 16:03:20 -05:00
6f25babd6b Remove empty constructors and destructors from editor/ 2025-03-17 21:20:02 +01:00
ea62170dac Core: Add constexpr constructors/operators to math structs
• Begin integrating `constexpr` on math tests; use `static_assert` where appropriate
2025-03-17 12:15:31 -05:00
4e9b7976ce Merge pull request #103845 from aaronfranke/fix-ed-stuck-cam-nonfin-xform
Fix stuck editor cameras and fix 3D error spam for non-finite transforms
2025-03-13 08:57:25 -05:00
d2d02d0ea8 EditorNode: Add function to load file as scene or resource 2025-03-12 23:59:48 +01:00
c7649f4f9c Fix stuck editor cameras and fix 3D error spam for non-finite transforms 2025-03-08 23:10:30 -08:00
577f90feba Fix heap-use-after-free when changing 2D editor selection 2025-02-07 09:30:02 +08:00
636b822781 editor: Fix node selection within SubViewports using size 2d override 2025-02-05 05:37:35 +11:00
ce6c3c5c28 Merge pull request #100556 from KoBeWi/unlimited_contextizer
Add more menus support to EditorContextMenuPlugin
2025-01-07 23:17:23 +01:00
442f11462d Merge pull request #99994 from kitbdev/fix-editor-viewport-group-anim
Allow Viewport children to lock, group, and insert keyframes
2025-01-03 00:48:09 +01:00
e55ea94c73 Merge pull request #99800 from amarsero/bone2d-redo-crash
Fix use after free in redo of "Create Custom Bone2D(s) from Node(s)"
2024-12-30 08:58:56 -06:00
a1846b27ea Improve use of Ref.is_null/valid
Use `is_null` over `!is_valid` and vice versa.
2024-12-23 16:35:02 -05:00
9a96393f46 Add warped panning to every ViewPanner instance 2024-12-20 17:40:27 +01:00
cbfc34d279 Merge pull request #100444 from Sauermann/fix-view-panner-mouse-warp
Fix `ViewPanner` panning-mouse-warp
2024-12-19 20:00:01 -06:00
4887172a59 Fix ViewPanner panning mouse warp
Currently the mouse cursor jumps in unexpected ways, when a `ViewPanner`
is used in SubViewports or embedded Windows.

This is caused by providing wrong coordinate systems to
Input::warp_mouse_motion.

This PR replaces the use of `Input::warp_mouse_motion` with
`Viewport::wrap_mouse_in_rect` and makes sure, that the correct
coordinate systems are used.

This change makes it necessary, that all classes, that currently
use ViewPanner, need to provide the correct Viewport to ViewPanner.
2024-12-20 00:28:49 +01:00
ba54a2805a Add more menus support to EditorContextMenuPlugin 2024-12-18 21:30:45 +01:00
bf4e5cca3f Make editor's shortcut names translated on-site 2024-12-18 13:00:30 +08:00
26fec37389 Merge pull request #99942 from kitbdev/fix-invisible-subviewport-editor
Fix selecting and editing invisble items in SubViewports
2024-12-12 14:10:09 +01:00
08b5bf3c5f Merge pull request #95333 from Giganzo/lock-group-toggle
Fix Lock and Group for canvas items not updated in editor after changed in SceneTree
2024-12-11 17:36:02 -06:00
ba39b078f5 [Scene] Add SceneStringName::FlatButton 2024-12-10 11:12:26 +03:00
kit
159d70a470 Allow Viewport children to lock, group, and key 2024-12-03 20:14:29 -05:00
kit
93e06ff16c Fix select and edit invisble items in SubViewports 2024-12-02 17:12:51 -05:00
60c6c4a1da Merge pull request #99795 from YeldhamDev/selection_menu_for_all!
Make the alt selection menu available for all modes
2024-11-29 22:51:20 +01:00
4b0f1781cc Merge pull request #99401 from Black-Cat/viewport-gizmos
Enable editing of controls inside viewports in editor
2024-11-29 22:50:55 +01:00
d514ab2952 Fixes use after free in redo of "Create Custom Bone2D(s) from Node(s)"
Using "queue_free" on the undo of the creation of the Bone2D meant that on the redo the Bone2D was already deleted.

Replaced it with "add_do_reference", so when the Action of the undo_redo is destroyed, also destroys the Bone2D.
2024-11-28 19:07:37 +01:00
5d70208da4 Make the alt selection menu available for all modes 2024-11-27 22:22:13 -03:00
f57fea0b0f Enable editing of controls inside viewports in editor
Fixes #79289
2024-11-27 16:02:33 +00:00
e515f593c2 Disable Clear Guides menu item when no guides exist 2024-11-27 08:27:15 +08:00
81733e6622 Merge pull request #99506 from Giganzo/scale-2d-selection
Change how multi selection scale is applied to canvas item
2024-11-25 13:22:28 -06:00
eedc820f37 Merge pull request #99487 from passivestar/fix-viewport-offsets
Fix viewport message offsets
2024-11-22 14:54:16 -06:00
c4bb252294 Change how multi selection scale is applied to canvas item 2024-11-21 20:52:33 +01:00
5cd0d42d2b Fix viewport message offsets 2024-11-21 08:24:08 +04:00
61cf0253ce Fix toast spam about child of container position 2024-11-19 11:25:28 +01:00
f03e081efb Fix Lock and Group for canvas items not updated in editor after changed in SceenTree 2024-11-17 14:46:43 +01:00
9513d18180 Merge pull request #98534 from YeldhamDev/i_hate_math
Make possible to scale multiple nodes at once in the canvas editor
2024-11-14 14:51:51 -06:00
925b690c98 Core: Integrate Ref::instantiate where possible 2024-11-10 12:41:26 -06:00
baffa731ab Make possible to scale multiple nodes at once in the canvas editor
And also some smaller enhancements.
2024-10-30 13:24:00 -03:00
16524a8a01 Add "Game" editor for better runtime debugging 2024-10-30 11:42:17 -03:00
696ca9db3c Merge pull request #98039 from aaronfranke/button-icon
Rename internal Button `*_icon` functions to `*_button_icon` to match exposed methods
2024-10-29 19:25:59 -05:00
562c666e3d Rename internal Button icon to button_icon to match exposed methods 2024-10-29 16:23:03 -07:00
574b413bef Fix heap-use-after-free when ctrl-clicking controls in a container 2024-10-26 10:43:54 +08:00
b6906b9677 Merge pull request #96389 from kitbdev/extract-main-screen
Extract EditorMainScreen from EditorNode
2024-09-11 12:34:46 +02:00
1a51637732 Merge pull request #96681 from Giganzo/lock-group-double-buttons
Fix 2D editor view showing both lock/unlock, group/ungroup buttons when starting a saved project with empty scene
2024-09-10 09:51:30 +02:00
kit
5e1c9d68aa Extract editor main screen 2024-09-09 11:06:18 -04:00