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
2 changed files with 3 additions and 3 deletions
Showing only changes of commit 76e813ece2 - Show all commits

View File

@ -1018,12 +1018,12 @@ void GreasePencilDrawing::tag_positions_changed()
this->runtime->triangles_cache.tag_dirty(); this->runtime->triangles_cache.tag_dirty();
} }
bool GreasePencilDrawing::has_stroke_buffer() bool GreasePencilDrawing::has_stroke_buffer() const
{ {
return this->runtime->stroke_cache.points.size() > 0; return this->runtime->stroke_cache.points.size() > 0;
} }
blender::Span<blender::bke::StrokePoint> GreasePencilDrawing::stroke_buffer() blender::Span<blender::bke::StrokePoint> GreasePencilDrawing::stroke_buffer() const
{ {
return this->runtime->stroke_cache.points.as_span(); return this->runtime->stroke_cache.points.as_span();
} }

View File

@ -406,7 +406,7 @@ typedef struct GreasePencil {
struct AnimData *adt; struct AnimData *adt;
/** /**
* An array of pointers to drawings. The drawing can own it's data or reference it from another * An array of pointers to drawings. The drawing can own its data or reference it from another

Grammar: it's data -> its data

Grammar: `it's data` -> `its data`
* data-block. Note that the order of this array is arbitrary. The mapping of drawings to frames * data-block. Note that the order of this array is arbitrary. The mapping of drawings to frames
* is done by the layers. See the `Layer` class in `BKE_grease_pencil.hh`. * is done by the layers. See the `Layer` class in `BKE_grease_pencil.hh`.
*/ */