Blender Git Loki
Git Commits -> Revision efd774c
Revision efd774c by Tamito Kajiyama (master) October 28, 2015, 14:22 (GMT) |
Fix T44231: Freestyle causes crash on render. The reported crash was confirmed as a segmentation fault in std::sort(). The cause of the crash was traced down to a binary comparison function that was not satisfying the so-called strict weak ordering requirements of the C++ standard sorting function. Specifically, the comparison operator has to return false when two objects are equivalent (i.e., comp(a, a) must be false), but that requirement was not met. Since the binary comparison operator in question could be a user-defined Python function, here a safety measure is implemented in the C++ layer to make sure the aforementioned requirement is always satisfied. |
Commit Details:
Full Hash: efd774ce5a8536be526935ba118a10d7b2a843ef
Parent Commit: ced1c34
Lines Changed: +2, -0
1 Modified Path:
/source/blender/freestyle/intern/stroke/Operators.cpp (+2, -0) (Diff)