Boolean op error handling has been added. When a no closed mesh is used the follow message is showed:
"Both meshes must be a closed mesh"
This commit is contained in:
@@ -694,7 +694,7 @@ NewBooleanMesh(
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (success) {
|
if (success==1) {
|
||||||
// descriptions of the output;
|
// descriptions of the output;
|
||||||
CSG_VertexIteratorDescriptor vd_o;
|
CSG_VertexIteratorDescriptor vd_o;
|
||||||
CSG_FaceIteratorDescriptor fd_o;
|
CSG_FaceIteratorDescriptor fd_o;
|
||||||
|
|||||||
@@ -2022,9 +2022,11 @@ void special_editmenu(void)
|
|||||||
waitcursor(1);
|
waitcursor(1);
|
||||||
ret = NewBooleanMesh(BASACT,base_select,nr);
|
ret = NewBooleanMesh(BASACT,base_select,nr);
|
||||||
if (ret==0) {
|
if (ret==0) {
|
||||||
error("An internal error occurred -- sorry!");
|
error("An internal error occurred");
|
||||||
} else if(ret==-1) {
|
} else if(ret==-1) {
|
||||||
error("Selected meshes must have faces to perform boolean operations");
|
error("Selected meshes must have faces to perform boolean operations");
|
||||||
|
} else if (ret==-2) {
|
||||||
|
error("Both meshes must be a closed mesh");
|
||||||
}
|
}
|
||||||
else BIF_undo_push("Boolean");
|
else BIF_undo_push("Boolean");
|
||||||
waitcursor(0);
|
waitcursor(0);
|
||||||
|
|||||||
Reference in New Issue
Block a user