From 50a7d104d29a1d1a416126f582903fc8354f4e25 Mon Sep 17 00:00:00 2001 From: Dalai Felinto Date: Wed, 3 May 2017 12:10:51 +0200 Subject: Draw Manager: Fix pose mode not working well. In the future this will allow us to implement things like face manipulators. For now however, this is getting on the way of using pose mode (mesh objects are drawn green). NOTE: pose engine should also be the one taking care of pose bones (and for that matter, X-Ray armature option should/could be a property of the Pose engine even). --- source/blender/draw/modes/pose_mode.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/source/blender/draw/modes/pose_mode.c b/source/blender/draw/modes/pose_mode.c index 1eb9fcb6a11..176e44199b3 100644 --- a/source/blender/draw/modes/pose_mode.c +++ b/source/blender/draw/modes/pose_mode.c @@ -170,6 +170,10 @@ static void POSE_cache_populate(void *vedata, Object *ob) UNUSED_VARS(psl, stl); + /* In the future this will allow us to implement face manipulators, + * and similar functionalities. For now however, this is getting + * on the way of using pose mode, so disabling it. */ +#if 0 if (ob->type == OB_MESH) { /* Get geometry cache */ struct Batch *geom = DRW_cache_mesh_surface_get(ob); @@ -177,6 +181,9 @@ static void POSE_cache_populate(void *vedata, Object *ob) /* Add geom to a shading group */ DRW_shgroup_call_add(stl->g_data->group, geom, ob->obmat); } +#else + UNUSED_VARS(ob); +#endif } /* Optional: Post-cache_populate callback */ -- cgit v1.2.3