From 40a462c50f950f0e437d88c09f2ba09ff07d05d8 Mon Sep 17 00:00:00 2001 From: Morgan Loomis Date: Sun, 13 Nov 2016 23:15:54 +1300 Subject: [PATCH] bug fix --- ml_graphEditorMask.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/ml_graphEditorMask.py b/ml_graphEditorMask.py index 2bdf983..a574652 100644 --- a/ml_graphEditorMask.py +++ b/ml_graphEditorMask.py @@ -5,7 +5,7 @@ # / __ `__ \/ / Licensed under Creative Commons BY-SA # / / / / / / / http://creativecommons.org/licenses/by-sa/3.0/ # /_/ /_/ /_/_/ _________ -# /_________/ Revision 1, 2016-05-31 +# /_________/ Revision 2, 2016-11-10 # _______________________________ # - -/__ Installing Python Scripts __/- - - - - - - - - - - - - - - - - - - - # @@ -196,7 +196,8 @@ def isolate(option): for obj in sel: attrs = mc.listAttr(obj, keyable=True, unlocked=True, string=wildCard) - channels.extend([obj+'.'+a for a in attrs]) + if attrs: + channels.extend([obj+'.'+a for a in attrs]) if not channels: for obj in sel: @@ -244,3 +245,5 @@ def markingMenu(): # - -/__ Revision History __/- - - - - - - - - - - - - - - - - - - - - - - - # # Revision 1: 2016-05-31 : First publish. +# +# Revision 2: 2016-11-10 : Fix error when no channels are found.