mirror of
https://github.com/vlang/v.git
synced 2025-09-13 14:32:26 +03:00
checker: disallow module name duplicates in local names (#18118)
This commit is contained in:
parent
3a2994bc80
commit
1e38cc0986
13 changed files with 96 additions and 28 deletions
|
@ -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]!
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue