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;
|
||||
}
|
||||
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…
Reference in New Issue