Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/transform/transform_generics.c
| Context not available. | |||||
| /* When using redo, don't use the the custom constraint matrix | /* When using redo, don't use the the custom constraint matrix | ||||
| * if the user selects a different orientation. */ | * if the user selects a different orientation. */ | ||||
| (RNA_enum_get(op->ptr, "orient_type") == RNA_enum_get(op->ptr, "orient_matrix_type")))) { | (RNA_enum_get(op->ptr, "orient_type") == RNA_enum_get(op->ptr, "orient_matrix_type")))) { | ||||
| RNA_property_float_get_array(op->ptr, prop, &t->spacemtx[0][0]); | RNA_property_float_get_array(op->ptr, prop, &t->orient_matrix[0][0]); | ||||
| /* Some transform modes use this to operate on an axis. */ | /* Some transform modes use this to operate on an axis. */ | ||||
| t->orient_matrix_is_set = true; | t->orient_matrix_is_set = true; | ||||
| copy_m3_m3(t->orient_matrix, t->spacemtx); | |||||
| t->orient_matrix_is_set = true; | |||||
| t->orientation.user = V3D_ORIENT_CUSTOM_MATRIX; | |||||
| t->orientation.custom = 0; | |||||
| if (t->flag & T_MODAL) { | if (t->flag & T_MODAL) { | ||||
| RNA_enum_set(op->ptr, "orient_matrix_type", RNA_enum_get(op->ptr, "orient_type")); | RNA_enum_set(op->ptr, "orient_matrix_type", RNA_enum_get(op->ptr, "orient_type")); | ||||
| } | } | ||||
| Context not available. | |||||