rs.SurfaceEvaluate, when derivative=0 does not work

In PythonScript, I’d like to get a point on a surface from uv.


but it does not work.


does work.

Why that does not work when derivative=0 ?

That’s a bug in (@piac)

Here is the code:
success, point, der = surface.Evaluate(parameter[0], parameter[1], derivative)
for d in der: rc.append(d) # der is None and not iterable when derivative is 0

I’ve reported this as a bug.

Thank you all,

I could fix bug codes personally,
but I hope it will be fixed officially.

I feel PythonScript in Rhino5 have some little problems like this.

RH-35718 is fixed in the latest Service Release Candidate