const tweaks
diff --git a/include/rive/shapes/cubic_vertex.hpp b/include/rive/shapes/cubic_vertex.hpp
index 717f7ea..b4ee4e4 100644
--- a/include/rive/shapes/cubic_vertex.hpp
+++ b/include/rive/shapes/cubic_vertex.hpp
@@ -26,7 +26,8 @@
void xChanged() override;
void yChanged() override;
- void deform(Mat2D& worldTransform, float* boneTransforms) override;
+ void deform(const Mat2D& worldTransform,
+ const float* boneTransforms) override;
};
} // namespace rive
diff --git a/include/rive/shapes/path_vertex.hpp b/include/rive/shapes/path_vertex.hpp
index d2b3054..e8e37fb 100644
--- a/include/rive/shapes/path_vertex.hpp
+++ b/include/rive/shapes/path_vertex.hpp
@@ -14,7 +14,8 @@
public:
StatusCode onAddedDirty(CoreContext* context) override;
template <typename T> T* weight() { return m_Weight->as<T>(); }
- virtual void deform(Mat2D& worldTransform, float* boneTransforms);
+ virtual void deform(const Mat2D& worldTransform,
+ const float* boneTransforms);
bool hasWeight() { return m_Weight != nullptr; }
Vec2D renderTranslation();
diff --git a/src/shapes/cubic_vertex.cpp b/src/shapes/cubic_vertex.cpp
index baeb1a6..1a1c7c8 100644
--- a/src/shapes/cubic_vertex.cpp
+++ b/src/shapes/cubic_vertex.cpp
@@ -53,7 +53,8 @@
m_InValid = m_OutValid = false;
}
-void CubicVertex::deform(Mat2D& worldTransform, float* boneTransforms) {
+void CubicVertex::deform(const Mat2D& worldTransform,
+ const float* boneTransforms) {
Super::deform(worldTransform, boneTransforms);
auto cubicWeight = weight<CubicWeight>();
diff --git a/src/shapes/path_vertex.cpp b/src/shapes/path_vertex.cpp
index 220a68f..32f90a4 100644
--- a/src/shapes/path_vertex.cpp
+++ b/src/shapes/path_vertex.cpp
@@ -34,7 +34,8 @@
void PathVertex::xChanged() { markPathDirty(); }
void PathVertex::yChanged() { markPathDirty(); }
-void PathVertex::deform(Mat2D& worldTransform, float* boneTransforms) {
+void PathVertex::deform(const Mat2D& worldTransform,
+ const float* boneTransforms) {
Weight::deform(x(),
y(),
m_Weight->indices(),