Changeset View
Changeset View
Standalone View
Standalone View
source/blender/freestyle/intern/python/Director.cpp
| Show First 20 Lines • Show All 50 Lines • ▼ Show 20 Lines | |||||
| #include "UnaryFunction1D/BPy_UnaryFunction1DDouble.h" | #include "UnaryFunction1D/BPy_UnaryFunction1DDouble.h" | ||||
| #include "UnaryFunction1D/BPy_UnaryFunction1DEdgeNature.h" | #include "UnaryFunction1D/BPy_UnaryFunction1DEdgeNature.h" | ||||
| #include "UnaryFunction1D/BPy_UnaryFunction1DFloat.h" | #include "UnaryFunction1D/BPy_UnaryFunction1DFloat.h" | ||||
| #include "UnaryFunction1D/BPy_UnaryFunction1DUnsigned.h" | #include "UnaryFunction1D/BPy_UnaryFunction1DUnsigned.h" | ||||
| #include "UnaryFunction1D/BPy_UnaryFunction1DVec2f.h" | #include "UnaryFunction1D/BPy_UnaryFunction1DVec2f.h" | ||||
| #include "UnaryFunction1D/BPy_UnaryFunction1DVec3f.h" | #include "UnaryFunction1D/BPy_UnaryFunction1DVec3f.h" | ||||
| #include "UnaryFunction1D/BPy_UnaryFunction1DVectorViewShape.h" | #include "UnaryFunction1D/BPy_UnaryFunction1DVectorViewShape.h" | ||||
| using namespace Freestyle; | |||||
| // BinaryPredicate0D: __call__ | // BinaryPredicate0D: __call__ | ||||
| int Director_BPy_BinaryPredicate0D___call__(BinaryPredicate0D *bp0D, | int Director_BPy_BinaryPredicate0D___call__(BinaryPredicate0D *bp0D, | ||||
| Interface0D &i1, | Interface0D &i1, | ||||
| Interface0D &i2) | Interface0D &i2) | ||||
| { | { | ||||
| if (!bp0D->py_bp0D) { // internal error | if (!bp0D->py_bp0D) { // internal error | ||||
| PyErr_SetString(PyExc_RuntimeError, "Reference to Python object (py_bp0D) not initialized"); | PyErr_SetString(PyExc_RuntimeError, "Reference to Python object (py_bp0D) not initialized"); | ||||
| return -1; | return -1; | ||||
| ▲ Show 20 Lines • Show All 288 Lines • Show Last 20 Lines | |||||