SteveG Posted April 21, 2004 Posted April 21, 2004 When I use LoadHierarchyFromFile() to load an X file that contains no animation data, the resulting AnimationRootFrame still contains a valid reference to an AnimationController, but I can't find any way of discovering that there are no anims in it (and so I shouldn't try to animate it) without generating a null reference exception. All the properties and methods cause an exception. Anyone come across a solution to this? Ta. - Steve Quote
Kavan Posted April 21, 2004 Posted April 21, 2004 This is a known bug in MDX that will probably be solved for the next SDK update. Use the following workaround for the time being: Try mAnimationController.ResetTime() Catch mAnimationController = Nothing End Try Quote
SteveG Posted April 22, 2004 Author Posted April 22, 2004 Ah! Brilliant! I never thought of that. Thanks very much. This is a known bug in MDX that will probably be solved for the next SDK update. Use the following workaround for the time being: Try mAnimationController.ResetTime() Catch mAnimationController = Nothing End Try Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.