Changeset View
Changeset View
Standalone View
Standalone View
source/blender/nodes/geometry/nodes/node_geo_attribute_capture.cc
| Show All 20 Lines | |||||
| #include "node_geometry_util.hh" | #include "node_geometry_util.hh" | ||||
| namespace blender::nodes { | namespace blender::nodes { | ||||
| static void geo_node_attribute_capture_declare(NodeDeclarationBuilder &b) | static void geo_node_attribute_capture_declare(NodeDeclarationBuilder &b) | ||||
| { | { | ||||
| b.add_input<decl::Geometry>("Geometry"); | b.add_input<decl::Geometry>("Geometry"); | ||||
| b.add_input<decl::Vector>("Value"); | b.add_input<decl::Vector>("Value").is_field(); | ||||
| b.add_input<decl::Float>("Value", "Value_001"); | b.add_input<decl::Float>("Value", "Value_001").is_field(); | ||||
| b.add_input<decl::Color>("Value", "Value_002"); | b.add_input<decl::Color>("Value", "Value_002").is_field(); | ||||
| b.add_input<decl::Bool>("Value", "Value_003"); | b.add_input<decl::Bool>("Value", "Value_003").is_field(); | ||||
| b.add_input<decl::Int>("Value", "Value_004"); | b.add_input<decl::Int>("Value", "Value_004").is_field(); | ||||
| b.add_output<decl::Geometry>("Geometry"); | b.add_output<decl::Geometry>("Geometry"); | ||||
| b.add_output<decl::Vector>("Attribute"); | b.add_output<decl::Vector>("Attribute").is_field(); | ||||
| b.add_output<decl::Float>("Attribute", "Attribute_001"); | b.add_output<decl::Float>("Attribute", "Attribute_001").is_field(); | ||||
| b.add_output<decl::Color>("Attribute", "Attribute_002"); | b.add_output<decl::Color>("Attribute", "Attribute_002").is_field(); | ||||
| b.add_output<decl::Bool>("Attribute", "Attribute_003"); | b.add_output<decl::Bool>("Attribute", "Attribute_003").is_field(); | ||||
| b.add_output<decl::Int>("Attribute", "Attribute_004"); | b.add_output<decl::Int>("Attribute", "Attribute_004").is_field(); | ||||
| } | } | ||||
| static void geo_node_attribute_capture_layout(uiLayout *layout, | static void geo_node_attribute_capture_layout(uiLayout *layout, | ||||
| bContext *UNUSED(C), | bContext *UNUSED(C), | ||||
| PointerRNA *ptr) | PointerRNA *ptr) | ||||
| { | { | ||||
| uiLayoutSetPropSep(layout, true); | uiLayoutSetPropSep(layout, true); | ||||
| uiLayoutSetPropDecorate(layout, false); | uiLayoutSetPropDecorate(layout, false); | ||||
| ▲ Show 20 Lines • Show All 162 Lines • Show Last 20 Lines | |||||