Maniphest T96728

axis constrain in local mode only works the first time
Closed, ResolvedBUG

Assigned To
Germano Cavalcante (mano-wii)
Authored By
Giuseppe Bufalo (Peps)
Mar 23 2022, 2:10 PM
Tags
  • BF Blender
  • Modeling
Subscribers
Germano Cavalcante (mano-wii)
Giuseppe Bufalo (Peps)
Kjell Emanuelsson (Kjell)
Philipp Oeser (lichtwerk)
Pratik Borhade (PratikPB2123)

Description

System Information
Operating system: MacOS
Graphics card: M1

Blender Version
Broken: Blender 3.1
Worked: Blender 3.0

Short description of error
axis constrain when using the move and rotate tool in local mode works only the first time on the second time it switches to global mode

Exact steps for others to reproduce the error
move and rotate the default cube randomly - then switch transform orientation to local mode - then press G and press middle mouse button to constrain on an axis in local mode - then if you press middle mouse again to constrain to another axis the tool will switch to global mode.

Revisions and Commits

rB Blender

Event Timeline

Giuseppe Bufalo (Peps) created this task.Mar 23 2022, 2:10 PM
Philipp Oeser (lichtwerk) added subscribers: Germano Cavalcante (mano-wii), Philipp Oeser (lichtwerk).Mar 23 2022, 3:27 PM

Broken: Blender 3.1
Worked: Blender 3.0

Not sure I can confirm, this is behavior I am seeing (even in 2.93):

  • press G -> unconstrained translation
  • press and drag MMB (first time): constrained to local axis
  • press and drag MMB (second time): constrained to global axis

what you can do though:

  • press G -> unconstrained translation
  • press and drag MMB (first time): constrained to local axis
  • press without drag MMB to go back to unconstrained translation
  • press and drag MMB again: constrained to local axis

@Germano Cavalcante (mano-wii): is this the way it is supposed to work?

Germano Cavalcante (mano-wii) changed the task status from Needs Triage to Confirmed.EditedMar 23 2022, 3:48 PM
Germano Cavalcante (mano-wii) added a project: Modeling.
Germano Cavalcante (mano-wii) changed the subtype of this task from "Report" to "Bug".

I don't think the behavior when enabling the Automatic Constraint sequentially has been defined.
If it is to be the same as setting constraint (X, Y or Z), it has to be alternating between local and global.

But looking at the code, in fact there is a mess when activating the Automatic Constraint when we already have a constraint set.
So there is indeed a bug here.

Solving this mess, the behavior will be: "The orientation in the scene will be kept without alternation".
Better than current behavior.

Germano Cavalcante (mano-wii) closed this task as Resolved by committing rB6cc83f9079de: Fix T96728: 'Automatic Constraint' using the wrong orientation.Mar 23 2022, 4:21 PM
Germano Cavalcante (mano-wii) claimed this task.
Germano Cavalcante (mano-wii) added a commit: rB6cc83f9079de: Fix T96728: 'Automatic Constraint' using the wrong orientation.
Germano Cavalcante (mano-wii) added a commit: rB827e9ccb29dd: Revert "Fix T96728: 'Automatic Constraint' using the wrong orientation".Mar 23 2022, 4:27 PM
Germano Cavalcante (mano-wii) reopened this task as Confirmed.Mar 23 2022, 5:23 PM
Kjell Emanuelsson (Kjell) added a subscriber: Kjell Emanuelsson (Kjell).
Philipp Oeser (lichtwerk) added a subscriber: Pratik Borhade (PratikPB2123).
Germano Cavalcante (mano-wii) closed this task as Resolved by committing rB21e72496a629: Fix T96728: 'Automatic Constraint' using the wrong orientation.Mar 28 2022, 7:24 PM
Germano Cavalcante (mano-wii) added a commit: rB21e72496a629: Fix T96728: 'Automatic Constraint' using the wrong orientation.