[Bf-blender-cvs] [d2b85552668] temp-sybren-usd-patch: USD: made `bool weak_export` `const`

Sybren A. Stüvel noreply at git.blender.org
Tue Nov 26 18:07:31 CET 2019


Commit: d2b85552668bb73169f1c7dfe8b9b6a00c5dfe52
Author: Sybren A. Stüvel
Date:   Tue Nov 26 13:48:32 2019 +0100
Branches: temp-sybren-usd-patch
https://developer.blender.org/rBd2b85552668bb73169f1c7dfe8b9b6a00c5dfe52

USD: made `bool weak_export` `const`

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

M	source/blender/usd/intern/abstract_hierarchy_iterator.cc

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

diff --git a/source/blender/usd/intern/abstract_hierarchy_iterator.cc b/source/blender/usd/intern/abstract_hierarchy_iterator.cc
index 6c12280f29f..d9a23f33aae 100644
--- a/source/blender/usd/intern/abstract_hierarchy_iterator.cc
+++ b/source/blender/usd/intern/abstract_hierarchy_iterator.cc
@@ -177,7 +177,7 @@ void AbstractHierarchyIterator::export_graph_construct()
     }
 
     // Non-instanced objects always have their object-parent as export-parent.
-    bool weak_export = !should_export_object(object);
+    const bool weak_export = !should_export_object(object);
     visit_object(object, object->parent, weak_export);
 
     if (weak_export) {



More information about the Bf-blender-cvs mailing list