Welcome to mirror list, hosted at ThFree Co, Russian Federation.

Director.cpp « python « intern « freestyle « blender « source - git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 6acdc665a0cff30bb8c4100ca5953e291710e453 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#include "Director.h"

#include "BPy_Convert.h"

bool director_BPy_UnaryPredicate1D___call__( PyObject *py_up1D, Interface1D& if1D) {
	cout << "Polymorphism works" << endl;

	PyObject *method = PyObject_GetAttrString( py_up1D, "__call__");
	PyObject *result = PyObject_CallFunction(method, "O", BPy_Interface1D_from_Interface1D(if1D) );

	return bool_from_PyBool(result);
}