diff --git a/cpp/SampleCustomRenderMesh/cmdSampleCustomRenderMesh.cpp b/cpp/SampleCustomRenderMesh/cmdSampleCustomRenderMesh.cpp index 600c45b6..d03e7584 100644 --- a/cpp/SampleCustomRenderMesh/cmdSampleCustomRenderMesh.cpp +++ b/cpp/SampleCustomRenderMesh/cmdSampleCustomRenderMesh.cpp @@ -128,6 +128,7 @@ CRhinoCommand::result CCommandSampleCustomRenderMesh::RunCommand(const CRhinoCom int optAmount = gn.AddCommandOptionNumber(RHCMDOPTNAME(L"Amount"), &amount); while (true) { + gn.SetDefaultNumber(amount); CRhinoGet::result gnr = gn.GetNumber(); if (gnr == CRhinoGet::number) {