From 1038fa7fbee3aba0bee85f187e667aa9a7da27f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20=E2=80=98Touky=E2=80=99=20Huet?= Date: Thu, 17 Jan 2013 21:03:03 +0000 Subject: [PATCH] Small MeshCsg return FIX --- src/easymesh/easymesh.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/easymesh/easymesh.cpp b/src/easymesh/easymesh.cpp index 875d49b2..8b956e1d 100644 --- a/src/easymesh/easymesh.cpp +++ b/src/easymesh/easymesh.cpp @@ -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++)