Fix Color.v integer assignment
This commit is contained in:
parent
ef52ac6c25
commit
a16b06e7a4
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue