mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-02 00:44:52 +01:00
Do not keep fixed geometry vertices selected/active after repair
This commit is contained in:
parent
b2d6011d21
commit
1e49b7c87c
1 changed files with 8 additions and 2 deletions
|
|
@ -4,6 +4,8 @@ import pyblish.api
|
|||
import openpype.api
|
||||
import openpype.hosts.maya.api.action
|
||||
|
||||
from avalon.maya import maintained_selection
|
||||
|
||||
|
||||
class ValidateShapeZero(pyblish.api.Validator):
|
||||
"""shape can't have any values
|
||||
|
|
@ -47,8 +49,12 @@ class ValidateShapeZero(pyblish.api.Validator):
|
|||
@classmethod
|
||||
def repair(cls, instance):
|
||||
invalid_shapes = cls.get_invalid(instance)
|
||||
for shape in invalid_shapes:
|
||||
cmds.polyCollapseTweaks(shape)
|
||||
if not invalid_shapes:
|
||||
return
|
||||
|
||||
with maintained_selection():
|
||||
for shape in invalid_shapes:
|
||||
cmds.polyCollapseTweaks(shape)
|
||||
|
||||
def process(self, instance):
|
||||
"""Process all the nodes in the instance "objectSet"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue