diff options
author | Ton Roosendaal <ton@blender.org> | 2011-06-26 21:01:10 +0400 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2011-06-26 21:01:10 +0400 |
commit | 1186bdfc0864475be2395591b3b15c7a9d515a84 (patch) | |
tree | 846127a7fa6acdd094baa6dc769abd76d2fe3af3 /source | |
parent | 933a65a76fff8ba7e15de9d8a552f10b9d02e7ec (diff) |
Putting back blender.org and release number in info header.
Worked always great for tutorials in past, to check what's been used.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/blenkernel/intern/blender.c | 6 | ||||
-rw-r--r-- | source/blender/editors/space_info/info_stats.c | 5 |
2 files changed, 7 insertions, 4 deletions
diff --git a/source/blender/blenkernel/intern/blender.c b/source/blender/blenkernel/intern/blender.c index 633a05589cd..8b4bbbd3c83 100644 --- a/source/blender/blenkernel/intern/blender.c +++ b/source/blender/blenkernel/intern/blender.c @@ -97,7 +97,7 @@ UserDef U; /* ListBase = {NULL, NULL}; */ short ENDIAN_ORDER; -static char versionstr[48]= ""; +char versionstr[48]= ""; /* ********** free ********** */ @@ -133,9 +133,9 @@ void initglobals(void) ENDIAN_ORDER= (((char*)&ENDIAN_ORDER)[0])? L_ENDIAN: B_ENDIAN; if(BLENDER_SUBVERSION) - BLI_snprintf(versionstr, sizeof(versionstr), "www.blender.org %d.%d", BLENDER_VERSION, BLENDER_SUBVERSION); + BLI_snprintf(versionstr, sizeof(versionstr), "blender.org %d.%d", BLENDER_VERSION, BLENDER_SUBVERSION); else - BLI_snprintf(versionstr, sizeof(versionstr), "www.blender.org %d", BLENDER_VERSION); + BLI_snprintf(versionstr, sizeof(versionstr), "blender.org %d", BLENDER_VERSION); #ifdef _WIN32 // FULLSCREEN G.windowstate = G_WINDOWSTATE_USERDEF; diff --git a/source/blender/editors/space_info/info_stats.c b/source/blender/editors/space_info/info_stats.c index 42ee2112fe8..0abfd4b71a1 100644 --- a/source/blender/editors/space_info/info_stats.c +++ b/source/blender/editors/space_info/info_stats.c @@ -357,13 +357,14 @@ static void stats_update(Scene *scene) } if(!scene->stats) - scene->stats= MEM_mallocN(sizeof(SceneStats), "SceneStats"); + scene->stats= MEM_callocN(sizeof(SceneStats), "SceneStats"); *(scene->stats)= stats; } static void stats_string(Scene *scene) { + extern char versionstr[]; /* from blender.c */ SceneStats *stats= scene->stats; Object *ob= (scene->basact)? scene->basact->object: NULL; uintptr_t mem_in_use, mmap_in_use; @@ -379,6 +380,8 @@ static void stats_string(Scene *scene) sprintf(s, " (%.2fM)", (double)((mmap_in_use)>>10)/1024.0); s= stats->infostr; + + s+= sprintf(s, "%s | ", versionstr); if(scene->obedit) { if(ob_get_keyblock(scene->obedit)) |