[Bf-blender-cvs] [b770c9ed401] temp-spreadsheet-row-filter: Cleanup: Whitespace and unused includes

Hans Goudey noreply at git.blender.org
Wed Apr 14 04:44:23 CEST 2021


Commit: b770c9ed401f8b4093f6f80d6c16fe842d014705
Author: Hans Goudey
Date:   Tue Apr 13 21:41:22 2021 -0500
Branches: temp-spreadsheet-row-filter
https://developer.blender.org/rBb770c9ed401f8b4093f6f80d6c16fe842d014705

Cleanup: Whitespace and unused includes

===================================================================

M	release/scripts/startup/bl_ui/space_spreadsheet.py
M	source/blender/editors/space_spreadsheet/space_spreadsheet.cc
M	source/blender/editors/space_spreadsheet/spreadsheet_row_filter_ui.cc
M	source/blender/editors/space_spreadsheet/spreadsheet_row_filter_ui.hh

===================================================================

diff --git a/release/scripts/startup/bl_ui/space_spreadsheet.py b/release/scripts/startup/bl_ui/space_spreadsheet.py
index 9e20982d566..3b8a68fd3e7 100644
--- a/release/scripts/startup/bl_ui/space_spreadsheet.py
+++ b/release/scripts/startup/bl_ui/space_spreadsheet.py
@@ -18,6 +18,7 @@
 
 import bpy
 
+
 class SPREADSHEET_HT_header(bpy.types.Header):
     bl_space_type = 'SPREADSHEET'
 
@@ -43,8 +44,7 @@ class SPREADSHEET_HT_header(bpy.types.Header):
 
         layout.separator_spacer()
 
-        row = layout.row(align=True)
-        row.prop(space, "use_filter", toggle=True, icon='FILTER', icon_only=True)
+        layout.prop(space, "use_filter", toggle=True, icon='FILTER', icon_only=True)
 
 
 classes = (
diff --git a/source/blender/editors/space_spreadsheet/space_spreadsheet.cc b/source/blender/editors/space_spreadsheet/space_spreadsheet.cc
index 6e6bbbecb5b..9e481056fbf 100644
--- a/source/blender/editors/space_spreadsheet/space_spreadsheet.cc
+++ b/source/blender/editors/space_spreadsheet/space_spreadsheet.cc
@@ -17,7 +17,6 @@
 #include <cstring>
 
 #include "BLI_listbase.h"
-#include "BLI_resource_scope.hh"
 
 #include "BKE_screen.h"
 
diff --git a/source/blender/editors/space_spreadsheet/spreadsheet_row_filter_ui.cc b/source/blender/editors/space_spreadsheet/spreadsheet_row_filter_ui.cc
index 56fe4ee11c2..7fa5a0904fc 100644
--- a/source/blender/editors/space_spreadsheet/spreadsheet_row_filter_ui.cc
+++ b/source/blender/editors/space_spreadsheet/spreadsheet_row_filter_ui.cc
@@ -296,4 +296,4 @@ void register_row_filter_panels(ARegionType &region_type)
     panel_type->reorder = filter_reorder;
     BLI_addtail(&region_type.paneltypes, panel_type);
   }
-}
\ No newline at end of file
+}
diff --git a/source/blender/editors/space_spreadsheet/spreadsheet_row_filter_ui.hh b/source/blender/editors/space_spreadsheet/spreadsheet_row_filter_ui.hh
index 8846d11925a..e22178b63ea 100644
--- a/source/blender/editors/space_spreadsheet/spreadsheet_row_filter_ui.hh
+++ b/source/blender/editors/space_spreadsheet/spreadsheet_row_filter_ui.hh
@@ -18,4 +18,4 @@
 
 struct ARegionType;
 
-void register_row_filter_panels(ARegionType &region_type);
\ No newline at end of file
+void register_row_filter_panels(ARegionType &region_type);



More information about the Bf-blender-cvs mailing list