Skip to content

Commit d6adbf3

Browse files
author
moethu
committed
made inputs optional
1 parent 51103fe commit d6adbf3

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

SketchUpForGrasshopper/SketchUp.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,10 @@ public SaveSketchUpModel() : base("Save SketchUp Model", "Save SketchUp Model",
116116
protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
117117
{
118118
pManager.AddTextParameter("Path", "P", "Path to Sketchup File (skp)", GH_ParamAccess.item);
119-
pManager.AddCurveParameter("Curves", "C", "Curves", GH_ParamAccess.list);
120-
pManager.AddSurfaceParameter("Surfaces", "S", "Surfaces", GH_ParamAccess.list);
119+
int a = pManager.AddCurveParameter("Curves", "C", "Curves", GH_ParamAccess.list);
120+
int b = pManager.AddSurfaceParameter("Surfaces", "S", "Surfaces", GH_ParamAccess.list);
121+
pManager[a].Optional = true;
122+
pManager[b].Optional = true;
121123
}
122124

123125
protected override void RegisterOutputParams(GH_Component.GH_OutputParamManager pManager)

Testfiles/TestDefinition.gh

-124 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)