Ver Fonte

fix ColorPicker not correctly updating after pasting hex html color

chanon há 8 anos atrás
pai
commit
0bf5d86546
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      scene/gui/color_picker.cpp

+ 1 - 1
scene/gui/color_picker.cpp

@@ -162,7 +162,7 @@ void ColorPicker::_html_entered(const String& p_html) {
 	if (!is_inside_tree())
 		return;
 
-	_update_color();
+	set_color(color);
 	emit_signal("color_changed",color);
 }