From 49b2b657a4aa7a0297f94dedc8133990741f28fa Mon Sep 17 00:00:00 2001 From: Roy Nieterau Date: Tue, 21 Mar 2023 17:27:08 +0100 Subject: [PATCH] Cleanup code from review suggestions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: FabiĆ  Serra Arrizabalaga --- openpype/hosts/maya/api/plugin.py | 2 +- .../hosts/maya/plugins/create/create_unreal_skeletalmesh.py | 2 +- openpype/hosts/maya/plugins/create/create_workfile.py | 1 - 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/openpype/hosts/maya/api/plugin.py b/openpype/hosts/maya/api/plugin.py index 6e15b2bce3..8ac6777cf8 100644 --- a/openpype/hosts/maya/api/plugin.py +++ b/openpype/hosts/maya/api/plugin.py @@ -187,7 +187,7 @@ class MayaCreatorBase(object): data.pop("publish_attributes", None) # pop to move to end of dict data["publish_attributes"] = publish_attributes - # Kill any existing attributes just we can imprint cleanly again + # Kill any existing attributes just so we can imprint cleanly again for attr in data.keys(): if cmds.attributeQuery(attr, node=node, exists=True): cmds.deleteAttr("{}.{}".format(node, attr)) diff --git a/openpype/hosts/maya/plugins/create/create_unreal_skeletalmesh.py b/openpype/hosts/maya/plugins/create/create_unreal_skeletalmesh.py index b53c03b078..4e2a99eced 100644 --- a/openpype/hosts/maya/plugins/create/create_unreal_skeletalmesh.py +++ b/openpype/hosts/maya/plugins/create/create_unreal_skeletalmesh.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -"""Creator for Unreal Static Meshes.""" +"""Creator for Unreal Skeletal Meshes.""" from openpype.hosts.maya.api import plugin, lib from openpype.lib import ( BoolDef, diff --git a/openpype/hosts/maya/plugins/create/create_workfile.py b/openpype/hosts/maya/plugins/create/create_workfile.py index cf1de7876e..474526d30a 100644 --- a/openpype/hosts/maya/plugins/create/create_workfile.py +++ b/openpype/hosts/maya/plugins/create/create_workfile.py @@ -18,7 +18,6 @@ class CreateWorkfile(plugin.MayaCreatorBase, AutoCreator): def create(self): - print("Create...") variant = self.default_variant current_instance = next( (