mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 02:42:49 -04:00
drwr: fix crash on partial transform across compass
This commit is contained in:
parent
db6ef92534
commit
4ef35cf5b1
@ -5062,7 +5062,11 @@ r_get_partial_transform(NodePathComponent *comp, int n) const {
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
CPT(TransformState) transform = comp->get_node()->get_transform();
|
CPT(TransformState) transform = comp->get_node()->get_transform();
|
||||||
return r_get_partial_transform(comp->get_next(), n - 1)->compose(transform);
|
CPT(TransformState) partial = r_get_partial_transform(comp->get_next(), n - 1);
|
||||||
|
if (partial == (const TransformState *)NULL) {
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
return partial->compose(transform);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user