Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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

Posted

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

Posted

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...