Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed syntax error on line 253 in prep.py #480

Merged
merged 3 commits into from
Sep 20, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions MCprep_addon/materials/prep.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ def execute(self, context):
self.useReflections,
self.usePrincipledShader,
self.makeSolid,
generate.PackFormatself.packFormat.upper(),
generate.PackFormat[self.packFormat.upper()],
self.useEmission,
False # This is for an option set in matprep_cycles
)
Expand Down Expand Up @@ -619,7 +619,7 @@ def update_material(self, context, mat):
use_reflections=self.useReflections,
use_principled=self.usePrincipledShader,
only_solid=self.makeSolid,
pack_format=self.packFormat,
pack_format=generate.PackFormat[self.packFormat.upper()],
use_emission_nodes=self.useEmission,
use_emission=False # This is for an option set in matprep_cycles
)
Expand All @@ -634,7 +634,7 @@ def update_material(self, context, mat):

if self.animateTextures:
sequences.animate_single_material(
mat, context.scene.render.engine, export_location="original")
mat, context.scene.render.engine, export_location=sequences.ExportLocation["original"])

return success, None

Expand Down