[Bf-blender-cvs] [8447ab606e5] blender-v3.4-release: Fix: incorrect field dependencies in the raycast node

Iliya Katueshenock noreply at git.blender.org
Mon Nov 14 13:19:32 CET 2022


Commit: 8447ab606e512ebc7eada8677faafffad06c6d15
Author: Iliya Katueshenock
Date:   Mon Nov 14 13:18:17 2022 +0100
Branches: blender-v3.4-release
https://developer.blender.org/rB8447ab606e512ebc7eada8677faafffad06c6d15

Fix: incorrect field dependencies in the raycast node

This does not change the result when evaluating the node.

Differential Revision: https://developer.blender.org/D16325

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

M	source/blender/nodes/geometry/nodes/node_geo_raycast.cc

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

diff --git a/source/blender/nodes/geometry/nodes/node_geo_raycast.cc b/source/blender/nodes/geometry/nodes/node_geo_raycast.cc
index d248bc539b1..ee94973f7d1 100644
--- a/source/blender/nodes/geometry/nodes/node_geo_raycast.cc
+++ b/source/blender/nodes/geometry/nodes/node_geo_raycast.cc
@@ -41,16 +41,16 @@ static void node_declare(NodeDeclarationBuilder &b)
       .subtype(PROP_DISTANCE)
       .supports_field();
 
-  b.add_output<decl::Bool>(N_("Is Hit")).dependent_field();
-  b.add_output<decl::Vector>(N_("Hit Position")).dependent_field();
-  b.add_output<decl::Vector>(N_("Hit Normal")).dependent_field();
-  b.add_output<decl::Float>(N_("Hit Distance")).dependent_field();
-
-  b.add_output<decl::Vector>(N_("Attribute")).dependent_field({1, 2, 3, 4, 5, 6});
-  b.add_output<decl::Float>(N_("Attribute"), "Attribute_001").dependent_field({1, 2, 3, 4, 5, 6});
-  b.add_output<decl::Color>(N_("Attribute"), "Attribute_002").dependent_field({1, 2, 3, 4, 5, 6});
-  b.add_output<decl::Bool>(N_("Attribute"), "Attribute_003").dependent_field({1, 2, 3, 4, 5, 6});
-  b.add_output<decl::Int>(N_("Attribute"), "Attribute_004").dependent_field({1, 2, 3, 4, 5, 6});
+  b.add_output<decl::Bool>(N_("Is Hit")).dependent_field({6, 7, 8});
+  b.add_output<decl::Vector>(N_("Hit Position")).dependent_field({6, 7, 8});
+  b.add_output<decl::Vector>(N_("Hit Normal")).dependent_field({6, 7, 8});
+  b.add_output<decl::Float>(N_("Hit Distance")).dependent_field({6, 7, 8});
+
+  b.add_output<decl::Vector>(N_("Attribute")).dependent_field({6, 7, 8});
+  b.add_output<decl::Float>(N_("Attribute"), "Attribute_001").dependent_field({6, 7, 8});
+  b.add_output<decl::Color>(N_("Attribute"), "Attribute_002").dependent_field({6, 7, 8});
+  b.add_output<decl::Bool>(N_("Attribute"), "Attribute_003").dependent_field({6, 7, 8});
+  b.add_output<decl::Int>(N_("Attribute"), "Attribute_004").dependent_field({6, 7, 8});
 }
 
 static void node_layout(uiLayout *layout, bContext * /*C*/, PointerRNA *ptr)



More information about the Bf-blender-cvs mailing list