+ bugfix in btAlignedObjectArray, not calling destructors on resize to smaller array.
Thanks Benoit for pointing this out, and bugfix: http://code.google.com/p/bullet/issues/detail?id=218 + Added point to point, hinge, slider and generic 6dof constraints to Maya Dynamica plugin Thanks to Herbert Law for the constribution: http://code.google.com/p/bullet/issues/detail?id=221
This commit is contained in:
@@ -171,9 +171,9 @@ class btAlignedObjectArray
|
||||
{
|
||||
int curSize = size();
|
||||
|
||||
if (newsize < size())
|
||||
if (newsize < curSize)
|
||||
{
|
||||
for(int i = curSize; i < newsize; i++)
|
||||
for(int i = newsize; i < curSize; i++)
|
||||
{
|
||||
m_data[i].~T();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user