Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDalai Felinto <dfelinto@gmail.com>2017-05-03 13:10:51 +0300
committerDalai Felinto <dfelinto@gmail.com>2017-05-03 13:16:40 +0300
commit50a7d104d29a1d1a416126f582903fc8354f4e25 (patch)
treec66cb826d16cb90ad3ccd5b87ad240ba67dc82aa
parentb08fc83d1da8cf51bacaec10a82dbc6cdef9db43 (diff)
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).
-rw-r--r--source/blender/draw/modes/pose_mode.c7
1 files changed, 7 insertions, 0 deletions
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 */