Hide the transform gizmo while editing a mesh data resource.

This commit is contained in:
Relintai 2022-08-20 01:42:19 +02:00
parent 3220e9c592
commit 31bcbb0184

View File

@ -65,6 +65,7 @@ void MDIEdPlugin::set_gizmo_visible(const bool visible) {
if (current_mesh_data_instance) { if (current_mesh_data_instance) {
Ref<MDIGizmo> g = get_gizmo_from(current_mesh_data_instance); Ref<MDIGizmo> g = get_gizmo_from(current_mesh_data_instance);
g->set_visible(visible); g->set_visible(visible);
current_mesh_data_instance->set_transform_gizmo_visible(!visible);
} }
} }