When i install the plugin and add a single .vox File importing works, but as soon when i add several files at once it hangs while importing and it will never finish.
![image](https://private-user-images.githubusercontent.com/12991180/239490385-ba64fa3d-2260-4633-af0f-fbcf1027db62.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTc5NDcyNDAsIm5iZiI6MTcxNzk0Njk0MCwicGF0aCI6Ii8xMjk5MTE4MC8yMzk0OTAzODUtYmE2NGZhM2QtMjI2MC00NjMzLWFmMGYtZmJjZjEwMjdkYjYyLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MDklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjA5VDE1MjkwMFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTA3ZDMzZGRiYzgxODNlMWNkNWU1ZTllYTdhZTBhMGRlZDljNTY1ZWNkNjQ3NWUyMjVhYzM3ODcyNmVkMTZlYWEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.5kcRtYgrhb5Zjer-KfVrAzwelGE0rASgOK2hUbbPJO8)
This issue becomes even more annoying when restoring a project from git and opening the godot editor. It will never finish reimporting the files.
You can test the problem by creating a new project, adding a few Voxel Files (e.g. the sample files which come with magica voxel) and then install and activate the MagixaVoxel importer plugin.
The console output is as follows:
MagicaVoxel Mesh Importer: Ready
MagicaVoxel MeshLibrary Importer: Ready
Importing: res://addons/MagicaVoxel_Importer_with_Extensions/Metadata/vox-icon.vox (scale: 0.1, file version: 150, greedy mesh: true, snap to ground: false)
Importing: res://cars.vox (scale: 0.1, file version: 200, greedy mesh: true, snap to ground: false)
Importing: res://3x3x3.vox (scale: 0.1, file version: 200, greedy mesh: true, snap to ground: false)
Importing: res://castle.vox (scale: 0.1, file version: 200, greedy mesh: true, snap to ground: false)
Importing: res://chr_knight.vox (scale: 0.1, file version: 200, greedy mesh: true, snap to ground: false)
Importing: res://doom.vox (scale: 0.1, file version: 200, greedy mesh: true, snap to ground: false)
Importing: res://monu1.vox (scale: 0.1, file version: 200, greedy mesh: true, snap to ground: false)
Importing: res://room.vox (scale: 0.1, file version: 200, greedy mesh: true, snap to ground: false)
Importing: res://menger.vox (scale: 0.1, file version: 200, greedy mesh: true, snap to ground: false)
Importing: res://teapot.vox (scale: 0.1, file version: 200, greedy mesh: true, snap to ground: false)
Importing: res://monu3.vox (scale: 0.1, file version: 200, greedy mesh: true, snap to ground: false)
Importing: res://monu2.vox (scale: 0.1, file version: 200, greedy mesh: true, snap to ground: false)
<ArrayMesh#-9223370095848265367>
<ArrayMesh#-9223370088214631934>
<ArrayMesh#-9223370080128013634>
<ArrayMesh#-9223370079591143786>
<ArrayMesh#-9223370078584509762>
<ArrayMesh#-9223370078517401459>
<ArrayMesh#-9223370048519738571>
<ArrayMesh#-9223370048385520529>
<ArrayMesh#-9223370048217749282>
<ArrayMesh#-9223370048049977438>
<ArrayMesh#-9223370047932536428>
<ArrayMesh#-9223370047865427044>
It seems to do something, but the import never stops. Also only a few .import files are created. Also the mesh files are never written:
![image](https://private-user-images.githubusercontent.com/12991180/239491063-95df122f-1f48-42a3-b42d-51bee5a3ec8c.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTc5NDcyNDAsIm5iZiI6MTcxNzk0Njk0MCwicGF0aCI6Ii8xMjk5MTE4MC8yMzk0OTEwNjMtOTVkZjEyMmYtMWY0OC00MmEzLWI0MmQtNTFiZWU1YTNlYzhjLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MDklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjA5VDE1MjkwMFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWIzYTE2MTEwYzM4MzY2ODJhYzgzYTIyYmQzZjE1YzRlOTNjZDBmZTQ5YzY0Y2ZhNDBjNTY1NjMxNWU3MThjMGUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.OFmAbZdqXq5OPgD7sIPvhJyRA9mL_v6CWzqrSHonC_A)
I tried godot 4.0.2, 4.0.3 RC and even the latest build of 4.1. I also tried the linux version, which has the same problem.
The issue seems related to "ResourceSaver.save(meshes[0], full_path)" as the importer itself seems to be working without any issues. For example i can manually load the voxel files from script.
With Godot 3.5 everything seems to be working (Using related MagicaVoxel Importer Version).
Do others have the same problem? Do you have an idea whats going wrong?