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:
Sebastian Parborg
2021-01-26 18:25:16 +01:00
parent 82523840cd
commit 6157c45445

View File

@@ -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);
} }
} }
} }