All pastes #248802 Raw Edit

Mine

public c v1 · immutable
#248802 ·published 2006-11-15 00:45 UTC
rendered paste body
        bDeformGroup *def;        /*for(i = 0, def = ob->defbase.first; def; def = def->next, i++) {			if(!strcmp(def->name, rmd->name)) {				defgrp_index = i;				break;			}		}*/    	for(i = 0; i < me->totvert; i++){                def = ob->defbase.first;    		if(me->dvert[i].totweight>0){    			for(j = 0; j < me->dvert[i].totweight; j++){                      def = def->next;                      if(strcmp(def->name, rmd->name)){                            float *co = vertexCos[i];            				printf("Current Group is %i and current weight is %f", j, me->dvert[i].dw[j].weight);            			    co[0] = co[0] + (BLI_frand()*(me->dvert[i].dw[j].weight*0.1));                             co[1] = co[1] + (BLI_frand()*(me->dvert[i].dw[j].weight*0.1));                            co[2] = co[2] + (BLI_frand()*(me->dvert[i].dw[j].weight*0.1));                        }                }     		}            }