Page MenuHome

Transform: support 'Affect Only Origins' for collection instances (WIP)
Changes PlannedPublic

Authored by Philipp Oeser (lichtwerk) on Feb 25 2020, 3:26 PM.

Details

Summary

This was already supported for "Set Origin" [by setting the
corresponding collections' instance_offset], now support this in
ED_object_data_xform_container_update_all() as well.

This means support for:

  • snap_selected_to_location
  • snap_sel_to_grid
  • clear_transform

This will also enable it for 'live' transforms using the gizmo or modal
G, however, there are still some quirks (double transforms?) with this,
so this part of the patch is considered WIP.

Resolves T74176.

Diff Detail

Repository
rB Blender
Branch
T74176 (branched from master)
Build Status
Buildable 6763
Build 6763: arc lint + arc unit

Event Timeline

Philipp Oeser (lichtwerk) retitled this revision from Transform: support 'Affect Only Origins' for collection instances to Transform: support 'Affect Only Origins' for collection instances (WIP).Feb 25 2020, 3:27 PM
Philipp Oeser (lichtwerk) planned changes to this revision.Feb 25 2020, 3:45 PM

Also need to only do this once if multiple instances of the same collection are selected...

LGFM but I am not familiar with this area.
Perhaps it is better to wait for the @Campbell Barton (campbellbarton) review.

Campbell Barton (campbellbarton) requested changes to this revision.Mar 30 2021, 12:00 PM

Useful feature, transform isn't working properly though.

Dupli's should define their own XFormObjectData struct, as we have for XFormObjectData_Mesh and others.

Then this can fit into the existing code easily.