Browse Source

Fix editing of remote objects in the inspector

Pavel Pletnev 3 years ago
parent
commit
770cd6764e

+ 1 - 2
editor/debugger/editor_debugger_inspector.cpp

@@ -36,7 +36,7 @@
 #include "scene/debugger/scene_debugger.h"
 #include "scene/debugger/scene_debugger.h"
 
 
 bool EditorDebuggerRemoteObject::_set(const StringName &p_name, const Variant &p_value) {
 bool EditorDebuggerRemoteObject::_set(const StringName &p_name, const Variant &p_value) {
-	if (!editable || !prop_values.has(p_name) || String(p_name).begins_with("Constants/")) {
+	if (!prop_values.has(p_name) || String(p_name).begins_with("Constants/")) {
 		return false;
 		return false;
 	}
 	}
 
 
@@ -91,7 +91,6 @@ void EditorDebuggerRemoteObject::_bind_methods() {
 
 
 EditorDebuggerInspector::EditorDebuggerInspector() {
 EditorDebuggerInspector::EditorDebuggerInspector() {
 	variables = memnew(EditorDebuggerRemoteObject);
 	variables = memnew(EditorDebuggerRemoteObject);
-	variables->editable = false;
 }
 }
 
 
 EditorDebuggerInspector::~EditorDebuggerInspector() {
 EditorDebuggerInspector::~EditorDebuggerInspector() {

+ 0 - 1
editor/debugger/editor_debugger_inspector.h

@@ -43,7 +43,6 @@ protected:
 	static void _bind_methods();
 	static void _bind_methods();
 
 
 public:
 public:
-	bool editable = false;
 	ObjectID remote_object_id;
 	ObjectID remote_object_id;
 	String type_name;
 	String type_name;
 	List<PropertyInfo> prop_list;
 	List<PropertyInfo> prop_list;