Blender Git Commit Log
Git Commits -> Revision 6422a74
Revision 6422a74 by Joshua Leung (master) October 21, 2007, 23:00 (GMT) |
== Constraints System - Recode 2 == Once again, I've recoded the constraints system. This time, the goals were: * To make it more future-proof by 'modernising' the coding style. The long functions filled with switch statements, have given way to function-pointers with smaller functions for specific purposes. * To make it support constraints which use multiple targets more readily that it did. In the past, it was assumed that constraints could only have at most one target. As a result, a lot of code has been shuffled around, and modified. Also, the subversion number has been bumped up. Known issues: * PyConstraints, which were the main motivation for supporting multiple-targets, are currently broken. There are some bimport() error that keeps causing problems. I've also temporarily removed the doDriver support, although it may return in another form soon. * Constraints BPy-API is currently has a few features which currently don't work yet * Outliner currently only displays the names of the constraints instead of the fancy subtarget/target/constraint-name display it used to do. What gets displayed here needs further investigation, as the old way was certainly not that great (and is not compatible with the new system too) |
Commit Details:
Full Hash: 6422a740c25d33c7e7dcc008d215ae983be00a30
SVN Revision: 12334
Parent Commit: a4e8e87
Lines Changed: +4113, -3302
25 Modified Paths:
/release/scripts/scripttemplate_pyconstraint.py (+12, -8) (Diff)
/source/blender/blenkernel/bad_level_call_stubs/stubs.c (+4, -6) (Diff)
/source/blender/blenkernel/BKE_bad_level_calls.h (+4, -3) (Diff)
/source/blender/blenkernel/BKE_blender.h (+1, -1) (Diff)
/source/blender/blenkernel/BKE_constraint.h (+64, -23) (Diff)
/source/blender/blenkernel/intern/armature.c (+33, -17) (Diff)
/source/blender/blenkernel/intern/constraint.c (+2588, -2111) (Diff)
/source/blender/blenkernel/intern/depsgraph.c (+104, -61) (Diff)
/source/blender/blenkernel/intern/object.c (+56, -13) (Diff)
/source/blender/blenloader/intern/readfile.c (+81, -12) (Diff)
/source/blender/blenloader/intern/writefile.c (+21, -68) (Diff)
/source/blender/include/BIF_editconstraint.h (+2, -1) (Diff)
/source/blender/include/butspace.h (+0, -1) (Diff)
/source/blender/makesdna/DNA_constraint_types.h (+112, -56) (Diff)
/source/blender/python/api2_2x/Constraint.c (+41, -30) (Diff)
/source/blender/python/BPY_extern.h (+6, -4) (Diff)
/source/blender/python/BPY_interface.c (+279, -256) (Diff)
/source/blender/src/buttons_object.c (+463, -493) (Diff)
/source/blender/src/drawobject.c (+35, -18) (Diff)
/source/blender/src/editarmature.c (+41, -16) (Diff)
/source/blender/src/editconstraint.c (+121, -71) (Diff)
/source/blender/src/editobject.c (+9, -10) (Diff)
/source/blender/src/header_text.c (+10, -10) (Diff)
/source/blender/src/outliner.c (+6, -0) (Diff)
/source/blender/src/poseobject.c (+20, -13) (Diff)
/source/blender/blenkernel/bad_level_call_stubs/stubs.c (+4, -6) (Diff)
/source/blender/blenkernel/BKE_bad_level_calls.h (+4, -3) (Diff)
/source/blender/blenkernel/BKE_blender.h (+1, -1) (Diff)
/source/blender/blenkernel/BKE_constraint.h (+64, -23) (Diff)
/source/blender/blenkernel/intern/armature.c (+33, -17) (Diff)
/source/blender/blenkernel/intern/constraint.c (+2588, -2111) (Diff)
/source/blender/blenkernel/intern/depsgraph.c (+104, -61) (Diff)
/source/blender/blenkernel/intern/object.c (+56, -13) (Diff)
/source/blender/blenloader/intern/readfile.c (+81, -12) (Diff)
/source/blender/blenloader/intern/writefile.c (+21, -68) (Diff)
/source/blender/include/BIF_editconstraint.h (+2, -1) (Diff)
/source/blender/include/butspace.h (+0, -1) (Diff)
/source/blender/makesdna/DNA_constraint_types.h (+112, -56) (Diff)
/source/blender/python/api2_2x/Constraint.c (+41, -30) (Diff)
/source/blender/python/BPY_extern.h (+6, -4) (Diff)
/source/blender/python/BPY_interface.c (+279, -256) (Diff)
/source/blender/src/buttons_object.c (+463, -493) (Diff)
/source/blender/src/drawobject.c (+35, -18) (Diff)
/source/blender/src/editarmature.c (+41, -16) (Diff)
/source/blender/src/editconstraint.c (+121, -71) (Diff)
/source/blender/src/editobject.c (+9, -10) (Diff)
/source/blender/src/header_text.c (+10, -10) (Diff)
/source/blender/src/outliner.c (+6, -0) (Diff)
/source/blender/src/poseobject.c (+20, -13) (Diff)