Merge pull request #65520 from V-Sekai/remote_objects_no_read_only
This commit is contained in:
commit
7a317b1314
@ -85,7 +85,6 @@ void EditorDebuggerRemoteObject::_bind_methods() {
|
||||
ClassDB::bind_method(D_METHOD("get_variant"), &EditorDebuggerRemoteObject::get_variant);
|
||||
ClassDB::bind_method(D_METHOD("clear"), &EditorDebuggerRemoteObject::clear);
|
||||
ClassDB::bind_method(D_METHOD("get_remote_object_id"), &EditorDebuggerRemoteObject::get_remote_object_id);
|
||||
ClassDB::bind_method(D_METHOD("_is_read_only"), &EditorDebuggerRemoteObject::_is_read_only);
|
||||
|
||||
ADD_SIGNAL(MethodInfo("value_edited", PropertyInfo(Variant::INT, "object_id"), PropertyInfo(Variant::STRING, "property"), PropertyInfo("value")));
|
||||
}
|
||||
|
@ -50,7 +50,6 @@ public:
|
||||
HashMap<StringName, Variant> prop_values;
|
||||
|
||||
ObjectID get_remote_object_id() { return remote_object_id; };
|
||||
bool _is_read_only() { return true; };
|
||||
String get_title();
|
||||
|
||||
Variant get_variant(const StringName &p_name);
|
||||
|
@ -2321,10 +2321,7 @@ void EditorNode::_edit_current(bool p_skip_foreign) {
|
||||
} else {
|
||||
Node *selected_node = nullptr;
|
||||
|
||||
if (current_obj->is_class("EditorDebuggerRemoteObject")) {
|
||||
editable_info = TTR("This is a remote object, so it's not editable.\nPlease read the documentation relevant to debugging to better understand this workflow.");
|
||||
disable_folding = true;
|
||||
} else if (current_obj->is_class("MultiNodeEdit")) {
|
||||
if (current_obj->is_class("MultiNodeEdit")) {
|
||||
Node *scene = get_edited_scene();
|
||||
if (scene) {
|
||||
MultiNodeEdit *multi_node_edit = Object::cast_to<MultiNodeEdit>(current_obj);
|
||||
|
Loading…
Reference in New Issue
Block a user