Corrects behavior with NURBS knot values in .obj exporter. Knot values denoting the curve parameter range and values at the boundary region in the span ends had hardcoded knot values. It also implemented its own knot calculation, which is not ideal... Importer is updated to not try to second guess the knot values. Not entirely sure what it was trying to do but it used wrong indices and missed writing the end of the knot vector. Combined the changes should make it possible to import and export a simple NURBS curve with custom knots and leaving it intact. This replaces some of the erronous behavior using functions from [new] Curves implementation. Mixing new and legacy curve implementation is not ideal but exporter is exporting POLY curves as NURBS while legacy method does not support computing the knot vector. To avoid introducing additional branch cases nor update legacy functions, using the new functions seems to be the correct choice. These functions should be functionally equivalent but is not identical (e.g. legacy curve returns knots in [0, 1] range). It should also make it easier to transition to exporting new Curves. Pull Request: https://projects.blender.org/blender/blender/pulls/138732
4 lines
128 B
Plaintext
4 lines
128 B
Plaintext
version https://git-lfs.github.com/spec/v1
|
|
oid sha256:9d94e28f7ac251b17489a1d2c640f9cdb16f74de2646d952c3078eadcfeab415
|
|
size 569
|