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:
Milan Kolar 2020-07-08 09:11:29 +02:00 committed by GitHub
commit edb8b9ce4b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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(