[Bf-blender-cvs] [e2f4443c0e8] cycles_procedural_api: fix for wrong assert

Kévin Dietrich noreply at git.blender.org
Tue Sep 22 17:29:47 CEST 2020


Commit: e2f4443c0e8182e4a1a06088a57eef93d9fa8cf8
Author: Kévin Dietrich
Date:   Tue Sep 22 17:25:21 2020 +0200
Branches: cycles_procedural_api
https://developer.blender.org/rBe2f4443c0e8182e4a1a06088a57eef93d9fa8cf8

fix for wrong assert

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

M	intern/cycles/graph/node.cpp

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

diff --git a/intern/cycles/graph/node.cpp b/intern/cycles/graph/node.cpp
index 2e8fd90c3d8..d4a139264b2 100644
--- a/intern/cycles/graph/node.cpp
+++ b/intern/cycles/graph/node.cpp
@@ -161,7 +161,7 @@ void Node::set(const SocketType &input, array<float> &value)
 
 void Node::set(const SocketType &input, array<float2> &value)
 {
-  assert(input.type == SocketType::FLOAT_ARRAY);
+  assert(input.type == SocketType::POINT2_ARRAY);
   set_if_different(input, value);
 }



More information about the Bf-blender-cvs mailing list