You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TypeError: set_view_order(): incompatible function arguments. The following argument types are supported:
1. () -> None
2. (_id: int) -> None
3. (_id: int, _num: int) -> None
4. (_id: int, _num: int, _remap: int) -> None
Invoked with: 0, 4, <capsule object NULL at 0x1ec75f090>
It seems that I should pass an int for the last parameter. But how could an int represent the remap table?
I also notice other interfaces like set_view_transform declare the parameter for an array as const void*. However in the case of set_view_interface, that parameter is declared as const unsigned short *. See bgfx_python.cpp, line 1339. May it be a bug here?
Hi @cache-tlb! Yes it's a bug, the mapping were generated automatically and sometimes it failed to interpret those types successfully. I've already implemented a fix for ImGUI with uses the same patterns and I will extend it also to these interfaces. Thanks for pointing it out!
@cache-tlb I fixed the issue in the types_marshalling brach. If you're able to build it from source, that would be the fastest way to use it, as I would like to overhaul the types conversion first. Let me know if you need any help!
Activity
fbertola commentedon Oct 16, 2020
Hi @cache-tlb! Yes it's a bug, the mapping were generated automatically and sometimes it failed to interpret those types successfully. I've already implemented a fix for ImGUI with uses the same patterns and I will extend it also to these interfaces. Thanks for pointing it out!
fbertola commentedon Nov 1, 2020
@cache-tlb I fixed the issue in the
types_marshallingbrach. If you're able to build it from source, that would be the fastest way to use it, as I would like to overhaul the types conversion first. Let me know if you need any help!