[Bf-blender-cvs] [73bc95224ed] temp-T90535-usd-alab-material-import: USD Import: format fixes.

Michael Kowalski noreply at git.blender.org
Fri Nov 19 20:05:30 CET 2021


Commit: 73bc95224edc7cbc6c3f4129eb914a2f43a4df15
Author: Michael Kowalski
Date:   Fri Nov 19 13:57:12 2021 -0500
Branches: temp-T90535-usd-alab-material-import
https://developer.blender.org/rB73bc95224edc7cbc6c3f4129eb914a2f43a4df15

USD Import: format fixes.

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

M	source/blender/editors/io/io_usd.c
M	source/blender/io/usd/intern/usd_reader_material.cc

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

diff --git a/source/blender/editors/io/io_usd.c b/source/blender/editors/io/io_usd.c
index 39f09014a61..1c57615969e 100644
--- a/source/blender/editors/io/io_usd.c
+++ b/source/blender/editors/io/io_usd.c
@@ -539,12 +539,13 @@ void WM_OT_usd_import(struct wmOperatorType *ot)
                 0.0001f,
                 1000.0f);
 
-  RNA_def_enum(ot->srna,
-               "mtl_name_collision_mode",
-               rna_enum_usd_mtl_name_collision_mode_items,
-               USD_MTL_NAME_COLLISION_MODIFY,
-               "Material Name Collision",
-               "Behavior when the name of an imported material conflicts with an existing material");
+  RNA_def_enum(
+      ot->srna,
+      "mtl_name_collision_mode",
+      rna_enum_usd_mtl_name_collision_mode_items,
+      USD_MTL_NAME_COLLISION_MODIFY,
+      "Material Name Collision",
+      "Behavior when the name of an imported material conflicts with an existing material");
 }
 
 #endif /* WITH_USD */
diff --git a/source/blender/io/usd/intern/usd_reader_material.cc b/source/blender/io/usd/intern/usd_reader_material.cc
index c09b8ee1e2d..aa65c67cdff 100644
--- a/source/blender/io/usd/intern/usd_reader_material.cc
+++ b/source/blender/io/usd/intern/usd_reader_material.cc
@@ -197,7 +197,7 @@ static bool get_udim_tiles(const std::string &file_path,
     int id = BLI_path_sequence_decode(dir[i].relname, head, tail, &digits);
 
     if (digits == 0 || digits > 4 || !(STREQLEN(base_head, head, FILE_MAX)) ||
-      !(STREQLEN(base_tail, tail, FILE_MAX))) {
+        !(STREQLEN(base_tail, tail, FILE_MAX))) {
       continue;
     }



More information about the Bf-blender-cvs mailing list