Browse Source

Do not require index data for convex hulls, as it's not used.

Lasse Öörni 10 years ago
parent
commit
10c3e15298
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Source/Urho3D/Physics/CollisionShape.cpp

+ 1 - 1
Source/Urho3D/Physics/CollisionShape.cpp

@@ -251,7 +251,7 @@ ConvexData::ConvexData(Model* model, unsigned lodLevel)
         unsigned elementMask;
 
         geom->GetRawData(vertexData, vertexSize, indexData, indexSize, elementMask);
-        if (!vertexData || !indexData)
+        if (!vertexData)
         {
             LOGWARNING("Skipping geometry with no CPU-side geometry data for convex hull collision");
             continue;