fix for error in decleration order
authorCampbell Barton <ideasman42@gmail.com>
Tue, 27 Apr 2010 13:22:43 +0000 (13:22 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Tue, 27 Apr 2010 13:22:43 +0000 (13:22 +0000)
source/blender/editors/physics/particle_edit.c

index f6384e38eb99118c879c6eddc8fbf774978d93c9..0ee1ffc83376099e43cb9aefe4187f1eeeefa02f 100644 (file)
@@ -2376,11 +2376,10 @@ static int weight_set_exec(bContext *C, wmOperator *op)
        HairKey *hkey;
        float weight;
        ParticleBrushData *brush= &pset->brush[pset->brushtype];
-       edit= psys->edit;
-    
     float factor= RNA_float_get(op->ptr, "factor");
 
        weight= brush->strength;
+       edit= psys->edit;
 
        LOOP_SELECTED_POINTS {
                ParticleData *pa= psys->particles + p;