Skip to content

Commit

Permalink
Merge pull request #12 from mcneel/jussi/SampleCustomRenderMeshDefaul…
Browse files Browse the repository at this point in the history
…tNumberFix

Fixed default number input to current amount
  • Loading branch information
jussiaaltonen authored Jul 27, 2018
2 parents 859a5ef + a812c3d commit fe51749
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cpp/SampleCustomRenderMesh/cmdSampleCustomRenderMesh.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit fe51749

Please sign in to comment.