diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2016-02-03 17:01:26 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2016-02-03 17:01:26 +0300 |
commit | 24eecb00de225377d5a77e082c1c4eab83f7eecd (patch) | |
tree | 2cec92adc6573d7e9e66061d247dbcdbe938dad3 /intern/cycles/subd | |
parent | 3aa74828ab627723e6c98163bf6344ef1f009bcf (diff) |
Cycles: Correction to asserts, they will never trigger before
Diffstat (limited to 'intern/cycles/subd')
-rw-r--r-- | intern/cycles/subd/subd_mesh.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/intern/cycles/subd/subd_mesh.cpp b/intern/cycles/subd/subd_mesh.cpp index 98185004f5d..d7cb7b921ee 100644 --- a/intern/cycles/subd/subd_mesh.cpp +++ b/intern/cycles/subd/subd_mesh.cpp @@ -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 |