From c50dec8f89c507e62831ac63306ab8fb4c7cebe9 Mon Sep 17 00:00:00 2001 From: chsieh Date: Mon, 16 May 2011 21:59:09 -0700 Subject: [PATCH] Adding test case. --- etc/xmls/maintank.xml | 3 +++ src/render/animation/AnimationContainer.mm | 6 +++--- 2 files changed, 6 insertions(+), 3 deletions(-) create mode 100644 etc/xmls/maintank.xml diff --git a/etc/xmls/maintank.xml b/etc/xmls/maintank.xml new file mode 100644 index 0000000..71e84be --- /dev/null +++ b/etc/xmls/maintank.xml @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/src/render/animation/AnimationContainer.mm b/src/render/animation/AnimationContainer.mm index 1bd37a5..f96504c 100644 --- a/src/render/animation/AnimationContainer.mm +++ b/src/render/animation/AnimationContainer.mm @@ -5,7 +5,7 @@ //////////////////////////////////////////////////////////////////////////////////// // private method -@interface AnimationContainer() +@interface AnimationContainer (Private) -(void)parseContentXml:(NSString *)contentPath; @@ -82,7 +82,7 @@ //////////////////////////////////////////////////////////////////////////////////// // XML parser callback for the following format: // -// +// // // // @@ -94,7 +94,7 @@ if ([elementName isEqualToString:@"AnimationClips"]) { mAnimationLookup = [[NSMutableDictionary alloc] init]; self.mAnimationName = [attributeDict valueForKey:@"name"]; - self.mAtlasPath = [attributeDict valueForKey:@"xmlPath"]; + self.mAtlasPath = [attributeDict valueForKey:@"atlasXmlPath"]; mAtlas = [[SPTextureAtlas alloc] initWithContentsOfFile:mAtlasPath]; } else if ([elementName isEqualToString:@"Clip"]) { -- 1.7.0.4