[Bf-blender-cvs] [6cc5e59b492] soc-2020-io-performance: Exporter: remove useless `{}`s.

Ankit Meel noreply at git.blender.org
Fri Dec 4 19:57:27 CET 2020


Commit: 6cc5e59b4926c8d8be08858f9359ebb6b9b19e7e
Author: Ankit Meel
Date:   Mon Nov 30 19:31:33 2020 +0530
Branches: soc-2020-io-performance
https://developer.blender.org/rB6cc5e59b4926c8d8be08858f9359ebb6b9b19e7e

Exporter: remove useless `{}`s.

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

M	source/blender/io/wavefront_obj/exporter/obj_export_mtl.hh

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

diff --git a/source/blender/io/wavefront_obj/exporter/obj_export_mtl.hh b/source/blender/io/wavefront_obj/exporter/obj_export_mtl.hh
index 89de626fb4b..ea5dd58089b 100644
--- a/source/blender/io/wavefront_obj/exporter/obj_export_mtl.hh
+++ b/source/blender/io/wavefront_obj/exporter/obj_export_mtl.hh
@@ -40,12 +40,12 @@ struct tex_map_XX {
   tex_map_XX(StringRef to_socket_id) : dest_socket_id(to_socket_id){};
 
   /** Target socket which this texture node connects to. */
-  const std::string dest_socket_id{};
+  const std::string dest_socket_id;
   float3 translation{0.0f};
   float3 scale{1.0f};
   /* Only Flat and Smooth projections are supported. */
   int projection_type = SHD_PROJ_FLAT;
-  std::string image_path{};
+  std::string image_path;
   std::string mtl_dir_path;
 };
 
@@ -76,7 +76,7 @@ struct MTLMaterial {
     }
   }
 
-  std::string name{};
+  std::string name;
   /* Always check for negative values while importing or exporting. Use defaults if
    * any value is negative. */
   float Ns{-1.0f};



More information about the Bf-blender-cvs mailing list