Commit graph

899 commits

Author SHA1 Message Date
Michael Alexsander
5ad414d046
Allow to compile templates without physics servers 2025-03-28 11:00:44 -03:00
kobewi
10f6c01b9c Remove ABS in favor of Math::abs 2025-03-19 13:52:40 +01:00
Thaddeus Crews
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
kobewi
6f25babd6b Remove empty constructors and destructors from editor/ 2025-03-17 21:20:02 +01:00
Thaddeus Crews
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
Thaddeus Crews
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
Lars Pettersson
d2d02d0ea8
EditorNode: Add function to load file as scene or resource 2025-03-12 23:59:48 +01:00
Aaron Franke
c7649f4f9c
Fix stuck editor cameras and fix 3D error spam for non-finite transforms 2025-03-08 23:10:30 -08:00
Haoyu Qiu
577f90feba Fix heap-use-after-free when changing 2D editor selection 2025-02-07 09:30:02 +08:00
Stuart Carnie
636b822781 editor: Fix node selection within SubViewports using size 2d override 2025-02-05 05:37:35 +11:00
Rémi Verschelde
ce6c3c5c28 Merge pull request #100556 from KoBeWi/unlimited_contextizer
Add more menus support to EditorContextMenuPlugin
2025-01-07 23:17:23 +01:00
Rémi Verschelde
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
Thaddeus Crews
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
A Thousand Ships
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
kobewi
9a96393f46 Add warped panning to every ViewPanner instance 2024-12-20 17:40:27 +01:00
Thaddeus Crews
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
Markus Sauermann
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
kobewi
ba54a2805a Add more menus support to EditorContextMenuPlugin 2024-12-18 21:30:45 +01:00
Haoyu Qiu
bf4e5cca3f Make editor's shortcut names translated on-site 2024-12-18 13:00:30 +08:00
Rémi Verschelde
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
Thaddeus Crews
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
Chaosus
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
Rémi Verschelde
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
Rémi Verschelde
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
Agustín Marsero
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
Michael Alexsander
5d70208da4
Make the alt selection menu available for all modes 2024-11-27 22:22:13 -03:00
Black Cat
f57fea0b0f Enable editing of controls inside viewports in editor
Fixes #79289
2024-11-27 16:02:33 +00:00
Haoyu Qiu
e515f593c2 Disable Clear Guides menu item when no guides exist 2024-11-27 08:27:15 +08:00
Thaddeus Crews
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
Thaddeus Crews
eedc820f37 Merge pull request #99487 from passivestar/fix-viewport-offsets
Fix viewport message offsets
2024-11-22 14:54:16 -06:00
Giganzo
c4bb252294 Change how multi selection scale is applied to canvas item 2024-11-21 20:52:33 +01:00
passivestar
5cd0d42d2b Fix viewport message offsets 2024-11-21 08:24:08 +04:00
Giganzo
61cf0253ce Fix toast spam about child of container position 2024-11-19 11:25:28 +01:00
Giganzo
f03e081efb Fix Lock and Group for canvas items not updated in editor after changed in SceenTree 2024-11-17 14:46:43 +01:00
Thaddeus Crews
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
Thaddeus Crews
925b690c98
Core: Integrate Ref::instantiate where possible 2024-11-10 12:41:26 -06:00
Michael Alexsander
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
Michael Alexsander
16524a8a01
Add "Game" editor for better runtime debugging 2024-10-30 11:42:17 -03:00
Thaddeus Crews
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
Aaron Franke
562c666e3d
Rename internal Button icon to button_icon to match exposed methods 2024-10-29 16:23:03 -07:00
Haoyu Qiu
574b413bef Fix heap-use-after-free when ctrl-clicking controls in a container 2024-10-26 10:43:54 +08:00
Rémi Verschelde
b6906b9677
Merge pull request #96389 from kitbdev/extract-main-screen
Extract EditorMainScreen from EditorNode
2024-09-11 12:34:46 +02:00
Rémi Verschelde
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
Harsche
7d8e8e7854 Fix tooltip description to be more precise 2024-09-08 00:48:04 -03:00
Giganzo
96aa2f285c Fix double lock/group buttons when starting editor with empty scene 2024-09-05 21:42:12 +02:00
Hilderin
613d4d10cb Fix selection stuck after saving scene 2024-09-04 19:12:30 -04:00
Rémi Verschelde
b310e5e064
Merge pull request #92842 from mihe/multi-node-keying
Allow keying properties when selecting multiple nodes
2024-08-30 09:59:01 +02:00