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>2014-04-17 07:37:08 +0400
committerTamito Kajiyama <rd6t-kjym@asahi-net.or.jp>2014-04-17 09:37:08 +0400
commit77b37fa4615dc1e8d5656259744f0e8a1634e258 (patch)
tree4c1e9e8580156da0a65ac4fe11dbef82f6281327 /source/blender/freestyle/intern/stroke/ChainingIterators.h
parent5d4a6a94ef40f8ae8c49d8fd8fc65384324cb03c (diff)
Freestyle: Fix for VC++ warnings about 'hypot' macro redefinitions (Part 3).
(See commit e1771e72fbbf828dbf5bed871b814288389f3611 for more detail of the problem). Made changes to intern/view_map/Interface0D.h and intern/python/Director.h to avoid #include <Python.h> and keep non-Python header files independent of it.
Diffstat (limited to 'source/blender/freestyle/intern/stroke/ChainingIterators.h')
-rw-r--r--source/blender/freestyle/intern/stroke/ChainingIterators.h13
1 files changed, 3 insertions, 10 deletions
diff --git a/source/blender/freestyle/intern/stroke/ChainingIterators.h b/source/blender/freestyle/intern/stroke/ChainingIterators.h
index 8d01cea84e7..5a8d4b678b8 100644
--- a/source/blender/freestyle/intern/stroke/ChainingIterators.h
+++ b/source/blender/freestyle/intern/stroke/ChainingIterators.h
@@ -32,7 +32,6 @@
#include "Predicates1D.h"
-#include "../python/Director.h"
#include "../system/Iterator.h" //soc
@@ -161,7 +160,7 @@ protected:
public:
ViewEdge *result;
- PyObject *py_c_it;
+ void *py_c_it;
/*! Builds a Chaining Iterator from the first ViewEdge used for iteration and its orientation.
* \param iRestrictToSelection
@@ -203,10 +202,7 @@ public:
* This method is called each time a new chain is started.
* It can be used to reset some history information that you might want to keep.
*/
- virtual int init()
- {
- return Director_BPy_ChainingIterator_init(this);
- }
+ virtual int init();
/*! This method iterates over the potential next ViewEdges and returns the one that will be followed next.
* returns the next ViewEdge to follow or 0 when the end of the chain is reached.
@@ -214,10 +210,7 @@ public:
* The iterator over the ViewEdges adjacent to the end vertex of the current ViewEdge.
* The Adjacency iterator reflects the restriction rules by only iterating over the valid ViewEdges.
*/
- virtual int traverse(const AdjacencyIterator &it)
- {
- return Director_BPy_ChainingIterator_traverse(this, const_cast<AdjacencyIterator &>(it));
- }
+ virtual int traverse(const AdjacencyIterator &it);
/* accessors */
/*! Returns true if the orientation of the current ViewEdge corresponds to its natural orientation */