Kirpal / Keyboard-Layout-Editor-for-Blender

Allows you to import keyboard layouts into blender and render them in 3d
333 stars 38 forks source link

AttributeError: 'MeshEdge' object has no attribute 'crease' #80

Open leifniem opened 6 months ago

leifniem commented 6 months ago

Required Information

Describe the bug I get the error when trying to import the layout

Error Trace

Python: Traceback (most recent call last):
  File "C:\Users\Leif\AppData\Roaming\Blender Foundation\Blender\4.1\scripts\addons\Keyboard-Layout-Editor-for-Blender\src\import_keyboard.py", line 373, in load_json
    read(filepath)
  File "C:\Users\Leif\AppData\Roaming\Blender Foundation\Blender\4.1\scripts\addons\Keyboard-Layout-Editor-for-Blender\src\import_keyboard.py", line 231, in read
    labels.add(
  File "C:\Users\Leif\AppData\Roaming\Blender Foundation\Blender\4.1\scripts\addons\Keyboard-Layout-Editor-for-Blender\src\labels.py", line 210, in add
    add_curve(key, curve, label_length, material_name, key_label.size, key_obj, box, offset)
  File "C:\Users\Leif\AppData\Roaming\Blender Foundation\Blender\4.1\scripts\addons\Keyboard-Layout-Editor-for-Blender\src\labels.py", line 105, in add_curve
    edge.crease = 1
AttributeError: 'MeshEdge' object has no attribute 'crease'
leifniem commented 6 months ago

The change causing this is most possibly: https://projects.blender.org/blender/blender/commit/e5ec04d73c7873498f4052cbb9f58acfdaf4b7b0