diff options
Diffstat (limited to 'source/blender/io/common/intern/abstract_hierarchy_iterator_test.cc')
-rw-r--r-- | source/blender/io/common/intern/abstract_hierarchy_iterator_test.cc | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/source/blender/io/common/intern/abstract_hierarchy_iterator_test.cc b/source/blender/io/common/intern/abstract_hierarchy_iterator_test.cc index 27196994a3c..6e4509afd30 100644 --- a/source/blender/io/common/intern/abstract_hierarchy_iterator_test.cc +++ b/source/blender/io/common/intern/abstract_hierarchy_iterator_test.cc @@ -145,7 +145,7 @@ TEST_F(AbstractHierarchyIteratorTest, ExportHierarchyTest) iterator->iterate_and_write(); - // Mapping from object name to set of export paths. + /* Mapping from object name to set of export paths. */ used_writers expected_transforms = { {"OBCamera", {"/Camera"}}, {"OBDupli1", {"/Dupli1"}}, @@ -196,12 +196,12 @@ TEST_F(AbstractHierarchyIteratorTest, ExportHierarchyTest) EXPECT_EQ(expected_data, iterator->data_writers); - // The scene has no hair or particle systems. + /* The scene has no hair or particle systems. */ EXPECT_EQ(0, iterator->hair_writers.size()); EXPECT_EQ(0, iterator->particle_writers.size()); - // On the second iteration, everything should be written as well. - // This tests the default value of iterator->export_subset_. + /* On the second iteration, everything should be written as well. + * This tests the default value of iterator->export_subset_. */ iterator->transform_writers.clear(); iterator->data_writers.clear(); iterator->iterate_and_write(); @@ -211,8 +211,8 @@ TEST_F(AbstractHierarchyIteratorTest, ExportHierarchyTest) TEST_F(AbstractHierarchyIteratorTest, ExportSubsetTest) { - // The scene has no hair or particle systems, and this is already covered by ExportHierarchyTest, - // so not included here. Update this test when hair & particle systems are included. + /* The scene has no hair or particle systems, and this is already covered by ExportHierarchyTest, + * so not included here. Update this test when hair & particle systems are included. */ /* Load the test blend file. */ if (!blendfile_load("usd/usd_hierarchy_export_test.blend")) { @@ -221,7 +221,7 @@ TEST_F(AbstractHierarchyIteratorTest, ExportSubsetTest) depsgraph_create(DAG_EVAL_RENDER); iterator_create(); - // Mapping from object name to set of export paths. + /* Mapping from object name to set of export paths. */ used_writers expected_transforms = { {"OBCamera", {"/Camera"}}, {"OBDupli1", {"/Dupli1"}}, @@ -269,8 +269,8 @@ TEST_F(AbstractHierarchyIteratorTest, ExportSubsetTest) {"OBParentOfDupli2", {"/ParentOfDupli2/Icosphere"}}, }; - // Even when only asking an export of transforms, on the first frame everything should be - // exported. + /* Even when only asking an export of transforms, on the first frame everything should be + * exported. */ { ExportSubset export_subset = {0}; export_subset.transforms = true; @@ -281,20 +281,20 @@ TEST_F(AbstractHierarchyIteratorTest, ExportSubsetTest) EXPECT_EQ(expected_transforms, iterator->transform_writers); EXPECT_EQ(expected_data, iterator->data_writers); - // Clear data to prepare for the next iteration. + /* Clear data to prepare for the next iteration. */ iterator->transform_writers.clear(); iterator->data_writers.clear(); - // Second iteration, should only write transforms now. + /* Second iteration, should only write transforms now. */ iterator->iterate_and_write(); EXPECT_EQ(expected_transforms, iterator->transform_writers); EXPECT_EQ(0, iterator->data_writers.size()); - // Clear data to prepare for the next iteration. + /* Clear data to prepare for the next iteration. */ iterator->transform_writers.clear(); iterator->data_writers.clear(); - // Third iteration, should only write data now. + /* Third iteration, should only write data now. */ { ExportSubset export_subset = {0}; export_subset.transforms = false; @@ -305,11 +305,11 @@ TEST_F(AbstractHierarchyIteratorTest, ExportSubsetTest) EXPECT_EQ(0, iterator->transform_writers.size()); EXPECT_EQ(expected_data, iterator->data_writers); - // Clear data to prepare for the next iteration. + /* Clear data to prepare for the next iteration. */ iterator->transform_writers.clear(); iterator->data_writers.clear(); - // Fourth iteration, should export everything now. + /* Fourth iteration, should export everything now. */ { ExportSubset export_subset = {0}; export_subset.transforms = true; @@ -343,7 +343,7 @@ TEST_F(AbstractHierarchyIteratorInvisibleTest, ExportInvisibleTest) iterator->iterate_and_write(); - // Mapping from object name to set of export paths. + /* Mapping from object name to set of export paths. */ used_writers expected_transforms = {{"OBInvisibleAnimatedCube", {"/InvisibleAnimatedCube"}}, {"OBInvisibleCube", {"/InvisibleCube"}}, {"OBVisibleCube", {"/VisibleCube"}}}; @@ -355,7 +355,7 @@ TEST_F(AbstractHierarchyIteratorInvisibleTest, ExportInvisibleTest) EXPECT_EQ(expected_data, iterator->data_writers); - // The scene has no hair or particle systems. + /* The scene has no hair or particle systems. */ EXPECT_EQ(0, iterator->hair_writers.size()); EXPECT_EQ(0, iterator->particle_writers.size()); } |