mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Fix Variant properties losing value upon script update
This commit is contained in:
parent
c6d130abd9
commit
188e313dd8
1 changed files with 1 additions and 1 deletions
|
@ -795,7 +795,7 @@ void PlaceHolderScriptInstance::update(const List<PropertyInfo> &p_properties, c
|
||||||
StringName n = E.name;
|
StringName n = E.name;
|
||||||
new_values.insert(n);
|
new_values.insert(n);
|
||||||
|
|
||||||
if (!values.has(n) || values[n].get_type() != E.type) {
|
if (!values.has(n) || (E.type != Variant::NIL && values[n].get_type() != E.type)) {
|
||||||
if (p_values.has(n)) {
|
if (p_values.has(n)) {
|
||||||
values[n] = p_values[n];
|
values[n] = p_values[n];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue