diff options
author | Roland Hess <me@harkyman.com> | 2006-09-22 19:57:58 +0400 |
---|---|---|
committer | Roland Hess <me@harkyman.com> | 2006-09-22 19:57:58 +0400 |
commit | 4725ca6c021d4234ca069ab789e962f97008ccf9 (patch) | |
tree | 89da7f983ea024797dfef2e77311036a8842db35 /source/blender/python/api2_2x/Constraint.c | |
parent | 3d3b64768db193d1f8234b14bc089e8508d89d16 (diff) |
This commit adds local target rotation support to the floor constraint,
making it much more useful. Requested and taunted for frequently by
Plumiferos folks. Click on "Use Rot" to take target object rotations
into account.
Good for using rotated empties, etc., as a sloped floor.
Diffstat (limited to 'source/blender/python/api2_2x/Constraint.c')
-rw-r--r-- | source/blender/python/api2_2x/Constraint.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/python/api2_2x/Constraint.c b/source/blender/python/api2_2x/Constraint.c index 0b5cbd93cd5..357fb34f7e3 100644 --- a/source/blender/python/api2_2x/Constraint.c +++ b/source/blender/python/api2_2x/Constraint.c @@ -762,7 +762,7 @@ static PyObject *floor_getter( BPy_Constraint * self, int type ) case EXPP_CONSTR_OFFSET: return PyFloat_FromDouble( (double)con->offset ); case EXPP_CONSTR_STICKY: - return PyBool_FromLong( (long)( con->sticky & SELECT ) ) ; + return PyBool_FromLong( (long)( con->flag & MINMAX_STICKY ) ) ; default: return EXPP_ReturnPyObjError( PyExc_KeyError, "key not found" ); } @@ -797,7 +797,7 @@ static int floor_setter( BPy_Constraint *self, int type, PyObject *value ) case EXPP_CONSTR_OFFSET: return EXPP_setFloatClamped( value, &con->offset, -100.0, 100.0 ); case EXPP_CONSTR_STICKY: - return EXPP_setBitfield( value, &con->sticky, SELECT, 'h' ); + return EXPP_setBitfield( value, &con->flag, MINMAX_STICKY, 'h' ); default: return EXPP_ReturnIntError( PyExc_KeyError, "key not found" ); } |