Initial Grease Pencil 3.0 stage #106848

Merged
Falk David merged 224 commits from filedescriptor/blender:grease-pencil-v3 into main 2023-05-30 11:14:22 +02:00
1 changed files with 2 additions and 2 deletions
Showing only changes of commit 7257549ded - Show all commits

View File

@ -109,8 +109,8 @@ typedef struct GreasePencilDrawing {
/**
* A buffer for a single stroke while drawing.
*/
blender::Span<blender::bke::StrokePoint> stroke_buffer();
bool has_stroke_buffer();
blender::Span<blender::bke::StrokePoint> stroke_buffer() const;

What about a single function that returned std::optional rather than a separate "has_" function?

What about a single function that returned `std::optional` rather than a separate "has_" function?
bool has_stroke_buffer() const;

Looks like stroke_buffer() can be const

Looks like `stroke_buffer()` can be `const`
#endif
} GreasePencilDrawing;