Skip to content

Commit

Permalink
fix raster caching not to set modified flag
Browse files Browse the repository at this point in the history
  • Loading branch information
shun-iwasawa committed Apr 7, 2023
1 parent 31560df commit 652f5a7
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 652f5a7

Please sign in to comment.