rdb / blender-egg-importer

Add-on for Blender to import Panda3D .egg models.
37 stars 10 forks source link

ReferenceError: StructRNA of type Mesh has been removed #18

Closed SankaDaVinci closed 4 years ago

SankaDaVinci commented 4 years ago

About the groups is fixed, but now there is this weird traceback coming from the importer itself

Traceback (most recent call last): File "C:\Users\danie\AppData\Roaming\Blender Foundation\Blender\2.90\scripts\addons\blender-egg-importer-master__init__.py", line 63, in execute root.build_tree(context) File "C:\Users\danie\AppData\Roaming\Blender Foundation\Blender\2.90\scripts\addons\blender-egg-importer-master\importer.py", line 1136, in build_tree child.build_tree(context, parent, inv_matrix, under_dart) File "C:\Users\danie\AppData\Roaming\Blender Foundation\Blender\2.90\scripts\addons\blender-egg-importer-master\importer.py", line 1523, in build_tree child.build_tree(context, object, inv_matrix, under_dart or self.dart) File "C:\Users\danie\AppData\Roaming\Blender Foundation\Blender\2.90\scripts\addons\blender-egg-importer-master\importer.py", line 1523, in build_tree child.build_tree(context, object, inv_matrix, under_dart or self.dart) File "C:\Users\danie\AppData\Roaming\Blender Foundation\Blender\2.90\scripts\addons\blender-egg-importer-master\importer.py", line 1523, in build_tree child.build_tree(context, object, inv_matrix, under_dart or self.dart) [Previous line repeated 2 more times] File "C:\Users\danie\AppData\Roaming\Blender Foundation\Blender\2.90\scripts\addons\blender-egg-importer-master\importer.py", line 1427, in build_tree data.update(calc_edges=True) ReferenceError: StructRNA of type Mesh has been removed

location: :-1

rdb commented 4 years ago

Try closing and reopening Blender and creating a new scene file to import into.

SankaDaVinci commented 4 years ago

Still getting the same thing

bpy.ops.object.delete(use_global=False, confirm=False) Deleted 3 object(s) '' was renamed to 'Object' due to a name conflict Traceback (most recent call last): File "C:\Users\danie\AppData\Roaming\Blender Foundation\Blender\2.90\scripts\addons\blender-egg-importer-master__init__.py", line 63, in execute root.build_tree(context) File "C:\Users\danie\AppData\Roaming\Blender Foundation\Blender\2.90\scripts\addons\blender-egg-importer-master\importer.py", line 1136, in build_tree child.build_tree(context, parent, inv_matrix, under_dart) File "C:\Users\danie\AppData\Roaming\Blender Foundation\Blender\2.90\scripts\addons\blender-egg-importer-master\importer.py", line 1523, in build_tree child.build_tree(context, object, inv_matrix, under_dart or self.dart) File "C:\Users\danie\AppData\Roaming\Blender Foundation\Blender\2.90\scripts\addons\blender-egg-importer-master\importer.py", line 1523, in build_tree child.build_tree(context, object, inv_matrix, under_dart or self.dart) File "C:\Users\danie\AppData\Roaming\Blender Foundation\Blender\2.90\scripts\addons\blender-egg-importer-master\importer.py", line 1523, in build_tree child.build_tree(context, object, inv_matrix, under_dart or self.dart) [Previous line repeated 2 more times] File "C:\Users\danie\AppData\Roaming\Blender Foundation\Blender\2.90\scripts\addons\blender-egg-importer-master\importer.py", line 1427, in build_tree data.update(calc_edges=True) ReferenceError: StructRNA of type Mesh has been removed

location: :-1

rdb commented 4 years ago

OK, I think I fixed it now. Blender is under some circumstances removing the mesh before it is assigned to an object.

R1ezz commented 2 weeks ago

@rdb

Could you possibly share your fix for this issue.

I am sitting with the same issue at the moment.