diff --git a/source/blender/editors/io/io_usd.cc b/source/blender/editors/io/io_usd.cc index 91f469c1197..2ecd1ca6838 100644 --- a/source/blender/editors/io/io_usd.cc +++ b/source/blender/editors/io/io_usd.cc @@ -10,15 +10,12 @@ # include "DNA_modifier_types.h" # include "DNA_space_types.h" -# include - # include "BKE_context.hh" # include "BKE_file_handler.hh" # include "BKE_report.hh" # include "BLI_path_util.h" # include "BLI_string.h" -# include "BLI_utildefines.h" # include "BLT_translation.hh" @@ -44,7 +41,8 @@ # include "io_utils.hh" # include "usd.hh" -# include +# include +# include using namespace blender::io::usd; @@ -158,7 +156,6 @@ const EnumPropertyItem prop_usdz_downscale_size[] = { /* Stored in the wmOperator's customdata field to indicate it should run as a background job. * This is set when the operator is invoked, and not set when it is only executed. */ -enum { AS_BACKGROUND_JOB = 1 }; struct eUSDOperatorOptions { bool as_background_job; }; diff --git a/source/blender/io/usd/intern/usd_mesh_utils.hh b/source/blender/io/usd/intern/usd_mesh_utils.hh index 5a6fee4d519..9e3eaa701c3 100644 --- a/source/blender/io/usd/intern/usd_mesh_utils.hh +++ b/source/blender/io/usd/intern/usd_mesh_utils.hh @@ -2,19 +2,8 @@ * * SPDX-License-Identifier: GPL-2.0-or-later */ -#include "BKE_mesh.hh" -#include "BKE_report.hh" - -#include "DNA_customdata_types.h" - -#include "usd.hh" - -#include -#include #include -#include - struct Mesh; struct ReportList; diff --git a/source/blender/io/usd/intern/usd_reader_points.cc b/source/blender/io/usd/intern/usd_reader_points.cc index 3ab0f6e9950..2cb4e887092 100644 --- a/source/blender/io/usd/intern/usd_reader_points.cc +++ b/source/blender/io/usd/intern/usd_reader_points.cc @@ -9,10 +9,8 @@ #include "BKE_object.hh" #include "BKE_pointcloud.hh" -#include "BLI_color.hh" #include "BLI_span.hh" -#include "DNA_cachefile_types.h" #include "DNA_object_types.h" #include "DNA_pointcloud_types.h" diff --git a/source/blender/io/usd/intern/usd_reader_prim.hh b/source/blender/io/usd/intern/usd_reader_prim.hh index c693e029684..9d38127c0c4 100644 --- a/source/blender/io/usd/intern/usd_reader_prim.hh +++ b/source/blender/io/usd/intern/usd_reader_prim.hh @@ -16,7 +16,6 @@ #include #include -#include #include struct CacheFile; diff --git a/source/blender/io/usd/intern/usd_reader_utils.cc b/source/blender/io/usd/intern/usd_reader_utils.cc index 8090d12cb1e..9c124ea8569 100644 --- a/source/blender/io/usd/intern/usd_reader_utils.cc +++ b/source/blender/io/usd/intern/usd_reader_utils.cc @@ -4,6 +4,8 @@ #include "usd_reader_utils.hh" +#include "BKE_idprop.hh" + #include #include "CLG_log.h" diff --git a/source/blender/io/usd/intern/usd_reader_utils.hh b/source/blender/io/usd/intern/usd_reader_utils.hh index 37e63230a8b..a6671220f89 100644 --- a/source/blender/io/usd/intern/usd_reader_utils.hh +++ b/source/blender/io/usd/intern/usd_reader_utils.hh @@ -6,8 +6,9 @@ #include "usd.hh" #include +#include -#include "BKE_idprop.hh" +struct ID; namespace blender::io::usd { diff --git a/source/blender/io/usd/intern/usd_skel_convert.cc b/source/blender/io/usd/intern/usd_skel_convert.cc index 18cd7b61de1..8379993f752 100644 --- a/source/blender/io/usd/intern/usd_skel_convert.cc +++ b/source/blender/io/usd/intern/usd_skel_convert.cc @@ -19,6 +19,7 @@ #include "DNA_anim_types.h" #include "DNA_armature_types.h" #include "DNA_key_types.h" +#include "DNA_mesh_types.h" #include "DNA_meshdata_types.h" #include "BKE_action.h" @@ -26,7 +27,6 @@ #include "BKE_deform.hh" #include "BKE_fcurve.hh" #include "BKE_key.hh" -#include "BKE_mesh.hh" #include "BKE_modifier.hh" #include "BKE_object_deform.h" #include "BKE_report.hh" @@ -39,7 +39,6 @@ #include "BLI_vector.hh" #include "ED_armature.hh" -#include "ED_mesh.hh" #include "ED_object_vgroup.hh" #include "ANIM_animdata.hh"