quiet warnings (converting pointer to boolean)

This commit is contained in:
Campbell Barton 2013-09-26 10:35:41 +00:00
parent ef2e1edca0
commit f06b440d63

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