Merge pull request #1287 from aws-lumberyard-dev/carlito/stabilization/2106
Remove unwanted entries from ScriptCanvas node palette
This commit is contained in:
@@ -406,6 +406,7 @@ namespace AZ
|
||||
AZStd::vector<AZ::BehaviorParameter> eventParamsTypes{ AZStd::initializer_list<AZ::BehaviorParameter>{
|
||||
CreateBehaviorEventParameter<decay_array<T>>()... } };
|
||||
behaviorContext->Class<AZ::Event<T...>>()
|
||||
->Attribute(AZ::Script::Attributes::ExcludeFrom, AZ::Script::Attributes::ExcludeFlags::ListOnly)
|
||||
->Attribute(AZ::Script::Attributes::EventHandlerCreationFunction, createHandlerHolder)
|
||||
->Attribute(AZ::Script::Attributes::EventParameterTypes, eventParamsTypes)
|
||||
->Method("HasHandlerConnected", &AZ::Event<T...>::HasHandlerConnected)
|
||||
@@ -413,6 +414,7 @@ namespace AZ
|
||||
|
||||
behaviorContext->Class<AZ::EventHandler<T...>>()
|
||||
->Method("Disconnect", &AZ::EventHandler<T...>::Disconnect)
|
||||
->Attribute(AZ::Script::Attributes::ExcludeFrom, AZ::Script::Attributes::ExcludeFlags::ListOnly)
|
||||
;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -475,6 +475,11 @@ namespace
|
||||
continue;
|
||||
}
|
||||
|
||||
if (auto excludeFromPointer = AZ::FindAttribute(AZ::ScriptCanvasAttributes::Internal::ImplementedAsNodeGeneric, behaviorClass->m_attributes))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
if (auto excludeFromPointer = AZ::FindAttribute(AZ::Script::Attributes::ExcludeFrom, behaviorClass->m_attributes))
|
||||
{
|
||||
AZ::Script::Attributes::ExcludeFlags excludeFlags{};
|
||||
|
||||
@@ -133,12 +133,12 @@
|
||||
<addaction name="action_PresetsEditor"/>
|
||||
<addaction name="separator"/>
|
||||
</widget>
|
||||
<widget class="QMenu" name="menuUtilities">
|
||||
<!-- Disabled until tool is stabilized <widget class="QMenu" name="menuUtilities">
|
||||
<property name="title">
|
||||
<string>&Utilities</string>
|
||||
</property>
|
||||
<addaction name="action_UpgradeTool"/>
|
||||
</widget>
|
||||
</widget> -->
|
||||
<widget class="QMenu" name="menuSettings_2">
|
||||
<property name="title">
|
||||
<string>&Preferences</string>
|
||||
|
||||
@@ -3764,6 +3764,12 @@ namespace ScriptCanvas
|
||||
nextSlot = onceResetSlot;
|
||||
}
|
||||
|
||||
if (!nextSlot)
|
||||
{
|
||||
AddError(ID.m_node->GetEntityId(), once, "Once node missing next slot, likely needs replacement");
|
||||
return;
|
||||
}
|
||||
|
||||
ParseExecutionTreeBody(nextParse, *nextSlot);
|
||||
nextParse->MarkDebugEmptyStatement();
|
||||
}
|
||||
|
||||
@@ -928,6 +928,7 @@ namespace ScriptCanvas
|
||||
{
|
||||
return execution->GetId().m_node
|
||||
&& IsOnce(*execution->GetId().m_node)
|
||||
&& execution->GetId().m_slot
|
||||
&& execution->GetId().m_slot->GetType() == CombinedSlotType::ExecutionIn;
|
||||
}
|
||||
|
||||
@@ -938,7 +939,7 @@ namespace ScriptCanvas
|
||||
|
||||
bool IsOnceReset(const Node& node, const Slot* slot)
|
||||
{
|
||||
return slot = OnceProperty::GetResetSlot(&node);
|
||||
return slot == OnceProperty::GetResetSlot(&node);
|
||||
}
|
||||
|
||||
bool IsOperatorArithmetic(const ExecutionTreeConstPtr& execution)
|
||||
|
||||
Reference in New Issue
Block a user