[Bf-blender-cvs] [f65dcfc] master: Fix T39989: Dupli group's objects in Particles are not displayed properly in 3D View

Sergey Sharybin noreply at git.blender.org
Fri May 2 11:28:23 CEST 2014


Commit: f65dcfc6d9ac241ab15c383558d14390127249b1
Author: Sergey Sharybin
Date:   Fri May 2 11:26:59 2014 +0200
https://developer.blender.org/rBf65dcfc6d9ac241ab15c383558d14390127249b1

Fix T39989: Dupli group's objects in Particles are not displayed properly in 3D View

It was broken in 7544961 and the proper way is to make sure proper obmat is being
copied to object before the draw.

Doing obmat copy in advance doesn't really work because object might appear multiple
times in the duplilist.

===================================================================

M	source/blender/editors/space_view3d/view3d_draw.c

===================================================================

diff --git a/source/blender/editors/space_view3d/view3d_draw.c b/source/blender/editors/space_view3d/view3d_draw.c
index bcde630..89bdf4d 100644
--- a/source/blender/editors/space_view3d/view3d_draw.c
+++ b/source/blender/editors/space_view3d/view3d_draw.c
@@ -2076,6 +2076,7 @@ static void draw_dupli_objects_color(Scene *scene, ARegion *ar, View3D *v3d, Bas
 			}
 		}
 		else {
+			copy_m4_m4(dob->ob->obmat, dob->mat);
 			draw_object(scene, ar, v3d, &tbase, DRAW_CONSTCOLOR);
 		}




More information about the Bf-blender-cvs mailing list