Object: add Shade Auto Smooth operator #121494
No reviewers
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
4 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#121494
Loading…
Reference in New Issue
No description provided.
Delete Branch "JacquesLucke/blender:shade-auto-smooth"
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?
Based on the design in #120230.
Shade Smooth by Angle
withShade Auto Smooth
in the menu.Shade Smooth
andShade Flat
operators now remove theSmooth by Angle
modifier automatically.WIP: Object: add Shade Auto Smooth operatorto Object: add Shade Auto Smooth operatorThanks. This works well. We'll be in an intermediate state until the "Shade Smooth" and "Shade Flat" operators remove the modifier too. But that can be done separately using parts of this code.
@ -1713,0 +1772,4 @@
bNodeTree *node_group = reinterpret_cast<bNodeTree *>(node_group_id);
node_group->ensure_topology_cache();
const StringRefNull angle_identifier = node_group->interface_inputs()[1]->identifier;
Missing
BKE_node_runtime.hh
includeBesides the Shade Smooth/Shade Flat changes appointed by Hans we also the "stick to bottom" option is required for this to really shine. I think we should wait for this all to be tested together before we merge.
@blender-bot package
Package build started. Download here when ready.
I think the "Auto Smooth" option on the operation should not be saved (PROP_SKIP_SAVE).
Right now if I do:
The last time this is call it does nothing. This is also how it works in 4.0.
Looked into implementing this, and actually I'm having a bunch of trouble filling the operator's value from the active modifier. Menus seem hardcoded to use
exec
rather thaninvoke
, so I can't give the angle a starting value.But anyway, in the angle was saved with the operator properties in 4.0 (PROP_SKIP_SAVE) was not used.
Not sure what you mean by this. "Shade Auto Smooth" after "Shade Flat" will do the same thing as it always does.
In conclusion, I'd leave the angle-saving as-is.
I don't think you need to initialize the angle value from the modifier to justify adding
PROP_SKIP_SAVE
to the "Auto Smooth" option.Agh, sorry, I was talking about the angle, everyone else was talking about the boolean option!
@blender-bot package
Package build started. Download here when ready.
@blender-bot package
Package build started. Download here when ready.
Ship it!