Changeset View
Changeset View
Standalone View
Standalone View
source/blender/io/wavefront_obj/importer/obj_import_file_reader.cc
| Context not available. | |||||
| GlobalVertices &r_global_vertices) | GlobalVertices &r_global_vertices) | ||||
| { | { | ||||
| float3 vert; | float3 vert; | ||||
| parse_floats(line, FLT_MAX, vert, 3); | parse_floats(line, 0.0f, vert, 3); | ||||
| r_global_vertices.vertices.append(vert); | r_global_vertices.vertices.append(vert); | ||||
| geom->vertex_count_++; | geom->vertex_count_++; | ||||
| } | } | ||||
| Context not available. | |||||
| GlobalVertices &r_global_vertices) | GlobalVertices &r_global_vertices) | ||||
| { | { | ||||
| float3 normal; | float3 normal; | ||||
| parse_floats(line, FLT_MAX, normal, 3); | parse_floats(line, 0.0f, normal, 3); | ||||
| r_global_vertices.vertex_normals.append(normal); | r_global_vertices.vertex_normals.append(normal); | ||||
| geom->has_vertex_normals_ = true; | geom->has_vertex_normals_ = true; | ||||
| } | } | ||||
| Context not available. | |||||
| static void geom_add_uv_vertex(const StringRef line, GlobalVertices &r_global_vertices) | static void geom_add_uv_vertex(const StringRef line, GlobalVertices &r_global_vertices) | ||||
| { | { | ||||
| float2 uv; | float2 uv; | ||||
| parse_floats(line, FLT_MAX, uv, 2); | parse_floats(line, 0.0f, uv, 2); | ||||
| r_global_vertices.uv_vertices.append(uv); | r_global_vertices.uv_vertices.append(uv); | ||||
| } | } | ||||
| Context not available. | |||||
| return true; | return true; | ||||
| } | } | ||||
| if (parse_keyword(line, "-bm")) { | if (parse_keyword(line, "-bm")) { | ||||
| line = parse_float(line, 0.0f, material->map_Bump_strength); | line = parse_float(line, 1.0f, material->map_Bump_strength); | ||||
| return true; | return true; | ||||
| } | } | ||||
| if (parse_keyword(line, "-type")) { | if (parse_keyword(line, "-type")) { | ||||
| Context not available. | |||||