diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-04-08 11:34:09 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-04-08 11:34:09 +0400 |
commit | c1e475e527c49ed1a355472f560ae43a27af8f15 (patch) | |
tree | 7b50414e99f3e718e0f4a2be16672ca17c8d8130 /source/blender/collada/DocumentExporter.cpp | |
parent | 68daca1cbf85076d576f9f36340c41f0cca490aa (diff) |
code cleanup:
- remove unused vars
- no need to hard code version number for collada.
- cleanup some typos in comments.
- movieclip_calc_length was passing arg which should be unsigned to BLI_stringdec()
Diffstat (limited to 'source/blender/collada/DocumentExporter.cpp')
-rw-r--r-- | source/blender/collada/DocumentExporter.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/collada/DocumentExporter.cpp b/source/blender/collada/DocumentExporter.cpp index e77cee24cb3..52261346acb 100644 --- a/source/blender/collada/DocumentExporter.cpp +++ b/source/blender/collada/DocumentExporter.cpp @@ -217,13 +217,13 @@ void DocumentExporter::exportCurrentScene(Scene *sce) else { asset.getContributor().mAuthor = "Blender User"; } -#ifdef WITH_BUILDINFO char version_buf[128]; +#ifdef WITH_BUILDINFO sprintf(version_buf, "Blender %d.%02d.%d r%s", BLENDER_VERSION/100, BLENDER_VERSION%100, BLENDER_SUBVERSION, build_rev); - asset.getContributor().mAuthoringTool = version_buf; #else - asset.getContributor().mAuthoringTool = "Blender 2.6x"; + sprintf(version_buf, "Blender %d.%02d.%d", BLENDER_VERSION/100, BLENDER_VERSION%100, BLENDER_SUBVERSION); #endif + asset.getContributor().mAuthoringTool = version_buf; asset.add(); // <library_cameras> |