[Bf-blender-cvs] [045bdd53084] temp-spreadsheet-instances: Small cleanup

Hans Goudey noreply at git.blender.org
Fri Mar 19 17:44:47 CET 2021


Commit: 045bdd530841a1a9380e0d9115089a6c584e385c
Author: Hans Goudey
Date:   Fri Mar 19 12:40:29 2021 -0400
Branches: temp-spreadsheet-instances
https://developer.blender.org/rB045bdd530841a1a9380e0d9115089a6c584e385c

Small cleanup

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

M	source/blender/editors/space_spreadsheet/spreadsheet_column_layout.hh
M	source/blender/editors/space_spreadsheet/spreadsheet_from_geometry.cc

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

diff --git a/source/blender/editors/space_spreadsheet/spreadsheet_column_layout.hh b/source/blender/editors/space_spreadsheet/spreadsheet_column_layout.hh
index 85217d35289..a01e251d764 100644
--- a/source/blender/editors/space_spreadsheet/spreadsheet_column_layout.hh
+++ b/source/blender/editors/space_spreadsheet/spreadsheet_column_layout.hh
@@ -20,10 +20,8 @@
 
 #include "spreadsheet_draw.hh"
 
-// struct Object;
-// struct Collection;
-#include "DNA_collection_types.h"
-#include "DNA_object_types.h"
+struct Object;
+struct Collection;
 
 namespace blender::ed::spreadsheet {
 
diff --git a/source/blender/editors/space_spreadsheet/spreadsheet_from_geometry.cc b/source/blender/editors/space_spreadsheet/spreadsheet_from_geometry.cc
index 0937e81c309..22694181865 100644
--- a/source/blender/editors/space_spreadsheet/spreadsheet_from_geometry.cc
+++ b/source/blender/editors/space_spreadsheet/spreadsheet_from_geometry.cc
@@ -64,7 +64,7 @@ static void add_columns_for_instances(const InstancesComponent &instances_compon
         }
       }));
 
-  columns.last().get()->default_width = 8.0f;
+  columns.last()->default_width = 8.0f;
 
   static std::array<char, 3> axis_char = {'X', 'Y', 'Z'};
   for (const int i : {0, 1, 2}) {



More information about the Bf-blender-cvs mailing list