diff options
author | Daniel Dunbar <daniel@zuster.org> | 2005-07-16 00:56:55 +0400 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2005-07-16 00:56:55 +0400 |
commit | 8d2176bfeb863429cc5d689d8da14e76e8ce8135 (patch) | |
tree | 92f179b73aea6ee5ab0e1574aac7cc9208efe89a /source/blender/python/api2_2x/Library.c | |
parent | 10d865df2523f9ca10b76ee301444c444d330bb5 (diff) |
- removed makeDispList, set_displist_onlyzero
- appropriate callers of makeDispList replaced with depgraph calls
- unappropriate places just killed... small chance this gives some
errors in corner cases if dep graph isn't notified (example, font
family displists) but these can be tracked down as they show up.
- still a large number of callers of makeDispListCurveTypes, but
makeDispListMesh has just a few.
Diffstat (limited to 'source/blender/python/api2_2x/Library.c')
-rw-r--r-- | source/blender/python/api2_2x/Library.c | 24 |
1 files changed, 4 insertions, 20 deletions
diff --git a/source/blender/python/api2_2x/Library.c b/source/blender/python/api2_2x/Library.c index b75b77b4a04..25ff6c39323 100644 --- a/source/blender/python/api2_2x/Library.c +++ b/source/blender/python/api2_2x/Library.c @@ -39,7 +39,6 @@ #include <DNA_ID.h> #include <DNA_curve_types.h> #include <BKE_library.h> /* for all_local */ -#include "BKE_displist.h" /* for set_displist_onlyzero */ #include "BKE_font.h" /* for text_to_curve */ #include <BLO_readfile.h> #include <BLI_linklist.h> @@ -342,25 +341,10 @@ PyObject *M_Library_Update( PyObject * self ) Object *ob = NULL; Library *lib = NULL; - ob = G.main->object.first; - set_displist_onlyzero( 1 ); - while( ob ) { - if( ob->id.lib ) { - if( ob->type == OB_FONT ) { - Curve *cu = ob->data; - if( cu->nurb.first == 0 ) - text_to_curve( ob, 0 ); - } - makeDispList( ob ); - } else { - if( ob->type == OB_MESH && ob->parent - && ob->parent->type == OB_LATTICE ) - makeDispListMesh( ob ); - } - - ob = ob->id.next; - } - set_displist_onlyzero( 0 ); + /* Displist code that was here is obsolete... depending on what + * this function is supposed to do (it should technically be unnecessary) + * can be replaced with depgraph calls - zr + */ if( bpy_openlibname ) { strcpy( G.lib, bpy_openlibname ); |