Skip to content

Commit

Permalink
fix: apparently there are 2 specular ramp textures (bruh)
Browse files Browse the repository at this point in the history
  • Loading branch information
festivities committed Aug 25, 2022
1 parent 3e110ec commit 4e9854a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/genshin-import-linear.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def execute(self, context):
bpy.context.object.material_slots.get('miHoYo - Genshin Body').material.node_tree.nodes['Body_Normalmap_UV1'].image = img
elif "Body_Shadow_Ramp" in file :
bpy.data.node_groups['Body Shadow Ramp'].nodes['Body_Shadow_Ramp'].image = img
elif "Body_Specular_Ramp" in file :
elif "Body_Specular_Ramp" or "Tex_Specular_Ramp" in file :
img.colorspace_settings.name='Non-Color'
bpy.data.node_groups['Body Specular Ramp'].nodes['Body_Specular_Ramp'].image = img
elif "Face_Diffuse" in file :
Expand Down

0 comments on commit 4e9854a

Please sign in to comment.