Browse Source

minor vec4 fix

Nicolas Cannasse 2 months ago
parent
commit
4c709e9a17
1 changed files with 1 additions and 1 deletions
  1. 1 1
      hrt/shgraph/nodes/Color.hx

+ 1 - 1
hrt/shgraph/nodes/Color.hx

@@ -32,7 +32,7 @@ class Color extends ShaderConst {
 		var picker = new hide.comp.ColorPicker.ColorBox(element, true, true);
 
 
-		var start = h3d.Vector.fromArray([r, g, b, a]);
+		var start = h3d.Vector4.fromArray([r, g, b, a]);
 		picker.value = start.toColor();
 
 		picker.onChange = function(move) {