25
25
bl_info = {
26
26
"name" : "Cyberpunk 2077 IO Suite" ,
27
27
"author" : "HitmanHimself, Turk, Jato, dragonzkiller, kwekmaster, glitchered, Simarilius, Doctor Presto, shotlastc, Rudolph2109" ,
28
- "version" : (1 , 5 , 2 , 3 ),
28
+ "version" : (1 , 5 , 3 ),
29
29
"blender" : (3 , 6 , 0 ),
30
30
"location" : "File > Import-Export" ,
31
31
"description" : "Import and Export WolvenKit Cyberpunk2077 gLTF models with materials, Import .streamingsector and .ent from .json" ,
@@ -748,6 +748,11 @@ class CP77RigLoader(Operator):
748
748
bl_label = "Load rigs from .glb"
749
749
bl_description = "Load Cyberpunk 2077 deform rigs from plugin resources"
750
750
751
+ files : CollectionProperty (type = OperatorFileListElement )
752
+ appearances : StringProperty (name = "Appearances" , default = "" )
753
+ directory : StringProperty (name = "Directory" , default = "" )
754
+ filepath : StringProperty (name = "Filepath" , default = "" )
755
+
751
756
def execute (self , context ):
752
757
props = context .scene .cp77_panel_props
753
758
selected_rig_name = props .body_list
@@ -756,7 +761,9 @@ def execute(self, context):
756
761
if selected_rig_name in rig_names :
757
762
# Find the corresponding .glb file and load it
758
763
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" )
760
767
if props .fbx_rot :
761
768
rotate_quat_180 (self ,context )
762
769
return {'FINISHED' }
0 commit comments