浏览代码

minor vec4 fix

Nicolas Cannasse 2 月之前
父节点
当前提交
4c709e9a17
共有 1 个文件被更改,包括 1 次插入1 次删除
  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) {