Fix modifiers access

This commit is contained in:
pullusb
2024-11-27 16:40:31 +01:00
parent f5c20a3499
commit 7430bca02f
4 changed files with 30 additions and 14 deletions
+2 -2
View File
@@ -1396,7 +1396,7 @@ def all_object_modifier_enabled(objects) -> bool:
for o in objects:
if o.type != 'GREASEPENCIL':
continue
for m in o.modifier:
for m in o.modifiers:
if m.show_render and not m.show_viewport:
return False
@@ -1500,7 +1500,7 @@ def gp_modifier_status(objects) -> tuple((str, str)):
## Skip hided object
if o.hide_get() and o.hide_render:
continue
for m in o.modifier:
for m in o.modifiers:
if m.show_render and not m.show_viewport:
off_count += 1
else: