Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/seqmodifier.c
| Show All 28 Lines | |||||
| #include "BLI_listbase.h" | #include "BLI_listbase.h" | ||||
| #include "BLI_string.h" | #include "BLI_string.h" | ||||
| #include "BLI_string_utils.h" | #include "BLI_string_utils.h" | ||||
| #include "BLI_utildefines.h" | #include "BLI_utildefines.h" | ||||
| #include "BLI_math.h" | #include "BLI_math.h" | ||||
| #include "BLT_translation.h" | #include "BLT_translation.h" | ||||
| #include "DNA_mask_types.h" | |||||
| #include "DNA_sequence_types.h" | #include "DNA_sequence_types.h" | ||||
| #include "DNA_scene_types.h" | #include "DNA_scene_types.h" | ||||
| #include "BKE_colortools.h" | #include "BKE_colortools.h" | ||||
| #include "BKE_sequencer.h" | #include "BKE_sequencer.h" | ||||
| #include "IMB_imbuf.h" | #include "IMB_imbuf.h" | ||||
| #include "IMB_imbuf_types.h" | #include "IMB_imbuf_types.h" | ||||
| ▲ Show 20 Lines • Show All 994 Lines • ▼ Show 20 Lines | for (smd = seq->modifiers.first; smd; smd = smd->next) { | ||||
| } | } | ||||
| if (smti->apply) { | if (smti->apply) { | ||||
| int frame_offset; | int frame_offset; | ||||
| if (smd->mask_time == SEQUENCE_MASK_TIME_RELATIVE) { | if (smd->mask_time == SEQUENCE_MASK_TIME_RELATIVE) { | ||||
| frame_offset = seq->start; | frame_offset = seq->start; | ||||
| } | } | ||||
| else /*if (smd->mask_time == SEQUENCE_MASK_TIME_ABSOLUTE)*/ { | else /*if (smd->mask_time == SEQUENCE_MASK_TIME_ABSOLUTE)*/ { | ||||
| frame_offset = 0; | frame_offset = ((Mask *)smd->mask_id)->sfra; | ||||
| } | } | ||||
| ImBuf *mask = modifier_mask_get(smd, context, cfra, frame_offset, ibuf->rect_float != NULL); | ImBuf *mask = modifier_mask_get(smd, context, cfra, frame_offset, ibuf->rect_float != NULL); | ||||
| if (processed_ibuf == ibuf) { | if (processed_ibuf == ibuf) { | ||||
| processed_ibuf = IMB_dupImBuf(ibuf); | processed_ibuf = IMB_dupImBuf(ibuf); | ||||
| } | } | ||||
| Show All 38 Lines | |||||