blemd icon indicating copy to clipboard operation
blemd copied to clipboard

Super Mario Galaxy 2 Tico.bmd (from Tico.arc): mesh couldn't be built (bpy.ops.paint.add_simple_uvs.poll() failed, context is incorrect)

Open edbefee3-3888-462a-9411-741b7e9eb54e opened this issue 2 years ago • 2 comments

Trying to import said file results in a flat-shaded mesh with no armature, vertex weights, custom normals, Color attributes or UVs.

line 222, replacing it with TexH.newUVLayer(modelMesh, self.model, uv) makes everyhting but the UVs load correctly, although some of the animations have near-360 degree twist for some of the bones, so something's up with that.

checking in J3Dview, there's definitely something wrong with how this imports animations, seems to be an issue where scale and transform are also interpreted as rotation data, but that's a different issue.

I don't know what fixed this, but it's perfectly fine now