mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-18 12:43:44 -04:00
fix traversals when the 'root' contains a transform
This commit is contained in:
parent
eb14ff9086
commit
15fb1af7b2
@ -88,7 +88,7 @@ prepare_collider(const ColliderDef &def, const NodePath &root) {
|
|||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
CPT(TransformState) rel_transform = def._node_path.get_transform(root);
|
CPT(TransformState) rel_transform = def._node_path.get_transform(root.get_parent());
|
||||||
gbv->xform(rel_transform->get_mat());
|
gbv->xform(rel_transform->get_mat());
|
||||||
_local_bounds.push_back(gbv);
|
_local_bounds.push_back(gbv);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user