Fix: normalize option not shown in noise texture node

Caused by f7e8021b2a.
This commit is contained in:
Jacques Lucke
2023-12-19 12:56:37 +01:00
parent 820a0f7240
commit e0aa05996f

View File

@@ -51,7 +51,7 @@ static void node_shader_buts_tex_noise(uiLayout *layout, bContext * /*C*/, Point
{
uiItemR(layout, ptr, "noise_dimensions", UI_ITEM_R_SPLIT_EMPTY_NAME, "", ICON_NONE);
uiItemR(layout, ptr, "noise_type", UI_ITEM_R_SPLIT_EMPTY_NAME, "", ICON_NONE);
if (ELEM(RNA_enum_get(ptr, "type"), SHD_NOISE_FBM)) {
if (ELEM(RNA_enum_get(ptr, "noise_type"), SHD_NOISE_FBM)) {
uiItemR(layout, ptr, "normalize", UI_ITEM_R_SPLIT_EMPTY_NAME, nullptr, ICON_NONE);
}
}