소스 검색

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;