Skip to content

Commit

Permalink
Shifter: Build from selection without selecting guide Closes #131
Browse files Browse the repository at this point in the history
  • Loading branch information
miquelcampos committed Jun 10, 2022
1 parent 88914fd commit 4473ef5
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions release/scripts/mgear/shifter/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,11 +212,14 @@ def buildFromSelection(self):
self.stopBuild = False
selection = pm.ls(selection=True)
if not selection:
mgear.log(
"Select one or more guide root or a guide model",
mgear.sev_error,
)
return
selection = pm.ls("guide")
if not selection:
mgear.log(
"Not guide found or selected.\n "
+ "Select one or more guide root or a guide model",
mgear.sev_error,
)
return

# check if is partial build or full guide build
ismodel = False
Expand Down

0 comments on commit 4473ef5

Please sign in to comment.