Fix T81429: move tool's axis constraints not drawn completely when using local orientation

In fact, the drawing was that of the local contraint axis (which is
summarized so as not to fill the screen with too much information).

Use the local contraint axis only when more than one object is selected.
This commit is contained in:
Germano Cavalcante 2021-01-20 12:35:38 -03:00
parent 736b0d6894
commit e12eb89f22
Notes: blender-bot 2023-10-04 09:42:55 +02:00
Referenced by issue #85471, Rotation pivot uses mesh object instead of pose bone while in weight paint mode
Referenced by issue #81429, move tool's axis constraints not drawn completely when using local orientation
1 changed files with 1 additions and 1 deletions

View File

@ -675,7 +675,7 @@ void setAxisMatrixConstraint(TransInfo *t, int mode, const char text[])
void setLocalConstraint(TransInfo *t, int mode, const char text[])
{
if (t->flag & T_EDIT) {
if ((t->flag & T_EDIT) || t->data_len_all == 1) {
/* Although in edit-mode each object has its local space, use the
* orientation of the active object. */
setConstraint(t, mode, text);