forked from blender/blender
Allow "Instance on Points" node to instance on physics component #2
No reviewers
Labels
No Label
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: LukasTonne/blender#2
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "filedescriptor/blender:instances-on-physics-bodies"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This also changes the "Instance on Points" node to take the
rotation
field implicitly if nothing is connected to theRotation
socket.Some additions for the new implicit input needed, otherwise looks fine.
@ -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)
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