Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans Goudey <h.goudey@me.com>2022-04-28 21:46:42 +0300
committerHans Goudey <h.goudey@me.com>2022-04-28 21:46:42 +0300
commit3d9f0280ff1bc308aa31e95af6b1726f1b497111 (patch)
tree7f46692a0bcd4bd8b20511f73f11b9eca8338fcd /source/blender/modifiers
parent1425b356b842377c8f83f271360f1fe67b4fa580 (diff)
Fix T93899: Incorrect decorator buttons for geometry nodes vector/colors
For properties exposed to the geometry nodes modifier, decorators didn't work at all for colors and it only worked on the X component of vectors. The fix is to use -1 for the RNA index of the decorator button instead of 1, which lets the UI code figure out what to do with arrays.
Diffstat (limited to 'source/blender/modifiers')
-rw-r--r--source/blender/modifiers/intern/MOD_nodes.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/modifiers/intern/MOD_nodes.cc b/source/blender/modifiers/intern/MOD_nodes.cc
index 1c890190678..21041e8e1b2 100644
--- a/source/blender/modifiers/intern/MOD_nodes.cc
+++ b/source/blender/modifiers/intern/MOD_nodes.cc
@@ -1472,7 +1472,7 @@ static void add_attribute_search_or_value_buttons(const bContext &C,
}
else {
uiItemR(row, md_ptr, rna_path.c_str(), 0, "", ICON_NONE);
- uiItemDecoratorR(row, md_ptr, rna_path.c_str(), 0);
+ uiItemDecoratorR(row, md_ptr, rna_path.c_str(), -1);
}
}