فهرست منبع

fix for issue #1037 (TestHoveringTank hull-shape performance issue)

Stephen Gold 6 سال پیش
والد
کامیت
0814858284
1فایلهای تغییر یافته به همراه3 افزوده شده و 1 حذف شده
  1. 3 1
      jme3-bullet-native/src/native/cpp/com_jme3_bullet_collision_shapes_HullCollisionShape.cpp

+ 3 - 1
jme3-bullet-native/src/native/cpp/com_jme3_bullet_collision_shapes_HullCollisionShape.cpp

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2009-2012 jMonkeyEngine
+ * Copyright (c) 2009-2019 jMonkeyEngine
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -60,6 +60,8 @@ extern "C" {
             
             shape->addPoint(vect);
         }
+        
+        shape->optimizeConvexHull();
 
         return reinterpret_cast<jlong>(shape);
     }