Fix reset layer state in autobuild

main
pullusb 2024-09-04 17:21:43 +02:00
parent 1121c489a8
commit 747638eca9
2 changed files with 2 additions and 1 deletions

View File

@ -13,6 +13,7 @@ if duplicate, need to "connect" with namespace ('_duprender') or something
Activate / deactivate layer opacity according to prefix Activate / deactivate layer opacity according to prefix
Activate / deactivate all masks using MA layers Activate / deactivate all masks using MA layers
--> -->
1.8.2 1.8.2
- added: `Reset Layer State` (Check layer) in Autobuild - added: `Reset Layer State` (Check layer) in Autobuild

View File

@ -255,7 +255,7 @@ class GPEXP_OT_render_auto_build(bpy.types.Operator):
## Reset layer states -> 100% opacity (except mask layer 'MA' by default), remove use light, set default blend mode, hide material named "invisible". ## Reset layer states -> 100% opacity (except mask layer 'MA' by default), remove use light, set default blend mode, hide material named "invisible".
if self.reset_layers_state: if self.reset_layers_state:
bpy.ops.gp.layers_state() bpy.ops.gp.layers_state('EXEC_DEFAULT')
## Set GP object data to single user (Individual viewlayers) ## Set GP object data to single user (Individual viewlayers)
if self.make_gp_single_user: if self.make_gp_single_user: