Mesh: Avoid position copying in corrective smooth modifier #108291

Merged
Hans Goudey merged 2 commits from Chao-Li/blender:remove-position-copy into main 2023-05-25 22:12:17 +02:00
Contributor

I've found a place where copying mesh position is not needed. This is to address #103789.

I've found a place where copying mesh position is not needed. This is to address #103789.
Iliya Katushenock added the
Interest
Modeling
label 2023-05-25 20:06:03 +02:00
Iliya Katushenock requested review from Hans Goudey 2023-05-25 20:06:10 +02:00
Hans Goudey requested changes 2023-05-25 20:08:03 +02:00
Hans Goudey left a comment
Member

Thanks! Looks good.

Thanks! Looks good.
@ -659,0 +658,4 @@
is_rest_coords_alloc = true;
}
else {
rest_coords = BKE_mesh_vert_positions(static_cast<const Mesh *>(ob->data));
Member

It would be a bit nicer to make a temporary Mesh *mesh variable, to avoid casting the object data twice.

It would be a bit nicer to make a temporary `Mesh *mesh` variable, to avoid casting the object data twice.
Author
Contributor

Sure. I named it Mesh *me since there's a variable named mesh in outer scope.

Sure. I named it `Mesh *me` since there's a variable named `mesh` in outer scope.
Chao-Li marked this conversation as resolved
Chao Li force-pushed remove-position-copy from 61b739795d to b0f1e89813 2023-05-25 20:23:16 +02:00 Compare
Chao Li requested review from Hans Goudey 2023-05-25 20:28:41 +02:00
Member

@blender-bot build

@blender-bot build
Hans Goudey changed title from Refactor: remove mesh position copying in correctivesmooth_modifier_do() to Mesh: Avoid position copying in corrective smooth modifier 2023-05-25 22:11:44 +02:00
Hans Goudey merged commit 72309be398 into main 2023-05-25 22:12:17 +02:00
Howard Trickey referenced this issue from a commit 2023-05-29 02:51:36 +02:00
Chao Li deleted branch remove-position-copy 2023-05-31 22:03:33 +02: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#108291
No description provided.