Search Home Members Contacts
About Us
Products
Downloads
Community
Support
Bug #832: Actor.GetBoneID returns a negative number.
Product:
TV3D SDK 6.5
Language:
Delphi
Current State:
Waiting on User
Resolution:
Unconfirmed
Created On:
March 16th, 2009
Last Modified:
March 22nd, 2009
Reported By:
BieX
Actor.GetBoneID(BoneName) returns "-1".
While Actor.GetBoneName(ID) returns the correct name.

Only tested in delphi.

Comments:

Posted by SylvainTV on March 22nd, 2009 at 1:06 PM
Hmmm the code seems ok !
Do you have a message in the debug file about missing bone?

The test is even not case-sensitive. Maybe there is a or several spaces at the end of the bone name ?
Posted by BieX on March 24th, 2009 at 9:12 PM
I have 35 bones, all with names, no spaces.

For example, GetBoneName(10) returns "lhanda",
but GetBoneID("lhand") returns "-1".

Maybe because the function is GetBoneID(name: WideAnsiChar) and not :String.
Posted by BieX on March 24th, 2009 at 9:14 PM
I mean "lhand". I tried every ID/Name, nothing works.
Posted by BieX on March 24th, 2009 at 9:19 PM
If you want to, I will send you the TVA/x/ms3d on IRC tomorrow.
Thank you for helping.