From 58d941d76df7326887d97043dab7605abc7a2c24 Mon Sep 17 00:00:00 2001 From: Jakub Trllo Date: Tue, 14 May 2019 15:16:20 +0200 Subject: [PATCH] fixed asset not selected bug --- pype/standalonepublish/widgets/widget_family.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/pype/standalonepublish/widgets/widget_family.py b/pype/standalonepublish/widgets/widget_family.py index a2276bf7f9..9a347cbeab 100644 --- a/pype/standalonepublish/widgets/widget_family.py +++ b/pype/standalonepublish/widgets/widget_family.py @@ -245,10 +245,8 @@ class FamilyWidget(QtWidgets.QWidget): asset_name = self.input_asset.text() subset_name = self.input_result.text() if ( - ( - asset_name.strip() != '' or - asset_name == self.parent_widget.NOT_SELECTED - ) and subset_name.strip() != '' + asset_name != self.parent_widget.NOT_SELECTED and + subset_name.strip() != '' ): asset = self.db.find_one({ 'type': 'asset',