Blender Git Commit Log
Git Commits -> Revision 1b6112b
Revision 1b6112b by Lukas Toenne (depsgraph_refactor) June 5, 2014, 16:08 (GMT) |
Utility class DepsgraphOperation to bind the "context" arguments of an operation to the evaluation function. This can replace the simple callback function and avoid anonymous void* context arguments, which would need to be casted explicitly. Further the context arguments and the evaluation function can be combined in a single struct. Eventually it would be more elegant to have true function binding, but this has only been added to the C++ standard in C++11. We could backport boost implementation, but until then this is a usable compromise. |
Commit Details:
Full Hash: 1b6112b6fca73d4a4d0b08b3d7aab64e9cde4610
Parent Commit: d23f2de
Lines Changed: +76, -0
1 Modified Path:
/source/blender/depsgraph/intern/depsnode_operation.h (+76, -0) (Diff)