Fix T76933: 'Align to Transform Orientation' crashes for Custom orientations
This commit is contained in:
parent
2fe615ab9f
commit
de7d32bb7d
Notes:
blender-bot
2023-02-14 11:24:03 +01:00
Referenced by issue #76974, GPencil – Shear Tool Misses Orientation/Can't Shear Along X in Default Setup Referenced by issue #76946, Crash with Align to Transform Orientation when using custom created transform orientation Referenced by issue #76955, Transform > Align To Transform Orientation > Face - CRASH - Referenced by issue #76933, "Align to transform Orientation" crashes blender for Custom transform orientations
|
@ -1679,7 +1679,7 @@ void initTransInfo(bContext *C, TransInfo *t, wmOperator *op, const wmEvent *eve
|
|||
}
|
||||
else {
|
||||
custom_orientation = BKE_scene_transform_orientation_find(
|
||||
t->scene, orient_type_default - V3D_ORIENT_CUSTOM);
|
||||
t->scene, orient_type_set - V3D_ORIENT_CUSTOM);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue