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)
commit9f85a3bc9108c925eeb2deba08f15a0ef2a905b5
treefd930f61af70c8b748341b59e34fd2aef851d2a2
parentd2eb6e261a9356903dd03ef072fc64d5233068f0
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