Changeset View
Changeset View
Standalone View
Standalone View
source/blender/io/wavefront_obj/importer/obj_import_file_reader.cc
| Context not available. | |||||
| curr_face.start_index_ = orig_corners_size; | curr_face.start_index_ = orig_corners_size; | ||||
| bool face_valid = true; | bool face_valid = true; | ||||
| line = drop_whitespace(line); | |||||
| while (!line.is_empty() && face_valid) { | while (!line.is_empty() && face_valid) { | ||||
| PolyCorner corner; | PolyCorner corner; | ||||
| bool got_uv = false, got_normal = false; | bool got_uv = false, got_normal = false; | ||||
| Context not available. | |||||
| StringRef buffer_str{buffer.data(), (int64_t)last_nl}; | StringRef buffer_str{buffer.data(), (int64_t)last_nl}; | ||||
| while (!buffer_str.is_empty()) { | while (!buffer_str.is_empty()) { | ||||
| StringRef line = read_next_line(buffer_str); | StringRef line = read_next_line(buffer_str); | ||||
| line = drop_whitespace(line); | |||||
| ++line_number; | ++line_number; | ||||
| if (line.is_empty()) { | if (line.is_empty()) { | ||||
| continue; | continue; | ||||
| Context not available. | |||||
| else if (line.startswith("end")) { | else if (line.startswith("end")) { | ||||
| /* End of curve definition, nothing else to do. */ | /* End of curve definition, nothing else to do. */ | ||||
| } | } | ||||
| else if (line.front() <= ' ') { | |||||
| /* Just whitespace, skip. */ | |||||
| } | |||||
| else { | else { | ||||
| std::cout << "OBJ element not recognized: '" << line << "'" << std::endl; | std::cout << "OBJ element not recognized: '" << line << "'" << std::endl; | ||||
| } | } | ||||
| Context not available. | |||||