Skip to content

Commit

Permalink
Fix error when scene is None
Browse files Browse the repository at this point in the history
  • Loading branch information
Insoleet committed Mar 3, 2016
1 parent c36fe39 commit a47a4bd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/sakia/gui/views/nodes/explorer_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,8 @@ def frame_move(frame):
x = origin_x + (final_x - origin_x) * value
y = origin_y + (final_y - origin_y) * value
self.setPos(x, y)
self.scene().node_moved.emit(self.id, x, y)
if self.scene():
self.scene().node_moved.emit(self.id, x, y)

def timeline_ends():
self.setPos(final_x, final_y)
Expand Down

0 comments on commit a47a4bd

Please sign in to comment.