Browse Source

Color:fix setting V switch S to old V value

Poommetee Ketson 7 years ago
parent
commit
f4f92b55e1
1 changed files with 1 additions and 1 deletions
  1. 1 1
      core/variant_op.cpp

+ 1 - 1
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());
 					v->set_hsv(v->get_h(), p_value._data._real, v->get_v());
 					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._real);
+					v->set_hsv(v->get_h(), v->get_s(), p_value._data._real);
 					valid = true;
 					valid = true;
 				}
 				}
 			}
 			}