move geometry python module into mathutils.geometry, since it provides utility functions using mathutils types.
This commit is contained in:
@@ -249,6 +249,8 @@ PyObject *Mathutils_Init(void)
|
||||
{
|
||||
PyObject *submodule;
|
||||
|
||||
|
||||
|
||||
if( PyType_Ready( &vector_Type ) < 0 )
|
||||
return NULL;
|
||||
if( PyType_Ready( &matrix_Type ) < 0 )
|
||||
@@ -270,6 +272,9 @@ PyObject *Mathutils_Init(void)
|
||||
PyModule_AddObject( submodule, "Quaternion", (PyObject *)&quaternion_Type );
|
||||
PyModule_AddObject( submodule, "Color", (PyObject *)&color_Type );
|
||||
|
||||
/* submodule */
|
||||
PyModule_AddObject( submodule, "geometry", Geometry_Init());
|
||||
|
||||
mathutils_matrix_vector_cb_index= Mathutils_RegisterCallback(&mathutils_matrix_vector_cb);
|
||||
|
||||
return (submodule);
|
||||
|
||||
Reference in New Issue
Block a user