hair disconnect/reconnect not working with modifiers #54488
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
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
6 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#54488
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
Linux (Arch), GTX 1080
Blender Version
2.79b
f4dc9f9d68
Short description of error
When using a hair particle system on an object with a mirror modifier, and trying to disconnect and then reconnect the hair the particle positions are messed up.
Exact steps for others to reproduce the error
hair-mirror-2.blend
More Info
hair-mirror-4.blend
Added subscriber: @omgold
#67069 was marked as duplicate of this issue
Added subscriber: @brecht
The problem here is that the "Use Modifier Stack" setting is not properly taken into account for these disconnect/reconnect operators.
Added subscriber: @lichtwerk
Hi @brecht, @omgold, I've seen you discuss this on the mailinglist (and I understand reaching out here as for some reason this report seemed to slip under the radar)
But: why not continue here? This way others (including me) can follow and participate much better.
Sorry for the wall of text, but pasting from the mailinglist, so it doesnt get lost...
@lichtwerk Yes, of course. Sorry in case I failed to follow the preferred procedures. No secret that I'm rather new around here.
In any case, I looked further into the matter, and as psys_calc_dmcache() is just setting num_dmcache = DMCACHE_ISCHILD in the case of 'use modifier stack', I did this also, and voila stuff seems to work. Apparently the marker DMCACHE_ISCHILD is abused to handle the case of modifier stacks also. In case this reasoning is right, and you want to try, here is the fix:
0d6a3aaf87
I'm still trying to understand the wrong placement of hair after disconnect with subsurf and 'use modifier stack' disabled. I will let you know, if I can figure out more.
About the situation with subsurf and no 'use modfiier stack', not it is clearer to me. The reconnect in this case seems to work like this:
I guess the best way to solve this, would be to use the final mesh (after modifiers) in the first step. The problem that appears there, though, is that the index of the face the hair is attached to has to be giving on the original mesh. I couldn't find a method available to do that, so I didn't come up with a patch (yet). Basically what would be needed is the inverse of psys_particle_dm_face_lookup().
Added subscribers: @MarekHolly, @grosgood
Mirror modifier and hair disconnect/reconnect not working togetherto hair disconnect/reconnect not working with modifiersAdded subscriber: @JacquesLucke
It seems unlikely that someone will work on this before the new hair type is usable. Therefore, I'll reclassify this as known issue.
This issue was referenced by
a4171f4866
This issue was referenced by
db9ddb8a45
This issue was referenced by
5dedb39d44
Changed status from 'Confirmed' to: 'Resolved'