Fix T76886: GPencil - Flickering when use Background or Camera image

The problem was if some stroke was empty and the changed flag was set to the last stroke wrongly.
This commit is contained in:
Antonio Vazquez
2020-07-02 09:29:30 +02:00
parent 26ffed7466
commit 22197d7f8a

View File

@@ -95,7 +95,7 @@ bool BKE_gpencil_data_minmax(const bGPdata *gpd, float r_min[3], float r_max[3])
if (gpf != NULL) {
LISTBASE_FOREACH (bGPDstroke *, gps, &gpf->strokes) {
changed = BKE_gpencil_stroke_minmax(gps, false, r_min, r_max);
changed |= BKE_gpencil_stroke_minmax(gps, false, r_min, r_max);
}
}
}