diff options
author | Tamito Kajiyama <rd6t-kjym@asahi-net.or.jp> | 2012-05-29 03:53:28 +0400 |
---|---|---|
committer | Tamito Kajiyama <rd6t-kjym@asahi-net.or.jp> | 2012-05-29 03:53:28 +0400 |
commit | eabf741a8d76aa9400a071c37227504378fc6315 (patch) | |
tree | 705e01ce1aaf4a4282aa3abb19d44933c48fb7b2 /source/blender/freestyle/intern/python/BPy_UnaryPredicate1D.cpp | |
parent | b6a9a953bc6aa7d81921a796e8ce1123fdedefc7 (diff) |
Fix for the WithinImageBorderUP1D predicate not working with a ViewEdge such that
none of the SVertices are within the image boundary but an FEdge intersects with
the image boundary.
The problem was reported by edna through the BA Freestyle thread, with a .blend
file for reproducing the bug. Thanks!
Diffstat (limited to 'source/blender/freestyle/intern/python/BPy_UnaryPredicate1D.cpp')
-rw-r--r-- | source/blender/freestyle/intern/python/BPy_UnaryPredicate1D.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/freestyle/intern/python/BPy_UnaryPredicate1D.cpp b/source/blender/freestyle/intern/python/BPy_UnaryPredicate1D.cpp index 095963fb3af..a0c59484486 100644 --- a/source/blender/freestyle/intern/python/BPy_UnaryPredicate1D.cpp +++ b/source/blender/freestyle/intern/python/BPy_UnaryPredicate1D.cpp @@ -12,6 +12,7 @@ #include "UnaryPredicate1D/BPy_QuantitativeInvisibilityUP1D.h" #include "UnaryPredicate1D/BPy_ShapeUP1D.h" #include "UnaryPredicate1D/BPy_TrueUP1D.h" +#include "UnaryPredicate1D/BPy_WithinImageBoundaryUP1D.h" #ifdef __cplusplus extern "C" { @@ -75,6 +76,11 @@ int UnaryPredicate1D_Init( PyObject *module ) Py_INCREF( &TrueUP1D_Type ); PyModule_AddObject(module, "TrueUP1D", (PyObject *)&TrueUP1D_Type); + if( PyType_Ready( &WithinImageBoundaryUP1D_Type ) < 0 ) + return -1; + Py_INCREF( &WithinImageBoundaryUP1D_Type ); + PyModule_AddObject(module, "WithinImageBoundaryUP1D", (PyObject *)&WithinImageBoundaryUP1D_Type); + return 0; } |