sketch-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Snap to object doesn't work for new objects


From: Valentin Ungureanu
Subject: Snap to object doesn't work for new objects
Date: Thu, 9 Oct 2003 21:32:11 +0300
User-agent: Mutt/1.4.1i

In sketch 0.6, with snap to objects activated, the list with snap
points is not actualized if a new object is created.

If the first thing you do after starting sketch is to activate snap to
objects and start creating objects you don't get any snap until you do
something that calls update_snap_points(), e.g. moving an object.

Calling update_snap_points from do_end_creation solves this:

--- sketch-0.6.16pre2.orig/Sketch/UI/canvas.py  2003-10-09 20:18:28.000000000 
+0300
+++ sketch-0.6.16pre2/Sketch/UI/canvas.py       2003-10-09 20:23:22.000000000 
+0300
@@ -808,6 +808,7 @@
        obj.Hide(self.invgc)
        self.current = None
        was_ok = 1
+       self.update_snap_points()
 
        if force_stop:
            self.create_creator = None







reply via email to

[Prev in Thread] Current Thread [Next in Thread]