Fix Color.v integer assignment

This commit is contained in:
Haoyu Qiu 2021-12-16 00:33:23 +08:00
parent ef52ac6c25
commit a16b06e7a4
1 changed files with 1 additions and 1 deletions

View File

@ -1486,7 +1486,7 @@ void Variant::set_named(const StringName &p_index, const Variant &p_value, bool
v->set_hsv(v->get_h(), p_value._data._int, v->get_v(), v->a); v->set_hsv(v->get_h(), p_value._data._int, v->get_v(), v->a);
valid = true; valid = true;
} else if (p_index == CoreStringNames::singleton->v) { } else if (p_index == CoreStringNames::singleton->v) {
v->set_hsv(v->get_h(), v->get_v(), p_value._data._int, v->a); v->set_hsv(v->get_h(), v->get_s(), p_value._data._int, v->a);
valid = true; valid = true;
} }
} else if (p_value.type == Variant::REAL) { } else if (p_value.type == Variant::REAL) {