Skip to content

Commit

Permalink
Merge pull request #619 from Moo-Ack-Productions/618-remove-optmizer-…
Browse files Browse the repository at this point in the history
…reference

fix: Remove references to MCprep optimizer
  • Loading branch information
StandingPadAnimations authored Aug 12, 2024
2 parents e3f136e + b9445a8 commit 450ab09
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions MCprep_addon/materials/prep.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,6 @@ def pack_formats(self, context):
name="Improve UI",
description="Automatically improve relevant UI settings",
default=True)
optimizeScene: bpy.props.BoolProperty(
name="Optimize scene (cycles)",
description="Optimize the scene for faster cycles rendering",
default=False)
usePrincipledShader: bpy.props.BoolProperty(
name="Use Principled Shader (if available)",
description=(
Expand Down Expand Up @@ -162,7 +158,6 @@ def draw_mats_common(self, context: Context) -> None:
col = row.column()
col.prop(self, "combineMaterials")
row = self.layout.row()
row.prop(self, "optimizeScene")
row.prop(self, "useEmission")


Expand Down Expand Up @@ -298,9 +293,6 @@ def execute(self, context):
except RuntimeError as err:
print(f"Failed to improve UI with error: {err}")

if self.optimizeScene and engine == 'CYCLES':
bpy.ops.mcprep.optimize_scene()

has_lib_skipped = count_lib_skipped > 0
has_mat = count > 0
has_missing = count_img_not_found > 0
Expand Down

0 comments on commit 450ab09

Please sign in to comment.