aboutsummaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorPoommetee Ketson2018-02-22 16:43:00 +0700
committerHein-Pieter van Braam2018-02-22 12:07:07 +0100
commit40018e995cc2a4c5a14512eb7713b63a5b825978 (patch)
tree076106bfe6108eda37c8ae4974c2a8fd2f9ba57c /core
parentbe6323d848d61bfb8e6ea95dbaaebf32414b094c (diff)
downloadgodot-40018e995cc2a4c5a14512eb7713b63a5b825978.tar.gz
godot-40018e995cc2a4c5a14512eb7713b63a5b825978.tar.zst
godot-40018e995cc2a4c5a14512eb7713b63a5b825978.zip
Color:fix setting V switch S to old V value
(cherry picked from commit f4f92b55e102487527fc7f1c7d8ebc1df73c01a7)
Diffstat (limited to 'core')
-rw-r--r--core/variant_op.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/variant_op.cpp b/core/variant_op.cpp
index e46fac77e..8656163fd 100644
--- a/core/variant_op.cpp
+++ b/core/variant_op.cpp
@@ -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;
}
}