From aa99cc14b8f341ed01c69a671d1d46051fd75d74 Mon Sep 17 00:00:00 2001 From: Simone Barbieri Date: Tue, 30 Jun 2020 11:42:27 +0100 Subject: [PATCH] Fix undefined function --- pype/plugins/blender/load/load_model.py | 4 ++-- pype/plugins/blender/load/load_rig.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pype/plugins/blender/load/load_model.py b/pype/plugins/blender/load/load_model.py index ad4b35eb03..0013ccb90a 100644 --- a/pype/plugins/blender/load/load_model.py +++ b/pype/plugins/blender/load/load_model.py @@ -170,7 +170,7 @@ class BlendModelLoader(plugin.AssetLoader): collection_libpath = collection_metadata["libpath"] lib_container = collection_metadata["lib_container"] - obj_container = get_local_collection_with_name( + obj_container = plugin.get_local_collection_with_name( collection_metadata["obj_container"].name ) objects = obj_container.all_objects @@ -230,7 +230,7 @@ class BlendModelLoader(plugin.AssetLoader): collection_metadata = collection.get( blender.pipeline.AVALON_PROPERTY) - obj_container = get_local_collection_with_name( + obj_container = plugin.get_local_collection_with_name( collection_metadata["obj_container"].name ) objects = obj_container.all_objects diff --git a/pype/plugins/blender/load/load_rig.py b/pype/plugins/blender/load/load_rig.py index 860cae71ba..d9e4495090 100644 --- a/pype/plugins/blender/load/load_rig.py +++ b/pype/plugins/blender/load/load_rig.py @@ -186,7 +186,7 @@ class BlendRigLoader(plugin.AssetLoader): collection_libpath = collection_metadata["libpath"] lib_container = collection_metadata["lib_container"] - obj_container = get_local_collection_with_name( + obj_container = plugin.get_local_collection_with_name( collection_metadata["obj_container"].name ) objects = obj_container.all_objects @@ -255,7 +255,7 @@ class BlendRigLoader(plugin.AssetLoader): collection_metadata = collection.get( blender.pipeline.AVALON_PROPERTY) - obj_container = get_local_collection_with_name( + obj_container = plugin.get_local_collection_with_name( collection_metadata["obj_container"].name ) objects = obj_container.all_objects