Fix T37495: Duplis weren't handling negative scaled objects properly.

This commit is contained in:
Campbell Barton
2013-11-19 03:27:47 +11:00
parent 67aff56c01
commit 2d4bfc5e60

View File

@@ -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);