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:
authorTon Roosendaal <ton@blender.org>2006-11-28 13:16:24 +0300
committerTon Roosendaal <ton@blender.org>2006-11-28 13:16:24 +0300
commitc1258980a4ac39d0b4b260c1ddc359c1675a3b25 (patch)
tree0247fff5620fd62702988633d14cf9f6e469108f /source/blender/src/toolbox.c
parent859dc7918b60965efa420813309d7adbc97f3ba8 (diff)
Render Baking upgrade:
- Now baking itself is threaded too (like for render, max 2 cpus. Moving this to 4 cpus is on todo. Goes twice as fast! - fix: ESC from bake was broken... - other fix: toolbox menus didn't treat sublevel string lengths OK, truncating items like for Group library names.
Diffstat (limited to 'source/blender/src/toolbox.c')
-rw-r--r--source/blender/src/toolbox.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/source/blender/src/toolbox.c b/source/blender/src/toolbox.c
index 09943c839db..231d404b308 100644
--- a/source/blender/src/toolbox.c
+++ b/source/blender/src/toolbox.c
@@ -1821,7 +1821,14 @@ static TBitem *create_group_all_sublevels(ListBase *storage)
/* first all levels. libs with groups are not tagged */
for(lib= G.main->library.first; lib; lib= lib->id.next) {
if(!(lib->id.flag & LIB_DOIT)) {
- gm->name= BLI_last_slash(lib->filename)+1;
+ char *str;
+ /* do some tricks to get .blend file name without extension */
+ link= MEM_callocN(sizeof(Link) + 128, "string");
+ BLI_addtail(storage, link);
+ str= (char *)(link+1);
+ BLI_strncpy(str, BLI_last_slash(lib->filename)+1, 128);
+ if(strlen(str)>6) str[strlen(str)-6]= 0;
+ gm->name= str;
gm->retval= -1;
gm->poin= create_group_sublevel(storage, lib);
gm++;