Ver código fonte

FX: fix resolve constraints without constraints

Tom Spira 8 meses atrás
pai
commit
2bb47882a5
1 arquivos alterados com 1 adições e 0 exclusões
  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;