diff --git a/i_scene_cp77_gltf/importers/entity_import.py b/i_scene_cp77_gltf/importers/entity_import.py index 5999556..9f4a904 100644 --- a/i_scene_cp77_gltf/importers/entity_import.py +++ b/i_scene_cp77_gltf/importers/entity_import.py @@ -346,6 +346,7 @@ def importEnt(with_materials, filepath='', appearances=[], exclude_meshes=[], in y=None z=None bindname=None + bindpt=None pt_trans=[0,0,0] pt_rot=[0,0,0,0] pt_eul=None diff --git a/i_scene_cp77_gltf/importers/import_with_materials.py b/i_scene_cp77_gltf/importers/import_with_materials.py index 6630476..a377935 100644 --- a/i_scene_cp77_gltf/importers/import_with_materials.py +++ b/i_scene_cp77_gltf/importers/import_with_materials.py @@ -136,7 +136,7 @@ def CP77GLBimport(self, with_materials, remap_depot, exclude_unused_mats=True, i if name not in existingMaterials: bpy.data.materials.remove(bpy.data.materials[name], do_unlink=True, do_id_user=True, do_ui_user=True) - #Kwek: Gate this--do the block iff corresponding Material.json exist + #Kwek: Gate this--do the block if corresponding Material.json exist #Kwek: was tempted to do a try-catch, but that is just La-Z #Kwek: Added another gate for materials DepotPath=None @@ -148,6 +148,7 @@ def CP77GLBimport(self, with_materials, remap_depot, exclude_unused_mats=True, i matjsonpath = current_file_base_path + ".Material.json" DepotPath, json_apps, mats = jsonload(matjsonpath) if DepotPath == None: + print('DepotPath not set') break #DepotPath = str(obj["MaterialRepo"]) + "\\"