From 916dfcf76e6ffa46cd61656e2c0087be4624cf80 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 26 Apr 2017 00:43:20 +0300 Subject: Dont add images from "all" atlas into empty atlas (with fake images). This fixing some performance issues if enabled texture atlases but for current map atlas is missing. --- src/resources/db/mapdb.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/resources') diff --git a/src/resources/db/mapdb.cpp b/src/resources/db/mapdb.cpp index 14c10b3b8..d991e8273 100644 --- a/src/resources/db/mapdb.cpp +++ b/src/resources/db/mapdb.cpp @@ -136,7 +136,7 @@ void MapDB::readAtlas(XmlNodePtrConst node) mAtlases[atlas].push_back(file); } } - if (atlas != "all") + if (atlas != "all" && atlas != paths.getStringValue("emptyAtlasName")) { const AtlasCIter &allAtlas = mAtlases.find("all"); if (allAtlas != mAtlases.end()) -- cgit v1.2.3-60-g2f50