fix traversals when the 'root' contains a transform

This commit is contained in:
David Rose 2006-09-06 23:54:30 +00:00
parent eb14ff9086
commit 15fb1af7b2

View File

@ -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());
_local_bounds.push_back(gbv);
}