Merge pull request #1287 from aws-lumberyard-dev/carlito/stabilization/2106

Remove unwanted entries from ScriptCanvas node palette
main
carlitosan 5 years ago committed by GitHub
commit 889e6e2b14
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -406,6 +406,7 @@ namespace AZ
AZStd::vector<AZ::BehaviorParameter> eventParamsTypes{ AZStd::initializer_list<AZ::BehaviorParameter>{ AZStd::vector<AZ::BehaviorParameter> eventParamsTypes{ AZStd::initializer_list<AZ::BehaviorParameter>{
CreateBehaviorEventParameter<decay_array<T>>()... } }; CreateBehaviorEventParameter<decay_array<T>>()... } };
behaviorContext->Class<AZ::Event<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::EventHandlerCreationFunction, createHandlerHolder)
->Attribute(AZ::Script::Attributes::EventParameterTypes, eventParamsTypes) ->Attribute(AZ::Script::Attributes::EventParameterTypes, eventParamsTypes)
->Method("HasHandlerConnected", &AZ::Event<T...>::HasHandlerConnected) ->Method("HasHandlerConnected", &AZ::Event<T...>::HasHandlerConnected)
@ -413,6 +414,7 @@ namespace AZ
behaviorContext->Class<AZ::EventHandler<T...>>() behaviorContext->Class<AZ::EventHandler<T...>>()
->Method("Disconnect", &AZ::EventHandler<T...>::Disconnect) ->Method("Disconnect", &AZ::EventHandler<T...>::Disconnect)
->Attribute(AZ::Script::Attributes::ExcludeFrom, AZ::Script::Attributes::ExcludeFlags::ListOnly)
; ;
} }
} }

@ -475,6 +475,11 @@ namespace
continue; 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)) if (auto excludeFromPointer = AZ::FindAttribute(AZ::Script::Attributes::ExcludeFrom, behaviorClass->m_attributes))
{ {
AZ::Script::Attributes::ExcludeFlags excludeFlags{}; AZ::Script::Attributes::ExcludeFlags excludeFlags{};

@ -133,12 +133,12 @@
<addaction name="action_PresetsEditor"/> <addaction name="action_PresetsEditor"/>
<addaction name="separator"/> <addaction name="separator"/>
</widget> </widget>
<widget class="QMenu" name="menuUtilities"> <!-- Disabled until tool is stabilized <widget class="QMenu" name="menuUtilities">
<property name="title"> <property name="title">
<string>&amp;Utilities</string> <string>&amp;Utilities</string>
</property> </property>
<addaction name="action_UpgradeTool"/> <addaction name="action_UpgradeTool"/>
</widget> </widget> -->
<widget class="QMenu" name="menuSettings_2"> <widget class="QMenu" name="menuSettings_2">
<property name="title"> <property name="title">
<string>&amp;Preferences</string> <string>&amp;Preferences</string>

@ -3764,6 +3764,12 @@ namespace ScriptCanvas
nextSlot = onceResetSlot; nextSlot = onceResetSlot;
} }
if (!nextSlot)
{
AddError(ID.m_node->GetEntityId(), once, "Once node missing next slot, likely needs replacement");
return;
}
ParseExecutionTreeBody(nextParse, *nextSlot); ParseExecutionTreeBody(nextParse, *nextSlot);
nextParse->MarkDebugEmptyStatement(); nextParse->MarkDebugEmptyStatement();
} }

@ -928,6 +928,7 @@ namespace ScriptCanvas
{ {
return execution->GetId().m_node return execution->GetId().m_node
&& IsOnce(*execution->GetId().m_node) && IsOnce(*execution->GetId().m_node)
&& execution->GetId().m_slot
&& execution->GetId().m_slot->GetType() == CombinedSlotType::ExecutionIn; && execution->GetId().m_slot->GetType() == CombinedSlotType::ExecutionIn;
} }
@ -938,7 +939,7 @@ namespace ScriptCanvas
bool IsOnceReset(const Node& node, const Slot* slot) bool IsOnceReset(const Node& node, const Slot* slot)
{ {
return slot = OnceProperty::GetResetSlot(&node); return slot == OnceProperty::GetResetSlot(&node);
} }
bool IsOperatorArithmetic(const ExecutionTreeConstPtr& execution) bool IsOperatorArithmetic(const ExecutionTreeConstPtr& execution)

Loading…
Cancel
Save