Fix #37092 and #37381: crashes in the .object() method of Freestyle iterators.
authorkjym3 <kjym3@954f8c5b-7b00-dc11-b283-0030488c597c>
Tue, 12 Nov 2013 02:28:26 +0000 (02:28 +0000)
committerkjym3 <kjym3@954f8c5b-7b00-dc11-b283-0030488c597c>
Tue, 12 Nov 2013 02:28:26 +0000 (02:28 +0000)
commit29055c61877dac922c4831a4896bbba9500e9b27
tree40c04709642b78410cd130a5d7a857e4606c57c9
parent15172c73d54e0e9b7a88c0ecdd0a4edefb33034b
Fix #37092 and #37381: crashes in the .object() method of Freestyle iterators.
Now the method checks if the iterator is at the end, and returns None if that is the case.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@61233 954f8c5b-7b00-dc11-b283-0030488c597c
blender/source/blender/freestyle/intern/python/Iterator/BPy_AdjacencyIterator.cpp
blender/source/blender/freestyle/intern/python/Iterator/BPy_ChainingIterator.cpp
blender/source/blender/freestyle/intern/python/Iterator/BPy_CurvePointIterator.cpp
blender/source/blender/freestyle/intern/python/Iterator/BPy_Interface0DIterator.cpp
blender/source/blender/freestyle/intern/python/Iterator/BPy_ViewEdgeIterator.cpp
blender/source/blender/freestyle/intern/python/Iterator/BPy_orientedViewEdgeIterator.cpp