Skip to content

Conversation

BadSingleton
Copy link
Contributor

No description provided.

@benoithudson benoithudson requested review from benoithudson and vkovec and removed request for benoithudson and vkovec December 18, 2019 19:43
%rename("%s", %$isclass) FbxClassId;
// %rename("%s", %$isclass) FbxClassIdInfo* ;

%rename("%s") FbxClassId::FbxClassId;
Copy link
Contributor

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));
Copy link
Contributor

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.
Copy link
Contributor

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?

Copy link
Contributor Author

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.

@unity-cla-assistant
Copy link

unity-cla-assistant commented Sep 22, 2021

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


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.

@Hugo-Pereira
Copy link

I need an FBX importer for runtime, so this MR would be very helpful. Any plans on merging this?

@Hugo-Pereira
Copy link

Anyone? :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants