Sculpt-dev: Fix color filter not auto

creating a color layer.

* This is probably something I broke.
  There was a SCULPT_has_colors() call that
  wasn't needed.
This commit is contained in:
Joseph Eagar 2021-11-28 18:36:03 -08:00
parent 777168cc00
commit 62f68639e0
1 changed files with 1 additions and 5 deletions

View File

@ -341,14 +341,10 @@ static int sculpt_color_filter_invoke(bContext *C, wmOperator *op, const wmEvent
return OPERATOR_CANCELLED;
}
if (!SCULPT_has_colors(ss)) {
return OPERATOR_CANCELLED;
}
BKE_sculpt_color_layer_create_if_needed(ob);
SCULPT_undo_push_begin(ob, "color filter");
BKE_sculpt_color_layer_create_if_needed(ob);
/* CTX_data_ensure_evaluated_depsgraph should be used at the end to include the updates of
* earlier steps modifying the data. */
Depsgraph *depsgraph = CTX_data_ensure_evaluated_depsgraph(C);