[Bf-blender-cvs] [cbe28509c74] principled-v2: Fix base unit for wavelengths
Lukas Stockner
noreply at git.blender.org
Mon Oct 31 20:26:10 CET 2022
Commit: cbe28509c7434f9095eabe9e3481cea6544e660e
Author: Lukas Stockner
Date: Mon Oct 31 20:25:54 2022 +0100
Branches: principled-v2
https://developer.blender.org/rBcbe28509c7434f9095eabe9e3481cea6544e660e
Fix base unit for wavelengths
===================================================================
M source/blender/blenkernel/intern/unit.c
===================================================================
diff --git a/source/blender/blenkernel/intern/unit.c b/source/blender/blenkernel/intern/unit.c
index e84c7a3ccd4..0d109130b4d 100644
--- a/source/blender/blenkernel/intern/unit.c
+++ b/source/blender/blenkernel/intern/unit.c
@@ -341,7 +341,7 @@ static struct bUnitDef buWavelengthLenDef[] = {
{"picometer", "picometers", "pm", NULL, "Picometers", NULL, 1e-3f, 0.0, B_UNIT_DEF_NONE},
NULL_UNIT,
};
-static const struct bUnitCollection buWavelengthLenCollection = {buWavelengthLenDef, 3, 0, UNIT_COLLECTION_LENGTH(buWavelengthLenDef)};
+static const struct bUnitCollection buWavelengthLenCollection = {buWavelengthLenDef, 2, 0, UNIT_COLLECTION_LENGTH(buWavelengthLenDef)};
/* clang-format on */
More information about the Bf-blender-cvs
mailing list