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:
authorClément Foucault <foucault.clem@gmail.com>2018-05-21 14:21:26 +0300
committerClément Foucault <foucault.clem@gmail.com>2018-05-27 00:01:30 +0300
commit0c9974c8cd96c1c089cb3f00fb782df7b8294d6c (patch)
tree80e1ce902c79802c543a5a3c8dcb668ca76e1146 /source/blender/draw/intern/draw_cache.c
parent44935fdfa342307259c4f7163738d5e74374e70a (diff)
Workbench: Shadow: Use depth fail method for manifold objects.
Since this method have no failure case for manifold objects, use it.
Diffstat (limited to 'source/blender/draw/intern/draw_cache.c')
-rw-r--r--source/blender/draw/intern/draw_cache.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/draw/intern/draw_cache.c b/source/blender/draw/intern/draw_cache.c
index b34955aef6d..7161d8bf0cf 100644
--- a/source/blender/draw/intern/draw_cache.c
+++ b/source/blender/draw/intern/draw_cache.c
@@ -503,11 +503,11 @@ Gwn_Batch *DRW_cache_object_wire_outline_get(Object *ob)
}
/* Returns a buffer texture. */
-Gwn_Batch *DRW_cache_object_edge_detection_get(Object *ob)
+Gwn_Batch *DRW_cache_object_edge_detection_get(Object *ob, bool *r_is_manifold)
{
switch (ob->type) {
case OB_MESH:
- return DRW_cache_mesh_edge_detection_get(ob);
+ return DRW_cache_mesh_edge_detection_get(ob, r_is_manifold);
/* TODO, should match 'DRW_cache_object_surface_get' */
default:
@@ -2584,12 +2584,12 @@ Gwn_Batch *DRW_cache_mesh_wire_outline_get(Object *ob)
return DRW_mesh_batch_cache_get_fancy_edges(me);
}
-Gwn_Batch *DRW_cache_mesh_edge_detection_get(Object *ob)
+Gwn_Batch *DRW_cache_mesh_edge_detection_get(Object *ob, bool *r_is_manifold)
{
BLI_assert(ob->type == OB_MESH);
Mesh *me = ob->data;
- return DRW_mesh_batch_cache_get_edge_detection(me);
+ return DRW_mesh_batch_cache_get_edge_detection(me, r_is_manifold);
}
Gwn_Batch *DRW_cache_mesh_surface_get(Object *ob)