Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_outliner/outliner_draw.c
| Context not available. | |||||
| #include "BLF_translation.h" | #include "BLF_translation.h" | ||||
| #include "PIL_time.h" | |||||
| #include "BKE_context.h" | #include "BKE_context.h" | ||||
| #include "BKE_deform.h" | #include "BKE_deform.h" | ||||
| #include "BKE_depsgraph.h" | #include "BKE_depsgraph.h" | ||||
| Context not available. | |||||
| int sizey = 0, sizex = 0, sizex_rna = 0; | int sizey = 0, sizex = 0, sizex_rna = 0; | ||||
| TreeElement *te_edit = NULL; | TreeElement *te_edit = NULL; | ||||
| /* performance gain timing -- should be removed after review */ | |||||
| double starttime, buildtime, drawtime; | |||||
| starttime = PIL_check_seconds_timer(); | |||||
| outliner_build_tree(mainvar, scene, soops); // always | outliner_build_tree(mainvar, scene, soops); // always | ||||
| /* performance gain timing -- should be removed after review */ | |||||
| buildtime = PIL_check_seconds_timer(); | |||||
| /* get extents of data */ | /* get extents of data */ | ||||
| outliner_height(soops, &soops->tree, &sizey); | outliner_height(soops, &soops->tree, &sizey); | ||||
| Context not available. | |||||
| UI_block_end(C, block); | UI_block_end(C, block); | ||||
| UI_block_draw(C, block); | UI_block_draw(C, block); | ||||
| /* performance gain timing -- should be removed after review */ | |||||
| drawtime = PIL_check_seconds_timer(); | |||||
| printf("[outliner_build_tree() %.5fs], [draw_outliner() %.5fs]\n", buildtime-starttime, drawtime-starttime); | |||||
| /* clear flag that allows quick redraws */ | /* clear flag that allows quick redraws */ | ||||
| soops->storeflag &= ~SO_TREESTORE_REDRAW; | soops->storeflag &= ~SO_TREESTORE_REDRAW; | ||||
| } | } | ||||
| Context not available. | |||||