diff options
author | Joilnen Leite <joilnen.leite@gmail.com> | 2007-05-28 21:06:03 +0400 |
---|---|---|
committer | Joilnen Leite <joilnen.leite@gmail.com> | 2007-05-28 21:06:03 +0400 |
commit | 9b88fb13f51b4162272fbbdf7b907cdb43619570 (patch) | |
tree | f0cf9fbd944cfc02d83ea29dae482277f4c1c447 /source | |
parent | a8bc1f33974ca4a32b597cb1e0a63b8b3c5cb641 (diff) |
Adding Text3d.JUSTIFY, thanks "Oliver Schneider" <oliffm@web.de>
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/python/api2_2x/Text3d.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/python/api2_2x/Text3d.c b/source/blender/python/api2_2x/Text3d.c index 287eec4a7b1..4e860113ac8 100644 --- a/source/blender/python/api2_2x/Text3d.c +++ b/source/blender/python/api2_2x/Text3d.c @@ -585,6 +585,8 @@ PyObject *Text3d_Init( void ) generate_ModuleIntConstant("Text3d.RIGHT", CU_RIGHT)); PyModule_AddObject( submodule, "FLUSH", generate_ModuleIntConstant("Text3d.FLUSH", CU_FLUSH)); + PyModule_AddObject( submodule, "JUSTIFY", + generate_ModuleIntConstant("Text3d.JUSTIFY", CU_JUSTIFY)); PyModule_AddObject( submodule, "DRAW3D", generate_ModuleIntConstant("Text3d.DRAW3D", CU_3D)); PyModule_AddObject( submodule, "DRAWFRONT", @@ -1050,7 +1052,10 @@ static PyObject *Text3d_getAlignment( BPy_Text3d * self ) return return_ModuleConstant("RIGHT"); }else if (self->curve->spacemode == CU_FLUSH){ return return_ModuleConstant("FLUSH"); + }else if (self->curve->spacemode == CU_JUSTIFY){ + return return_ModuleConstant("JUSTIFY"); } + return ( EXPP_ReturnPyObjError( PyExc_RuntimeError, "couldn't get Curve.spacemode attribute" ) ); } |