From 708a8842cd4ba47d83a8999b18d44488d72e6f2d Mon Sep 17 00:00:00 2001 From: Simone Barbieri Date: Mon, 18 Sep 2023 12:59:00 +0100 Subject: [PATCH] Add support for layout to load staticMesh and skeletalMesh families --- openpype/hosts/unreal/plugins/load/load_layout.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/openpype/hosts/unreal/plugins/load/load_layout.py b/openpype/hosts/unreal/plugins/load/load_layout.py index 3b82da5068f..1db306e4d5a 100644 --- a/openpype/hosts/unreal/plugins/load/load_layout.py +++ b/openpype/hosts/unreal/plugins/load/load_layout.py @@ -67,9 +67,9 @@ def _get_asset_containers(self, path): @staticmethod def _get_fbx_loader(loaders, family): name = "" - if family == 'rig': + if family in ['rig', 'skeletalMesh']: name = "SkeletalMeshFBXLoader" - elif family == 'model': + elif family in ['model', 'staticMesh']: name = "StaticMeshFBXLoader" elif family == 'camera': name = "CameraLoader" @@ -86,7 +86,7 @@ def _get_fbx_loader(loaders, family): @staticmethod def _get_abc_loader(loaders, family): name = "" - if family == 'rig': + if family in ['rig', 'skeletalMesh']: name = "SkeletalMeshAlembicLoader" elif family == 'model': name = "StaticMeshAlembicLoader"