[Bf-blender-cvs] [905f2d84af4] master: DRW: Use culling when selecting

Clément Foucault noreply at git.blender.org
Thu Apr 25 17:27:42 CEST 2019


Commit: 905f2d84af4d200dc23454edc286965808334eb6
Author: Clément Foucault
Date:   Thu Apr 25 15:55:27 2019 +0200
Branches: master
https://developer.blender.org/rB905f2d84af4d200dc23454edc286965808334eb6

DRW: Use culling when selecting

The culing still seems to be off but at least it is enabled now.

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

M	source/blender/draw/engines/basic/basic_engine.c

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

diff --git a/source/blender/draw/engines/basic/basic_engine.c b/source/blender/draw/engines/basic/basic_engine.c
index 16788c10680..05ee485e053 100644
--- a/source/blender/draw/engines/basic/basic_engine.c
+++ b/source/blender/draw/engines/basic/basic_engine.c
@@ -169,8 +169,8 @@ static void basic_cache_populate(void *vedata, Object *ob)
     const bool do_cull = (draw_ctx->v3d &&
                           (draw_ctx->v3d->shading.flag & V3D_SHADING_BACKFACE_CULLING));
     /* Depth Prepass */
-    DRW_shgroup_call_add(
-        (do_cull) ? stl->g_data->depth_shgrp_cull : stl->g_data->depth_shgrp, geom, ob->obmat);
+    DRW_shgroup_call_object_add(
+        (do_cull) ? stl->g_data->depth_shgrp_cull : stl->g_data->depth_shgrp, geom, ob);
   }
 }



More information about the Bf-blender-cvs mailing list