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:
authorTamito Kajiyama <rd6t-kjym@asahi-net.or.jp>2008-12-01 14:14:33 +0300
committerTamito Kajiyama <rd6t-kjym@asahi-net.or.jp>2008-12-01 14:14:33 +0300
commit17555efed7583c12459d4f3044dfdd457489ab39 (patch)
tree3cece3831c7cffc68cd40edf0ffb9afb6ea1773d /release/scripts/freestyle/style_modules/freestyle_init.py
parenta407b65c834486b1ebd534e696460456fa2f210c (diff)
Added changes to support Python's native iterator protocol in Stroke and StrokeVertexIterator.
freestyle_init.py * Added a generic getName() method that allows subclasses to omit the method to return their class names. BPy_Convert.cpp BPy_Convert.h * Added to BPy_StrokeVertexIterator_from_StrokeVertexIterator() a second argument to specify the direction (reversed or not) of the iterator to be created. BPy_Stroke.cpp * Added support for Python's native iterator protocol. * Added code to parse the optional argument of strokeVerticesBegin(). BPy_StrokeVertexIterator.cpp BPy_StrokeVertexIterator.h * Added support for Python's native iterator protocol. Stroke.cpp * Fixed a null pointer reference. Stroke.h * Added new method Stroke::strokeVerticeAt(i) that returns the i-th StrokeVertex of the Stroke.
Diffstat (limited to 'release/scripts/freestyle/style_modules/freestyle_init.py')
-rw-r--r--release/scripts/freestyle/style_modules/freestyle_init.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/release/scripts/freestyle/style_modules/freestyle_init.py b/release/scripts/freestyle/style_modules/freestyle_init.py
index 504aad25b87..a586f887a97 100644
--- a/release/scripts/freestyle/style_modules/freestyle_init.py
+++ b/release/scripts/freestyle/style_modules/freestyle_init.py
@@ -47,7 +47,8 @@ class StrokeAttribute(Blender.Freestyle.StrokeAttribute):
pass
class StrokeShader(Blender.Freestyle.StrokeShader):
- pass
+ def getName(self):
+ return self.__class__.__name__
class UnaryFunction0D(Blender.Freestyle.UnaryFunction0D):
pass