From ea0809826d530f82dc84f8e046b3d11a797dd716 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 25 May 2016 22:17:03 +0300 Subject: Move subimageset load function from resourcemanager into separate file. --- src/particle/particleemitter.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/particle/particleemitter.cpp') diff --git a/src/particle/particleemitter.cpp b/src/particle/particleemitter.cpp index a4c565393..552831abc 100644 --- a/src/particle/particleemitter.cpp +++ b/src/particle/particleemitter.cpp @@ -37,8 +37,7 @@ #include "resources/loaders/imageloader.h" #include "resources/loaders/imagesetloader.h" #include "resources/loaders/subimageloader.h" - -#include "resources/resourcemanager/resourcemanager.h" +#include "resources/loaders/subimagesetloader.h" #include "debug.h" @@ -389,7 +388,7 @@ ImageSet *ParticleEmitter::getImageSet(XmlNodePtrConst node) return nullptr; } - imageset = resourceManager->getSubImageSet(img2, + imageset = Loader::getSubImageSet(img2, XML::getProperty(node, "width", 0), XML::getProperty(node, "height", 0)); img2->decRef(); -- cgit v1.2.3-70-g09d2