From 3dcb3cc4cdbf2147365c51941d8c3863c9c8890b Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Mon, 14 Apr 2008 10:09:44 +0000 Subject: Bugfix: modifier buttons in the particle panel were locked unnecessarily with edited hair. --- source/blender/src/buttons_object.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/source/blender/src/buttons_object.c b/source/blender/src/buttons_object.c index 652ad7cac05..b7f92919cd7 100644 --- a/source/blender/src/buttons_object.c +++ b/source/blender/src/buttons_object.c @@ -4909,6 +4909,14 @@ static void object_panel_particle_system(Object *ob) } + md= (ModifierData*)psys_get_modifier(ob, psys); + if(md) { + uiBlockBeginAlign(block); + uiDefIconButBitI(block, TOG, eModifierMode_Render, B_PART_RECALC, ICON_SCENE, butx+butw-40, buty, 20, 20,&md->mode, 0, 0, 1, 0, "Enable particle system during rendering"); + but= uiDefIconButBitI(block, TOG, eModifierMode_Realtime, B_PART_RECALC, VICON_VIEW3D, butx+butw-20, buty, 20, 20,&md->mode, 0, 0, 1, 0, "Enable particle system during interactive display"); + uiBlockEndAlign(block); + } + if(psys->flag & PSYS_EDITED) { lockmessage= "Hair is edited!"; lock= 1; @@ -4923,14 +4931,6 @@ static void object_panel_particle_system(Object *ob) uiDefButS(block, MENU, B_PARTTYPE, "Type%t|Hair%x2|Reactor%x1|Emitter%x0", butx,buty,butw-45,buth, &part->type, 14.0, 0.0, 0, 0, "Type of particle system"); - md= (ModifierData*)psys_get_modifier(ob, psys); - if(md) { - uiBlockBeginAlign(block); - uiDefIconButBitI(block, TOG, eModifierMode_Render, B_PART_RECALC, ICON_SCENE, butx+butw-40, buty, 20, 20,&md->mode, 0, 0, 1, 0, "Enable particle system during rendering"); - but= uiDefIconButBitI(block, TOG, eModifierMode_Realtime, B_PART_RECALC, VICON_VIEW3D, butx+butw-20, buty, 20, 20,&md->mode, 0, 0, 1, 0, "Enable particle system during interactive display"); - uiBlockEndAlign(block); - } - buty-=5; uiDefBut(block, LABEL, 0, "Basic:", butx,(buty-=buth),butw,buth, NULL, 0.0, 0, 0, 0, ""); uiBlockBeginAlign(block); -- cgit v1.2.3