Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxime Curioni <maxime.curioni@gmail.com>2008-08-02 11:39:49 +0400
committerMaxime Curioni <maxime.curioni@gmail.com>2008-08-02 11:39:49 +0400
commite385d69580de32df6dcfd009853ddd4eb8a3191e (patch)
treeef141019b1e00f03da689be0cea0b1a1bf6eb457 /source/blender/freestyle/intern/python/BPy_Interface0D.cpp
parent7565990db264dbb7771744cea0a1c87b3e11fc3f (diff)
soc-2008-mxcurioni: Made crucial corrections to stabilize the system. Most of the original styles are supported: stroke attributes are correctly taken into account, Python shaders are supported. Added SamplingShader.
Diffstat (limited to 'source/blender/freestyle/intern/python/BPy_Interface0D.cpp')
-rw-r--r--source/blender/freestyle/intern/python/BPy_Interface0D.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/freestyle/intern/python/BPy_Interface0D.cpp b/source/blender/freestyle/intern/python/BPy_Interface0D.cpp
index 506fc3b4e9d..78bd4176658 100644
--- a/source/blender/freestyle/intern/python/BPy_Interface0D.cpp
+++ b/source/blender/freestyle/intern/python/BPy_Interface0D.cpp
@@ -183,12 +183,14 @@ PyMODINIT_FUNC Interface0D_Init( PyObject *module )
int Interface0D___init__(BPy_Interface0D *self, PyObject *args, PyObject *kwds)
{
self->if0D = new Interface0D();
+ self->if0D->py_if0D = (PyObject *)self;
return 0;
}
void Interface0D___dealloc__(BPy_Interface0D* self)
{
- delete self->if0D;
+ if( self->if0D->py_if0D )
+ delete self->if0D;
self->ob_type->tp_free((PyObject*)self);
}