Commits

Andrew Peterson  committed d415c03

Fixed issue causing ship selection to not be rendered.

  • Participants
  • Parent commits 1d13fca

Comments (0)

Files changed (1)

File pyshipcommand_gui/states/viewer.py

 
             if event.data.button == 1: #Left Click
                 real_pos = Vector(*event.data.pos) + self.view_rect.pos
-                ship = self.ship_view.pickShip(real_pos)
-                self.ship_wnd.setShip(ship)
-                self.script_wnd.setShip(ship)
-                print str(ship)
+                self.sel_ship = self.ship_view.pickShip(real_pos)
+                self.ship_wnd.setShip(self.sel_ship)
+                self.script_wnd.setShip(self.sel_ship)
+                print str(self.sel_ship)
 
         elif event.signal == SIG_MOUSEMOVE:
             # Set scroll direction