Fix curves sculpting Selection Paint missing refresh

This was reported as part of D15219 but it is a problem in master, not
in the patch.

EEVEE is drawing with a cheap sampling when navigating or painting, but
we need to clear the painting flag when we are done painting.

For a rainy day: DRW_state_is_navigating() should be renamed to indicate
that it also checks for the painting flag.
This commit is contained in:
Dalai Felinto 2022-07-04 16:08:29 +02:00
parent af6f3a4020
commit abbc8333ac
2 changed files with 2 additions and 1 deletions

View File

@ -111,7 +111,7 @@ class CurvesSculptCommonContext {
const Scene *scene = nullptr;
ARegion *region = nullptr;
const View3D *v3d = nullptr;
const RegionView3D *rv3d = nullptr;
RegionView3D *rv3d = nullptr;
CurvesSculptCommonContext(const bContext &C);
};

View File

@ -140,6 +140,7 @@ struct SelectionPaintOperationExecutor {
* selection is handled as a generic attribute for now. */
DEG_id_tag_update(&curves_id_->id, ID_RECALC_GEOMETRY);
WM_main_add_notifier(NC_GEOM | ND_DATA, &curves_id_->id);
ctx_.rv3d->rflag &= ~RV3D_PAINTING;
ED_region_tag_redraw(ctx_.region);
}