Fixes for node palette exclusion, restrict asset variable type to fix LYN-3090

This commit is contained in:
chcurran
2021-04-21 21:36:31 -07:00
parent 143c2516c6
commit 134f07eb5a
9 changed files with 140 additions and 133 deletions
@@ -122,8 +122,8 @@ namespace ScriptCanvasEditor
for (const AZ::Uuid& objectId : objectTypes)
{
// Verify whether this is an allowed BC variable type
if (!ScriptCanvas::Data::IsAllowedBehaviorClassVariableType(objectId))
ScriptCanvas::Data::Type type = dataRegistry->m_typeIdTraitMap[ScriptCanvas::Data::eType::BehaviorContextObject].m_dataTraits.GetSCType(objectId);
if (!type.IsValid() || !dataRegistry->m_creatableTypes.contains(type))
{
continue;
}