Bevel segments bug
Open, ConfirmedPublic

Description

System Information
win10, gtx 1070

Blender Version
Broken: fef0cd8 , problem started after recent 2.77.3 bevel changes

Short description of error
Segments are not added correctly
the first segment step is always incorrect, and sometimes segments number getting saved and called randomly called .

to replicate

add cube, select edge, press ctrl+B and now in edit mode press +
this will not add a segment, it will be added after next press though, If You now press - and set them back to 0 they will be added in correct way from now on(for that modal session)

its not all though
sometimes segments are randomly saved
so if You set lets say 7 segments while beveling then when You try to bevel other edge it will start with 7 or 8 or 6 even if f6 was not used.

Details

Type
Bug

I was going to post about the same issue and I think it started way before 2.77.3. I also want to point out that first segment will not be added when you scroll mouse up once forcing you to scroll multiple times to add a segment. When you start a new bevel session and scroll your mouse or press +\- on your numpad it will not change zero segments to one, but will add as many segments as in previous session. These problems don't exist in 2.77a abf6f08.

Bastien Montagne (mont29) triaged this task as Confirmed priority.Aug 28 2016, 4:56 PM

BevelData.segments is not initialized - but not sure there isn’t more to fix here, will let you handle it @Howard Trickey (howardt). ;)

Yes, I can fix by initializing BevelData.segments. But I think there is indeed something more to fix here, so I'm not going to close this yet, but I will commit an immediate fix to the uninitialized problem (and the problem of + not having an effect).

The remaining problem is some inconsistency with when a new bevel starts with the last-used values. If you set values in the tool panel (or F6 panel), the next control-B will start a bevel with the just-used values. But if you do the bevel by adjusting the mouse and using +/- numpad keys for segments, the panels show the last-used values but the bevel itself starts at a zero value and 1 segment.