Blender Git Commit Log

Git Commits -> Revision ccf9afd

Revision ccf9afd by Sergey Sharybin (master)
April 9, 2014, 08:27 (GMT)
Fix T39608: Blender 2.70 crashes when performing union

This was a nasty bug which was caused by specific of how face-edge
attributes are stored in Carve.

Face pointer is used in the map key which works just fine in all
cases except for the cases when some face is getting freed after
it was stored in the map.

This might give real issues when new face is allocating because
it's possible new face would have the same address as the freed
one.

Such cases used to happen when union of separate manifolds is
needed for the operands AND jemalloc is enabled.

Solved by dropping attributes for the freed faces from the map.
Maybe not the fastest ever approach, but not sure how to make
it faster actually. Should work just fine. It only happens for
complex setups with intersecting manifolds in the operands.

Commit Details:

Full Hash: ccf9afddbaa0a08f4e277b3c19bc15735be9f4a4
Parent Commit: dfbd994
Lines Changed: +88, -8

3 Modified Paths:

/extern/carve/carve-capi.cc (+43, -2) (Diff)
/extern/carve/carve-util.cc (+9, -3) (Diff)
/extern/carve/carve-util.h (+36, -3) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021