Skip to content

Commit

Permalink
check if drivenControlName is valid before testing scene
Browse files Browse the repository at this point in the history
  • Loading branch information
dmunix committed Aug 23, 2022
1 parent b9c2fb5 commit ba17b7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion release/scripts/mgear/rigbits/weightNode_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -756,7 +756,7 @@ def createRBFFromInfo(weightNodeInfo_dict):
driverControlPoseInfo = weightInfo.pop(rbf_node.DRIVER_POSES_INFO_ATTR,
{})

if not mc.objExists(drivenControlName):
if drivenControlName is not None and not mc.objExists(drivenControlName):
skipped_nodes.append(drivenControlName)
continue

Expand Down

0 comments on commit ba17b7c

Please sign in to comment.