Fix #102872: Custom Normals Average operator ui shows wrong properties #121864

Merged
Philipp Oeser merged 1 commits from lichtwerk/blender:102872 into main 2024-05-21 10:38:26 +02:00

View File

@ -9200,12 +9200,13 @@ static bool average_normals_draw_check_prop(PointerRNA *ptr,
const char *prop_id = RNA_property_identifier(prop);
const int average_type = RNA_enum_get(ptr, "average_type");
/* Only show weight/threshold options in loop average type. */
/* Only show weight/threshold options when not in loop average type. */
const bool is_clor_average_loop = average_type == EDBM_CLNOR_AVERAGE_LOOP;
if (STREQ(prop_id, "weight")) {
return (average_type == EDBM_CLNOR_AVERAGE_LOOP);
return !is_clor_average_loop;
}
if (STREQ(prop_id, "threshold")) {
return (average_type == EDBM_CLNOR_AVERAGE_LOOP);
return !is_clor_average_loop;
}
/* Else, show it! */