armortools icon indicating copy to clipboard operation
armortools copied to clipboard

UV map not updated when new mesh is appended.

Open todirbg opened this issue 3 years ago • 1 comments

ArmorPaint version: f9dab61

OS/device including version: Windows 10, DirectX 11, Nvidia 1050

Issue description: UV map is not updated when mesh is appended.

Steps to reproduce: Import mesh, click on Meshes -> Import -> Append and append second mesh.

todirbg avatar Feb 13 '22 17:02 todirbg

Hello @luboslenco On further investigation the issue is caused from ImportMesh.hx function finishImport which is scheduled in makeMesh to be called when calls to addMesh are finished. But when appending mesh only addMesh is called and finishimport is not scheduled or called at all. I see this is a performance tweak. If finishimport is merged into run as it was in the older versions it works again, but the performance gain is lost. Just to let you know where to look for this. Regards.

EDIT: Another solution I tested was to create a copy of addMesh, call it appendMesh and add iron.App.notifyOnInit(finishImport); to it. Then in the import functions where replaceExisting ? is tested to call appendMesh instead of addMesh.

todirbg avatar Feb 16 '22 17:02 todirbg