Skip to content
Open
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: 4 additions & 2 deletions QRemeshify/operator.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,10 @@ def execute(self, ctx):
# Load lib
qw = Quadwild(mesh_filepath)

hasCache = props.useCache and os.path.exists(qw.traced_path)

try:
if not props.useCache:
if not hasCache:
# Get mesh after modifiers and shapekeys applied
depsgraph = bpy.context.evaluated_depsgraph_get()
evaluated_obj = obj.evaluated_get(depsgraph)
Expand Down Expand Up @@ -178,7 +180,7 @@ def execute(self, ctx):
# Cleanup
del qw

if not props.useCache:
if not hasCache:
bm.free()
del bm
evaluated_obj.to_mesh_clear()
Expand Down