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/Interface1D.cpp')
-rw-r--r--source/blender/freestyle/intern/python/Interface1D.cpp12
1 files changed, 10 insertions, 2 deletions
diff --git a/source/blender/freestyle/intern/python/Interface1D.cpp b/source/blender/freestyle/intern/python/Interface1D.cpp
index 27c5f4d08ff..971403b3354 100644
--- a/source/blender/freestyle/intern/python/Interface1D.cpp
+++ b/source/blender/freestyle/intern/python/Interface1D.cpp
@@ -1,6 +1,7 @@
#include "Interface1D.h"
#include "Convert.h"
+#include "Interface1D/FEdge.h"
#ifdef __cplusplus
extern "C" {
@@ -128,9 +129,14 @@ PyMODINIT_FUNC Interface1D_Init( PyObject *module )
if( PyType_Ready( &Interface1D_Type ) < 0 )
return;
-
Py_INCREF( &Interface1D_Type );
PyModule_AddObject(module, "Interface1D", (PyObject *)&Interface1D_Type);
+
+ if( PyType_Ready( &FEdge_Type ) < 0 )
+ return;
+ Py_INCREF( &FEdge_Type );
+ PyModule_AddObject(module, "FEdge", (PyObject *)&FEdge_Type);
+
}
//------------------------INSTANCE METHODS ----------------------------------
@@ -169,11 +175,13 @@ PyObject *Interface1D_getLength2D( BPy_Interface1D *self ) {
}
PyObject *Interface1D_getId( BPy_Interface1D *self ) {
- return BPy_Id_from_Id( self->if1D->getId() );
+ Id id( self->if1D->getId() );
+ return BPy_Id_from_Id( id );
}
PyObject *Interface1D_getNature( BPy_Interface1D *self ) {
// EdgeNature
+ Py_RETURN_NONE;
}
PyObject *Interface1D_getTimeStamp( BPy_Interface1D *self ) {