浏览代码

Apply inspector read_only only when changed

kobewi 2 年之前
父节点
当前提交
860da7bc77
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      editor/editor_inspector.cpp

+ 3 - 0
editor/editor_inspector.cpp

@@ -3374,6 +3374,9 @@ void EditorInspector::set_keying(bool p_active) {
 }
 
 void EditorInspector::set_read_only(bool p_read_only) {
+	if (p_read_only == read_only) {
+		return;
+	}
 	read_only = p_read_only;
 	update_tree();
 }