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:
authorDaniel Dunbar <daniel@zuster.org>2005-08-12 02:27:53 +0400
committerDaniel Dunbar <daniel@zuster.org>2005-08-12 02:27:53 +0400
commit5afdfc6ac114053f084d95cce4661b85d75408df (patch)
tree133ff24b1ea06410216f2ef93495aafadb6c3c64 /source/blender/python/api2_2x/Curve.c
parent841ddb46803ab381cd238f8ad71465ccb660d9e0 (diff)
- remove some silly array copying code for nurb displist generation
- converted dl->flag to use consistent defines for cyclic U/V
Diffstat (limited to 'source/blender/python/api2_2x/Curve.c')
-rw-r--r--source/blender/python/api2_2x/Curve.c54
1 files changed, 1 insertions, 53 deletions
diff --git a/source/blender/python/api2_2x/Curve.c b/source/blender/python/api2_2x/Curve.c
index 3cd11349e75..e457a2c6b2e 100644
--- a/source/blender/python/api2_2x/Curve.c
+++ b/source/blender/python/api2_2x/Curve.c
@@ -118,7 +118,7 @@ static PyObject *Curve_iterNext( BPy_Curve * self );
PyObject *Curve_getNurb( BPy_Curve * self, int n );
static int Curve_length( PyInstanceObject * inst );
-void update_displists( void *data );
+
struct chartrans *text_to_curve( Object * ob, int mode );
@@ -1255,7 +1255,6 @@ static PyObject *Curve_appendNurb( BPy_Curve * self, PyObject * args )
PyObject *Curve_update( BPy_Curve * self )
{
-/* update_displists( ( void * ) self->curve ); */
freedisplist( &self->curve->disp );
Py_INCREF( Py_None );
@@ -1597,54 +1596,3 @@ struct Curve *Curve_FromPyObject( PyObject * py_obj )
}
-
-
-/*
- * NOTE: this func has been replaced by freedisplist() in the recent
- * display list refactoring.
- *
- * walk across all objects looking for curves
- * so we can update their ob's disp list
- */
-
-void update_displists( void *data )
-{
-#if 0
- Base *base;
- Object *ob;
- unsigned int layer;
-
- /* background */
- layer = G.scene->lay;
-
- base = G.scene->base.first;
- while( base ) {
- if( base->lay & layer ) {
- ob = base->object;
-
- if( ELEM( ob->type, OB_CURVE, OB_SURF ) ) {
- if( ob != G.obedit ) {
- if( ob->data == data ) {
- makeDispListCurveTypes( ob );
- }
- }
- } else if( ob->type == OB_FONT ) {
- Curve *cu = ob->data;
- if( cu->textoncurve ) {
- if( ( ( Curve * ) cu->textoncurve->
- data )->key ) {
- text_to_curve( ob, 0 );
- makeDispListCurveTypes( ob );
- }
- }
- }
- }
- if( base->next == 0 && G.scene->set
- && base == G.scene->base.last )
- base = G.scene->set->base.first;
- else
- base = base->next;
- }
-#endif
-}
-