diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2009-01-28 00:26:31 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2009-01-28 00:26:31 +0300 |
commit | 5542f25331c483cf48341d7c37fd01989e3ea173 (patch) | |
tree | aee44154121a412341550c511c4025fb0a2d2ca6 | |
parent | a21cdd9369243596c632314eea94b67a6744eb1f (diff) |
Fix for bug #18167: setting Constraint.Settings.SCRIPT checked for type
Object rather than Text so did not work when assigning a text to it.
-rw-r--r-- | source/blender/python/api2_2x/Constraint.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/python/api2_2x/Constraint.c b/source/blender/python/api2_2x/Constraint.c index 1845ce6f0de..9ecec8eb973 100644 --- a/source/blender/python/api2_2x/Constraint.c +++ b/source/blender/python/api2_2x/Constraint.c @@ -1560,7 +1560,7 @@ static int script_setter( BPy_Constraint *self, int type, PyObject *value ) break; case EXPP_CONSTR_SCRIPT: { Text *text = (( BPy_Text * )value)->text; - if( !BPy_Object_Check( value ) ) + if( !BPy_Text_Check( value ) ) return EXPP_ReturnIntError( PyExc_TypeError, "expected BPy text argument" ); con->text = text; |