[Bf-blender-cvs] [4ac5d32] master: Freestyle: Fix for Interface0DIterator.object docstring with additional notes.

Tamito Kajiyama noreply at git.blender.org
Thu Jun 5 07:07:23 CEST 2014


Commit: 4ac5d3245dbecb3465c14345b4198ac7c41b812e
Author: Tamito Kajiyama
Date:   Thu Jun 5 14:06:25 2014 +0900
https://developer.blender.org/rB4ac5d3245dbecb3465c14345b4198ac7c41b812e

Freestyle: Fix for Interface0DIterator.object docstring with additional notes.

===================================================================

M	source/blender/freestyle/intern/python/Iterator/BPy_Interface0DIterator.cpp

===================================================================

diff --git a/source/blender/freestyle/intern/python/Iterator/BPy_Interface0DIterator.cpp b/source/blender/freestyle/intern/python/Iterator/BPy_Interface0DIterator.cpp
index f85bcdd..a339e66 100644
--- a/source/blender/freestyle/intern/python/Iterator/BPy_Interface0DIterator.cpp
+++ b/source/blender/freestyle/intern/python/Iterator/BPy_Interface0DIterator.cpp
@@ -132,9 +132,12 @@ static PyObject *Interface0DIterator_iternext(BPy_Interface0DIterator *self)
 /*----------------------Interface0DIterator get/setters ----------------------------*/
 
 PyDoc_STRVAR(Interface0DIterator_object_doc,
-"The Interface0D object currently pointed to by this iterator.\n"
+"The 0D object currently pointed to by this iterator.  Note that the object\n"
+"may be an instance of an Interface0D subclass. For example if the iterator\n"
+"has been created from :method:`Stroke.vertices_begin`, the .object property\n"
+"refers to a :class:`StrokeVertex` object.\n"
 "\n"
-":type: :class:`Interface0D`");
+":type: :class:`Interface0D` or one of its subclasses.");
 
 static PyObject *Interface0DIterator_object_get(BPy_Interface0DIterator *self, void *UNUSED(closure))
 {




More information about the Bf-blender-cvs mailing list