Blender Git Loki

Git Commits -> Revision 4475c49

Revision 4475c49 by Campbell Barton (master)
October 16, 2020, 11:16 (GMT)
Fix T81591: Align view to active is not working in sculpt mode

Remove sculpt/paint checks in getTransformOrientation_ex
This code goes back a long time (early 2.5x). I couldn't find any
reason why sculpt/paint checks were being made.

This makes the following changes:

- When in object mode, the object must be selected.
Since this function typically operates on the selected items.

- When in paint/particle modes, the objects matrix is always
used regardless of selection, since object selection can't be
controlled in these modes.

- When there is no active object, the first selected object is no
longer used as it's quite an arbitrary decision & not something
done elsewhere with objects in Blender.

Commit Details:

Full Hash: 4475c49e2f901ba034b086ca856848ee2071af34
Parent Commit: 3b84dce
Lines Changed: +19, -20

1 Modified Path:

/source/blender/editors/transform/transform_orientations.c (+19, -20) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021