From e62b0e48cb5c984595b36f20fb577cc84d5e1998 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Samohel?= <33513211+antirotor@users.noreply.github.com> Date: Thu, 30 Mar 2023 15:50:12 +0200 Subject: [PATCH] Update openpype/hosts/maya/plugins/load/load_reference.py Co-authored-by: Roy Nieterau --- openpype/hosts/maya/plugins/load/load_reference.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/openpype/hosts/maya/plugins/load/load_reference.py b/openpype/hosts/maya/plugins/load/load_reference.py index a0345dceb0..60cae131bc 100644 --- a/openpype/hosts/maya/plugins/load/load_reference.py +++ b/openpype/hosts/maya/plugins/load/load_reference.py @@ -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]