[Bf-blender-cvs] [641a21e4bff] usd-importer-T81257-merge: USDNurbsReader: update comment.
makowalski
noreply at git.blender.org
Mon Jul 19 06:27:35 CEST 2021
Commit: 641a21e4bffab6b34fe23701d24a2f7ceb2d05d9
Author: makowalski
Date: Sun Jul 18 22:15:55 2021 -0400
Branches: usd-importer-T81257-merge
https://developer.blender.org/rB641a21e4bffab6b34fe23701d24a2f7ceb2d05d9
USDNurbsReader: update comment.
Updated comment and replaced commented out code with
#if 0 block.
===================================================================
M source/blender/io/usd/intern/usd_reader_nurbs.cc
===================================================================
diff --git a/source/blender/io/usd/intern/usd_reader_nurbs.cc b/source/blender/io/usd/intern/usd_reader_nurbs.cc
index a4cd75bc950..bfa5b0c0296 100644
--- a/source/blender/io/usd/intern/usd_reader_nurbs.cc
+++ b/source/blender/io/usd/intern/usd_reader_nurbs.cc
@@ -158,14 +158,16 @@ void USDNurbsReader::read_curve_sample(Curve *cu, const double motionSampleTime)
nu->orderv = 4;
}
- // TODO: Not needed at present, left for future dev
- // if (knots.size() > 3) {
- // if ((knots[0] == knots[1]) && (knots[knots.size()] == knots[knots.size() - 1])) {
- // nu->flagu |= CU_NURB_ENDPOINT;
- // } else {
- // nu->flagu |= CU_NURB_CYCLIC;
- // }
- // }
+ /* TODO(makowalski): investigate setting Cyclic U and Endpoint U options. */
+#if 0
+ if (knots.size() > 3) {
+ if ((knots[0] == knots[1]) && (knots[knots.size()] == knots[knots.size() - 1])) {
+ nu->flagu |= CU_NURB_ENDPOINT;
+ } else {
+ nu->flagu |= CU_NURB_CYCLIC;
+ }
+ }
+#endif
float weight = 1.0f;
More information about the Bf-blender-cvs
mailing list