mirror of
https://github.com/godotengine/godot.git
synced 2025-11-09 01:51:10 +00:00
Fixes transform gizmo position when node has default transform
Changes made: * Added dirty bit for SpatialEditorSelectedItem's last_xform * SpatialEditorViewport checks that dirt bit too before skipping the selection
This commit is contained in:
parent
cf50ee4fa4
commit
19825436d4
2 changed files with 7 additions and 2 deletions
|
|
@ -2419,9 +2419,10 @@ void SpatialEditorViewport::_notification(int p_what) {
|
|||
Transform t = sp->get_global_gizmo_transform();
|
||||
|
||||
exist = true;
|
||||
if (se->last_xform == t)
|
||||
if (se->last_xform == t && !se->last_xform_dirty)
|
||||
continue;
|
||||
changed = true;
|
||||
se->last_xform_dirty = false;
|
||||
se->last_xform = t;
|
||||
|
||||
VisualInstance *vi = Object::cast_to<VisualInstance>(sp);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue