Fix: bevel weights in Simple mode of Solidify #115258

Merged
Hans Goudey merged 1 commits from laurynas/blender:simple-solidify-bweights into main 2023-11-22 13:42:10 +01:00
Contributor

In Simple Solidify's mode edge weights created by "Bevel Convex" disappear, if edge weight is added to original mesh. From technical side problem is identical to the one in #114860.
It is demonstrated in files with a prefix "convex_edge_".
If original mesh doesn't have layer "bevel_weight_edge" option "Bevel Convex" works fine. convex_no_edge_bweights.png

All bevels disappear after one edge gets bevel weight. Except ones corresponding newly added weight convex_edge_bweight_added.png

In patched version weights created by "Convex Bevel" stay. Also manually added weight can be observed on the edge of inner cube.
convex_edge_bweights_fixed.png

convex_edge_bweights.blend

Second problem in files with a prefix "vertex_bweight_". Original plane has one vertex with bevel weight 1.0, but no bevel in result.
vertex_bweight_no_bevel.png

If to change Solidify's mode from "Simple" to "Complex" bevel appears.
Patch adds this behavior to the "Simple" mode.
vertex_bweight_bevel_added.png

vertex_bweight_no_bevel.blend

In Simple Solidify's mode edge weights created by "Bevel Convex" disappear, if edge weight is added to original mesh. From technical side problem is identical to the one in #114860. It is demonstrated in files with a prefix "convex_edge_". If original mesh doesn't have layer "bevel_weight_edge" option "Bevel Convex" works fine. ![convex_no_edge_bweights.png](/attachments/7e0c4b05-e8fa-4dad-beeb-a3e599afeea4) All bevels disappear after one edge gets bevel weight. Except ones corresponding newly added weight ![convex_edge_bweight_added.png](/attachments/a945837b-2968-4aae-88d0-e266c8a69fb4) In patched version weights created by "Convex Bevel" stay. Also manually added weight can be observed on the edge of inner cube. ![convex_edge_bweights_fixed.png](/attachments/ecdd7f10-076f-4b58-9367-47821cc1731a) [convex_edge_bweights.blend](/attachments/380e02ba-6145-4741-9924-a60253fbb66a) Second problem in files with a prefix "vertex_bweight_". Original plane has one vertex with bevel weight 1.0, but no bevel in result. ![vertex_bweight_no_bevel.png](/attachments/4733547a-35af-4401-a31f-c538d292b41c) If to change Solidify's mode from "Simple" to "Complex" bevel appears. Patch adds this behavior to the "Simple" mode. ![vertex_bweight_bevel_added.png](/attachments/e28b135c-bf1e-4f45-bd16-3bbb493c2172) [vertex_bweight_no_bevel.blend](/attachments/8f37e245-be7d-479b-b658-56e4545073fe)
Laurynas Duburas added 1 commit 2023-11-22 11:23:22 +01:00
buildbot/vexp-code-patch-coordinator Build done. Details
6d7062189e
Fix: bevel weights in Simple mode of Solidify
In Simple Solidify's mode  edge weights created by "Bevel Convex" disappear, if edge weight is added to original mesh. From technical side problem is identical to the one in #114860.
Second problem was that vertex bevel weights are ignored by Solidify Simple. Code in patch transfers bweight of the vertex to the edge bweight extruded from it.
Laurynas Duburas requested review from Hans Goudey 2023-11-22 11:25:38 +01:00
Iliya Katushenock added this to the Modeling project 2023-11-22 12:06:26 +01:00
Member

@blender-bot build

@blender-bot build
Hans Goudey approved these changes 2023-11-22 13:40:11 +01:00
Hans Goudey left a comment
Member

Looks like the test failures are the same ones as in main. Thanks for the PR. It looks good to me.

Looks like the test failures are the same ones as in main. Thanks for the PR. It looks good to me.
Hans Goudey merged commit 0ff1a8825e into main 2023-11-22 13:42:10 +01:00
Laurynas Duburas deleted branch simple-solidify-bweights 2023-11-23 19:38:50 +01:00
Sign in to join this conversation.
No reviewers
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
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#115258
No description provided.