From 1bb51aa0d01876297b187985ca2301a4d007c3a1 Mon Sep 17 00:00:00 2001 From: iLLiCiTiT Date: Thu, 5 Nov 2020 18:59:51 +0100 Subject: [PATCH] always override instance --- pype/plugins/tvpaint/create/create_beauty.py | 7 ++----- pype/plugins/tvpaint/create/create_render_pass.py | 6 +----- 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/pype/plugins/tvpaint/create/create_beauty.py b/pype/plugins/tvpaint/create/create_beauty.py index da7dd9aa82..30e0d4ccd8 100644 --- a/pype/plugins/tvpaint/create/create_beauty.py +++ b/pype/plugins/tvpaint/create/create_beauty.py @@ -79,12 +79,9 @@ class CreateBeauty(pipeline.TVPaintCreator): if existing_instance is not None: self.log.info( - f"Beauty instance for group id {group_id} already exists." + f"Beauty instance for group id {group_id} already exists" + ", overriding" ) - if existing_instance == self.data: - self.log.info("Instance to create is same. Did nothing.") - return - self.log.debug("Overriding beauty instance with new data.") instances[existing_instance_idx] = self.data else: instances.append(self.data) diff --git a/pype/plugins/tvpaint/create/create_render_pass.py b/pype/plugins/tvpaint/create/create_render_pass.py index 9103bc735d..3842c433e9 100644 --- a/pype/plugins/tvpaint/create/create_render_pass.py +++ b/pype/plugins/tvpaint/create/create_render_pass.py @@ -104,12 +104,8 @@ class CreateRenderPass(pipeline.TVPaintCreator): if existing_instance is not None: self.log.info( f"Render pass instance for group id {group_id}" - f" and name \"{name}\" already exists." + f" and name \"{name}\" already exists, overriding." ) - if existing_instance == self.data: - self.log.info("Instance to create is same. Did nothing.") - return - self.log.debug("Overriding beauty instance with new data.") instances[existing_instance_idx] = self.data else: instances.append(self.data)