disable maintain_aspect_ratio when width , height

This commit is contained in:
karimmozlia 2021-10-26 14:58:38 +02:00
parent 4598908382
commit 42119cfca1

View file

@ -116,6 +116,8 @@ def capture(camera=None,
if not cmds.objExists(camera):
raise RuntimeError("Camera does not exist: {0}".format(camera))
if width and height :
maintain_aspect_ratio = False
width = width or cmds.getAttr("defaultResolution.width")
height = height or cmds.getAttr("defaultResolution.height")
if maintain_aspect_ratio: