Browse Source

Small MeshCsg return FIX

legacy
Benjamin ‘Touky’ Huet touky 12 years ago
parent
commit
1038fa7fbe
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      src/easymesh/easymesh.cpp

+ 3
- 0
src/easymesh/easymesh.cpp View File

@@ -212,6 +212,9 @@ void EasyMesh::MeshCsg(int csg_operation)
CsgBsp mesh_bsp_0;
CsgBsp mesh_bsp_1;

if (m_cursors.Count() == 0)
return;

//BSP BUILD : We use the brace logic, csg should be used as : "[ exp .... [exp .... csg]]"
int cursor_start = (m_cursors.Count() < 2)?(0):(m_cursors[(m_cursors.Count() - 2)].m2);
for (int mesh_id = 0; mesh_id < 2; mesh_id++)


Loading…
Cancel
Save