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:
authorHans Goudey <h.goudey@me.com>2022-06-23 02:58:25 +0300
committerHans Goudey <h.goudey@me.com>2022-06-23 02:58:25 +0300
commit1160a3a3f83cafda98e7bf6fb111bdacc5f28a63 (patch)
treeb969f2508aac0cb59cd3fe81119dc1301a84bfb0 /source/blender/io/usd/intern
parentd2a3b99ff7abb3d7deb30da4554b1cda6ff32766 (diff)
Cleanup: Clang tidy
Mainly duplicate includes and else after return.
Diffstat (limited to 'source/blender/io/usd/intern')
-rw-r--r--source/blender/io/usd/intern/usd_reader_mesh.cc8
-rw-r--r--source/blender/io/usd/intern/usd_writer_volume.cc2
2 files changed, 4 insertions, 6 deletions
diff --git a/source/blender/io/usd/intern/usd_reader_mesh.cc b/source/blender/io/usd/intern/usd_reader_mesh.cc
index 36e1a40953c..46749b03169 100644
--- a/source/blender/io/usd/intern/usd_reader_mesh.cc
+++ b/source/blender/io/usd/intern/usd_reader_mesh.cc
@@ -87,11 +87,9 @@ static Material *find_existing_material(
if (mat_iter != mat_map.end()) {
return mat_iter->second;
}
- else {
- /* We can't find the Blender material which was previously created for this USD
- * material, which should never happen. */
- BLI_assert_unreachable();
- }
+ /* We can't find the Blender material which was previously created for this USD
+ * material, which should never happen. */
+ BLI_assert_unreachable();
}
}
else {
diff --git a/source/blender/io/usd/intern/usd_writer_volume.cc b/source/blender/io/usd/intern/usd_writer_volume.cc
index 4126be6966a..6300e5c657c 100644
--- a/source/blender/io/usd/intern/usd_writer_volume.cc
+++ b/source/blender/io/usd/intern/usd_writer_volume.cc
@@ -100,7 +100,7 @@ std::optional<std::string> USDVolumeWriter::resolve_vdb_file(const Volume *volum
vdb_file_path = construct_vdb_file_path(volume);
if (!BKE_volume_save(
- volume, usd_export_context_.bmain, NULL, vdb_file_path.value_or("").c_str())) {
+ volume, usd_export_context_.bmain, nullptr, vdb_file_path.value_or("").c_str())) {
return std::nullopt;
}
}