Skip to content

Commit d209946

Browse files
authored
Merge pull request #116 from manavortex/revert-refitters-for-presto
fixed init.py
2 parents 94f4606 + f9fe222 commit d209946

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

i_scene_cp77_gltf/__init__.py

+9-2
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
bl_info = {
2626
"name": "Cyberpunk 2077 IO Suite",
2727
"author": "HitmanHimself, Turk, Jato, dragonzkiller, kwekmaster, glitchered, Simarilius, Doctor Presto, shotlastc, Rudolph2109",
28-
"version": (1, 5, 2, 3),
28+
"version": (1, 5, 3),
2929
"blender": (3, 6, 0),
3030
"location": "File > Import-Export",
3131
"description": "Import and Export WolvenKit Cyberpunk2077 gLTF models with materials, Import .streamingsector and .ent from .json",
@@ -748,6 +748,11 @@ class CP77RigLoader(Operator):
748748
bl_label = "Load rigs from .glb"
749749
bl_description = "Load Cyberpunk 2077 deform rigs from plugin resources"
750750

751+
files: CollectionProperty(type=OperatorFileListElement)
752+
appearances: StringProperty(name="Appearances", default="")
753+
directory: StringProperty(name="Directory", default="")
754+
filepath: StringProperty(name="Filepath", default="")
755+
751756
def execute(self, context):
752757
props = context.scene.cp77_panel_props
753758
selected_rig_name = props.body_list
@@ -756,7 +761,9 @@ def execute(self, context):
756761
if selected_rig_name in rig_names:
757762
# Find the corresponding .glb file and load it
758763
selected_rig = rig_files[rig_names.index(selected_rig_name)]
759-
bpy.ops.import_scene.gltf(filepath=selected_rig)
764+
self.filepath = selected_rig
765+
CP77GLBimport(self, exclude_unused_mats=True, image_format='PNG', with_materials=False,
766+
filepath=selected_rig, hide_armatures=False, import_garmentsupport=False, files=[], directory='', appearances="ALL")
760767
if props.fbx_rot:
761768
rotate_quat_180(self,context)
762769
return {'FINISHED'}
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)