Go to file
Sergey Sharybin caafc8184b Fix #30720: Creating Navmesh crashes blender
In fact there were several issues fixed (all of them regressions since bmesh merge):

- Creating navmesh crashed because creating new faces for mesh was trying to set
  default values for all customdata layers in this face. This requires memory
  pool created for this datablock.
  Usually this pool is creating on creating datablock if there're some elements
  to be stored in this block. In cases of regular primitive creating it wasn't
  an issue because they doesn't create customdata layers, they only creates
  geometry.
  Navigation mesh creates geometry and customdata layers (CD_RECAST layer)
  which used to confuse a bit custom data functions. Solved by ensuring there's
  memory pool created for polygons datablock after adding new custom data layer.
  Most probably it's better to be resolved on CD level (like smarter track on
  changed amount of stored data and so) but prefer not to make such global changes
  so close to the release.
- Toggling edit mode lead to loosing recast datalayer. Solved by adding recast
  layer to bmesh mask so it'll be copied to/from edit mesh.
- Some part of code assumed raycast layer is in face datablock, some that it's in
  polygon datablock. Made it to be in polygons datablock.
  Kind of temporary solution to make navmesh working, probably it'll fail if one
  will want to edit navmesh by hand after it was generated.
  Proper way would be to ensure the whole navmesh things are using ngons.
2012-04-16 13:53:30 +00:00
build_files qtcreator/netbeans generators: fix for error getting project info when svn isnt found (common on windows) 2012-04-15 09:34:57 +00:00
doc updated man page 2012-04-05 09:41:55 +00:00
extern libmv: bundle new upstream version from own branch with rigid registration implementation 2012-04-12 11:37:51 +00:00
intern And another fix for r45669 to have dualcon compile on windows... 2012-04-16 10:22:28 +00:00
release fix [#30972] Editmesh split by materials not working. 2012-04-16 13:49:04 +00:00
source Fix #30720: Creating Navmesh crashes blender 2012-04-16 13:53:30 +00:00
CMakeLists.txt fix incorrect use of PLATFORM_DEFAULT with cmake 2012-04-15 09:51:30 +00:00
COPYING == docs == 2010-10-13 14:44:22 +00:00
GNUmakefile Spelling Cleanup 2012-03-01 12:20:18 +00:00
SConstruct Scons: 2012-04-14 22:33:48 +00:00