Remove empty User Functions and Script Event sections
Signed-off-by: chcurran <82187351+carlitosan@users.noreply.github.com>
This commit is contained in:
@@ -80,12 +80,11 @@ namespace ScriptCanvasEditor
|
||||
GraphCanvas::NodePaletteTreeItem* variablesRoot = root->CreateChildNode<LocalVariablesListNodePaletteTreeItem>("Variables");
|
||||
root->RegisterCategoryNode(variablesRoot, "Variables");
|
||||
|
||||
// We always want to keep these around as place holders
|
||||
GraphCanvas::NodePaletteTreeItem* customEventRoot = root->GetCategoryNode("Script Events");
|
||||
customEventRoot->SetAllowPruneOnEmpty(false);
|
||||
customEventRoot->SetAllowPruneOnEmpty(true);
|
||||
|
||||
GraphCanvas::NodePaletteTreeItem* globalFunctionRoot = root->GetCategoryNode("User Functions");
|
||||
globalFunctionRoot->SetAllowPruneOnEmpty(false);
|
||||
globalFunctionRoot->SetAllowPruneOnEmpty(true);
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -509,7 +509,8 @@ namespace ScriptCanvas
|
||||
|
||||
bool SubgraphInterface::HasAnyFunctionality() const
|
||||
{
|
||||
return IsActiveDefaultObject() || HasPublicFunctionality();
|
||||
// \todo restore default object addition when ndoes can define an variable, as well
|
||||
return /*IsActiveDefaultObject() || */ HasPublicFunctionality();
|
||||
}
|
||||
|
||||
bool SubgraphInterface::HasBranches() const
|
||||
|
||||
Reference in New Issue
Block a user