forked from blender/blender
Allow "Instance on Points" node to instance on physics component #2
@ -602,6 +602,7 @@ void normal(const bNode &node, void *r_value);
|
||||
void index(const bNode &node, void *r_value);
|
||||
void id_or_index(const bNode &node, void *r_value);
|
||||
void instance_transform(const bNode &node, void *r_value);
|
||||
void rotation(const bNode &node, void *r_value);
|
||||
} // namespace implicit_field_inputs
|
||||
|
||||
void build_node_declaration(const bke::bNodeType &typeinfo,
|
||||
|
@ -6,6 +6,7 @@
|
||||
#include "NOD_socket_declarations.hh"
|
||||
#include "NOD_socket_declarations_geometry.hh"
|
||||
|
||||
#include "BLI_math_quaternion_types.hh"
|
||||
#include "BLI_stack.hh"
|
||||
#include "BLI_utildefines.h"
|
||||
|
||||
@ -870,6 +871,12 @@ void instance_transform(const bNode & /*node*/, void *r_value)
|
||||
bke::SocketValueVariant(bke::AttributeFieldInput::Create<float4x4>("instance_transform"));
|
||||
}
|
||||
|
||||
void rotation(const bNode & /*node*/, void *r_value)
|
||||
filedescriptor marked this conversation as resolved
|
||||
{
|
||||
new (r_value)
|
||||
bke::SocketValueVariant(bke::AttributeFieldInput::Create<math::Quaternion>("rotation"));
|
||||
}
|
||||
|
||||
} // namespace implicit_field_inputs
|
||||
|
||||
} // namespace blender::nodes
|
||||
|
Loading…
Reference in New Issue
Block a user
If you're adding a new implicit field input it should probably also be supported in node groups.
GeometryNodeDefaultInputType
enumrna_NodeTreeInterfaceSocket_default_input_itemf
set_default_input_field
in `node_common.cc