Page MenuHome

getdata.patch

getdata.patch

Index: source/blender/python/api2_2x/Text3d.h
===================================================================
RCS file: /cvsroot/bf-blender/blender/source/blender/python/api2_2x/Text3d.h,v
retrieving revision 1.3
diff -u -r1.3 Text3d.h
--- source/blender/python/api2_2x/Text3d.h 19 Mar 2005 03:24:00 -0000 1.3
+++ source/blender/python/api2_2x/Text3d.h 22 Mar 2005 20:39:21 -0000
@@ -52,6 +52,7 @@
int Text3d_CheckPyObject( PyObject * py_obj );
PyObject *Text3d_Init( void );
struct Text3d *Text3d_FromPyObject( PyObject * py_obj );
+PyObject *Text3d_CreatePyObject( Text3d* text3d );
/* Python BPy_Text3d structure definition */
typedef struct {
Index: source/blender/python/api2_2x/Object.c
===================================================================
RCS file: /cvsroot/bf-blender/blender/source/blender/python/api2_2x/Object.c,v
retrieving revision 1.104
diff -u -r1.104 Object.c
--- source/blender/python/api2_2x/Object.c 19 Mar 2005 23:47:39 -0000 1.104
+++ source/blender/python/api2_2x/Object.c 22 Mar 2005 20:27:07 -0000
@@ -831,6 +831,10 @@
case ID_TXT:
data_object = Text_CreatePyObject( object->data );
break;
+ case OB_FONT:
+ data_object = Text3d_CreatePyObject( object->data );
+ break;
+
case ID_WO:
break;
default:
Index: source/blender/python/api2_2x/Text3d.c
===================================================================
RCS file: /cvsroot/bf-blender/blender/source/blender/python/api2_2x/Text3d.c,v
retrieving revision 1.4
diff -u -r1.4 Text3d.c
--- source/blender/python/api2_2x/Text3d.c 19 Mar 2005 03:24:00 -0000 1.4
+++ source/blender/python/api2_2x/Text3d.c 22 Mar 2005 20:40:38 -0000
@@ -852,3 +852,24 @@
return EXPP_incr_ret( Py_None );
}
+
+
+/*****************************************************************************/
+/* Function: Lamp_CreatePyObject */
+/* Description: This function will create a new BPy_Lamp from an existing */
+/* Blender lamp structure. */
+/*****************************************************************************/
+PyObject *Text3d_CreatePyObject( Text3d * text3d )
+{
+ BPy_Text3d *pytext3d;
+
+ pytext3d = ( BPy_Text3d * ) PyObject_NEW( BPy_Text3d, &Text3d_Type );
+
+ if( !pytext3d )
+ return EXPP_ReturnPyObjError( PyExc_MemoryError,
+ "couldn't create BPy_Text3d object" );
+
+ pytext3d->curve = text3d;
+
+ return ( PyObject * ) pytext3d;
+}

File Metadata

Mime Type
text/x-diff
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
aa/d1/f0ad0022446efaf1b707e7b9deab

Event Timeline