Fix #129012: GPv3: Crash when increasing curve resolution
Blender would crash in certain cases when using the `Set Curve Resolution` operator to increase the curve resolution. This was because the `evaluated_offsets_cache` was not tagged to be updated. The fix makes sure to use `tag_topology_changed` to tag the offsets cache as dirty. Pull Request: https://projects.blender.org/blender/blender/pulls/129098
This commit is contained in:
@@ -3558,7 +3558,7 @@ static int grease_pencil_set_curve_resolution_exec(bContext *C, wmOperator *op)
|
||||
}
|
||||
|
||||
index_mask::masked_fill(curves.resolution_for_write(), resolution, editable_strokes);
|
||||
info.drawing.tag_positions_changed();
|
||||
info.drawing.tag_topology_changed();
|
||||
changed = true;
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user