summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2018-02-22 10:55:30 +0100
committerGitHub <noreply@github.com>2018-02-22 10:55:30 +0100
commitbd01fb5367cce6760c16955f04e245f66536b088 (patch)
tree542dfcfa90725d6cadb4058c089be1ab607bc9c3
parentfef49cadcbcc186f9616368f0a725dfb2c372b48 (diff)
parentf4f92b55e102487527fc7f1c7d8ebc1df73c01a7 (diff)
Merge pull request #16916 from Noshyaar/color
Color:fix setting V switch S to old V value
-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 e4eea4ed48..97b469861c 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;
}
}