[Bf-blender-cvs] [ad1b08a] hair_system: Debugging elements for hair are stored in world space and must be drawn accordingly.
Lukas Tönne
noreply at git.blender.org
Fri Aug 22 12:17:51 CEST 2014
Commit: ad1b08a1cf73cde6412804021a14ae99ff6868f3
Author: Lukas Tönne
Date: Fri Aug 22 11:56:49 2014 +0200
Branches: hair_system
https://developer.blender.org/rBad1b08a1cf73cde6412804021a14ae99ff6868f3
Debugging elements for hair are stored in world space and must be drawn
accordingly.
===================================================================
M source/blender/editors/space_view3d/drawhair.c
===================================================================
diff --git a/source/blender/editors/space_view3d/drawhair.c b/source/blender/editors/space_view3d/drawhair.c
index 3071df8..1bec6fa 100644
--- a/source/blender/editors/space_view3d/drawhair.c
+++ b/source/blender/editors/space_view3d/drawhair.c
@@ -855,6 +855,9 @@ void draw_hair_debug_info(Scene *UNUSED(scene), View3D *UNUSED(v3d), ARegion *ar
invert_m4_m4(imat, rv3d->viewmatob);
glLoadMatrixf(rv3d->viewmat);
+
+ /* object space drawing */
+ glPushMatrix();
glMultMatrixf(ob->obmat);
if (debug_flag & MOD_HAIR_DEBUG_SIZE)
@@ -866,6 +869,7 @@ void draw_hair_debug_info(Scene *UNUSED(scene), View3D *UNUSED(v3d), ARegion *ar
for (hair = hsys->curves, i = 0; i < hsys->totcurves; ++hair, ++i)
draw_hair_curve_debug_smoothing(hsys, hair);
}
+ glPopMatrix();
if (hmd->debug_data) {
// if (debug_flag & MOD_HAIR_DEBUG_FRAMES)
More information about the Bf-blender-cvs
mailing list