andyp123 / blender_io_mesh_bsp

Blender addon that imports Quake BSP files
108 stars 23 forks source link

Fails to load some maps due to "incorrect context" when moving objects to collections #3

Closed andyp123 closed 5 years ago

andyp123 commented 5 years ago

There's a problem when loading only certain maps where an error moving the brush models to a collection prevents the rest of the map loading. Seems to be related to edit/object mode context being incorrect, but still unsure why it's not in object mode and why most maps load, but not these few that I've found to cause the error.

Maps observed to cause the error: e1m1rmx a3

andyp123 commented 5 years ago

It seems that the objects I was deleting in a previous bit of code were still being referenced and causing the out of context error. Reordered the delete operation and it seems to be fixed now.