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:
authorCian Jinks <cjinks99@gmail.com>2021-09-28 23:57:42 +0300
committerCian Jinks <cjinks99@gmail.com>2021-09-28 23:57:42 +0300
commitefe3a13b55c0295b68697c19e4379b5bbe8684ca (patch)
treeb1da0dac77ca30fa9b599dc4b3cdbfcf73e5b173 /source/blender/editors/mesh/editmesh_knife.c
parent9f0a3a99ab664bc0f6378c5a4d6ac9e16f1f59f7 (diff)
Cleanup: Removed redundant if macro
Diffstat (limited to 'source/blender/editors/mesh/editmesh_knife.c')
-rw-r--r--source/blender/editors/mesh/editmesh_knife.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/source/blender/editors/mesh/editmesh_knife.c b/source/blender/editors/mesh/editmesh_knife.c
index eaecda28287..4fa8df0b672 100644
--- a/source/blender/editors/mesh/editmesh_knife.c
+++ b/source/blender/editors/mesh/editmesh_knife.c
@@ -369,7 +369,6 @@ enum {
/** \name Drawing
* \{ */
-#if 1
static void knifetool_raycast_planes(const KnifeTool_OpData *kcd, float r_v1[3], float r_v2[3])
{
float planes[4][4];
@@ -383,10 +382,6 @@ static void knifetool_raycast_planes(const KnifeTool_OpData *kcd, float r_v1[3],
float lambda_best[2] = {-FLT_MAX, FLT_MAX};
int i;
- /* We (sometimes) need the lines to be at the same depth before projecting. */
-# if 0
- sub_v3_v3v3(ray_dir, kcd->curr.cage, kcd->prev.cage);
-# else
{
float curr_cage_adjust[3];
float co_depth[3];
@@ -396,7 +391,6 @@ static void knifetool_raycast_planes(const KnifeTool_OpData *kcd, float r_v1[3],
sub_v3_v3v3(ray_dir, curr_cage_adjust, kcd->prev.cage);
}
-# endif
for (i = 0; i < 4; i++) {
float ray_hit[3];
@@ -483,7 +477,6 @@ static void knifetool_draw_orientation_locking(const KnifeTool_OpData *kcd)
immUnbindProgram();
}
}
-#endif
static void knifetool_draw_visible_distances(const KnifeTool_OpData *kcd)
{