Skip to content

Commit

Permalink
Fix detection of non-default and overridden property values in scenes
Browse files Browse the repository at this point in the history
  • Loading branch information
RandomShaper committed Nov 9, 2021
1 parent a7aad78 commit a02bb2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scene/property_utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ bool PropertyUtils::is_property_value_different(const Variant &p_a, const Varian
// For our purposes, treating null object as NIL is the right thing to do
const Variant &a = p_a.get_type() == Variant::OBJECT && (Object *)p_a == nullptr ? Variant() : p_a;
const Variant &b = p_b.get_type() == Variant::OBJECT && (Object *)p_b == nullptr ? Variant() : p_b;
return a != b;
return !a.deep_equal(b);
}
}

Expand Down

0 comments on commit a02bb2b

Please sign in to comment.