From a16b06e7a444c90015e5311e7165f2f69c6298f0 Mon Sep 17 00:00:00 2001 From: Haoyu Qiu Date: Thu, 16 Dec 2021 00:33:23 +0800 Subject: [PATCH] Fix Color.v integer assignment --- core/variant_op.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/variant_op.cpp b/core/variant_op.cpp index 162a26bbcbf0..cf4ad2613e38 100644 --- a/core/variant_op.cpp +++ b/core/variant_op.cpp @@ -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) {