Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKévin Dietrich <kevin.dietrich@mailoo.org>2022-03-23 23:24:50 +0300
committerKévin Dietrich <kevin.dietrich@mailoo.org>2022-03-23 23:32:09 +0300
commit945dfd200b1fc58c63fd01c264d50911f26773a2 (patch)
treee68ec1a31280faee177be4f64a2f4dc542f38bea /source/blender/io/usd/intern
parent03a7747aa6e624ce2dc894bf376a7ed93bf25bb4 (diff)
Cleanup: add const qualifier
This adds a const qualifier to some code path in the Alembic and USD importers. More could be added elsewhere. This change is done as it will be required when GeometrySets are supported and helps keeping diff noise in the patch to a bare minimum.
Diffstat (limited to 'source/blender/io/usd/intern')
-rw-r--r--source/blender/io/usd/intern/usd_reader_geom.h2
-rw-r--r--source/blender/io/usd/intern/usd_reader_mesh.cc2
-rw-r--r--source/blender/io/usd/intern/usd_reader_mesh.h2
3 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/io/usd/intern/usd_reader_geom.h b/source/blender/io/usd/intern/usd_reader_geom.h
index 6dcad2ffac8..b73279250f2 100644
--- a/source/blender/io/usd/intern/usd_reader_geom.h
+++ b/source/blender/io/usd/intern/usd_reader_geom.h
@@ -24,7 +24,7 @@ class USDGeomReader : public USDXformReader {
int read_flag,
const char **err_str) = 0;
- virtual bool topology_changed(Mesh * /* existing_mesh */, double /* motionSampleTime */)
+ virtual bool topology_changed(const Mesh * /* existing_mesh */, double /* motionSampleTime */)
{
return true;
}
diff --git a/source/blender/io/usd/intern/usd_reader_mesh.cc b/source/blender/io/usd/intern/usd_reader_mesh.cc
index 1f97c7b48b3..646d1ba1fde 100644
--- a/source/blender/io/usd/intern/usd_reader_mesh.cc
+++ b/source/blender/io/usd/intern/usd_reader_mesh.cc
@@ -232,7 +232,7 @@ bool USDMeshReader::valid() const
return static_cast<bool>(mesh_prim_);
}
-bool USDMeshReader::topology_changed(Mesh *existing_mesh, const double motionSampleTime)
+bool USDMeshReader::topology_changed(const Mesh *existing_mesh, const double motionSampleTime)
{
/* TODO(makowalski): Is it the best strategy to cache the mesh
* geometry in this function? This needs to be revisited. */
diff --git a/source/blender/io/usd/intern/usd_reader_mesh.h b/source/blender/io/usd/intern/usd_reader_mesh.h
index fdd814f56d4..5e33ce8b5e8 100644
--- a/source/blender/io/usd/intern/usd_reader_mesh.h
+++ b/source/blender/io/usd/intern/usd_reader_mesh.h
@@ -53,7 +53,7 @@ class USDMeshReader : public USDGeomReader {
int read_flag,
const char **err_str) override;
- bool topology_changed(Mesh *existing_mesh, double motionSampleTime) override;
+ bool topology_changed(const Mesh *existing_mesh, double motionSampleTime) override;
private:
void process_normals_vertex_varying(Mesh *mesh);