render comments when pasting or placing blueprints
This commit is contained in:
parent
6b8b2e6e6e
commit
c2babaa674
1 changed files with 2 additions and 2 deletions
|
@ -1272,7 +1272,7 @@ impl Editor {
|
|||
offset.y -= offset.y.rem(tile_size);
|
||||
offset += view_offset;
|
||||
board.grid.draw(d, textures, offset, self.zoom);
|
||||
// TODO draw comments
|
||||
board.draw_comments(d, offset, self.zoom);
|
||||
if self.mouse.left_click() {
|
||||
let tile_pos = (self.mouse.pos() - self.view_offset) / tile_size;
|
||||
let tile_pos = Vector2::new(tile_pos.x.floor(), tile_pos.y.floor());
|
||||
|
@ -1409,7 +1409,7 @@ impl Editor {
|
|||
offset.y -= offset.y.rem(tile_size);
|
||||
offset += view_offset;
|
||||
bp.board.grid.draw(d, textures, offset, self.zoom);
|
||||
// TODO draw comments
|
||||
bp.board.draw_comments(d, offset, self.zoom);
|
||||
}
|
||||
if self.mouse.pos().x < SIDEBAR_WIDTH as f32 {
|
||||
if self.mouse.scroll() == Some(Scroll::Down)
|
||||
|
|
Loading…
Add table
Reference in a new issue