diff --git a/Source/SenseGloveEditor/Private/SGEditor/SGContentBrowserExtension.cpp b/Source/SenseGloveEditor/Private/SGEditor/SGContentBrowserExtension.cpp index 8c751e8a..2c3243e1 100644 --- a/Source/SenseGloveEditor/Private/SGEditor/SGContentBrowserExtension.cpp +++ b/Source/SenseGloveEditor/Private/SGEditor/SGContentBrowserExtension.cpp @@ -233,6 +233,8 @@ void FSGContentBrowserExtension::AssetExtenderCallback( FMenuBuilder& MenuBuilder, const TArray SelectedAssets) { bool bShouldExtendTheMenu = true; + bool bAnySkeletalMeshSelected = false; + bool bAnySkeletonSelected = false; for (const FAssetData& Asset: SelectedAssets) { @@ -252,6 +254,22 @@ void FSGContentBrowserExtension::AssetExtenderCallback( bShouldExtendTheMenu = false; break; } + + if (bIsChildOfUSkeletalMesh) + { + bAnySkeletalMeshSelected = true; + } + + if (bIsChildOfUSkeleton) + { + bAnySkeletonSelected = true; + } + + if (bAnySkeletalMeshSelected && bAnySkeletonSelected) + { + bShouldExtendTheMenu = false; + break; + } } if (!bShouldExtendTheMenu)