Pārlūkot izejas kodu

Fix edge case where an editable shape without a vbo is saved

James Urquhart 9 gadi atpakaļ
vecāks
revīzija
0e717ea707
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      Engine/source/ts/tsMesh.cpp

+ 1 - 1
Engine/source/ts/tsMesh.cpp

@@ -2606,7 +2606,7 @@ void TSMesh::disassemble()
    tsalloc.copyToBuffer32( (S32*)&mCenter, 3 );
    tsalloc.set32( (S32)mRadius );
 
-   bool shouldMakeEditable = TSShape::smVersion < 27;
+   bool shouldMakeEditable = TSShape::smVersion < 27 || mVertSize == 0;
 
    // Re-create the vectors
    if (shouldMakeEditable)