From 9b88fb13f51b4162272fbbdf7b907cdb43619570 Mon Sep 17 00:00:00 2001 From: Joilnen Leite Date: Mon, 28 May 2007 17:06:03 +0000 Subject: Adding Text3d.JUSTIFY, thanks "Oliver Schneider" --- source/blender/python/api2_2x/Text3d.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'source') 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" ) ); } -- cgit v1.2.3