[added in 1.6] Little correction in BrumeAnimationManager

You can help us to improve Brume ! Post your contribs here and we will try to integrate them in next release for other users !

Moderator: Brume Dev Team

[added in 1.6] Little correction in BrumeAnimationManager

Postby MoDDiB on Sat Jun 09, 2007 3:51 pm

With the first animated model I've done (yeahhh) I've got an exception with the animation at line 316 :
Code: Select all
if (index == 0)
                {
                    return element.ScaleKeys[index].Scale;
                }


ScaleKeys.length was equal to 0 so I got an exception.

I've just changed the test before and it works :

if (element.ScaleKeys != null && element.ScaleKeys.Length != 0 )
MoDDiB
Brume user
 
Posts: 83
Joined: Mon Nov 20, 2006 5:05 pm

Postby Silmaryls on Sat Jun 09, 2007 7:12 pm

Thanks MoDDiB,


I added the test in for the three methods.
User avatar
Silmaryls
Brume Team Member
 
Posts: 340
Joined: Tue Feb 21, 2006 10:09 pm
Location: Paris - France


Return to Contribs

Who is online

Users browsing this forum: No registered users and 1 guest

cron