-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ut 148/downcast fbx objects #302
base: main
Are you sure you want to change the base?
Conversation
%rename("%s", %$isclass) FbxClassId; | ||
// %rename("%s", %$isclass) FbxClassIdInfo* ; | ||
|
||
%rename("%s") FbxClassId::FbxClassId; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is pulling in all the constructors, and one of them has an type we don't map -- so you get a SWIGTYPE.
} | ||
|
||
System.IntPtr p = NativeMethods.FbxObject_GetRuntimeClassId(new System.Runtime.InteropServices.HandleRef(null, cPtr)); | ||
string name = NativeMethods.FbxClassId_GetName(new System.Runtime.InteropServices.HandleRef(null, p)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
3 memory allocations per downcast... Let's optimize this on Monday.
default: | ||
break; | ||
} | ||
// we failed to get a match, return a bland FbxObject. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I take it the TODO is to repeat the switch but on the parent class?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, I have a prototype that has not yet been committed.
Félix Bourbonnais seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account. You have signed the CLA already but the status is still pending? Let us recheck it. |
I need an FBX importer for runtime, so this MR would be very helpful. Any plans on merging this? |
Anyone? :) |
No description provided.