diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-11-18 20:27:47 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-11-18 20:27:47 +0400 |
commit | 2d4bfc5e60e50474e8fc66a44fde3b0bca93edaf (patch) | |
tree | 72e539a89d5c0ff169c8f5f7ce07583f929d4377 /source/blender/editors/space_view3d | |
parent | 67aff56c01337919b60c88c31416349c172c77b1 (diff) |
Fix T37495: Duplis weren't handling negative scaled objects properly.
Diffstat (limited to 'source/blender/editors/space_view3d')
-rw-r--r-- | source/blender/editors/space_view3d/view3d_draw.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/source/blender/editors/space_view3d/view3d_draw.c b/source/blender/editors/space_view3d/view3d_draw.c index 8b7d5756429..1bf137e5787 100644 --- a/source/blender/editors/space_view3d/view3d_draw.c +++ b/source/blender/editors/space_view3d/view3d_draw.c @@ -2037,8 +2037,11 @@ static void draw_dupli_objects_color(Scene *scene, ARegion *ar, View3D *v3d, Bas /* negative scale flag has to propagate */ transflag = tbase.object->transflag; - if (base->object->transflag & OB_NEG_SCALE) - tbase.object->transflag ^= OB_NEG_SCALE; + + if (is_negative_m4(dob->mat)) + tbase.object->transflag |= OB_NEG_SCALE; + else + tbase.object->transflag &= ~OB_NEG_SCALE; UI_ThemeColorBlend(color, TH_BACK, 0.5); |