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>2013-02-23 16:17:40 +0400
committerTamito Kajiyama <rd6t-kjym@asahi-net.or.jp>2013-02-23 16:17:40 +0400
commit7b3a5f690145e7013a518f9c68260550e416c7c8 (patch)
treed7e55f47bb7f6bcb2cf488baf9fb62b1d22b0887 /source/blender/freestyle/intern/python/BPy_Iterator.cpp
parent47960a3d8a69e36d6658af83e5a939703bcfcef7 (diff)
Fix for __repr__() depending on .getName() and .getExactTypeName().
API users no longer need to define them in user-defined Functions, Predicates and StrokeShaders. Also removed all .getName() and .getExactTypeName() definitions in pre-defined Functions, Predicates and StrokeShaders subclasses.
Diffstat (limited to 'source/blender/freestyle/intern/python/BPy_Iterator.cpp')
-rw-r--r--source/blender/freestyle/intern/python/BPy_Iterator.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/freestyle/intern/python/BPy_Iterator.cpp b/source/blender/freestyle/intern/python/BPy_Iterator.cpp
index df9f462eba9..09918e71d67 100644
--- a/source/blender/freestyle/intern/python/BPy_Iterator.cpp
+++ b/source/blender/freestyle/intern/python/BPy_Iterator.cpp
@@ -110,7 +110,7 @@ static void Iterator_dealloc(BPy_Iterator* self)
static PyObject * Iterator_repr(BPy_Iterator* self)
{
- return PyUnicode_FromFormat("type: %s - address: %p", self->it->getExactTypeName().c_str(), self->it);
+ return PyUnicode_FromFormat("type: %s - address: %p", Py_TYPE(self)->tp_name, self->it);
}
PyDoc_STRVAR(Iterator_increment_doc,