Changeset View
Changeset View
Standalone View
Standalone View
libs/image/kis_transaction_data.cpp
Show First 20 Lines • Show All 74 Lines • ▼ Show 20 Line(s) | |||||
75 | 75 | | |||
76 | #include "kis_raster_keyframe_channel.h" | 76 | #include "kis_raster_keyframe_channel.h" | ||
77 | #include "kis_image_config.h" | 77 | #include "kis_image_config.h" | ||
78 | 78 | | |||
79 | void KisTransactionData::Private::tryCreateNewFrame(KisPaintDeviceSP device, int time) | 79 | void KisTransactionData::Private::tryCreateNewFrame(KisPaintDeviceSP device, int time) | ||
80 | { | 80 | { | ||
81 | if (!device->framesInterface()) return; | 81 | if (!device->framesInterface()) return; | ||
82 | 82 | | |||
83 | KisImageConfig cfg(true); | 83 | KisImageConfig cfg; | ||
84 | if (!cfg.lazyFrameCreationEnabled()) return; | 84 | if (!cfg.lazyFrameCreationEnabled()) return; | ||
85 | 85 | | |||
86 | KisRasterKeyframeChannel *channel = device->keyframeChannel(); | 86 | KisRasterKeyframeChannel *channel = device->keyframeChannel(); | ||
87 | KIS_ASSERT_RECOVER(channel) { return; } | 87 | KIS_ASSERT_RECOVER(channel) { return; } | ||
88 | 88 | | |||
89 | KisKeyframeSP keyframe = channel->keyframeAt(time); | 89 | KisKeyframeSP keyframe = channel->keyframeAt(time); | ||
90 | 90 | | |||
91 | if (!keyframe) { | 91 | if (!keyframe) { | ||
▲ Show 20 Lines • Show All 222 Lines • Show Last 20 Lines |