diff options
author | SaracenOne <SaracenOne@gmail.com> | 2022-04-29 07:06:48 +0100 |
---|---|---|
committer | SaracenOne <SaracenOne@gmail.com> | 2022-08-23 23:16:13 +0100 |
commit | dd814a0dca13d28edf20d71c79bb0a0d99954685 (patch) | |
tree | 07f0db834590cc7c16630fc52cdd918d3f52bdfd /editor/debugger/editor_debugger_inspector.cpp | |
parent | 34aa6b06a7002469ee54541067ce3c39bf42815a (diff) |
Disable editing properties in foreign resources
from imported scenes or objects returning
true from a function named '_is_read_only' and
disable resaving imported resources.
Diffstat (limited to 'editor/debugger/editor_debugger_inspector.cpp')
-rw-r--r-- | editor/debugger/editor_debugger_inspector.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/editor/debugger/editor_debugger_inspector.cpp b/editor/debugger/editor_debugger_inspector.cpp index 58206efc20..6c0ba55ec8 100644 --- a/editor/debugger/editor_debugger_inspector.cpp +++ b/editor/debugger/editor_debugger_inspector.cpp @@ -85,6 +85,7 @@ 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"))); } |