Fixed parsing key color (Fixes #17)

plate-64p
Kirpal Demian 8 years ago
parent ea4cbef995
commit 0cff5a04df
  1. 2
      __init__.py
  2. 2
      import_keyboard.py

@ -2,7 +2,7 @@
bl_info = {
"name": "Import: KLE Raw JSON format (.json)",
"author": "/u/kdem007 /u/jacopods",
"version": (2, 3),
"version": (2, 4),
"blender": (2, 79, 0),
"location": "File > Import-Export > Keyboard Layout Editor Raw (.json) ",
"description": "Import Keyboard Layouts",

@ -273,6 +273,8 @@ def getKey(filePath):
# if rowData has property set then add it to key
if "c" in rowData:
key["c"] = rowData["c"]
else:
key["c"] = "#cccccc"
if "t" in rowData:
key["t"] = rowData["t"]
else:

Loading…
Cancel
Save