Commit: 702c4eaaeb46a9e07cb8ff3b2a3e1e9b26488bc0
Author: Amelie Fondevilla
Date:   Mon Dec 12 12:07:16 2022 +0100
Branches: gpencil-new-data-proposal
https://developer.blender.org/rB702c4eaaeb46a9e07cb8ff3b2a3e1e9b26488bc0

overload strokes getter for const

===================================================================

M       source/blender/blenkernel/intern/gpencil_new_proposal.cc
M       source/blender/blenkernel/intern/gpencil_new_proposal.hh

===================================================================

diff --git a/source/blender/blenkernel/intern/gpencil_new_proposal.cc 
b/source/blender/blenkernel/intern/gpencil_new_proposal.cc
index 61200bff594..f176c451040 100644
--- a/source/blender/blenkernel/intern/gpencil_new_proposal.cc
+++ b/source/blender/blenkernel/intern/gpencil_new_proposal.cc
@@ -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) {
diff --git a/source/blender/blenkernel/intern/gpencil_new_proposal.hh 
b/source/blender/blenkernel/intern/gpencil_new_proposal.hh
index a4a68345578..0a15315172c 100644
--- a/source/blender/blenkernel/intern/gpencil_new_proposal.hh
+++ b/source/blender/blenkernel/intern/gpencil_new_proposal.hh
@@ -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;

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
List details, subscription details or unsubscribe:
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to