[Bf-blender-cvs] [6b510379049] temp-alembic-exporter-T73363-ms2: Cleanup: Alembic, explicitly assign to named fields

Sybren A. Stüvel noreply at git.blender.org
Tue Apr 28 18:57:32 CEST 2020


Commit: 6b51037904920d8f039c8031ffd703e432b75dcd
Author: Sybren A. Stüvel
Date:   Tue Apr 28 14:45:52 2020 +0200
Branches: temp-alembic-exporter-T73363-ms2
https://developer.blender.org/rB6b51037904920d8f039c8031ffd703e432b75dcd

Cleanup: Alembic, explicitly assign to named fields

This makes it possible to search the code for a field name and find where
it is initialised.

No functional changes.

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

M	source/blender/io/alembic/intern/export/abc_hierarchy_iterator.cc

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

diff --git a/source/blender/io/alembic/intern/export/abc_hierarchy_iterator.cc b/source/blender/io/alembic/intern/export/abc_hierarchy_iterator.cc
index ad4c3afa1f4..848101dcbc3 100644
--- a/source/blender/io/alembic/intern/export/abc_hierarchy_iterator.cc
+++ b/source/blender/io/alembic/intern/export/abc_hierarchy_iterator.cc
@@ -94,14 +94,14 @@ Alembic::Abc::OObject ABCHierarchyIterator::get_alembic_parent(
 ABCWriterConstructorArgs ABCHierarchyIterator::writer_constructor_args(
     const HierarchyContext *context) const
 {
-  return ABCWriterConstructorArgs{context->object,
-                                  depsgraph_,
-                                  abc_archive_,
-                                  get_alembic_parent(context),
-                                  context->export_name,
-                                  context->export_path,
-                                  this,
-                                  params_};
+  return ABCWriterConstructorArgs{.object = context->object,
+                                  .depsgraph = depsgraph_,
+                                  .abc_archive = abc_archive_,
+                                  .abc_parent = get_alembic_parent(context),
+                                  .abc_name = context->export_name,
+                                  .abc_path = context->export_path,
+                                  .hierarchy_iterator = this,
+                                  .export_params = params_};
 }
 
 AbstractHierarchyWriter *ABCHierarchyIterator::create_transform_writer(



More information about the Bf-blender-cvs mailing list