Page MenuHome

blender.patch

blender.patch

? config.opts
? source/creator/winbuildinfo.h
? source/icons/winblender.res
? tools/scons/bs/__init__.pyc
? tools/scons/bs/bs_arc.pyc
? tools/scons/bs/bs_bincopy.pyc
? tools/scons/bs/bs_clean.pyc
? tools/scons/bs/bs_config.pyc
? tools/scons/bs/bs_default.pyc
? tools/scons/bs/bs_dirs.pyc
? tools/scons/bs/bs_globals.pyc
? tools/scons/bs/bs_libs.pyc
? tools/scons/bs/bs_nsis.pyc
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.149
diff -u -r1.149 Object.c
--- source/blender/python/api2_2x/Object.c 29 Nov 2005 05:08:29 -0000 1.149
+++ source/blender/python/api2_2x/Object.c 25 Dec 2005 20:18:19 -0000
@@ -88,6 +88,7 @@
#include "logic.h"
#include "Effect.h"
#include "gen_utils.h"
+#include "BIF_editkey.h"
/* Defines for insertIpoKey */
@@ -264,6 +265,7 @@
static PyObject *Object_setSBUseEdges( BPy_Object * self, PyObject * args );
static PyObject *Object_getSBStiffQuads( BPy_Object * self );
static PyObject *Object_setSBStiffQuads( BPy_Object * self, PyObject * args );
+static PyObject *Object_insertShapeKey(BPy_Object * self);
/*****************************************************************************/
/* Python BPy_Object methods table: */
/*****************************************************************************/
@@ -546,7 +548,8 @@
"([s1<,s2,s3...>]) - Delete specified scriptlinks from this object."},
{"setDupliVerts", ( PyCFunction ) Object_setDupliVerts,
METH_VARARGS, "() - set or reset duplicate child objects on all vertices"},
-
+ {"insertShapeKey", ( PyCFunction ) Object_insertShapeKey,
+ METH_NOARGS, "() - Insert a Shape Key in the current object"},
{NULL, NULL, 0, NULL}
};
@@ -2580,6 +2583,13 @@
}
return effect_list;
}
+
+static PyObject *Object_insertShapeKey(BPy_Object * self)
+{
+ insert_shapekey(self->object);
+ return Py_None;
+ }
+
/*****************************************************************************/
/* Function: Object_CreatePyObject */

File Metadata

Mime Type
text/x-diff
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
f5/82/f9e02c4502dc69f2c0be414320b8

Event Timeline