Parenting breaks extract operations in sculpt mode #89603
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
5 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#89603
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
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?
System Information
Operating system: Linux-5.4.0-77-generic-x86_64-with-glibc2.31 64 Bits
Graphics card: Quadro GP100/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 460.80
Blender Version
Broken: version: 3.0.0 Alpha, branch: master, commit date: 2021-07-02 04:03, hash:
9f5c0ffb5e
Short description of error
If an object is parented to another it will not take the position of the parent into account when extracting geometry from sculpt mode.
For example I can parent the object to an empty and move the empty. As a result the empty will have translation values but the main object does not.
If I now mask off some of the surface and use "Mask Extract" or "Mask Slice to New Object" it will only use the relative position of the object in relation to its parent instead of the actual position in the Scene and position the extracted geometry in the wrong location.
In the case of mask extract this will completely break since it will try to shrinkwrap the extracted geoemtry back onto the original object but from the wrong location.
Exact steps for others to reproduce the error
2021-07-02 15-44-32.mp4
Added subscriber: @JulienKaspar
#103753 was marked as duplicate of this issue
Changed status from 'Needs Triage' to: 'Confirmed'
Added subscriber: @PratikPB2123
@JulienKaspar : would it be preferred to make this consistent with
Mesh
>Separate
>Selection
in that the new object would keep the parenting relationship as well as scale from the source object?At the moment, you are getting an object outside the parenting hierarchy and with a scale of 1.
@lichtwerk I think your suggestion is great. That would be best and more consistent.
Also noticed that it doesnt preserve materials (which should be done I think?)
Also noticed that the name for the new object is just "Mesh" (which should be based on the name of the object this was extracted from I think?)
The way the new object is created in
editmesh_mask_extract.c
also causes #103773 (Assert hit on executing mask extract operations) btw...I think when addressing the points above, we can also switch to a method that would eliminate the assert from #103773.
All that sounds great! From what I read the the past these mask operators are not that well coded in the first place.
If you can fix these issues that would be fantastic!
Hi @lichtwerk , looks like you're working on this
Submitted the patch yesterday, turns out
shirnkwrap
option is not positioning new mesh vertices correctlyI think more modelling/transform knowledge is required to solve it.
I'll close my patch since it only handles one case
Sorry for the duplicate efforts @PratikPB2123
Stepping down since I currently do not plan on actually working on this