Skip to content

Commit

Permalink
fix: condition without output connection
Browse files Browse the repository at this point in the history
  • Loading branch information
dermitzos committed Apr 28, 2024
1 parent 167f91b commit 625a715
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions addons/arcweave/Project/ProjectMaker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ public Project MakeProject()
}
}
}
_elements[key] = new Element(key, Interpreter.Utils.CleanString(el["title"].AsString()), el["content"].AsString(), project, elConnections, elComponents, elAttributes, coverAsset);
_elements[key] = new Element(key, el["title"].AsString(), el["content"].AsString(), project, elConnections, elComponents, elAttributes, coverAsset);
}

_startingElement = _elements[_projectData["startingElement"].AsString()];
Expand All @@ -211,7 +211,7 @@ public Project MakeProject()
Dictionary cond = _conditionsDict[key].AsGodotDictionary();
Connection condOutput = null;
string script = null;
if (cond.ContainsKey("output"))
if (cond.ContainsKey("output") && cond["output"].VariantType != Variant.Type.Nil)
{
condOutput = _connections[cond["output"].AsString()];
}
Expand Down

0 comments on commit 625a715

Please sign in to comment.