Fix T81480: Input 0 to scale in redo panel resets to 1
Checking if `t->values[i] != 0.0f;` is not the best solution for all transform cases.
This commit is contained in:
parent
fec5c12ac8
commit
833066088e
Notes:
blender-bot
2023-02-14 10:32:59 +01:00
Referenced by issue #81480, Input 0 to scale in redo panel resets to 1 Referenced by issue #80169, Node wrangler highlighting artifacts
|
@ -479,9 +479,7 @@ void initTransInfo(bContext *C, TransInfo *t, wmOperator *op, const wmEvent *eve
|
|||
if (t_values_set_is_array) {
|
||||
/* For operators whose `t->values` is array, set constraint so that the
|
||||
* orientation is more intuitive in the Redo Panel. */
|
||||
for (int i = 3; i--;) {
|
||||
constraint_axis[i] |= t->values[i] != 0.0f;
|
||||
}
|
||||
constraint_axis[0] = constraint_axis[1] = constraint_axis[2] = true;
|
||||
}
|
||||
else if (use_orient_axis) {
|
||||
constraint_axis[t->orient_axis] = true;
|
||||
|
|
Loading…
Reference in New Issue