Fix CAM job "no attribute Proxy" (#25034)

This commit is contained in:
neurallambda
2025-11-10 08:42:32 -08:00
committed by GitHub
parent 2e37667371
commit df7ee72171

View File

@@ -302,7 +302,7 @@ class ViewProvider:
# make sure the resource view providers are setup properly
if prop == "Model" and self.obj.Model:
for base in self.obj.Model.Group:
if base.ViewObject and base.ViewObject.Proxy:
if base.ViewObject and hasattr(base.ViewObject, "Proxy") and base.ViewObject.Proxy:
base.ViewObject.Proxy.onEdit(_OpenCloseResourceEditor)
if (
prop == "Stock"