- 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
3.0
nor..67 13 years ago
parent 502fd41ca8
commit cac022d9bf
  1. 4
      engine/src/bullet/com/jme3/bullet/objects/VehicleWheel.java

@ -420,7 +420,9 @@ public class VehicleWheel implements Savable {
protected void finalize() throws Throwable {
super.finalize();
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);

Loading…
Cancel
Save