Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/sequencer.c
| Context not available. | |||||
| } | } | ||||
| /* return 0 if there werent enough space */ | /* return 0 if there werent enough space */ | ||||
| bool BKE_sequence_base_shuffle(ListBase *seqbasep, Sequence *test, Scene *evil_scene) | bool BKE_sequence_base_shuffle(ListBase *seqbasep, Sequence *test, Scene *evil_scene, int channel_delta) | ||||
| { | { | ||||
| int orig_machine = test->machine; | int orig_machine = test->machine; | ||||
| test->machine++; | |||||
| test->machine += channel_delta; | |||||
| BKE_sequence_calc(evil_scene, test); | BKE_sequence_calc(evil_scene, test); | ||||
| while (BKE_sequence_test_overlap(seqbasep, test) ) { | while (BKE_sequence_test_overlap(seqbasep, test) ) { | ||||
| if (test->machine >= MAXSEQ) { | if (test->machine >= MAXSEQ || test->machine <= 0) { | ||||
| break; | break; | ||||
| } | } | ||||
| test->machine++; | test->machine += channel_delta; | ||||
| BKE_sequence_calc(evil_scene, test); // XXX - I don't think this is needed since were only moving vertically, Campbell. | BKE_sequence_calc(evil_scene, test); // XXX - I don't think this is needed since were only moving vertically, Campbell. | ||||
| } | } | ||||
| if (test->machine >= MAXSEQ || test->machine <= 0) { | |||||
| if (test->machine >= MAXSEQ) { | |||||
| /* Blender 2.4x would remove the strip. | /* Blender 2.4x would remove the strip. | ||||
| * nicer to move it to the end */ | * nicer to move it to the end */ | ||||
| Context not available. | |||||