You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-11 13:10:58 +00:00
Prioritise static value type for dictionary properties
This commit is contained in:
committed by
Sébastien Dunne Fulmer
parent
a8598cd8e2
commit
3c27aa6bcd
@@ -1360,7 +1360,14 @@ void EditorPropertyDictionary::update_property() {
|
|||||||
|
|
||||||
Variant value;
|
Variant value;
|
||||||
object->get_by_property_name(slot.prop_name, value);
|
object->get_by_property_name(slot.prop_name, value);
|
||||||
Variant::Type value_type = value.get_type();
|
|
||||||
|
Variant::Type value_type;
|
||||||
|
|
||||||
|
if (dict.is_typed_value() && slot.prop_key) {
|
||||||
|
value_type = value_subtype;
|
||||||
|
} else {
|
||||||
|
value_type = value.get_type();
|
||||||
|
}
|
||||||
|
|
||||||
// Check if the editor property needs to be updated.
|
// Check if the editor property needs to be updated.
|
||||||
bool value_as_id = Object::cast_to<EncodedObjectAsID>(value);
|
bool value_as_id = Object::cast_to<EncodedObjectAsID>(value);
|
||||||
|
|||||||
Reference in New Issue
Block a user