Cyberpunk-Blender-add-on icon indicating copy to clipboard operation
Cyberpunk-Blender-add-on copied to clipboard

Blender Python Error: KeyError: 'disable_bone_shape'

Open hestenet opened this issue 5 months ago • 5 comments

Just installed Blender and Cyberpunk-Blender-add-on for the first time.

When attempting to use the File - Import - Cyberpunk GLTF to import a gltf or glb file exported from wolvenkit (used an unmodified file to test):

I get the following error:

Python: Traceback (most recent call last):
  File "C:\Users\<user>\AppData\Roaming\Blender Foundation\Blender\4.2\scripts\addons\i_scene_cp77_gltf\__init__.py", line 1470, in execute
    CP77GLBimport(self, self.exclude_unused_mats, self.image_format, self.with_materials, self.filepath, self.hide_armatures, self.import_garmentsupport, self.files, self.directory, self.appearances, props.remap_depot)
  File "C:\Users\<user>\AppData\Roaming\Blender Foundation\Blender\4.2\scripts\addons\i_scene_cp77_gltf\importers\import_with_materials.py", line 51, in CP77GLBimport
    BlenderGlTF.create(gltf_importer)
  File "C:\Program Files\Blender Foundation\Blender 4.2\4.2\scripts\addons_core\io_scene_gltf2\blender\imp\gltf2_blender_gltf.py", line 38, in create
    BlenderGlTF._create(gltf)
  File "C:\Program Files\Blender Foundation\Blender 4.2\4.2\scripts\addons_core\io_scene_gltf2\blender\imp\gltf2_blender_gltf.py", line 45, in _create
    BlenderScene.create(gltf)
  File "C:\Program Files\Blender Foundation\Blender 4.2\4.2\scripts\addons_core\io_scene_gltf2\blender\imp\gltf2_blender_scene.py", line 35, in create
    BlenderNode.create_vnode(gltf, 'root')
  File "C:\Program Files\Blender Foundation\Blender 4.2\4.2\scripts\addons_core\io_scene_gltf2\blender\imp\gltf2_blender_node.py", line 47, in create_vnode
    BlenderNode.create_vnode(gltf, child)
  File "C:\Program Files\Blender Foundation\Blender 4.2\4.2\scripts\addons_core\io_scene_gltf2\blender\imp\gltf2_blender_node.py", line 33, in create_vnode
    obj = BlenderNode.create_object(gltf, vnode_id)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Program Files\Blender Foundation\Blender 4.2\4.2\scripts\addons_core\io_scene_gltf2\blender\imp\gltf2_blender_node.py", line 82, in create_object
    BlenderNode.armature_display(gltf, obj)
  File "C:\Program Files\Blender Foundation\Blender 4.2\4.2\scripts\addons_core\io_scene_gltf2\blender\imp\gltf2_blender_node.py", line 133, in armature_display
    if gltf.import_settings['disable_bone_shape'] is True:
       ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^
KeyError: 'disable_bone_shape'

hestenet avatar Sep 02 '24 20:09 hestenet