Bugfix #3430
authorTon Roosendaal <ton@blender.org>
Mon, 21 Nov 2005 11:15:46 +0000 (11:15 +0000)
committerTon Roosendaal <ton@blender.org>
Mon, 21 Nov 2005 11:15:46 +0000 (11:15 +0000)
Using Proportional edit on a Lattice with option "Outside" crashed.
Was caused by not checking for the hide flag while counting amount
of transformed elements in Lattice.

source/blender/src/transform_conversions.c

index 29f6a02309d9558e69780da4b466565983ef0f86..354ab917dd034ddcd7535fbd1fee4fbe7a2bcb26 100755 (executable)
@@ -1236,8 +1236,10 @@ static void createTransLatticeVerts(TransInfo *t)
        bp= editLatt->def;
        a= editLatt->pntsu*editLatt->pntsv*editLatt->pntsw;
        while(a--) {
-               if(bp->f1 & 1) countsel++;
-               if(propmode) count++;
+               if(bp->hide==0) {
+                       if(bp->f1 & 1) countsel++;
+                       if(propmode) count++;
+               }
                bp++;
        }