Particles in Particle Edit Mode get added in completely wrong location #47038

Closed
opened 2015-12-22 12:02:44 +01:00 by Andy Goralczyk · 12 comments
Member

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!

oti_particle_edit_mode.blend

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

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! [oti_particle_edit_mode.blend](https://archive.blender.org/developer/F270020/oti_particle_edit_mode.blend) 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
Author
Member

Changed status to: 'Open'

Changed status to: 'Open'
Author
Member

Added subscriber: @eyecandy

Added subscriber: @eyecandy
Bastien Montagne self-assigned this 2015-12-22 13:01:59 +01:00

Added subscriber: @dfelinto

Added subscriber: @dfelinto

This bug was introduced in eca6264a

This bug was introduced in eca6264a
Bastien Montagne was unassigned by Dalai Felinto 2015-12-22 13:08:46 +01:00
Antonis Ryakiotakis was assigned by Dalai Felinto 2015-12-22 13:08:46 +01:00

Added subscriber: @mont29

Added subscriber: @mont29

Antony, could you look at this?

Antony, could you look at this?

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

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- [x].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…

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- [x].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…

@Psy-Fi if you could have a look at my patch and see whether I did not do complete crap… ;)

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

@Psy-Fi if you could have a look at my patch and see whether I did not do complete crap… ;) @eyecandy can you please check the patch ([D1685](https://archive.blender.org/developer/D1685)) and confirm it works for you (and does not break something else :| )?
Antonis Ryakiotakis was unassigned by Bastien Montagne 2015-12-23 20:02:44 +01:00
Bastien Montagne self-assigned this 2015-12-23 20:02:44 +01:00

Added subscriber: @Psy-Fi

Added subscriber: @Psy-Fi

This issue was referenced by aad24468e2

This issue was referenced by aad24468e2d32d46e2c3b3b4a37302a4f1f27ab6

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'
Sign in to join this conversation.
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
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#47038
No description provided.