diff options
author | Hans Goudey <h.goudey@me.com> | 2022-04-06 00:40:28 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2022-04-06 00:40:44 +0300 |
commit | bb7e3c2b563f752c0bc76631fd2804768c6d3847 (patch) | |
tree | 0b4ee9cd402d888ae56c8c48f27b2f05180b7278 /source/blender/blenkernel/intern/geometry_component_pointcloud.cc | |
parent | 228f7f1c850897cac85b2c4b42cf9052976b7be1 (diff) |
Cleanup: Simplify if statements, clang tidy
Diffstat (limited to 'source/blender/blenkernel/intern/geometry_component_pointcloud.cc')
-rw-r--r-- | source/blender/blenkernel/intern/geometry_component_pointcloud.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/source/blender/blenkernel/intern/geometry_component_pointcloud.cc b/source/blender/blenkernel/intern/geometry_component_pointcloud.cc index 3db4db307a3..400e0ea5e15 100644 --- a/source/blender/blenkernel/intern/geometry_component_pointcloud.cc +++ b/source/blender/blenkernel/intern/geometry_component_pointcloud.cc @@ -125,8 +125,7 @@ static ComponentAttributeProviders create_attribute_providers_for_point_cloud() { static auto update_custom_data_pointers = [](GeometryComponent &component) { PointCloudComponent &pointcloud_component = static_cast<PointCloudComponent &>(component); - PointCloud *pointcloud = pointcloud_component.get_for_write(); - if (pointcloud != nullptr) { + if (PointCloud *pointcloud = pointcloud_component.get_for_write()) { BKE_pointcloud_update_customdata_pointers(pointcloud); } }; |