fix reset settings error

main
Pullusb 2021-10-25 16:28:54 +02:00
parent 2b6640dc0d
commit 1a992a1092
1 changed files with 6 additions and 2 deletions

View File

@ -230,7 +230,8 @@ class GPEXP_OT_reset_render_settings(bpy.types.Operator):
# - allow to monitor output of a scene and possibly use Overwrite
if scn.render.filepath.startswith('//render/preview/'):
scn.render.filepath = f'//render/preview/{bpy.path.clean_nam(scn.name)}/preview_'
scn.render.filepath = f'//render/preview/{bpy.path.clean_name(scn.name)}/preview_'
print(f'Scene {scn.name}: change output to {scn.render.filepath}')
if not scn.use_nodes:
continue
@ -241,8 +242,11 @@ class GPEXP_OT_reset_render_settings(bpy.types.Operator):
if n.name.startswith('merge_NG_'):
use_native_aa = False
break
if scn.use_aa != use_native_aa:
print(f'Scene {scn.name}: changed scene AA settings, native AA = {use_native_aa}')
fn.scene_aa(scene=scn, toggle=use_native_aa)
# set propertie on scn to reflect changes (without triggering update)
scn['use_aa'] = use_native_aa