overload strokes getter for const
This commit is contained in:
@@ -167,6 +167,11 @@ CurvesGeometry &GPFrame::strokes_as_curves()
|
||||
return CurvesGeometry::wrap(*this->strokes);
|
||||
}
|
||||
|
||||
const CurvesGeometry &GPFrame::strokes_as_curves() const
|
||||
{
|
||||
return CurvesGeometry::wrap(*this->strokes);
|
||||
}
|
||||
|
||||
int GPFrame::strokes_num() const
|
||||
{
|
||||
if (this->strokes == nullptr) {
|
||||
|
@@ -255,6 +255,7 @@ class GPFrame : public ::GPFrame {
|
||||
bool operator==(const GPFrame &other) const;
|
||||
|
||||
CurvesGeometry &strokes_as_curves();
|
||||
const CurvesGeometry &strokes_as_curves() const;
|
||||
|
||||
int strokes_num() const;
|
||||
int points_num() const;
|
||||
|
Reference in New Issue
Block a user