mirror of
https://github.com/vlang/v.git
synced 2025-09-13 14:32:26 +03:00
builtin: fix tests
This commit is contained in:
parent
acf0107493
commit
24ac0c1fb5
5 changed files with 10 additions and 10 deletions
|
@ -232,7 +232,7 @@ pub fn (mut obj_part ObjPart) parse_obj_buffer(rows []string, single_material bo
|
|||
mat_count++
|
||||
mut part := Part{}
|
||||
if mat_count > 1 {
|
||||
li := obj_part.part[obj_part.part.len - 1].name.index_last('_m') or {
|
||||
li := obj_part.part[obj_part.part.len - 1].name.last_index('_m') or {
|
||||
obj_part.part[obj_part.part.len - 1].name.len - 1
|
||||
}
|
||||
part.name = obj_part.part[obj_part.part.len - 1].name[..li] +
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue