diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-02-11 04:49:00 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-02-11 04:49:00 +0400 |
commit | 2005f7c6c0ee47b85bbcf5999225e86117290a65 (patch) | |
tree | 4157bd9de8d5606c1ced57c698394d78fec9b0d4 /source/blender/collada/collada_utils.cpp | |
parent | 22dbb675c156a24880e3b1803a0f5abde53af4b8 (diff) |
style cleanup: also some typos
Diffstat (limited to 'source/blender/collada/collada_utils.cpp')
-rw-r--r-- | source/blender/collada/collada_utils.cpp | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/source/blender/collada/collada_utils.cpp b/source/blender/collada/collada_utils.cpp index 84bb33929c1..13403555bfb 100644 --- a/source/blender/collada/collada_utils.cpp +++ b/source/blender/collada/collada_utils.cpp @@ -329,15 +329,18 @@ void bc_match_scale(std::vector<Object *> *objects_done, float bl_scale; - switch(type) { - case USER_UNIT_NONE : bl_scale = 1.0; // map 1 Blender unit to 1 Meter - break; - case USER_UNIT_METRIC : bl_scale = RNA_property_float_get(&unit_settings, scale_ptr); - break; - default : bl_scale = RNA_property_float_get(&unit_settings, scale_ptr); - // it looks like the conversion to Imperial is done implicitly. - // So nothing to do here. - break; + switch (type) { + case USER_UNIT_NONE: + bl_scale = 1.0; // map 1 Blender unit to 1 Meter + break; + case USER_UNIT_METRIC: + bl_scale = RNA_property_float_get(&unit_settings, scale_ptr); + break; + default: + bl_scale = RNA_property_float_get(&unit_settings, scale_ptr); + // it looks like the conversion to Imperial is done implicitly. + // So nothing to do here. + break; } float size_mat3[3][3]; |