[Bf-blender-cvs] [756eab0a6c9] usd-importer-T81257-merge: USD Import: fixed comments.

makowalski noreply at git.blender.org
Fri Apr 9 03:27:23 CEST 2021


Commit: 756eab0a6c9ef8670d719423b1cc24fa79ffe769
Author: makowalski
Date:   Thu Apr 8 18:14:05 2021 -0400
Branches: usd-importer-T81257-merge
https://developer.blender.org/rB756eab0a6c9ef8670d719423b1cc24fa79ffe769

USD Import: fixed comments.

Per review for D10700.

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

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

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

diff --git a/source/blender/io/usd/intern/usd_reader_curve.cc b/source/blender/io/usd/intern/usd_reader_curve.cc
index 7746245ecfd..4e7dc129c7b 100644
--- a/source/blender/io/usd/intern/usd_reader_curve.cc
+++ b/source/blender/io/usd/intern/usd_reader_curve.cc
@@ -121,14 +121,14 @@ void USDCurvesReader::read_curve_sample(Curve *cu, double motionSampleTime)
   pxr::VtVec3fArray usdNormals;
   curve_prim_.GetNormalsAttr().Get(&usdNormals, motionSampleTime);
 
-  // If normals, extrude, else bevel
-  // Perhaps to be replaced by Blender/USD Schema
+  /* If normals, extrude, else bevel.
+   * Perhaps to be replaced by Blender/USD Schema. */
   if (usdNormals.size() > 0) {
-    // Set extrusion to 1.0f;
+    // Set extrusion to 1.0f.
     curve_->ext1 = 1.0f;
   }
   else {
-    // Set bevel depth to 1.0f;
+    /* Set bevel depth to 1.0f. */
     curve_->ext2 = 1.0f;
   }
 
@@ -142,7 +142,7 @@ void USDCurvesReader::read_curve_sample(Curve *cu, double motionSampleTime)
       nu->type = CU_NURBS;
     }
     else if (basis == pxr::UsdGeomTokens->bezier) {
-      // TODO: Beziers are not properly imported as beziers...
+      /* TODO(makowalski): Beziers are not properly imported as beziers. */
       nu->type = CU_NURBS;
       nu->flag |= CU_SMOOTH;
       nu->flagu |= CU_NURB_ENDPOINT;



More information about the Bf-blender-cvs mailing list