Merge pull request #55963 from timothyqiu/color-v-int

This commit is contained in:
Rémi Verschelde 2021-12-15 17:56:49 +01:00 committed by GitHub
commit 28713f939b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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);
valid = true;
} 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;
}
} else if (p_value.type == Variant::REAL) {