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>2009-09-27 04:32:20 +0400
committerTamito Kajiyama <rd6t-kjym@asahi-net.or.jp>2009-09-27 04:32:20 +0400
commit069d21dddfef3361068afa987cc618f8fdaf48c3 (patch)
tree60770a4941397178ea254c32f4f1622043b829c8 /source/blender/freestyle/intern/python/Director.cpp
parent1ed4d4cbfbd3bf4768935b454afba88eb42ea14e (diff)
Made the Freestyle Python API compatible with Python 3.
Diffstat (limited to 'source/blender/freestyle/intern/python/Director.cpp')
-rw-r--r--source/blender/freestyle/intern/python/Director.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/freestyle/intern/python/Director.cpp b/source/blender/freestyle/intern/python/Director.cpp
index cc2b00bdc69..1948da2b6b0 100644
--- a/source/blender/freestyle/intern/python/Director.cpp
+++ b/source/blender/freestyle/intern/python/Director.cpp
@@ -222,7 +222,7 @@ int Director_BPy_UnaryFunction0D___call__( void *uf0D, PyObject *obj, Interface0
((UnaryFunction0D<FrsMaterial> *) uf0D)->result = *( ((BPy_FrsMaterial *) result)->m );
} else if ( BPy_UnaryFunction0DUnsigned_Check(obj) ) {
- ((UnaryFunction0D<unsigned> *) uf0D)->result = PyInt_AsLong(result);
+ ((UnaryFunction0D<unsigned> *) uf0D)->result = PyLong_AsLong(result);
} else if ( BPy_UnaryFunction0DVec2f_Check(obj) ) {
Vec2f *v = Vec2f_ptr_from_Vector( result );
@@ -276,7 +276,7 @@ int Director_BPy_UnaryFunction1D___call__( void *uf1D, PyObject *obj, Interface1
((UnaryFunction1D<float> *) uf1D)->result = PyFloat_AsDouble(result);
} else if ( BPy_UnaryFunction1DUnsigned_Check(obj) ) {
- ((UnaryFunction1D<unsigned> *) uf1D)->result = PyInt_AsLong(result);
+ ((UnaryFunction1D<unsigned> *) uf1D)->result = PyLong_AsLong(result);
} else if ( BPy_UnaryFunction1DVec2f_Check(obj) ) {
Vec2f *v = Vec2f_ptr_from_Vector( result );