projects
/
synfig.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Cache each image file only once, even if it is used multiple times.
[synfig.git]
/
synfig-core
/
trunk
/
src
/
synfig
/
listimporter.cpp
diff --git
a/synfig-core/trunk/src/synfig/listimporter.cpp
b/synfig-core/trunk/src/synfig/listimporter.cpp
index
11b59ea
..
30bb899
100644
(file)
--- a/
synfig-core/trunk/src/synfig/listimporter.cpp
+++ b/
synfig-core/trunk/src/synfig/listimporter.cpp
@@
-112,10
+112,10
@@
ListImporter::get_frame(Surface &surface,Time time, ProgressCallback *cb)
// DEBUGPOINT();
// See if that frame is cached
// DEBUGPOINT();
// See if that frame is cached
- std::list<std::pair<
int
,Surface> >::iterator iter;
+ std::list<std::pair<
String
,Surface> >::iterator iter;
for(iter=frame_cache.begin();iter!=frame_cache.end();++iter)
{
for(iter=frame_cache.begin();iter!=frame_cache.end();++iter)
{
- if(iter->first==f
rame
)
+ if(iter->first==f
ilename_list[frame]
)
{
// DEBUGPOINT();
surface.mirror(iter->second);
{
// DEBUGPOINT();
surface.mirror(iter->second);
@@
-150,7
+150,7
@@
ListImporter::get_frame(Surface &surface,Time time, ProgressCallback *cb)
// DEBUGPOINT();
// DEBUGPOINT();
- frame_cache.push_back(std::pair<
int,Surface>(frame
,surface));
+ frame_cache.push_back(std::pair<
String,Surface>(filename_list[frame]
,surface));
// DEBUGPOINT();
// DEBUGPOINT();