[Bf-blender-cvs] [90473cf81de] usd-importer-T81257-merge: USD import: remove placeholder bezier curve code
makowalski
noreply at git.blender.org
Thu Jul 29 19:28:02 CEST 2021
Commit: 90473cf81deae9a5101c73bf3a7107179593d18c
Author: makowalski
Date: Thu Jul 29 13:15:49 2021 -0400
Branches: usd-importer-T81257-merge
https://developer.blender.org/rB90473cf81deae9a5101c73bf3a7107179593d18c
USD import: remove placeholder bezier curve code
The placeholder code for the unimplemented functionality
of importing bezier curves was causing a crash. It has
been removed until support for beziers can be properly
added.
===================================================================
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 981d7f61b40..c2ca0f03f8a 100644
--- a/source/blender/io/usd/intern/usd_reader_curve.cc
+++ b/source/blender/io/usd/intern/usd_reader_curve.cc
@@ -123,9 +123,7 @@ void USDCurvesReader::read_curve_sample(Curve *cu, const double motionSampleTime
}
else if (basis == pxr::UsdGeomTokens->bezier) {
/* TODO(makowalski): Beziers are not properly imported as beziers. */
- nu->type = CU_NURBS;
- nu->flag |= CU_SMOOTH;
- nu->flagu |= CU_NURB_ENDPOINT;
+ nu->type = CU_POLY;
}
else if (basis.IsEmpty()) {
nu->type = CU_POLY;
More information about the Bf-blender-cvs
mailing list