Skip to content

Commit d8b0eb8

Browse files
committed
FX: null crash fix for some weird setups
1 parent 1a38db9 commit d8b0eb8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

hrt/prefab/fx/FX.hx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -492,7 +492,7 @@ class FXAnimation extends h3d.scene.Object {
492492
function syncAnims(newTime: Float, dt: Float) {
493493
if(objAnims != null) {
494494
for(anim in objAnims) {
495-
if(anim.scale != null || anim.rotation != null || anim.position != null) {
495+
if(anim.obj != null && (anim.scale != null || anim.rotation != null || anim.position != null)) {
496496
var m = tempMat;
497497
if(anim.scale != null) {
498498
var scale = evaluator.getVector(anim.scale, newTime, tempVec);

0 commit comments

Comments
 (0)