Blender Git Loki
Git Commits -> Revision 730fb10
Revision 730fb10 by Tamito Kajiyama (master) July 26, 2009, 16:15 (GMT) |
Made predicate and function types callable in the sense that callable(I, T) returns True when I is an object of a type T or of a subtype of T. Also implemented a measure to avoid an infinite loop when user-defined predicate and function classes do not properly overload the __call__ method (including the cases of directly instantiating the base classes such as UnaryPredicate0D and BinaryPredicate1D). |
Commit Details:
Full Hash: 730fb1021c8b189229625866dac0f6e83db6418c
SVN Revision: 21930
Parent Commit: 78ce17f
Lines Changed: +243, -88
22 Modified Paths:
/source/blender/freestyle/intern/python/BPy_BinaryPredicate0D.cpp (+11, -4) (Diff)
/source/blender/freestyle/intern/python/BPy_BinaryPredicate1D.cpp (+11, -4) (Diff)
/source/blender/freestyle/intern/python/BPy_UnaryPredicate0D.cpp (+11, -4) (Diff)
/source/blender/freestyle/intern/python/BPy_UnaryPredicate1D.cpp (+11, -4) (Diff)
/source/blender/freestyle/intern/python/UnaryFunction0D/BPy_UnaryFunction0DDouble.cpp (+11, -4) (Diff)
/source/blender/freestyle/intern/python/UnaryFunction0D/BPy_UnaryFunction0DEdgeNature.cpp (+11, -4) (Diff)
/source/blender/freestyle/intern/python/UnaryFunction0D/BPy_UnaryFunction0DFloat.cpp (+11, -4) (Diff)
/source/blender/freestyle/intern/python/UnaryFunction0D/BPy_UnaryFunction0DId.cpp (+11, -4) (Diff)
/source/blender/freestyle/intern/python/UnaryFunction0D/BPy_UnaryFunction0DMaterial.cpp (+11, -4) (Diff)
/source/blender/freestyle/intern/python/UnaryFunction0D/BPy_UnaryFunction0DUnsigned.cpp (+11, -4) (Diff)
/source/blender/freestyle/intern/python/UnaryFunction0D/BPy_UnaryFunction0DVec2f.cpp (+12, -4) (Diff)
/source/blender/freestyle/intern/python/UnaryFunction0D/BPy_UnaryFunction0DVec3f.cpp (+11, -4) (Diff)
/source/blender/freestyle/intern/python/UnaryFunction0D/BPy_UnaryFunction0DVectorViewShape.cpp (+11, -4) (Diff)
/source/blender/freestyle/intern/python/UnaryFunction0D/BPy_UnaryFunction0DViewShape.cpp (+11, -4) (Diff)
/source/blender/freestyle/intern/python/UnaryFunction1D/BPy_UnaryFunction1DDouble.cpp (+11, -4) (Diff)
/source/blender/freestyle/intern/python/UnaryFunction1D/BPy_UnaryFunction1DEdgeNature.cpp (+11, -4) (Diff)
/source/blender/freestyle/intern/python/UnaryFunction1D/BPy_UnaryFunction1DFloat.cpp (+11, -4) (Diff)
/source/blender/freestyle/intern/python/UnaryFunction1D/BPy_UnaryFunction1DUnsigned.cpp (+11, -4) (Diff)
/source/blender/freestyle/intern/python/UnaryFunction1D/BPy_UnaryFunction1DVec2f.cpp (+11, -4) (Diff)
/source/blender/freestyle/intern/python/UnaryFunction1D/BPy_UnaryFunction1DVec3f.cpp (+11, -4) (Diff)
/source/blender/freestyle/intern/python/UnaryFunction1D/BPy_UnaryFunction1DVectorViewShape.cpp (+11, -4) (Diff)
/source/blender/freestyle/intern/python/UnaryFunction1D/BPy_UnaryFunction1DVoid.cpp (+11, -4) (Diff)
/source/blender/freestyle/intern/python/BPy_BinaryPredicate1D.cpp (+11, -4) (Diff)
/source/blender/freestyle/intern/python/BPy_UnaryPredicate0D.cpp (+11, -4) (Diff)
/source/blender/freestyle/intern/python/BPy_UnaryPredicate1D.cpp (+11, -4) (Diff)
/source/blender/freestyle/intern/python/UnaryFunction0D/BPy_UnaryFunction0DDouble.cpp (+11, -4) (Diff)
/source/blender/freestyle/intern/python/UnaryFunction0D/BPy_UnaryFunction0DEdgeNature.cpp (+11, -4) (Diff)
/source/blender/freestyle/intern/python/UnaryFunction0D/BPy_UnaryFunction0DFloat.cpp (+11, -4) (Diff)
/source/blender/freestyle/intern/python/UnaryFunction0D/BPy_UnaryFunction0DId.cpp (+11, -4) (Diff)
/source/blender/freestyle/intern/python/UnaryFunction0D/BPy_UnaryFunction0DMaterial.cpp (+11, -4) (Diff)
/source/blender/freestyle/intern/python/UnaryFunction0D/BPy_UnaryFunction0DUnsigned.cpp (+11, -4) (Diff)
/source/blender/freestyle/intern/python/UnaryFunction0D/BPy_UnaryFunction0DVec2f.cpp (+12, -4) (Diff)
/source/blender/freestyle/intern/python/UnaryFunction0D/BPy_UnaryFunction0DVec3f.cpp (+11, -4) (Diff)
/source/blender/freestyle/intern/python/UnaryFunction0D/BPy_UnaryFunction0DVectorViewShape.cpp (+11, -4) (Diff)
/source/blender/freestyle/intern/python/UnaryFunction0D/BPy_UnaryFunction0DViewShape.cpp (+11, -4) (Diff)
/source/blender/freestyle/intern/python/UnaryFunction1D/BPy_UnaryFunction1DDouble.cpp (+11, -4) (Diff)
/source/blender/freestyle/intern/python/UnaryFunction1D/BPy_UnaryFunction1DEdgeNature.cpp (+11, -4) (Diff)
/source/blender/freestyle/intern/python/UnaryFunction1D/BPy_UnaryFunction1DFloat.cpp (+11, -4) (Diff)
/source/blender/freestyle/intern/python/UnaryFunction1D/BPy_UnaryFunction1DUnsigned.cpp (+11, -4) (Diff)
/source/blender/freestyle/intern/python/UnaryFunction1D/BPy_UnaryFunction1DVec2f.cpp (+11, -4) (Diff)
/source/blender/freestyle/intern/python/UnaryFunction1D/BPy_UnaryFunction1DVec3f.cpp (+11, -4) (Diff)
/source/blender/freestyle/intern/python/UnaryFunction1D/BPy_UnaryFunction1DVectorViewShape.cpp (+11, -4) (Diff)
/source/blender/freestyle/intern/python/UnaryFunction1D/BPy_UnaryFunction1DVoid.cpp (+11, -4) (Diff)