Blender Git Commit Log
Git Commits -> Revision e7eaf3a
Revision e7eaf3a by Sergey Sharybin (depsgraph_refactor) February 9, 2015, 15:39 (GMT) |
Depsgraph: Make freestyle compatible with C++11 This commit makes code aware of auto_ptr being deprecated in C++11 and makes it so unique_ptr is used instead. There is now utility header file for this which defines AutoPtr to either unique or auto pointer. The only unclear thing is how to cast unique_ptr to pointer of another type. getting some weird compiler issue with that. So if some of the C++ guys around can have a look that'd help a lot. For now using really dumb approach to solve that. This doesn't mean freestyle works with new depsgraph -- there is some missing scene update which makes lines being misaligned with the scene. Will have a look later into this issue. But with --legacy-depsgraph command line argument freestyle still seems to work. |
Commit Details:
Full Hash: e7eaf3a4719a21137dabff7c5175566b18ec3510
Parent Commit: a1fcee7
Lines Changed: +123, -61
1 Added Path:
/source/blender/freestyle/intern/view_map/AutoPtrHelper.h (+60, -0) (View)
11 Modified Paths:
/source/blender/freestyle/CMakeLists.txt (+1, -0) (Diff)
/source/blender/freestyle/intern/view_map/ArbitraryGridDensityProvider.cpp (+7, -7) (Diff)
/source/blender/freestyle/intern/view_map/ArbitraryGridDensityProvider.h (+4, -4) (Diff)
/source/blender/freestyle/intern/view_map/AverageAreaGridDensityProvider.cpp (+6, -6) (Diff)
/source/blender/freestyle/intern/view_map/AverageAreaGridDensityProvider.h (+4, -4) (Diff)
/source/blender/freestyle/intern/view_map/GridDensityProvider.h (+5, -4) (Diff)
/source/blender/freestyle/intern/view_map/HeuristicGridDensityProviderFactory.cpp (+16, -16) (Diff)
/source/blender/freestyle/intern/view_map/HeuristicGridDensityProviderFactory.h (+4, -4) (Diff)
/source/blender/freestyle/intern/view_map/Pow23GridDensityProvider.cpp (+6, -6) (Diff)
/source/blender/freestyle/intern/view_map/Pow23GridDensityProvider.h (+4, -4) (Diff)
/source/blender/freestyle/intern/view_map/ViewMapBuilder.cpp (+6, -6) (Diff)
/source/blender/freestyle/intern/view_map/ArbitraryGridDensityProvider.cpp (+7, -7) (Diff)
/source/blender/freestyle/intern/view_map/ArbitraryGridDensityProvider.h (+4, -4) (Diff)
/source/blender/freestyle/intern/view_map/AverageAreaGridDensityProvider.cpp (+6, -6) (Diff)
/source/blender/freestyle/intern/view_map/AverageAreaGridDensityProvider.h (+4, -4) (Diff)
/source/blender/freestyle/intern/view_map/GridDensityProvider.h (+5, -4) (Diff)
/source/blender/freestyle/intern/view_map/HeuristicGridDensityProviderFactory.cpp (+16, -16) (Diff)
/source/blender/freestyle/intern/view_map/HeuristicGridDensityProviderFactory.h (+4, -4) (Diff)
/source/blender/freestyle/intern/view_map/Pow23GridDensityProvider.cpp (+6, -6) (Diff)
/source/blender/freestyle/intern/view_map/Pow23GridDensityProvider.h (+4, -4) (Diff)
/source/blender/freestyle/intern/view_map/ViewMapBuilder.cpp (+6, -6) (Diff)