Commit: 647896bc60ea2cf1e8969f174b0c40f908002405
Author: Campbell Barton
Date:   Wed Dec 15 23:43:31 2021 +1100
Branches: temp-gpu-image-engine
https://developer.blender.org/rB647896bc60ea2cf1e8969f174b0c40f908002405

Cleanup: unused variable warning

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

M       source/blender/nodes/shader/nodes/node_shader_map_range.cc

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

diff --git a/source/blender/nodes/shader/nodes/node_shader_map_range.cc 
b/source/blender/nodes/shader/nodes/node_shader_map_range.cc
index 865263bcb31..615ae276eb4 100644
--- a/source/blender/nodes/shader/nodes/node_shader_map_range.cc
+++ b/source/blender/nodes/shader/nodes/node_shader_map_range.cc
@@ -56,7 +56,7 @@ static void node_shader_update_map_range(bNodeTree *ntree, 
bNode *node)
 {
   const NodeMapRange &storage = node_storage(*node);
   const CustomDataType data_type = 
static_cast<CustomDataType>(storage.data_type);
-  const int type = (storage.data_type == CD_PROP_FLOAT) ? SOCK_FLOAT : 
SOCK_VECTOR;
+  const int type = (data_type == CD_PROP_FLOAT) ? SOCK_FLOAT : SOCK_VECTOR;
 
   LISTBASE_FOREACH (bNodeSocket *, socket, &node->inputs) {
     nodeSetSocketAvailability(ntree, socket, socket->type == type);

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
List details, subscription details or unsubscribe:
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to