瀏覽代碼

minor fix

Nicolas Cannasse 9 年之前
父節點
當前提交
67eace4c3a
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      hxd/inspect/PropManager.hx

+ 1 - 0
hxd/inspect/PropManager.hx

@@ -186,6 +186,7 @@ class PropManager extends cdb.jq.Client {
 			set(e);
 		case PColor(_, _, _, set):
 			if( !Std.is(v, String) ) throw "Invalid color value " + v;
+			var v : String = v;
 			set(h3d.Vector.fromColor(Std.parseInt("0x"+v.substr(1))));
 		case PFloats(_, get, set):
 			if( !Std.is(v, Array) ) throw "Invalid floats value " + v;