When exporting, there is an error: 'NoneType' object has no attribute 'predecessor'
jbirtel opened this issue · 4 comments
Hi,
I just tried the add on for Blender 2.93 and I wanted to export the following map
When exporting, I received the following error:
Python: Traceback (most recent call last):
File ".config/blender/2.93/scripts/addons/blender-driving-scenario-creator/export.py", line 45, in execute
self.export_openscenario(context, self.directory)
File ".config/blender/2.93/scripts/addons/blender-driving-scenario-creator/export.py", line 223, in export_openscenario
if incoming_roads[k].predecessor:
AttributeError: 'NoneType' object has no attribute 'predecessor'
location: :-1
However, some folders were created (catalogs, models, scenegraph, xodr). But the xodr folder is empty, so I guess there is a problem with the OpenDrive file generation (would also match with 'predecessor' attribute I guess?)
Would be cool, if you could have a look at that, maybe try the blender file or say, what I did wrong. That would be awesome. :)
I already used the newest release and I guess it worked now. I created a new map and the error did not occur again, even though I am not 100% sure what is now different to before. I am also not sure if it was because of the junctions, but also does not matter, it worked now. Thank you!
Yes, that's correct. I deleted a connection of the junction and there was a message 'Junction is not fully connected ' or something like that :)