Fix "day" unit length
The day is currently specified as 90000 seconds which is 25 hours. Obviously this is wrong, and this commit changes it to 86400s/24 hours. Differential Revision: https://developer.blender.org/D15034
This commit is contained in:
parent
fdc2b7bfa4
commit
ae39abe7f3
|
@ -268,7 +268,7 @@ static struct bUnitCollection buImperialAclCollection = {buImperialAclDef, 0, 0,
|
|||
/* Time. */
|
||||
static struct bUnitDef buNaturalTimeDef[] = {
|
||||
/* Weeks? - probably not needed for Blender. */
|
||||
{"day", "days", "d", NULL, "Days", "DAYS", 90000.0, 0.0, B_UNIT_DEF_NONE},
|
||||
{"day", "days", "d", NULL, "Days", "DAYS", 86400.0, 0.0, B_UNIT_DEF_NONE},
|
||||
{"hour", "hours", "hr", "h", "Hours", "HOURS", 3600.0, 0.0, B_UNIT_DEF_NONE},
|
||||
{"minute", "minutes", "min", "m", "Minutes", "MINUTES", 60.0, 0.0, B_UNIT_DEF_NONE},
|
||||
{"second", "seconds", "sec", "s", "Seconds", "SECONDS", 1.0, 0.0, B_UNIT_DEF_NONE}, /* Base unit. */
|
||||
|
|
Loading…
Reference in New Issue