[Bf-blender-cvs] [50a7d104d29] blender2.8: Draw Manager: Fix pose mode not working well.

Dalai Felinto noreply at git.blender.org
Wed May 3 12:17:25 CEST 2017


Commit: 50a7d104d29a1d1a416126f582903fc8354f4e25
Author: Dalai Felinto
Date:   Wed May 3 12:10:51 2017 +0200
Branches: blender2.8
https://developer.blender.org/rB50a7d104d29a1d1a416126f582903fc8354f4e25

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).

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

M	source/blender/draw/modes/pose_mode.c

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

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 */




More information about the Bf-blender-cvs mailing list