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:
Diffstat (limited to 'source/blender/freestyle/intern/python/BPy_Operators.cpp')
-rw-r--r--source/blender/freestyle/intern/python/BPy_Operators.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/source/blender/freestyle/intern/python/BPy_Operators.cpp b/source/blender/freestyle/intern/python/BPy_Operators.cpp
index b0a8e7e3bd2..850b4cb5bad 100644
--- a/source/blender/freestyle/intern/python/BPy_Operators.cpp
+++ b/source/blender/freestyle/intern/python/BPy_Operators.cpp
@@ -164,7 +164,11 @@ PyObject * Operators_select(BPy_Operators* self, PyObject *args)
Py_RETURN_NONE;
}
- Operators::select(*( ((BPy_UnaryPredicate1D *) obj)->up1D ));
+ UnaryPredicate1D *up1D = ((BPy_UnaryPredicate1D *) obj)->up1D;
+ if( PyObject_HasAttrString( obj, "__call__") )
+ up1D->setPythonObject( obj );
+
+ Operators::select(*up1D);
Py_RETURN_NONE;
}