1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

update variable name

updates the variable name that was changed due to being a duplicate
of the module name. `obj_part` a nicer name which already used
inside of the module for the ObjPart struct.
This commit is contained in:
Turiiya 2023-06-06 00:19:06 +02:00
parent d6c567b03b
commit 354cad9a36

View File

@ -138,7 +138,7 @@ fn (mut m ObjPart) parse_floats(row string, start_index int) m4.Vec4 {
}
// read and manage all the faes from an .obj file data
fn (mut p Part) parse_faces(row string, start_index int, obj_ ObjPart) {
fn (mut p Part) parse_faces(row string, start_index int, obj_part ObjPart) {
mut i := start_index + 1
mut res := [][3]int{}
mut v := 0
@ -171,15 +171,15 @@ fn (mut p Part) parse_faces(row string, start_index int, obj_ ObjPart) {
// manage negative indexes
// NOTE: not well suporeted now
if v < 0 {
// println("${obj_.v.len} ${obj_.v.len-c}")
v = obj_.v.len - v + 1
// println("${obj_part.v.len} ${obj_part.v.len-c}")
v = obj_part.v.len - v + 1
// exit(0)
}
if n < 0 {
n = obj_.vn.len - n + 1
n = obj_part.vn.len - n + 1
}
if t < 0 {
t = obj_.vt.len - t + 1
t = obj_part.vt.len - t + 1
}
res << [v - 1, n - 1, t - 1]!
}