From dddc04f0c46d6cc8943f1170cbc9d1d68eefe125 Mon Sep 17 00:00:00 2001 From: Ton Roosendaal Date: Sat, 11 Nov 2006 18:17:53 +0000 Subject: [PATCH] Bugfix #5208 Dupli-group, with armature in PoseMode, made selections not work. Weird that this wasn't reported before :) --- source/blender/src/drawarmature.c | 34 ++++++++++++++++--------------- 1 file changed, 18 insertions(+), 16 deletions(-) diff --git a/source/blender/src/drawarmature.c b/source/blender/src/drawarmature.c index 4f554530675..cb786c651d6 100644 --- a/source/blender/src/drawarmature.c +++ b/source/blender/src/drawarmature.c @@ -1898,23 +1898,25 @@ int draw_armature(Base *base, int dt) /* Draw Pose */ if(ob->pose && ob->pose->chanbase.first) { /* drawing posemode selection indices or colors only in these cases */ - if(G.f & G_PICKSEL) { - if(ob->flag & OB_POSEMODE) arm->flag |= ARM_POSEMODE; - } - else if(ob->flag & OB_POSEMODE) { - - if(arm->ghostep) { - draw_ghost_poses(base); + if(!(base->flag & OB_FROMDUPLI)) { + if(G.f & G_PICKSEL) { + if(ob->flag & OB_POSEMODE) + arm->flag |= ARM_POSEMODE; } - - if(ob==OBACT) - arm->flag |= ARM_POSEMODE; - else if(G.f & G_WEIGHTPAINT) - arm->flag |= ARM_POSEMODE; - - draw_pose_paths(ob); - } - + else if(ob->flag & OB_POSEMODE) { + + if(arm->ghostep) { + draw_ghost_poses(base); + } + + if(ob==OBACT) + arm->flag |= ARM_POSEMODE; + else if(G.f & G_WEIGHTPAINT) + arm->flag |= ARM_POSEMODE; + + draw_pose_paths(ob); + } + } draw_pose_channels(base, dt); arm->flag &= ~ARM_POSEMODE;