diff options
author | SaracenOne <SaracenOne@gmail.com> | 2022-09-07 10:14:06 +0100 |
---|---|---|
committer | SaracenOne <SaracenOne@gmail.com> | 2022-09-07 10:14:06 +0100 |
commit | 1e99c13de253e28e85b4e94a0ac229cb88f5fdfe (patch) | |
tree | 5dac275761b48c0624e220bc12a7e2afd0cfba75 /editor/editor_resource_picker.cpp | |
parent | b8977ca333fd0334669de0253f86abf6d401256a (diff) | |
download | redot-engine-1e99c13de253e28e85b4e94a0ac229cb88f5fdfe.tar.gz |
In inspector, show 'edit' button instead of 'inspect' when resource is part of an editable scene.
Diffstat (limited to 'editor/editor_resource_picker.cpp')
-rw-r--r-- | editor/editor_resource_picker.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/editor_resource_picker.cpp b/editor/editor_resource_picker.cpp index f717188b3b..469a40af8e 100644 --- a/editor/editor_resource_picker.cpp +++ b/editor/editor_resource_picker.cpp @@ -186,7 +186,7 @@ void EditorResourcePicker::_update_menu_items() { // Add options for changing existing value of the resource. if (edited_resource.is_valid()) { // Determine if the edited resource is part of another scene (foreign) which was imported - bool is_edited_resource_foreign_import = EditorNode::get_singleton()->is_resource_read_only(edited_resource); + bool is_edited_resource_foreign_import = EditorNode::get_singleton()->is_resource_read_only(edited_resource, true); // If the resource is determined to be foreign and imported, change the menu entry's description to 'inspect' rather than 'edit' // since will only be able to view its properties in read-only mode. |