Skip to content

Commit

Permalink
Merge pull request opentoonz#4814 from shun-iwasawa/p/fix_raster_cach…
Browse files Browse the repository at this point in the history
…ing_not_to_set_modified_flag

Fix raster caching not to set the modified flag
  • Loading branch information
RodneyBaker authored Apr 8, 2023
2 parents 6b53403 + 652f5a7 commit 6c7e2c0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions toonz/sources/include/toonz/imagemanager.h
Original file line number Diff line number Diff line change
Expand Up @@ -314,10 +314,7 @@ The default implementation returns m_info.m_valid.
ImageBuilder(const ImageBuilder &);
const ImageBuilder &operator=(const ImageBuilder &);

void setImageCachedAndModified() {
m_cached = true;
m_modified = true;
}
void setImageCached() { m_cached = true; }
};

//-----------------------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion toonz/sources/toonzlib/imagemanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ void ImageManager::loadAllTlvIconsAndPutInCache(
m_imp->m_builders.find(level->getImageId(fids[f]));
if (it != m_imp->m_builders.end()) {
const ImageBuilderP &builder = it->second;
builder->setImageCachedAndModified();
builder->setImageCached();
builder->m_info = info;
}
}
Expand Down

0 comments on commit 6c7e2c0

Please sign in to comment.