[Bf-blender-cvs] [de7d32bb7dc] master: Fix T76933: 'Align to Transform Orientation' crashes for Custom orientations
Germano Cavalcante
noreply at git.blender.org
Thu May 21 16:01:15 CEST 2020
Commit: de7d32bb7dcc7364a07fe23ab0205c70d1db06e4
Author: Germano Cavalcante
Date: Thu May 21 10:02:11 2020 -0300
Branches: master
https://developer.blender.org/rBde7d32bb7dcc7364a07fe23ab0205c70d1db06e4
Fix T76933: 'Align to Transform Orientation' crashes for Custom orientations
===================================================================
M source/blender/editors/transform/transform_generics.c
===================================================================
diff --git a/source/blender/editors/transform/transform_generics.c b/source/blender/editors/transform/transform_generics.c
index a33186cd9d3..36dc01fc9c6 100644
--- a/source/blender/editors/transform/transform_generics.c
+++ b/source/blender/editors/transform/transform_generics.c
@@ -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);
}
}
More information about the Bf-blender-cvs
mailing list