From a482f644242456ad6ddf0306e1b37d8855342103 Mon Sep 17 00:00:00 2001 From: Maxime Curioni Date: Wed, 30 Jul 2008 01:51:40 +0000 Subject: =?UTF-8?q?soc-2008-mxcurioni:=20Tested=20SWIG-less=20environment?= =?UTF-8?q?=20more=20and=20understood=20why=20the=20former=20predicate=20m?= =?UTF-8?q?ethods=20were=20not=20working.=20As=20St=C3=A9phane=20had=20men?= =?UTF-8?q?tioned=20a=20few=20months=20ago,=20Freestyle=20uses=20SWIG=20di?= =?UTF-8?q?rectors=20to=20provide=20cross-language=20polymorphism.=20The?= =?UTF-8?q?=20API=20and=20the=20system=20I=20had=20provided=20did=20not=20?= =?UTF-8?q?support=20that=20feature=20and=20only=20implementations=20in=20?= =?UTF-8?q?C++=20were=20supported.=20To=20correct=20the=20problem,=20after?= =?UTF-8?q?=20researching=20how=20directors=20are=20implemented=20in=20SWI?= =?UTF-8?q?G,=20I=20provided=20the=20same=20functionality.=20So=20far,=20I?= =?UTF-8?q?=20only=20provided=20the=20code=20for=20the=20UnaryPredicate1D?= =?UTF-8?q?=20class=20and=20it=20works.=20The=20implementation=20is=20in?= =?UTF-8?q?=20intern/python/Director.cpp=20and=20Operators.cpp.=20I=20will?= =?UTF-8?q?=20port=20the=20remaining=20directors=20tonight=20and=20continu?= =?UTF-8?q?e=20to=20test=20it.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit To prevent strokes from piling up after each render, I clear the canvas at each render now (as it should have been all along) --- .../freestyle/intern/python/Iterator/BPy_ChainSilhouetteIterator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/freestyle/intern/python/Iterator/BPy_ChainSilhouetteIterator.cpp') diff --git a/source/blender/freestyle/intern/python/Iterator/BPy_ChainSilhouetteIterator.cpp b/source/blender/freestyle/intern/python/Iterator/BPy_ChainSilhouetteIterator.cpp index 75526507493..4bfaab92a8e 100644 --- a/source/blender/freestyle/intern/python/Iterator/BPy_ChainSilhouetteIterator.cpp +++ b/source/blender/freestyle/intern/python/Iterator/BPy_ChainSilhouetteIterator.cpp @@ -111,7 +111,7 @@ int ChainSilhouetteIterator___init__(BPy_ChainSilhouetteIterator *self, PyObject { PyObject *obj1 = 0, *obj2 = 0, *obj3 = 0; - if (!( PyArg_ParseTuple(args, "O|OO", &obj1, &obj2, &obj3) )) + if (!( PyArg_ParseTuple(args, "|OOO", &obj1, &obj2, &obj3) )) return -1; if( obj1 && BPy_ChainSilhouetteIterator_Check(obj1) ) { -- cgit v1.2.3