You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +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
(cherry picked from commit 19825436d4)
This commit is contained in:
@@ -469,10 +469,14 @@ public:
|
||||
Transform original; // original location when moving
|
||||
Transform original_local;
|
||||
Transform last_xform; // last transform
|
||||
bool last_xform_dirty;
|
||||
Spatial *sp;
|
||||
RID sbox_instance;
|
||||
|
||||
SpatialEditorSelectedItem() { sp = NULL; }
|
||||
SpatialEditorSelectedItem() {
|
||||
sp = NULL;
|
||||
last_xform_dirty = true;
|
||||
}
|
||||
~SpatialEditorSelectedItem();
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user