- re-enable clearing of wheels as its not done in btRaycastVehicle destructor (though one can not remove wheels oO)
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8494 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
This commit is contained in:
parent
502fd41ca8
commit
cac022d9bf
@ -420,7 +420,9 @@ public class VehicleWheel implements Savable {
|
|||||||
protected void finalize() throws Throwable {
|
protected void finalize() throws Throwable {
|
||||||
super.finalize();
|
super.finalize();
|
||||||
Logger.getLogger(this.getClass().getName()).log(Level.INFO, "Finalizing Wheel {0}", Long.toHexString(wheelId));
|
Logger.getLogger(this.getClass().getName()).log(Level.INFO, "Finalizing Wheel {0}", Long.toHexString(wheelId));
|
||||||
// finalizeNative(wheelId);
|
if (wheelId != 0 && wheelIndex != 0) {
|
||||||
|
finalizeNative(wheelId, wheelIndex);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private native void finalizeNative(long wheelId, int wheelIndex);
|
private native void finalizeNative(long wheelId, int wheelIndex);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user