Fix T85049: Geometry Nodes: How to handle instances with shear? (part2)
Update to changes in master. Reviewed By: JacquesLucke Differential Revision: http://developer.blender.org/D10211
This commit is contained in:
@@ -91,10 +91,12 @@ static void geo_node_object_info_exec(GeoNodeExecParams params)
|
|||||||
InstancesComponent &instances = geometry_set.get_component_for_write<InstancesComponent>();
|
InstancesComponent &instances = geometry_set.get_component_for_write<InstancesComponent>();
|
||||||
|
|
||||||
if (transform_space_relative) {
|
if (transform_space_relative) {
|
||||||
instances.add_instance(object, location, rotation, scale);
|
instances.add_instance(object, transform);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
instances.add_instance(object, {0, 0, 0});
|
float unit_transform[4][4];
|
||||||
|
unit_m4(unit_transform);
|
||||||
|
instances.add_instance(object, unit_transform);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user