[Bf-blender-cvs] [b338b7c2b6e] gpencil-new-data-proposal: Move GPLayer function implementations to .cc file
Amelie Fondevilla
noreply at git.blender.org
Wed Nov 23 15:39:01 CET 2022
Commit: b338b7c2b6e052cd6be113c5069b1e30311ffc2d
Author: Amelie Fondevilla
Date: Wed Nov 23 15:32:57 2022 +0100
Branches: gpencil-new-data-proposal
https://developer.blender.org/rBb338b7c2b6e052cd6be113c5069b1e30311ffc2d
Move GPLayer function implementations to .cc file
===================================================================
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 2cc5cdf8275..e424cd32d37 100644
--- a/source/blender/blenkernel/intern/gpencil_new_proposal.cc
+++ b/source/blender/blenkernel/intern/gpencil_new_proposal.cc
@@ -209,6 +209,17 @@ GPStroke GPFrame::add_new_stroke(int new_points_num)
return {reinterpret_cast<CurvesGeometry *>(this->strokes), new_points_num, orig_last_offset};
}
+/* GPLayer */
+GPLayer::GPLayer(const StringRefNull name)
+{
+ strcpy(this->name, name.c_str());
+}
+
+bool GPLayer::operator==(const GPLayer &other) const
+{
+ return STREQ(this->name, other.name);
+}
+
/* GPData */
GPData::GPData(const int layers_size, const int frame_size)
{
diff --git a/source/blender/blenkernel/intern/gpencil_new_proposal.hh b/source/blender/blenkernel/intern/gpencil_new_proposal.hh
index 71b54f6b133..d98e2d647ab 100644
--- a/source/blender/blenkernel/intern/gpencil_new_proposal.hh
+++ b/source/blender/blenkernel/intern/gpencil_new_proposal.hh
@@ -246,17 +246,11 @@ class GPLayer : public ::GPLayer {
{
}
- GPLayer(const StringRefNull name)
- {
- strcpy(this->name, name.c_str());
- }
+ GPLayer(const StringRefNull name);
~GPLayer() = default;
- bool operator==(const GPLayer &other) const
- {
- return STREQ(this->name, other.name);
- }
+ bool operator==(const GPLayer &other) const;
};
class GPData : public ::GPData {
More information about the Bf-blender-cvs
mailing list