System Information
Operating system: Windows-10-10.0.19044-SP0 64 Bits
Graphics card: NVIDIA GeForce GTX 1070 with Max-Q Design/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 511.09
Blender Version
Broken: version: 3.2.0 Alpha, branch: master, commit date: 2022-05-02 09:18, hash: rBf0f44fd92f1
Short description of error
Going through old reports. The optional "v" value should be defaulted to 0 but is instead FLT_MAX.
vt u v w
Vertex statement for both polygonal and free-form geometry.
Specifies a texture vertex and its coordinates. A 1D texture
requires only u texture coordinates, a 2D texture requires both u
and v texture coordinates, and a 3D texture requires all three
coordinates.
u is the value for the horizontal direction of the texture.
v is an optional argument.
v is the value for the vertical direction of the texture. The
default is 0.
w is an optional argument.
w is a value for the depth of the texture. The default is 0.Exact steps for others to reproduce the error
- Import the cube.obj file from T68249
- Open the UV editor and compare to what the python OBJ importer will show
Caused by the following function which defaults to FLT_MAX instead of 0.0f:
static void geom_add_uv_vertex(const StringRef line, GlobalVertices &r_global_vertices)
{
float2 uv;
parse_floats(line, FLT_MAX, uv, 2);
r_global_vertices.uv_vertices.append(uv);
}