Page MenuHome

Particles in Particle Edit Mode get added in completely wrong location
Closed, ResolvedPublic

Description

When adding particles in Particle Edit mode using the Add brush, they appear in entirely different location. This used to work in 2.70, in 2.71 it broke somehow.
Sometimes this can be fixed by disabling the subsurf modifier that comes before the particle system. However, having subsurf and particles work together is vital!

See attached file. This file should have a character base mesh already with a particle system, and the Add Particles tool enabled. To repeat the error, simply add particles by drawing on the mesh.

System Information
Tested using Blender Institute Linux workstation. Tracked down past working version using the windows builds from download.blender.org

Blender Version
Broken: 2.71 and after
Worked: pre 2.70

Event Timeline

Andy Goralczyk (eyecandy) updated the task description. (Show Details)
Andy Goralczyk (eyecandy) raised the priority of this task from to Needs Triage by Developer.
Andy Goralczyk (eyecandy) set Type to Bug.

I'll try. No promises, the system there is pretty broken.

Issue comes from the fact we are using only mesh_get_derived_deform() in brush_add()… So painting is done without subsurf modifier at all - and add_pars[n].num_dmcache is set wint deform-only indices (which sounds pretty much useless).

I tried using mesh_get_derived_final() instead, now add_brush() produces valid mapped index values in num_dmcache, but shows nothing on screen (which makes me believe code drawing particles later on expects deform-only indices, but then, why isn’t it mapping correctly to complete DM?). Still investigating…

@Antony Riakiotakis (psy-fi) if you could have a look at my patch and see whether I did not do complete crap… ;)

@Andy Goralczyk (eyecandy) can you please check the patch (D1685) and confirm it works for you (and does not break something else :| )?

Bastien Montagne (mont29) triaged this task as Confirmed, Medium priority.Dec 22 2015, 5:19 PM