File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -120,10 +120,9 @@ namespace Animations
120120 ModelAnimationParser p (zen);
121121 p.setScale (1 .0f / 100 .0f );
122122
123- ModelAnimationParser::EChunkType type;
124- while ((type = p.parse ()) != ModelAnimationParser::CHUNK_EOF)
123+ while (true )
125124 {
126- switch (type )
125+ switch (p. parse () )
127126 {
128127 case ModelAnimationParser::CHUNK_HEADER:
129128 data.m_Header = p.getHeader ();
@@ -134,10 +133,11 @@ namespace Animations
134133 break ;
135134 case ModelAnimationParser::CHUNK_ERROR:
136135 return Handle::AnimationDataHandle::makeInvalidHandle ();
136+ case ModelAnimationParser::CHUNK_EOF:
137+ return h;
137138 }
138139 }
139-
140- return h;
140+ return Handle::AnimationDataHandle::makeInvalidHandle ();
141141 }
142142
143143 /*
@@ -344,6 +344,8 @@ namespace Animations
344344 break ;
345345 case ModelScriptParser::CHUNK_ERROR:
346346 return false ;
347+ default :
348+ break ;
347349 }
348350 }
349351
You can’t perform that action at this time.
0 commit comments