mirror of
https://github.com/Relintai/broken_seals.git
synced 2024-12-18 01:06:47 +01:00
Mesh data resource editor's gizmo now properly uses indices.
This commit is contained in:
parent
1e20ac43a4
commit
131369ed71
@ -111,16 +111,16 @@ func redraw():
|
||||
|
||||
var lines : PoolVector3Array = PoolVector3Array()
|
||||
|
||||
if vertices.size() % 3 == 0:
|
||||
for i in range(0, len(vertices), 3):
|
||||
lines.append(vertices[i])
|
||||
lines.append(vertices[i + 1])
|
||||
if indices.size() % 3 == 0:
|
||||
for i in range(0, len(indices), 3):
|
||||
lines.append(vertices[indices[i]])
|
||||
lines.append(vertices[indices[i + 1]])
|
||||
|
||||
lines.append(vertices[i + 1])
|
||||
lines.append(vertices[i + 2])
|
||||
lines.append(vertices[indices[i + 1]])
|
||||
lines.append(vertices[indices[i + 2]])
|
||||
|
||||
lines.append(vertices[i + 2])
|
||||
lines.append(vertices[i])
|
||||
lines.append(vertices[indices[i + 2]])
|
||||
lines.append(vertices[indices[i]])
|
||||
|
||||
add_lines(lines, material, false)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user