Go to file
Bastien Montagne aad24468e2 Fix T47038: Particles in Particle Edit Mode get added in completely wrong location.
It also fixes another issue (crash) related to symmetric editing.

Quite involved, we (try to!) fix complete broken logic of parts of particle code, which would use poly index
as tessface one (or vice-versa). Issue most probably goes back to BMesh integration time...

This patch mostly fixes particle editing mode:
  - Adding/removing particles when using generative modifiers (like subsurf) should now work.
  - Adding/removing particles with a non-tessellated mesh (i.e. one having ngons) should also mostly work.
  - X-axis-mirror-editing particles over ngons does not really work, not sure why currently.
  - All this in both 'modes' (with or without using modifier stack for particles).

Tech side:
  - Store a deformed-only DM in particle modifier data.
  - Rename existing DM to make it clear it's a final one.
  - Use deformed-only DM's tessface2poly mapping to 'solve' poly/tessface mismatches.
  - Make (part of) mirror-editing code able to use a DM instead of raw mesh, so that we can mirror based on final DM
    when editing particles using modifier stack (mandatory, since there is no way currently to find orig tessface
    from an final DM tessface index).

Note that this patch is not really nice and clean (current particles are beyond hope on this side anyway),
it's more like some urgency bandage. Whole crap needs complete rewrite anyway,
BMesh's polygons make it really hard to work with current system (and looptri would not help much here).

Also, did not test everything possibly affected by those changes, so it needs some users' testing & validation too.

Reviewers: psy-fi

Subscribers: dfelinto, eyecandy

Maniphest Tasks: T47038

Differential Revision: https://developer.blender.org/D1685
2016-01-04 12:19:45 +01:00
build_files Remove outdated and unmaintained script which was supposed to configure a release environment 2016-01-04 14:30:48 +05:00
doc Remove SCons building system 2016-01-04 14:20:48 +05:00
extern Remove SCons building system 2016-01-04 14:20:48 +05:00
intern Remove SCons building system 2016-01-04 14:20:48 +05:00
release Remove unused datatoc script 2016-01-04 21:30:01 +11:00
source Fix T47038: Particles in Particle Edit Mode get added in completely wrong location. 2016-01-04 12:19:45 +01:00
tests Remove SCons building system 2016-01-04 14:20:48 +05:00
.arcconfig Use HTTPS protocol for arc 2013-12-24 22:57:27 +06:00
.gitignore Git ignore BUILD_NOTES.txt from install_deps.sh. 2015-11-23 20:17:02 +01:00
.gitmodules Remove SCons building system 2016-01-04 14:20:48 +05:00
CMakeLists.txt Make cycles compile with MSVC 2015 2015-12-29 18:59:23 +01:00
COPYING == docs == 2010-10-13 14:44:22 +00:00
GNUmakefile Minor edits to sync make.bat & makefile 2016-01-04 20:42:00 +11:00
make.bat Minor edits to sync make.bat & makefile 2016-01-04 20:42:00 +11:00