Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Commit

Permalink
Bug: avoid crash if action key isnt present in the placeholder_data data
Browse files Browse the repository at this point in the history
  • Loading branch information
Cyprien CAILLOT committed Sep 11, 2024
1 parent d9731d0 commit ac4710e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions openpype/hosts/maya/api/workfile_template_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,9 @@ def create_placeholder(self, placeholder_data):
if parent:
placeholder = cmds.parent(placeholder, selection[0])[0]

if not placeholder_data.get('action', None):
placeholder_data.pop('action', None)

imprint(placeholder, placeholder_data)

# Add helper attributes to keep placeholder info
Expand Down

0 comments on commit ac4710e

Please sign in to comment.