mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
Merge pull request #339 from tokejepsen/2.x/bugfix/load_image_plane_runtime_error
If camera attributes are connected, we can ignore them.
This commit is contained in:
commit
edb8b9ce4b
1 changed files with 5 additions and 2 deletions
|
|
@ -50,8 +50,11 @@ class ImagePlaneLoader(api.Loader):
|
|||
|
||||
camera = selection[0]
|
||||
|
||||
camera.displayResolution.set(1)
|
||||
camera.farClipPlane.set(image_plane_depth * 10)
|
||||
try:
|
||||
camera.displayResolution.set(1)
|
||||
camera.farClipPlane.set(image_plane_depth * 10)
|
||||
except RuntimeError:
|
||||
pass
|
||||
|
||||
# Create image plane
|
||||
image_plane_transform, image_plane_shape = pc.imagePlane(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue