We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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); } } }
Objectivism/Components/FilterByType.cs
Lines 72 to 104 in 2ac845b
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Ensure nulls are set when null is an input - fails if null is last item in a list...
The text was updated successfully, but these errors were encountered: