[Bf-blender-cvs] [089f5f0bc2b] cycles_procedural_api: cleanup, const
Kévin Dietrich
noreply at git.blender.org
Sat Oct 3 04:18:22 CEST 2020
Commit: 089f5f0bc2b65e8ee0fa4a222266bf818094834e
Author: Kévin Dietrich
Date: Mon Sep 28 14:47:22 2020 +0200
Branches: cycles_procedural_api
https://developer.blender.org/rB089f5f0bc2b65e8ee0fa4a222266bf818094834e
cleanup, const
===================================================================
M intern/cycles/render/alembic.cpp
M intern/cycles/render/alembic.h
===================================================================
diff --git a/intern/cycles/render/alembic.cpp b/intern/cycles/render/alembic.cpp
index 4eac2ec5ac3..25fb5a6bcb1 100644
--- a/intern/cycles/render/alembic.cpp
+++ b/intern/cycles/render/alembic.cpp
@@ -38,12 +38,12 @@
CCL_NAMESPACE_BEGIN
-static float3 make_float3_from_yup(Imath::Vec3<float> const &v)
+static float3 make_float3_from_yup(const Imath::Vec3<float> &v)
{
return make_float3(v.x, -v.z, v.y);
}
-static M44d convert_yup_zup(M44d const &mtx)
+static M44d convert_yup_zup(const M44d &mtx)
{
Imath::Vec3<double> scale, shear, rot, trans;
extractSHRT(mtx, scale, shear, rot, trans);
@@ -161,7 +161,7 @@ AlembicObject::DataCache &AlembicObject::get_frame_data(int index)
return frame_data[index];
}
-void AlembicObject::load_all_data(IPolyMeshSchema &schema)
+void AlembicObject::load_all_data(const IPolyMeshSchema &schema)
{
frame_data.clear();
diff --git a/intern/cycles/render/alembic.h b/intern/cycles/render/alembic.h
index 14e98765b29..4bb5d5960ec 100644
--- a/intern/cycles/render/alembic.h
+++ b/intern/cycles/render/alembic.h
@@ -48,7 +48,7 @@ class AlembicObject : public Node {
void set_object(Object *object);
Object *get_object();
- void load_all_data(IPolyMeshSchema &schema);
+ void load_all_data(const IPolyMeshSchema &schema);
bool has_data_loaded() const;
More information about the Bf-blender-cvs
mailing list