Commit Graph

891 Commits

Author SHA1 Message Date
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
7d8e8e7854 Fix tooltip description to be more precise 2024-09-08 00:48:04 -03:00
96aa2f285c Fix double lock/group buttons when starting editor with empty scene 2024-09-05 21:42:12 +02:00
613d4d10cb Fix selection stuck after saving scene 2024-09-04 19:12:30 -04:00
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
52889ab7ee [Scene] Add SceneStringName::toggled 2024-08-28 15:14:26 +03:00
3e23f56c72 Merge pull request #94288 from KoBeWi/cursed_code
Allow box selecting over CanvasItems when Shift is held
2024-08-28 00:12:02 +02:00
351f454a94 Allow keying properties with multiple nodes selected 2024-08-19 14:05:33 +02:00
f9474f0925 Merge pull request #93764 from patwork/fix-aspect-div-by-zero
Fix division by zero in aspect ratio calculation
2024-07-29 15:17:22 +02:00
0b513b9f65 Allow box selecting over CanvasItems when Shift is held 2024-07-13 18:21:17 +02:00
4a27fb7e83 Fix edited node being removed before editor plugin handles focus loss
`CanvasItemEditor::_select_click_on_item` was causing
`EditorNode::_plugin_over_edit` to be called before focus exit had time
to propagate to `SpriteFramesEditor::_animation_speed_changed`.
2024-07-10 16:32:56 +03:00
e03fb3043f fix: change esthetic -> aesthetic 2024-07-05 16:03:01 -04:00
31629744f8 Fix division by zero in aspect ratio calculation 2024-06-30 02:18:57 +02:00