Hotfix 59b2f4 breaking things

This commit is contained in:
Serhii Snitsaruk 2023-11-08 16:21:46 +01:00
parent 59b2f4af3c
commit d51be136e1
1 changed files with 2 additions and 4 deletions

View File

@ -34,12 +34,10 @@ Variant BBParam::get_saved_value() {
}
void BBParam::set_saved_value(Variant p_value) {
if (p_value.get_type() == get_type()) {
saved_value = p_value;
} else if (p_value.get_type() == Variant::NIL) {
if (p_value.get_type() == Variant::NIL) {
_assign_default_value();
} else {
saved_value = VariantUtilityFunctions::type_convert(p_value, get_type());
saved_value = p_value;
}
_update_name();
emit_changed();