Skip to content

Commit

Permalink
Merge pull request #194 from philipl/non-windows-material-template
Browse files Browse the repository at this point in the history
materialBuilder: normalise paths to work correctly on non-Windows hosts
  • Loading branch information
Simarilius-uk authored Jan 17, 2025
2 parents b857f60 + ba8191c commit cb3109c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion i_scene_cp77_gltf/main/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ def create(self, mats, materialIndex):
bpyMat['MaterialTemplate'] = rawMat["MaterialTemplate"]
bpyMat.use_nodes = True
no_shadows=False
match rawMat["MaterialTemplate"]:
material_template = rawMat["MaterialTemplate"].replace('/','\\')
match material_template:
case "engine\\materials\\multilayered.mt" | "base\\materials\\vehicle_destr_blendshape.mt" | "base\\materials\\multilayered_clear_coat.mt" | "base\\materials\\multilayered_terrain.mt":
multilayered = Multilayered(self.BasePath,self.image_format,self.ProjPath)
multilayered.create(rawMat["Data"],bpyMat)
Expand Down

0 comments on commit cb3109c

Please sign in to comment.