浏览代码

FX: fix resolve constraints without constraints

Tom Spira 8 月之前
父节点
当前提交
2bb47882a5
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      hrt/prefab/fx/FX.hx

+ 1 - 0
hrt/prefab/fx/FX.hx

@@ -496,6 +496,7 @@ class FXAnimation extends h3d.scene.Object {
 	}
 
 	public function resolveConstraints( caster : h3d.scene.Object ) {
+		if( constraints == null ) return;
 		for( co in constraints ) {
 			if( !co.enabled )
 		 		continue;