Fix T76933: 'Align to Transform Orientation' crashes for Custom orientations

This commit is contained in:
2020-05-21 10:02:11 -03:00
parent 2fe615ab9f
commit de7d32bb7d

View File

@@ -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);
}
}