mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
disable maintain_aspect_ratio when width , height
This commit is contained in:
parent
4598908382
commit
42119cfca1
1 changed files with 2 additions and 0 deletions
2
openpype/vendor/python/common/capture.py
vendored
2
openpype/vendor/python/common/capture.py
vendored
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue