Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormakowalski <makowalski@nvidia.com>2021-07-29 20:15:49 +0300
committermakowalski <makowalski@nvidia.com>2021-07-29 20:15:49 +0300
commit90473cf81deae9a5101c73bf3a7107179593d18c (patch)
treec8f9a00b3c92f22dcb9ca41cc4c98cddec32b580 /source/blender/io/usd/intern/usd_reader_curve.cc
parentdbe0bb423af288ac8a124181ef2bd48a52792667 (diff)
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.
Diffstat (limited to 'source/blender/io/usd/intern/usd_reader_curve.cc')
-rw-r--r--source/blender/io/usd/intern/usd_reader_curve.cc4
1 files changed, 1 insertions, 3 deletions
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;