-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Ensure nulls are set when null is an input - fails if null is last item in a list...
Objectivism/Components/FilterByType.cs
Lines 72 to 104 in 2ac845b
protected override void SolveInstance(IGH_DataAccess DA) { IGH_Goo goo = null; if (!DA.GetData(0, ref goo)) { return; } GH_ObjectivismObject obj; if (goo is GH_ObjectivismObject ghObj) { obj = ghObj; } else { this.AddRuntimeMessage(GH_RuntimeMessageLevel.Error, "Can only filter ojects built with Objectivism"); return; } TypeNames.Add(obj.Value.TypeName); foreach ((int i, var param) in Params.Output.Enumerate()) { string name = param.NickName; if(obj.Value.TypeName == name) { DA.SetData(i, obj); } else { DA.SetData(i, null); } } }
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working