浏览代码

Fix gizmos from 3D editor plugins not applying changes to locked nodes

Michael Alexsander 5 月之前
父节点
当前提交
3d737cbbbd
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      editor/scene/3d/node_3d_editor_plugin.cpp

+ 1 - 1
editor/scene/3d/node_3d_editor_plugin.cpp

@@ -5216,7 +5216,7 @@ void Node3DEditorViewport::apply_transform(Vector3 p_motion, double p_snap) {
 			continue;
 		}
 
-		if (sp->has_meta("_edit_lock_")) {
+		if (sp->has_meta("_edit_lock_") && !spatial_editor->is_gizmo_visible()) {
 			continue;
 		}