Refactor: Restructure sculpt shape key updates #126161
No reviewers
Labels
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset System
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
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
Viewport & EEVEE
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Asset Browser Project
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
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
Module
Viewport & EEVEE
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Severity
High
Severity
Low
Severity
Normal
Severity
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
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#126161
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "Sean-Kim/blender:cleanup-write-translations"
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?
No response
cleanup-write-translationsto Refactor: Restructure sculpt shape key updates@ -1531,3 +1531,1 @@
if (BKE_keyblock_from_object(&object)) {
/* Update dependent shape keys back to their original */
apply_translations_to_shape_keys(object, verts, tls.translations, positions_orig);
if (const KeyBlock *active_key = BKE_keyblock_from_object(&object)) {
Does this area need the same fix for not adjusting base mesh positions when sculpting a shape key?
From my testing, no, I wasn't able to encounter a situation where this was needed. Since we restore from the unode positions, I don't think we would need to selectively filter that above on line
1515
To add to this - I think we could filter out some of these applications if we know we're working with non-basis shape keys, but I don't know if the potential speed gain would be worth the extra logic there
@ -7285,3 +7284,1 @@
const Span<int> verts,
const Span<float3> translations,
const MutableSpan<float3> positions_orig)
static void apply_translations_to_dependent_shape_keys(Object &object,
I'd keep
apply_translations_to_dependent_shape_keys
inlined here, I think it makes this change harder to read and it's not really a separate thing from changing the active shape key conceptually@ -7353,0 +7356,4 @@
apply_translations(translations, verts, positions_orig);
return;
}
BLI_assert(active_key);
Not sure this assert is helpful/useful
Sometimes it's useful to just get a stack trace of nullptr than open msvc so get a handling of an exception..\
Ah, yeah, I missed removing this, I don't think it does much in this particular case.