mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 02:15:43 -04:00
bullet: fix compilation error with Bullet 2.81
This commit is contained in:
parent
3a88308f45
commit
69d24993b6
@ -39,10 +39,16 @@ BulletConvexHullShape(const BulletConvexHullShape ©) {
|
|||||||
_shape = new btConvexHullShape(NULL, 0);
|
_shape = new btConvexHullShape(NULL, 0);
|
||||||
_shape->setUserPointer(this);
|
_shape->setUserPointer(this);
|
||||||
|
|
||||||
for(int i = 0; i < copy._shape->getNumPoints(); i++)
|
#if BT_BULLET_VERSION >= 282
|
||||||
|
for (int i = 0; i < copy._shape->getNumPoints(); ++i) {
|
||||||
_shape->addPoint(copy._shape->getUnscaledPoints()[i], false);
|
_shape->addPoint(copy._shape->getUnscaledPoints()[i], false);
|
||||||
|
}
|
||||||
_shape->recalcLocalAabb();
|
_shape->recalcLocalAabb();
|
||||||
|
#else
|
||||||
|
for (int i = 0; i < copy._shape->getNumPoints(); ++i) {
|
||||||
|
_shape->addPoint(copy._shape->getUnscaledPoints()[i]);
|
||||||
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user