Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/transform/transform_convert_sequencer.c
| Show First 20 Lines • Show All 540 Lines • ▼ Show 20 Lines | #define XXX_DURIAN_ANIM_TX_HACK | ||||
| if (ed == NULL) { | if (ed == NULL) { | ||||
| tc->data_len = 0; | tc->data_len = 0; | ||||
| return; | return; | ||||
| } | } | ||||
| tc->custom.type.free_cb = freeSeqData; | tc->custom.type.free_cb = freeSeqData; | ||||
| if (t->flag & T_MODAL) { | |||||
| xmouse = (int)UI_view2d_region_to_view_x(v2d, t->mouse.imval[0]); | xmouse = (int)UI_view2d_region_to_view_x(v2d, t->mouse.imval[0]); | ||||
| t->direction[0] = xmouse; | |||||
| } | |||||
| else { | |||||
| xmouse = t->direction[0]; | |||||
| } | |||||
| /* which side of the current frame should be allowed */ | /* which side of the current frame should be allowed */ | ||||
| if (t->mode == TFM_TIME_EXTEND) { | if (t->mode == TFM_TIME_EXTEND) { | ||||
| /* only side on which mouse is gets transformed */ | /* only side on which mouse is gets transformed */ | ||||
| t->frame_side = (xmouse > CFRA) ? 'R' : 'L'; | t->frame_side = (xmouse > CFRA) ? 'R' : 'L'; | ||||
| } | } | ||||
| else { | else { | ||||
| /* normal transform - both sides of current frame are considered */ | /* normal transform - both sides of current frame are considered */ | ||||
| ▲ Show 20 Lines • Show All 216 Lines • Show Last 20 Lines | |||||