1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-16 14:00:40 +00:00

Add a flag to EditorResourcePicker to differentiate selection contexts

This commit is contained in:
Yuri Sizov
2021-11-02 14:15:14 +03:00
parent 44a532e99e
commit 5ff11a2c5c
6 changed files with 10 additions and 9 deletions

View File

@@ -2236,8 +2236,8 @@ EditorPropertyRID::EditorPropertyRID() {
////////////// RESOURCE //////////////////////
void EditorPropertyResource::_resource_selected(const RES &p_resource) {
if (_can_use_sub_inspector(p_resource)) {
void EditorPropertyResource::_resource_selected(const RES &p_resource, bool p_edit) {
if (!p_edit && _can_use_sub_inspector(p_resource)) {
bool unfold = !get_edited_object()->editor_is_section_unfolded(get_edited_property());
get_edited_object()->editor_set_section_unfold(get_edited_property(), unfold);
update_property();