+ printf("amount of nurbs: %d, amount of nurbs left: %d, amount of nurbs to select: %d, steps: %d, oldsteps: %d, a: %d \n", amount_of_nurbs, amount_of_nurbs_left, amount_of_nurbs_to_select, steps, oldsteps, a);
+
+ for(i=0; i<steps; i++) {
+ a--;
+ /* we may need to jump to next nurb. note that next nurb can be either bezt or bp. Note that it is possible that there's no next nu. currently buggy */
+ if(a == 0) {
+ if(nu->next) nu= nu->next;
+ oldsteps-=(i+1); // ok?
+ breakloop2= 1;
+ break;
+ }
+ else
+ bezt++;
+ }
+
+ if(breakloop2 == 1) {
+ breakloop2= 0;
+ break;
+ }
+ else oldsteps= 0;
+
+ if (bezt->hide == 0) {
+ bezt->f1 |= 1;
+ bezt->f2 |= 1;
+ bezt->f3 |= 1;
+
+ printf("selected a nurb \n");
+ }
+
+ amount_of_nurbs_to_select--;
+ amount_of_nurbs_left-=steps;
+
+ /* first step is an exception because we start from first element */