Page MenuHome

Fix T83122: NURBS Extruding multiple points only moves existing points
ClosedPublic

Authored by Janusch Patas (patjan) on Dec 27 2020, 12:37 AM.

Details

Summary

This patch addresses the issue described in T83122. The Surface -> Nurbs Curve behaves now like the Curve -> Nurbs Curve, if you initially select less than all points. So, multiple points can be selected and extruded which just moves the selected points similar to Curve -> Nurbs Curve object.

Diff Detail

Repository
rB Blender
Branch
Fix-T83122NurbsExtruding (branched from master)
Build Status
Buildable 11889
Build 11889: arc lint + arc unit

Event Timeline

Janusch Patas (patjan) requested review of this revision.Dec 27 2020, 12:37 AM

@Bastien Montagne (mont29), do you think we shall get this into 2.91 as a bugfix/small improvement?

source/blender/editors/curve/editcurve.c
5701

The ED_curve_nurb_select_count(v3d, nu) < nu->pntsu seems redundant to me.

@Sergey Sharybin (sergey) I'd rather not add even more to 2.91.1, this one already have way too many commits listed, most of them not even being obvious serious/important fixes...

@Bastien Montagne (mont29), Sorry, I got numbering wrong. Surely this is not for 2.91.1 as this is not a fix for a regression. What i meant is: 2.92 (which is scheduled to branch soon) or 2.93? In another words, do you find this change fine for bcon2?

@Sergey Sharybin (sergey) Ah ok, yes, this totally fits into BCon2 definition for me, so sure it is still valid for 2.92.

Janusch Patas (patjan) retitled this revision from Fix NURBS Extruding multiple points only moves existing points to Fix T83122: NURBS Extruding multiple points only moves existing points.Jan 11 2021, 10:05 PM
Janusch Patas (patjan) edited the summary of this revision. (Show Details)

@Sergey Sharybin (sergey) : Thank you for your review. I tested it once again and I don't think the code is redundant. You won't be able to extrude a surface. You will one extrude if you select a single point. This behaves then like a regular curve. Please see my comment.

source/blender/editors/curve/editcurve.c
5701

No, this is not redundant because if you remove this part of the if statement, you will forever move all the points of the surface nurbs curve and you won't be able to extrude a surface. In other words, the default nurbs surface curve will always behave like a curve nurbs curve.

@Janusch Patas (patjan), ah, right. Thanks for the explanation.

This revision was not accepted when it landed; it landed in state Needs Review.Jan 12 2021, 11:01 AM
This revision was automatically updated to reflect the committed changes.