Merge pull request #16916 from Noshyaar/color

Color:fix setting V switch S to old V value
This commit is contained in:
Rémi Verschelde 2018-02-22 10:55:30 +01:00 committed by GitHub
commit bd01fb5367
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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