[Bf-blender-cvs] [a99582c95bf] usd-importer-T81257-merge: USD Import: declare local functions static.

makowalski noreply at git.blender.org
Thu Apr 15 21:52:52 CEST 2021


Commit: a99582c95bf28e0a6921a16c9618ecc991527544
Author: makowalski
Date:   Thu Apr 15 15:22:04 2021 -0400
Branches: usd-importer-T81257-merge
https://developer.blender.org/rBa99582c95bf28e0a6921a16c9618ecc991527544

USD Import: declare local functions static.

This fixes compiler warnings.

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

M	source/blender/io/usd/intern/usd_reader_stage.cc

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

diff --git a/source/blender/io/usd/intern/usd_reader_stage.cc b/source/blender/io/usd/intern/usd_reader_stage.cc
index ce32584dc51..5b0d2224fa0 100644
--- a/source/blender/io/usd/intern/usd_reader_stage.cc
+++ b/source/blender/io/usd/intern/usd_reader_stage.cc
@@ -126,7 +126,8 @@ USDPrimReader *USDStageReader::create_reader(const USDStageReader *archive,
 
 /* Returns true if the given prim should be excluded from the
  * traversal because it's invisible. */
-bool _prune_by_visibility(const pxr::UsdGeomImageable &imageable, const USDImportParams &params)
+static bool _prune_by_visibility(const pxr::UsdGeomImageable &imageable,
+                                 const USDImportParams &params)
 {
   if (imageable && params.import_visible_only) {
     if (pxr::UsdAttribute visibility_attr = imageable.GetVisibilityAttr()) {
@@ -148,7 +149,8 @@ bool _prune_by_visibility(const pxr::UsdGeomImageable &imageable, const USDImpor
  * traversal because it has a purpose which was not requested
  * by the user; e.g., the prim represents guide geometry and
  * the import_guide parameter is toggled off. */
-bool _prune_by_purpose(const pxr::UsdGeomImageable &imageable, const USDImportParams &params)
+static bool _prune_by_purpose(const pxr::UsdGeomImageable &imageable,
+                              const USDImportParams &params)
 {
   if (!imageable) {
     return false;



More information about the Bf-blender-cvs mailing list