Bugfix: hair effector settings only showed when the hair was editable,
authorBrecht Van Lommel <brechtvanlommel@pandora.be>
Mon, 18 Feb 2008 10:58:03 +0000 (10:58 +0000)
committerBrecht Van Lommel <brechtvanlommel@pandora.be>
Mon, 18 Feb 2008 10:58:03 +0000 (10:58 +0000)
but they work also if the hair is not editable.

source/blender/src/buttons_object.c

index d7cef42171ed81a5290b2ec27e4f5e2c5cdce62f..5952dea3a2b244883ba68c16eebceaecbecc4598 100644 (file)
@@ -4189,7 +4189,7 @@ static void object_panel_particle_extra(Object *ob)
        buty=butx=160;
 
        uiDefButI(block, NUM, B_PART_DISTR, "Seed:",                            butx,(buty-=buth),butw,buth, &psys->seed, 0.0, 255.0, 1, 0, "Set an offset in the random table");
-       if(part->type == PART_HAIR && psys->flag & PSYS_EDITED) {
+       if(part->type == PART_HAIR) {
                uiBlockBeginAlign(block);
                uiDefButF(block, NUM, B_PART_RECALC, "Stiff:",  butx,(buty-=buth),(butw*3)/5,buth, &part->eff_hair, 0.0, 1.0, 0, 0, "Hair stiffness for effectors");
                uiDefButBitI(block, TOG, PART_CHILD_EFFECT, B_PART_RECALC, "Children", butx+(butw*3)/5,buty,(butw*2)/5,buth, &part->flag, 0, 0, 0, 0, "Apply effectors to children");