Regression: deleting a point in a (cyclic) nurbs curve permanently converts to poly, subdividing as well #101160
Labels
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
6 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#101160
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
System Information
Operating system: Windows-10-10.0.22000-SP0 64 Bits
Graphics card: NVIDIA GeForce GTX 1650/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 516.94
Blender Version
Broken: version: 3.3.0, branch: master, commit date: 2022-09-06 15:39, hash:
0759f671ce
Caused by
0602852860
and45d038181a
Short description of error
deleting a point in a nurbs curve permanently converts to poly.
Exact steps for others to reproduce the error
1- add a nurbs circle
2- enter edit mode
3- delete any point
curve is now poly and can´t be changed back to nurbs.
operator does nothing after this point.
While this particular issue reported here is caused by
0602852860
, there is another change in behavior (caused by a previous commit):repro case:
(that one is caused by
45d038181a
)Added subscriber: @Zombie
Added subscriber: @PratikPB2123
Changed status from 'Needs Triage' to: 'Confirmed'
Thanks for the report. I can confirm. Something has changed between 3.1-3.2. Checking...
Panel reappears after making any control point active (with LMB)
strangely enough, after converting to nurbs, it also returns the nurbs type curves, but said curves don´t appear until that panel section is active, maybe a redrawing/refresh issue?
maybe conversion needs to have an "active" point to work, as you can see in the video, i used the operator but no nurbs curve is drawn (maybe because i didn´t had an active vertex selected with lmb first).
i still think there´s a bug there
Added subscribers: @laurynas, @pmakal, @HooglyBoogly, @lichtwerk
While this particular issue reported here is caused by
0602852860
, there is another change in behavior (caused by a previous commit):repro case:
(that one is caused by
45d038181a
)I think we should remove the issue about the
Active Spline
panel though -- when deleting stuff, we are loosing theactive
, this is expected behavior I think and has always been the case...CC @laurynas
CC @HooglyBoogly
CC @pmakal
deleting a point in a nurbs curve permanently converts to poly and removes the "active spline" section, also permanentlyto Regression: deleting a point in a (cyclic) nurbs curve permanently converts to poly, subdividing as wellActive Spline
issue is old one. In editcurve.ccurve_delete_exec
always deselects active curve after control point deletion:cu->actnu = cu->actvert = CU_ACT_NONE;
Though
cu->actnu = CU_ACT_NONE;
should be set only after all curve deletion.Circle point deletion causes problems, because it brings invalid degree and control point count setup for Bezier. After selecting any cp again info message could be seen in the
Active Spline
panel. The idea was to not to show geometry at all in such cases and withNurbs Surface Circe
behaviour is such. InNurbs Curves
acts differently, for some unknown reason geometry replicating control point leg is shown.Subdivision results in a sequence 3 point Bezier curves. Those curves start at the corners and their middle cp's lay on the same line, this leads us to the square.
Result maybe not intuitive for user but from math point everything is fine. For Nurbs subdivision like tool should be done by refining knot vector not by subdividing control point leg.
Regarding circle shown as a poly after point deletion. It appears invalid NURBS are treated that way:
https://developer.blender.org/rB2d80f814cc249d26b01fe1a306d4f7d1c2ffed90
Also: could there be something wrong with versioning code?
Opening a plain Nurbs Circle saved pre
0602852860
in master looks like this now:{F13561099 size=full}
Think get it now (at least understand it much better).
Not quite sure how this was working prior to those commits (because from the user standpoint it did make it intuitive modeling wise -- while probably on other levels this was worsebecause you never knew which options worked together and which were ignored)
And this is because for the default Nurbs Circle, you had to have
Cyclic
&Bezier
turned on prior to said commit, now it isCyclic
&Bezier
&Endpoint
, is this not taken care of in versioning?Until D11664 it circle was 4 order cyclic Nurbs with appropriate cps and weights, but it wasn't accurate. Differences where seen when compared to mesh circle. Same scheme with same problems was used for sphere, cylinder. I agree that accuracy came at a cost, but Blender's approach to NURBS is to blame at least at some points. For ex. point deletion could give more user friendly result if knot vector was generated only at the creation of primitive.
Migration code in
0602852860
assumes that files were saved with version before45d038181a
.45d038181a
should have had it's own migration code.This issue was referenced by
f3f0ea8dc2
Bezier
mode unchecked. WithoutBezier
accurate circle or sphere is not possible, more on this in D11664. Pollyline instead of "no geometry at all" appeared with2d80f814cc
.Active Spline
visible, he will see the message "1 more point(s) needed for Bezier" after point deletion.Subdivision
..blend
files saved before45d038181a
should get the modification:and versioning code in block
if (!MAIN_VERSION_ATLEAST(bmain, 302, 6)) {
should be fixed to:but I don't know to which
MAIN_VERSION_ATLEAST
block to put the first chunk. The one for files before45d038181a
.Thanks for the investigation @laurynas. It looks like the only remaining thing is fixing the versioning code.
For the first block of versioning, what do you think about using the bump from f756dc4812f3852bba54ee46c21288540f066672?
That commit was on January 28th rather than the 21st, but it seems close enough in the scheme of things.
If that sounds good, could you make a patch with those changes to versioning? Thanks.
This issue was referenced by
18af9da572
Changed status from 'Confirmed' to: 'Archived'
I'm going to close this report, since various "sub-issues" have been addressed, and the main thing where NURBS curves with invalid degrees/point counts aren't evaluated is the intended behavior.