<p dir="ltr">Hi Sergej,</p>
<p dir="ltr">Just wondering what the reason for changing this is? As the SI unit for mass is kilograms, I would have thought that having kilograms as the base unit would be correct.</p>
<p dir="ltr">Thanks for any clarification!<br>
Andrew</p>
<div class="gmail_quote">On 01/01/2014 4:14 AM, "Sergej Reich" <<a href="mailto:noreply@git.blender.org">noreply@git.blender.org</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Commit: ead6d397fda12d8287dff7d6a6fff6ea1948cd69<br>
Author: Sergej Reich<br>
Date:   Tue Dec 31 18:01:07 2013 +0100<br>
<a href="https://developer.blender.org/rBead6d397fda12d8287dff7d6a6fff6ea1948cd69" target="_blank">https://developer.blender.org/rBead6d397fda12d8287dff7d6a6fff6ea1948cd69</a><br>
<br>
Units: Make grams base unit for mass<br>
<br>
===================================================================<br>
<br>
M       source/blender/blenkernel/intern/unit.c<br>
<br>
===================================================================<br>
<br>
diff --git a/source/blender/blenkernel/intern/unit.c b/source/blender/blenkernel/intern/unit.c<br>
index 632ac62..bd6a466 100644<br>
--- a/source/blender/blenkernel/intern/unit.c<br>
+++ b/source/blender/blenkernel/intern/unit.c<br>
@@ -196,13 +196,13 @@ static struct bUnitCollection buImperialVolCollection = {buImperialVolDef, 4, 0,<br>
 static struct bUnitDef buMetricMassDef[] = {<br>
        {"ton", "tonnes",           "ton", "t",  "1000 Kilograms", UN_SC_MTON, 0.0,  B_UNIT_DEF_NONE},<br>
        {"quintal", "quintals",     "ql",  "q",  "100 Kilograms", UN_SC_QL, 0.0,     B_UNIT_DEF_SUPPRESS},<br>
-       {"kilogram", "kilograms",   "kg",  NULL, "Kilograms", UN_SC_KG, 0.0,         B_UNIT_DEF_NONE}, /* base unit */<br>
+       {"kilogram", "kilograms",   "kg",  NULL, "Kilograms", UN_SC_KG, 0.0,         B_UNIT_DEF_NONE},<br>
        {"hectogram", "hectograms", "hg",  NULL, "Hectograms", UN_SC_HG, 0.0,        B_UNIT_DEF_SUPPRESS},<br>
        {"dekagram", "dekagrams",   "dag", NULL, "10 Grams", UN_SC_DAG, 0.0,         B_UNIT_DEF_SUPPRESS},<br>
-       {"gram", "grams",           "g",   NULL, "Grams", UN_SC_G, 0.0,              B_UNIT_DEF_NONE},<br>
+       {"gram", "grams",           "g",   NULL, "Grams", UN_SC_G, 0.0,              B_UNIT_DEF_NONE}, /* base unit */<br>
        {NULL, NULL, NULL,  NULL, NULL, 0.0, 0.0}<br>
 };<br>
-static struct bUnitCollection buMetricMassCollection = {buMetricMassDef, 2, 0, sizeof(buMetricMassDef) / sizeof(bUnitDef)};<br>
+static struct bUnitCollection buMetricMassCollection = {buMetricMassDef, 5, 0, sizeof(buMetricMassDef) / sizeof(bUnitDef)};<br>
<br>
 static struct bUnitDef buImperialMassDef[] = {<br>
        {"ton", "tonnes",   "ton", "t", "Tonnes", UN_SC_ITON, 0.0,      B_UNIT_DEF_NONE},<br>
<br>
_______________________________________________<br>
Bf-blender-cvs mailing list<br>
<a href="mailto:Bf-blender-cvs@blender.org">Bf-blender-cvs@blender.org</a><br>
<a href="http://lists.blender.org/mailman/listinfo/bf-blender-cvs" target="_blank">http://lists.blender.org/mailman/listinfo/bf-blender-cvs</a><br>
</blockquote></div>