[Bf-blender-cvs] [bbeb37696d2] master: Cleanup: format
Chris Blackbourn
noreply at git.blender.org
Thu Jan 19 23:44:53 CET 2023
Commit: bbeb37696d21e6c3461d7ae75dd4db932ce2dc6d
Author: Chris Blackbourn
Date: Fri Jan 20 11:43:28 2023 +1300
Branches: master
https://developer.blender.org/rBbbeb37696d21e6c3461d7ae75dd4db932ce2dc6d
Cleanup: format
===================================================================
M release/scripts/startup/bl_operators/wm.py
M source/blender/draw/intern/DRW_gpu_wrapper.hh
M source/blender/geometry/intern/fillet_curves.cc
===================================================================
diff --git a/release/scripts/startup/bl_operators/wm.py b/release/scripts/startup/bl_operators/wm.py
index cb881ad024e..e82694249fd 100644
--- a/release/scripts/startup/bl_operators/wm.py
+++ b/release/scripts/startup/bl_operators/wm.py
@@ -1588,7 +1588,7 @@ class WM_OT_properties_edit(Operator):
self.default_string = rna_data["default"]
elif self.property_type in {'BOOL', 'BOOL_ARRAY'}:
self.default_bool = self._convert_new_value_array(rna_data["default"], bool, 32)
-
+
if self.property_type in {'FLOAT_ARRAY', 'INT_ARRAY', 'BOOL_ARRAY'}:
self.array_length = len(item[name])
diff --git a/source/blender/draw/intern/DRW_gpu_wrapper.hh b/source/blender/draw/intern/DRW_gpu_wrapper.hh
index 3e53f1510f6..0bb005dd160 100644
--- a/source/blender/draw/intern/DRW_gpu_wrapper.hh
+++ b/source/blender/draw/intern/DRW_gpu_wrapper.hh
@@ -1012,7 +1012,8 @@ class TextureRef : public Texture {
* Dummy type to bind texture as image.
* It is just a GPUTexture in disguise.
*/
-class Image {};
+class Image {
+};
static inline Image *as_image(GPUTexture *tex)
{
diff --git a/source/blender/geometry/intern/fillet_curves.cc b/source/blender/geometry/intern/fillet_curves.cc
index f666a6b6b40..0107eafba9d 100644
--- a/source/blender/geometry/intern/fillet_curves.cc
+++ b/source/blender/geometry/intern/fillet_curves.cc
@@ -39,7 +39,8 @@ static void duplicate_fillet_point_data(const bke::CurvesGeometry &src_curves,
for (const int curve_i : curve_selection.slice(range)) {
const IndexRange src_points = src_points_by_curve[curve_i];
const IndexRange dst_points = dst_points_by_curve[curve_i];
- const IndexRange offsets_range = bke::curves::per_curve_point_offsets_range(src_points, curve_i);
+ const IndexRange offsets_range = bke::curves::per_curve_point_offsets_range(src_points,
+ curve_i);
const OffsetIndices<int> offsets(all_point_offsets.slice(offsets_range));
threaded_slice_fill(src.slice(src_points), offsets, dst.slice(dst_points));
}
@@ -75,7 +76,8 @@ static void calculate_result_offsets(const bke::CurvesGeometry &src_curves,
threading::parallel_for(selection.index_range(), 512, [&](IndexRange range) {
for (const int curve_i : selection.slice(range)) {
const IndexRange src_points = points_by_curve[curve_i];
- const IndexRange offsets_range = bke::curves::per_curve_point_offsets_range(src_points, curve_i);
+ const IndexRange offsets_range = bke::curves::per_curve_point_offsets_range(src_points,
+ curve_i);
MutableSpan<int> point_offsets = dst_point_offsets.slice(offsets_range);
MutableSpan<int> point_counts = point_offsets.drop_back(1);
@@ -456,7 +458,8 @@ static bke::CurvesGeometry fillet_curves(
for (const int curve_i : curve_selection.slice(range)) {
const IndexRange src_points = src_points_by_curve[curve_i];
- const IndexRange offsets_range = bke::curves::per_curve_point_offsets_range(src_points, curve_i);
+ const IndexRange offsets_range = bke::curves::per_curve_point_offsets_range(src_points,
+ curve_i);
const OffsetIndices<int> offsets(all_point_offsets.slice(offsets_range));
const IndexRange dst_points = dst_points_by_curve[curve_i];
const Span<float3> src_positions = positions.slice(src_points);
More information about the Bf-blender-cvs
mailing list