svn merge ^/trunk/blender -r41226:41227 .
[blender.git] / source / blender / blenlib / intern / pbvh.c
index 32ac535972149dbd69c851935c2d3cd4d0843f40..6cba79849c25c558962355b4c3cb2c393a4aeacf 100644 (file)
@@ -1,6 +1,4 @@
 /*
- * $Id$
- *
  * ***** BEGIN GPL LICENSE BLOCK *****
  *
  * This program is free software; you can redistribute it and/or
@@ -346,7 +344,7 @@ static int map_insert_vert(PBVH *bvh, GHash *map,
 
        if(!BLI_ghash_haskey(map, key)) {
                if(BLI_bitmap_get(bvh->vert_bitmap, vertex)) {
-                       value = SET_INT_IN_POINTER(-(*face_verts) - 1);
+                       value = SET_INT_IN_POINTER(~(*face_verts));
                        ++(*face_verts);
                }
                else {