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>2019-05-26 21:36:24 +0300
committerClément Foucault <foucault.clem@gmail.com>2019-05-27 13:58:14 +0300
commit577d3498b4d4d3b747e184550378bc7d77e72b60 (patch)
treed3949589a95436afc9bf99d8d1d953dd3e6cdcad /source/blender/draw/modes/edit_curve_mode.c
parentba75e93c8882df10d2027aa1ffa0347337b54160 (diff)
Cleanup: DRW: Move WorldClipPlanes to builtin uniform
Diffstat (limited to 'source/blender/draw/modes/edit_curve_mode.c')
-rw-r--r--source/blender/draw/modes/edit_curve_mode.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/draw/modes/edit_curve_mode.c b/source/blender/draw/modes/edit_curve_mode.c
index ff9f433ad14..d1ea8af86f2 100644
--- a/source/blender/draw/modes/edit_curve_mode.c
+++ b/source/blender/draw/modes/edit_curve_mode.c
@@ -168,7 +168,7 @@ static void EDIT_CURVE_wire_shgrp_create(EDIT_CURVE_Shaders *sh_data,
DRWShadingGroup *grp = DRW_shgroup_create(sh_data->wire_sh, pass);
DRW_shgroup_uniform_vec4(grp, "color", G_draw.block.colorWireEdit, 1);
if (rv3d->rflag & RV3D_CLIPPING) {
- DRW_shgroup_world_clip_planes_from_rv3d(grp, rv3d);
+ DRW_shgroup_state_enable(grp, DRW_STATE_CLIP_PLANES);
}
*wire_shgrp = grp;
@@ -176,7 +176,7 @@ static void EDIT_CURVE_wire_shgrp_create(EDIT_CURVE_Shaders *sh_data,
DRW_shgroup_uniform_vec4(grp, "color", G_draw.block.colorWireEdit, 1);
DRW_shgroup_uniform_float_copy(grp, "normalSize", v3d->overlay.normals_length);
if (rv3d->rflag & RV3D_CLIPPING) {
- DRW_shgroup_world_clip_planes_from_rv3d(grp, rv3d);
+ DRW_shgroup_state_enable(grp, DRW_STATE_CLIP_PLANES);
}
*wire_normals_shgrp = grp;
}
@@ -229,7 +229,7 @@ static void EDIT_CURVE_cache_init(void *vedata)
DRW_shgroup_uniform_vec2(grp, "viewportSize", DRW_viewport_size_get(), 1);
DRW_shgroup_uniform_bool(grp, "showCurveHandles", &stl->g_data->show_handles, 1);
if (rv3d->rflag & RV3D_CLIPPING) {
- DRW_shgroup_world_clip_planes_from_rv3d(grp, rv3d);
+ DRW_shgroup_state_enable(grp, DRW_STATE_CLIP_PLANES);
}
stl->g_data->overlay_edge_shgrp = grp;
@@ -238,7 +238,7 @@ static void EDIT_CURVE_cache_init(void *vedata)
grp = DRW_shgroup_create(sh_data->overlay_vert_sh, psl->overlay_vert_pass);
DRW_shgroup_uniform_block(grp, "globalsBlock", G_draw.block_ubo);
if (rv3d->rflag & RV3D_CLIPPING) {
- DRW_shgroup_world_clip_planes_from_rv3d(grp, rv3d);
+ DRW_shgroup_state_enable(grp, DRW_STATE_CLIP_PLANES);
}
stl->g_data->overlay_vert_shgrp = grp;
}