mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-29 08:15:18 -04:00
bullet: Fix BulletWheel::empty()
referencing local objects
This commit is contained in:
parent
cc24b5373d
commit
ef9c9fa20e
@ -26,17 +26,3 @@ INLINE BulletWheelRaycastInfo::
|
||||
~BulletWheelRaycastInfo() {
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Named constructor intended to be used for asserts with have to return a
|
||||
* concrete value.
|
||||
*/
|
||||
INLINE BulletWheel BulletWheel::
|
||||
empty() {
|
||||
|
||||
btWheelInfoConstructionInfo ci {};
|
||||
btWheelInfo info(ci);
|
||||
|
||||
return BulletWheel(info);
|
||||
}
|
||||
|
||||
|
@ -23,6 +23,19 @@ BulletWheel(btWheelInfo &info) : _info(info) {
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Named constructor intended to be used for asserts with have to return a
|
||||
* concrete value.
|
||||
*/
|
||||
BulletWheel BulletWheel::
|
||||
empty() {
|
||||
|
||||
static btWheelInfoConstructionInfo ci {};
|
||||
static btWheelInfo info(ci);
|
||||
|
||||
return BulletWheel(info);
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
|
@ -143,7 +143,7 @@ PUBLISHED:
|
||||
public:
|
||||
BulletWheel(btWheelInfo &info);
|
||||
|
||||
INLINE static BulletWheel empty();
|
||||
static BulletWheel empty();
|
||||
|
||||
private:
|
||||
btWheelInfo &_info;
|
||||
|
Loading…
x
Reference in New Issue
Block a user