Update openpype/hosts/maya/plugins/load/load_reference.py

Co-authored-by: Roy Nieterau <roy_nieterau@hotmail.com>
This commit is contained in:
Ondřej Samohel 2023-03-30 15:50:12 +02:00 committed by GitHub
parent 951f868cef
commit e62b0e48cb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -218,6 +218,8 @@ class ReferenceLoader(openpype.hosts.maya.api.plugin.ReferenceLoader):
@staticmethod
def _update_model_panels(container, update_panels):
# Update the modelPanels to contain the new camera
if not update_panels:
return
members = get_container_members(container)
new_cameras = cmds.ls(members, type="camera", long=True)
new_camera = new_cameras[0]