Changeset 481:edee5e51896f


Ignore:
Timestamp:
09/07/13 14:54:02 (8 years ago)
Author:
Neil Muller <drnlmuller@…>
Branch:
default
Phase:
public
Rebase:
36653735363136383931353431386137383966383637653839373538666166333137653538323433
Message:

Visual hint for move object

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/area_editor.py

    r478 r481  
    611611        old_pos = self.mouse_pos
    612612        self.mouse_pos = ev.pos
     613        if self.move_obj:
     614            corrected_pos = self._level_coordinates(ev.pos)
     615            snapped_pos = self.snap_to_grid(corrected_pos)
     616            self._update_pos(self.move_obj, snapped_pos)
    613617        if old_pos != self.mouse_pos and (self.cur_poly or self._draw_lines
    614618                                          or self._move_point_mode
Note: See TracChangeset for help on using the changeset viewer.