[core] Set Style::Impl::loaded only when finishing parsing style

This commit is contained in:
Bruno de Oliveira Abinader
2017-08-30 15:38:17 +03:00
parent e1dfdc9338
commit af01d6ffee

View File

@@ -88,7 +88,7 @@ void Style::Impl::parse(const std::string& json_) {
}
mutated = false;
loaded = true;
loaded = false;
json = json_;
sources.clear();
@@ -118,6 +118,7 @@ void Style::Impl::parse(const std::string& json_) {
spriteLoader->load(parser.spriteURL, scheduler, fileSource);
glyphURL = parser.glyphURL;
loaded = true;
observer->onStyleLoaded();
}