quiet warnings (converting pointer to boolean)
authorCampbell Barton <ideasman42@gmail.com>
Thu, 26 Sep 2013 10:35:41 +0000 (10:35 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Thu, 26 Sep 2013 10:35:41 +0000 (10:35 +0000)
source/blender/editors/mesh/editmesh_knife.c

index 4acc2df96fbc92a5d7cac6d84463bec8fa534643..a60b02486447621ebadf9a53c30da41da8328d97 100644 (file)
@@ -628,13 +628,13 @@ static int find_connected_linehit(KnifeTool_OpData *kcd, int testi, BMFace *f, i
                }
                if (testfaces) {
                        if (ifaces)
-                               shareface = knife_find_common_face(testfaces, ifaces);
+                               shareface = (knife_find_common_face(testfaces, ifaces) != NULL);
                        else if (iface)
-                               shareface = find_ref(testfaces, iface);
+                               shareface = (find_ref(testfaces, iface) != NULL);
                }
                else if (ifaces) {
                        if (testface)
-                               shareface = find_ref(ifaces, testface);
+                               shareface = (find_ref(ifaces, testface) != NULL);
                }
                else if (testface && iface) {
                        shareface = (testface == iface);