Don't wait for sculpt stroke to create PBVH.
authorNicholas Bishop <nicholasbishop@gmail.com>
Wed, 14 Mar 2012 06:30:55 +0000 (06:30 +0000)
committerNicholas Bishop <nicholasbishop@gmail.com>
Wed, 14 Mar 2012 06:30:55 +0000 (06:30 +0000)
commit38d4848020bc08cc471310c282ac62e54e881fa8
tree6eb423ab1b8f99a0be4d2715e8b5c485f78d2422
parentee9a00948b950f8361ef280b5f88674721a6698f
Don't wait for sculpt stroke to create PBVH.

This idea is borrowed from the multires modifier, which already
checked if the object was in sculpt mode and, if so, created the
PBVH. That check is now moved higher up the chain into
mesh_build_data(), so that it occurs for CDDerivedMesh too.

This also replaces an assert in cdDM_getPBVH for tesselated mesh faces
with a call to create them if missing.
source/blender/blenkernel/intern/DerivedMesh.c
source/blender/blenkernel/intern/cdderivedmesh.c
source/blender/modifiers/intern/MOD_multires.c