Skip to content

Commit

Permalink
Check if in batch mode when validating animation layers
Browse files Browse the repository at this point in the history
  • Loading branch information
krathjen committed May 11, 2021
1 parent dbe6cfc commit 7053049
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/mutils/animation.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ def validateAnimLayers():
:raise: AnimationTransferError
"""
if maya.cmds.about(q=True, batch=True):
return

animLayers = maya.mel.eval('$gSelectedAnimLayers=$gSelectedAnimLayers')

# Check if more than one animation layer has been selected.
Expand Down
2 changes: 1 addition & 1 deletion src/studiolibrary/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
# You should have received a copy of the GNU Lesser General Public
# License along with this library. If not, see <http://www.gnu.org/licenses/>.

__version__ = "2.9.6.b1"
__version__ = "2.9.6.b2"


def version():
Expand Down

0 comments on commit 7053049

Please sign in to comment.