Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/transform/transform_generics.c
| Show First 20 Lines • Show All 442 Lines • ▼ Show 20 Lines | if (!fcu_test_selected(fcu)) { | ||||
| continue; | continue; | ||||
| } | } | ||||
| /* watch it: if the time is wrong: do not correct handles yet */ | /* watch it: if the time is wrong: do not correct handles yet */ | ||||
| if (test_time_fcurve(fcu)) { | if (test_time_fcurve(fcu)) { | ||||
| dosort++; | dosort++; | ||||
| } | } | ||||
| else { | else { | ||||
| calchandles_fcurve(fcu); | calchandles_fcurve_ex(fcu, BEZT_FLAG_TEMP_TAG); | ||||
| } | } | ||||
| /* set refresh tags for objects using this animation, | /* set refresh tags for objects using this animation, | ||||
| * BUT only if realtime updates are enabled | * BUT only if realtime updates are enabled | ||||
| */ | */ | ||||
| if ((sipo->flag & SIPO_NOREALTIMEUPDATES) == 0) { | if ((sipo->flag & SIPO_NOREALTIMEUPDATES) == 0) { | ||||
| ANIM_list_elem_update(CTX_data_main(t->context), t->scene, ale); | ANIM_list_elem_update(CTX_data_main(t->context), t->scene, ale); | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 1,212 Lines • ▼ Show 20 Lines | void initTransInfo(bContext *C, TransInfo *t, wmOperator *op, const wmEvent *event) | ||||
| if (op && (prop = RNA_struct_find_property(op->ptr, "orient_axis_ortho"))) { | if (op && (prop = RNA_struct_find_property(op->ptr, "orient_axis_ortho"))) { | ||||
| t->orient_axis_ortho = RNA_property_enum_get(op->ptr, prop); | t->orient_axis_ortho = RNA_property_enum_get(op->ptr, prop); | ||||
| } | } | ||||
| if (op && | if (op && | ||||
| ((prop = RNA_struct_find_property(op->ptr, "orient_matrix")) && | ((prop = RNA_struct_find_property(op->ptr, "orient_matrix")) && | ||||
| RNA_property_is_set(op->ptr, prop)) && | RNA_property_is_set(op->ptr, prop)) && | ||||
| ((t->flag & T_MODAL) || | ((t->flag & T_MODAL) || | ||||
| /* When using redo, don't use the the custom constraint matrix | /* When using redo, don't use 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->spacemtx[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); | copy_m3_m3(t->orient_matrix, t->spacemtx); | ||||
| t->orient_matrix_is_set = true; | t->orient_matrix_is_set = true; | ||||
| t->orientation.user = V3D_ORIENT_CUSTOM_MATRIX; | t->orientation.user = V3D_ORIENT_CUSTOM_MATRIX; | ||||
| ▲ Show 20 Lines • Show All 890 Lines • Show Last 20 Lines | |||||