Cycles: Correction to asserts, they will never trigger before

This commit is contained in:
Sergey Sharybin 2016-02-03 15:01:26 +01:00
parent 3aa74828ab
commit 24eecb00de
Notes: blender-bot 2023-02-14 08:15:54 +01:00
Referenced by issue #47323, SVM != OSL shaders
Referenced by issue #47317, Dynamic Paint image sequence bake crashes if mesh has no UV layer
1 changed files with 5 additions and 5 deletions

View File

@ -196,17 +196,17 @@ void OpenSubdMesh::add_face(int *index, int num)
OsdHbrHalfEdge *opposite = destination->GetEdge(origin);
if(origin==NULL || destination==NULL)
assert("An edge was specified that connected a nonexistent vertex\n");
assert(!"An edge was specified that connected a nonexistent vertex\n");
if(origin == destination)
assert("An edge was specified that connected a vertex to itself\n");
assert(!"An edge was specified that connected a vertex to itself\n");
if(opposite && opposite->GetOpposite())
assert("A non-manifold edge incident to more than 2 faces was found\n");
assert(!"A non-manifold edge incident to more than 2 faces was found\n");
if(origin->GetEdge(destination)) {
assert("An edge connecting two vertices was specified more than once."
"It's likely that an incident face was flipped\n");
assert(!"An edge connecting two vertices was specified more than once."
"It's likely that an incident face was flipped\n");
}
}
#endif