Merge pull request #15752 from Hinsbart/propselect

PropertyEditor: Add missing MAKE_PROPSELECT.
This commit is contained in:
Rémi Verschelde 2018-01-15 19:51:47 +01:00 committed by GitHub
commit 089dcc6959
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -665,6 +665,8 @@ bool CustomPropertyEditor::edit(Object *p_owner, const String &p_name, Variant::
} else if (hint == PROPERTY_HINT_PROPERTY_OF_INSTANCE) {
MAKE_PROPSELECT
Object *instance = ObjectDB::get_instance(hint_text.to_int64());
if (instance)
property_select->select_property_from_instance(instance, v);