From 62bf22e27b47fd929e54c4e127a1bba02faf5f34 Mon Sep 17 00:00:00 2001 From: Tamito Kajiyama Date: Fri, 4 Apr 2014 17:01:10 +0900 Subject: Freestyle: Removed SVertex _curvatureFredo and _directionFredo and their getter/setter methods.. These data elements are undocumented and of little use. For now they are commented out in the implementation in favor of less memory consumption, and a very limited support for these data components in the Python API was just removed (should be easy to recover). --- .../freestyle/intern/python/Interface0D/BPy_CurvePoint.cpp | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'source/blender/freestyle/intern/python/Interface0D') diff --git a/source/blender/freestyle/intern/python/Interface0D/BPy_CurvePoint.cpp b/source/blender/freestyle/intern/python/Interface0D/BPy_CurvePoint.cpp index 69d0adadc00..50c9d031d0d 100644 --- a/source/blender/freestyle/intern/python/Interface0D/BPy_CurvePoint.cpp +++ b/source/blender/freestyle/intern/python/Interface0D/BPy_CurvePoint.cpp @@ -199,26 +199,12 @@ static int CurvePoint_t2d_set(BPy_CurvePoint *self, PyObject *value, void *UNUSE return 0; } -PyDoc_STRVAR(CurvePoint_curvature_fredo_doc, -"The angle (Fredo's curvature) in radians.\n" -"\n" -":type: float"); - -static PyObject *CurvePoint_curvature_fredo_get(BPy_CurvePoint *self, void *UNUSED(closure)) -{ - return PyFloat_FromDouble(self->cp->curvatureFredo()); -} - -// todo - CurvePoint.directionFredo() - static PyGetSetDef BPy_CurvePoint_getseters[] = { {(char *)"first_svertex", (getter)CurvePoint_first_svertex_get, (setter)CurvePoint_first_svertex_set, (char *)CurvePoint_first_svertex_doc, NULL}, {(char *)"second_svertex", (getter)CurvePoint_second_svertex_get, (setter)CurvePoint_second_svertex_set, (char *)CurvePoint_second_svertex_doc, NULL}, {(char *)"t2d", (getter)CurvePoint_t2d_get, (setter)CurvePoint_t2d_set, (char *)CurvePoint_t2d_doc, NULL}, - {(char *)"curvature_fredo", (getter)CurvePoint_curvature_fredo_get, (setter)NULL, - (char *)CurvePoint_curvature_fredo_doc, NULL}, {NULL, NULL, NULL, NULL, NULL} /* Sentinel */ }; -- cgit v1.2.3