瀏覽代碼

trails : fix compilation error

lviguier 1 年之前
父節點
當前提交
a35393dbf4
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      hrt/prefab/l3d/Trails.hx

+ 1 - 1
hrt/prefab/l3d/Trails.hx

@@ -470,7 +470,7 @@ class TrailObj extends h3d.scene.Mesh {
 
 		updateParams();
 
-		if (trails != null && trails.length > 0) {
+		if (trails != null) {
 			var pos = this.getAbsPos();
 			addPoint(trails[0], pos.tx, pos.ty, pos.tz, ECamera, 1.0);
 		}