make trail editor-safe
..I think
This commit is contained in:
parent
4433e19b63
commit
5432879e81
1 changed files with 12 additions and 0 deletions
|
|
@ -438,6 +438,18 @@ class TrailSystem is ModifierSystem {
|
||||||
}
|
}
|
||||||
|
|
||||||
tick(delta) {
|
tick(delta) {
|
||||||
|
if(World.tag_has(_world, "edit")){
|
||||||
|
each{|entity, data: ModifierData|
|
||||||
|
if(!Transform.has(entity)) return
|
||||||
|
|
||||||
|
start = Transform.local_point_to_world(entity, 0, data.edge_length * -0.5, 0)
|
||||||
|
end = Transform.local_point_to_world(entity, 0, data.edge_length * 0.5, 0)
|
||||||
|
Draw.path3D(_draw, [start, end], _debug_edge_style, false)
|
||||||
|
}
|
||||||
|
Draw.commit(_draw)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
//System.print("positions")
|
//System.print("positions")
|
||||||
record_positions(delta)
|
record_positions(delta)
|
||||||
//System.print("buffers")
|
//System.print("buffers")
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue