[Bf-blender-cvs] [6cf4929f6a7] temp-usd-preview-surf-export: USD export: fixed typo in comparison.

Michael Kowalski noreply at git.blender.org
Tue Dec 21 17:39:39 CET 2021


Commit: 6cf4929f6a73424fb9ad9a0c0e1d445c58d7a4ff
Author: Michael Kowalski
Date:   Tue Dec 21 11:36:06 2021 -0500
Branches: temp-usd-preview-surf-export
https://developer.blender.org/rB6cf4929f6a73424fb9ad9a0c0e1d445c58d7a4ff

USD export: fixed typo in comparison.

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

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

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

diff --git a/source/blender/io/usd/intern/usd_writer_abstract.cc b/source/blender/io/usd/intern/usd_writer_abstract.cc
index e6021fa33fe..6ec9d835c89 100644
--- a/source/blender/io/usd/intern/usd_writer_abstract.cc
+++ b/source/blender/io/usd/intern/usd_writer_abstract.cc
@@ -74,7 +74,7 @@ static std::string get_active_uvlayer_name(Mesh *me)
  * assuming the Object is of type MESH. */
 static std::string get_active_uvlayer_name(Object *ob)
 {
-  if (!ob || !ob->type == OB_MESH) {
+  if (!ob || ob->type != OB_MESH) {
     return "";
   }
   Mesh *me = static_cast<Mesh *>(ob->data);



More information about the Bf-blender-cvs mailing list