d0cf7dd8b5be2c7a45efe9f3d9ae36d84c3747a0
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
…
Blender
Blender is the free and open source 3D creation suite. It supports the entirety of the 3D pipeline—modeling, rigging, animation, simulation, rendering, compositing, motion tracking and video editing.
Project Pages
Development
License
Blender as a whole is licensed under the GNU General Public License, Version 3. Individual files may have a different but compatible license.
See blender.org/about/license for details.
Description
Languages
C++
78%
Python
14.9%
C
2.9%
GLSL
1.9%
CMake
1.2%
Other
0.9%
