diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2017-02-15 20:54:31 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2017-02-15 20:54:31 +0300 |
commit | 883ef2c9cef5b25fb2da9233181e07cd2555c444 (patch) | |
tree | 67f3a2f5f8c575b70e03a0e0ce26549aeae0f29d /source/blender/draw | |
parent | 69b96e27ee9d0282b295081462e9ac0a2f75a30e (diff) |
Clay Engine: New collection settings (not working yet)
Diffstat (limited to 'source/blender/draw')
-rw-r--r-- | source/blender/draw/engines/clay/clay.c | 5 | ||||
-rw-r--r-- | source/blender/draw/intern/draw_mode_pass.c | 3 |
2 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/draw/engines/clay/clay.c b/source/blender/draw/engines/clay/clay.c index 8c0dce78b80..699a393c4fe 100644 --- a/source/blender/draw/engines/clay/clay.c +++ b/source/blender/draw/engines/clay/clay.c @@ -558,7 +558,7 @@ static void override_setting(CollectionEngineSettings *ces, const char *name, vo CollectionEnginePropertyInt *prop = (CollectionEnginePropertyInt *)cep; *((int *)ret) = prop->value; } - else { + else if (cep->type == COLLECTION_PROP_TYPE_FLOAT) { CollectionEnginePropertyFloat *prop = (CollectionEnginePropertyFloat *)cep; *((float *)ret) = prop->value; } @@ -636,6 +636,9 @@ static void CLAY_create_cache(CLAY_PassList *passes, CLAY_StorageList *stl, cons continue; } + // CollectionEngineSettings *ces_mode_ob = BKE_object_collection_engine_get(ob, COLLECTION_MODE_OBJECT, ""); + // CollectionEngineSettings *ces_mode_ed = BKE_object_collection_engine_get(ob, COLLECTION_MODE_EDIT, ""); + struct Batch *geom; bool do_outlines; diff --git a/source/blender/draw/intern/draw_mode_pass.c b/source/blender/draw/intern/draw_mode_pass.c index 44a837e314f..8a632980de9 100644 --- a/source/blender/draw/intern/draw_mode_pass.c +++ b/source/blender/draw/intern/draw_mode_pass.c @@ -194,15 +194,12 @@ void DRW_pass_setup_common(DRWPass **wire_overlay, DRWPass **wire_outline, DRWPa if (non_meshes) { /* Non Meshes Pass (Camera, empties, lamps ...) */ - DRWShadingGroup *grp; struct Batch *geom; DRWState state = DRW_STATE_WRITE_COLOR | DRW_STATE_WRITE_DEPTH | DRW_STATE_DEPTH_LESS | DRW_STATE_BLEND; state |= DRW_STATE_WIRE; *non_meshes = DRW_pass_create("Non Meshes Pass", state); - GPUShader *sh = GPU_shader_get_builtin_shader(GPU_SHADER_3D_UNIFORM_COLOR); - /* Empties */ geom = DRW_cache_plain_axes_get(); plain_axes = shgroup_instance(*non_meshes, geom); |