Bug - rs.SimplifyCurve() with flag errors out

If I run this code:

import rhinoscriptsyntax as rs
crvID=rs.GetObject("Select curve to simplify",4,preselect=True)
rs.SimplifyCurve(crvID,4)  #problem is with any flag, not just 4

it errors out with the following message:

unsupported operand type(s) for -: 'CurveSimplifyOptions' and 'CurveSimplifyOptions'

Seems like the following is not working in curve.py:

_flags = _flags - Rhino.Geometry.CurveSimplifyOptions.RebuildArcs

If no flag is set, it runs OK. Checked in the V6 WIP and same thing. @Alain any clues?

Thanks, --Mitch

Hi Mitch!

Yes, that’s a bug. Thanks.