fix for late compilation errors on untyped input

Signed-off-by: chcurran <82187351+carlitosan@users.noreply.github.com>
monroegm-disable-blank-issue-2
chcurran 4 years ago
parent 977d58e1a8
commit 882e72dab3

@ -4320,6 +4320,12 @@ namespace ScriptCanvas
{
AZ_Assert(execution->GetSymbol() != Symbol::FunctionDefinition, "Function definition input is not handled in AbstractCodeModel::ParseInputDatum");
if (!input.GetDataType().IsValid())
{
AddError(nullptr, aznew Internal::ParseError(execution->GetNodeId(), ParseErrors::InvalidDataTypeInInput));
return;
}
auto nodes = execution->GetId().m_node->GetConnectedNodes(input);
if (nodes.empty())
{

@ -41,6 +41,7 @@ namespace ScriptCanvas
constexpr const char* InactiveGraph = "This graph defines no functions, it is never activated, and will never execute. Add a Start node or connect an event handler or define functions.";
constexpr const char* InfiniteLoopWritingToVariable = "infinite loop when writing to variable";
constexpr const char* InfiniteSelfActivationLoop = "infinite loop when activating the entity that owns this graph";
constexpr const char* InvalidDataTypeInInput = "invalid data type in input slot";
constexpr const char* MetaDataNeedsTupleTypeIdForEventCall = "Meta data needs an AzTypeId for Tuple if an EBus call returns multiple types to ScriptCanvas";
constexpr const char* MetaDataRequiredForEventCall = "Meta data is required for ACM node that is an EBus call";
constexpr const char* MissingFalseExecutionSlotOnIf = "A 'False' Execution output slot is required in an If branch node";

@ -779,7 +779,7 @@ TEST_F(ScriptCanvasTestFixture, InterpretedPrintConnectedInput)
TEST_F(ScriptCanvasTestFixture, InterpretedPrintFormatEmptyValue)
{
RunUnitTestGraph("LY_SC_UnitTest_PrintFormatEmptyValue", ExecutionMode::Interpreted);
ExpectParseError("LY_SC_UnitTest_PrintFormatEmptyValue");
}
TEST_F(ScriptCanvasTestFixture, InterpretedProperties)
@ -819,7 +819,7 @@ TEST_F(ScriptCanvasTestFixture, InterpretedStringFormat)
TEST_F(ScriptCanvasTestFixture, InterpretedStringFormatEmptyValue)
{
RunUnitTestGraph("LY_SC_UnitTest_StringFormatEmptyValue", ExecutionMode::Interpreted);
ExpectParseError("LY_SC_UnitTest_StringFormatEmptyValue");
}
TEST_F(ScriptCanvasTestFixture, InterpretedStringFormatWithRepeatedValueName)

Loading…
Cancel
Save