[Bf-blender-cvs] [2845b232a77] blender-v2.83-release: Fix T75522: Math node truncate operator tooltip provides no explanation
Philipp Oeser
noreply at git.blender.org
Wed Apr 29 11:44:29 CEST 2020
Commit: 2845b232a77d37733b20aafd366cf0f2533aff43
Author: Philipp Oeser
Date: Mon Apr 27 18:49:43 2020 +0200
Branches: blender-v2.83-release
https://developer.blender.org/rB2845b232a77d37733b20aafd366cf0f2533aff43
Fix T75522: Math node truncate operator tooltip provides no explanation
===================================================================
M release/scripts/modules/bl_i18n_utils/settings.py
M source/blender/makesrna/intern/rna_nodetree.c
===================================================================
diff --git a/release/scripts/modules/bl_i18n_utils/settings.py b/release/scripts/modules/bl_i18n_utils/settings.py
index c736f78d501..c233681dc41 100644
--- a/release/scripts/modules/bl_i18n_utils/settings.py
+++ b/release/scripts/modules/bl_i18n_utils/settings.py
@@ -377,7 +377,6 @@ WARN_MSGID_NOT_CAPITALIZED_ALLOWED = {
"normal",
"right",
"the lazy dog",
- "trunc(A)",
"unable to load movie clip",
"unable to load text",
"unable to open the file",
diff --git a/source/blender/makesrna/intern/rna_nodetree.c b/source/blender/makesrna/intern/rna_nodetree.c
index 31d6ff80f34..71b3f1ee94b 100644
--- a/source/blender/makesrna/intern/rna_nodetree.c
+++ b/source/blender/makesrna/intern/rna_nodetree.c
@@ -174,7 +174,7 @@ const EnumPropertyItem rna_enum_node_math_items[] = {
"Round A to the nearest integer. Round upward if the fraction part is 0.5"},
{NODE_MATH_FLOOR, "FLOOR", 0, "Floor", "The largest integer smaller than or equal A"},
{NODE_MATH_CEIL, "CEIL", 0, "Ceil", "The smallest integer greater than or equal A"},
- {NODE_MATH_TRUNC, "TRUNC", 0, "Truncate", "trunc(A)"},
+ {NODE_MATH_TRUNC, "TRUNC", 0, "Truncate", "The integer part of A, removing fractional digits"},
{0, "", ICON_NONE, NULL, NULL},
{NODE_MATH_FRACTION, "FRACT", 0, "Fraction", "The fraction part of A"},
{NODE_MATH_MODULO, "MODULO", 0, "Modulo", "Modulo using fmod(A,B)"},
More information about the Bf-blender-cvs
mailing list