You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-08 12:40:44 +00:00
Redraw selected 3D gizmo on deselect
This commit is contained in:
@@ -8126,7 +8126,13 @@ void Node3DEditorPlugin::edit(Object *p_object) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool Node3DEditorPlugin::handles(Object *p_object) const {
|
bool Node3DEditorPlugin::handles(Object *p_object) const {
|
||||||
return p_object->is_class("Node3D");
|
if (p_object->is_class("Node3D")) {
|
||||||
|
return true;
|
||||||
|
} else {
|
||||||
|
// This ensures that gizmos are cleared when selecting a non-Node3D node.
|
||||||
|
const_cast<Node3DEditorPlugin *>(this)->edit((Object *)nullptr);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Dictionary Node3DEditorPlugin::get_state() const {
|
Dictionary Node3DEditorPlugin::get_state() const {
|
||||||
|
|||||||
Reference in New Issue
Block a user