martijnberger / pyslapi

Python bindings for the official Sketchup API
237 stars 134 forks source link

The addon does not work if blender interface, tips and datablocks where translated. #35

Open hilth-augusto opened 4 years ago

hilth-augusto commented 4 years ago

I translated blender to Portuguese and for some reason as soon as I put Blender in a new language the addon stops to work. Not sure why.

Error on Blender:

bpy.context.space_data.recent_folders_active = 0 Traceback (most recent call last): File "C:\Users\augus\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\SketchUp_Importer__init.py", line 868, in execute context, **keywords) File "C:\Users\augus\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\SketchUp_Importer__init__.py", line 171, in load self.write_materials(self.skp_model.materials) File "C:\Users\augus\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\SketchUp_Importer\init__.py", line 336, in write_materials nodes['Principled BSDF'].inputs['Base Color']) KeyError: 'bpy_prop_collection[key]: key "Principled BSDF" not found'

location: :-1