mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 12:54:40 +01:00
Change Instance to Context
This commit is contained in:
parent
fc85f469f7
commit
e8bfb90362
1 changed files with 2 additions and 2 deletions
|
|
@ -4,7 +4,7 @@ from ayon_core.pipeline import PublishValidationError
|
|||
from pymxs import runtime as rt
|
||||
|
||||
|
||||
class ValidateExtendedViewport(pyblish.api.InstancePlugin):
|
||||
class ValidateExtendedViewport(pyblish.api.ContextPlugin):
|
||||
"""Validate if the first viewport is an extended viewport."""
|
||||
|
||||
order = pyblish.api.ValidatorOrder
|
||||
|
|
@ -12,7 +12,7 @@ class ValidateExtendedViewport(pyblish.api.InstancePlugin):
|
|||
hosts = ["max"]
|
||||
label = "Validate Extended Viewport"
|
||||
|
||||
def process(self, instance):
|
||||
def process(self, context):
|
||||
try:
|
||||
rt.viewport.activeViewportEx(1)
|
||||
except RuntimeError:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue