[Bf-blender-cvs] [61ff6676cf5] temp-long-link-dimming: dim a bit more
Jacques Lucke
noreply at git.blender.org
Wed Jul 7 15:31:07 CEST 2021
Commit: 61ff6676cf505a4d889b19d03632552b756d2e72
Author: Jacques Lucke
Date: Wed Jul 7 15:23:54 2021 +0200
Branches: temp-long-link-dimming
https://developer.blender.org/rB61ff6676cf505a4d889b19d03632552b756d2e72
dim a bit more
===================================================================
M source/blender/editors/space_node/node_edit.cc
===================================================================
diff --git a/source/blender/editors/space_node/node_edit.cc b/source/blender/editors/space_node/node_edit.cc
index 9ba445310be..0ddb3161357 100644
--- a/source/blender/editors/space_node/node_edit.cc
+++ b/source/blender/editors/space_node/node_edit.cc
@@ -1242,7 +1242,7 @@ float node_link_dim_factor(const View2D *v2d, const bNodeLink *link)
return 1.0f;
}
const float viewport_width = BLI_rctf_size_x(&v2d->cur);
- return clamp_f(1.0f - min_endpoint_distance / viewport_width * 10.0f, 0.1f, 1.0f);
+ return clamp_f(1.0f - min_endpoint_distance / viewport_width * 10.0f, 0.05f, 1.0f);
}
bool node_link_is_hidden_or_dimmed(const View2D *v2d, const bNodeLink *link)
More information about the Bf-blender-cvs
mailing list