Просмотр исходного кода

- commented some debug messages
- imported speedups for shapely

Marius Stanciu 7 лет назад
Родитель
Сommit
6c6a802afb
4 измененных файлов с 6 добавлено и 3 удалено
  1. 2 2
      FlatCAMApp.py
  2. 1 1
      ObjectCollection.py
  3. 2 0
      README.md
  4. 1 0
      camlib.py

+ 2 - 2
FlatCAMApp.py

@@ -4228,8 +4228,8 @@ class App(QtCore.QObject):
             self.app_cursor.enabled = False
             self.app_cursor.enabled = False
 
 
         try:
         try:
-            App.log.debug('button=%d, x=%d, y=%d, xdata=%f, ydata=%f' % (
-            event.button, event.pos[0], event.pos[1], self.pos[0], self.pos[1]))
+            # App.log.debug('button=%d, x=%d, y=%d, xdata=%f, ydata=%f' % (
+            # event.button, event.pos[0], event.pos[1], self.pos[0], self.pos[1]))
             modifiers = QtWidgets.QApplication.keyboardModifiers()
             modifiers = QtWidgets.QApplication.keyboardModifiers()
 
 
             if event.button == 1:
             if event.button == 1:

+ 1 - 1
ObjectCollection.py

@@ -684,7 +684,7 @@ class ObjectCollection(QtCore.QAbstractItemModel):
         :rtype: list
         :rtype: list
         """
         """
 
 
-        FlatCAMApp.App.log.debug(str(inspect.stack()[1][3]) + " --> OC.get_names()")
+        # FlatCAMApp.App.log.debug(str(inspect.stack()[1][3]) + " --> OC.get_names()")
         return [x.options['name'] for x in self.get_list()]
         return [x.options['name'] for x in self.get_list()]
 
 
     def get_bounds(self):
     def get_bounds(self):

+ 2 - 0
README.md

@@ -12,6 +12,8 @@ CAD program, and create G-Code for Isolation routing.
 7.02.2019
 7.02.2019
 
 
 - in Paint Tool, when painting single polygon, when clicking on canvas for the polygon there is no longer a selection of the entire object
 - in Paint Tool, when painting single polygon, when clicking on canvas for the polygon there is no longer a selection of the entire object
+- commented some debug messages
+- imported speedups for shapely
 
 
 6.02.2019
 6.02.2019
 
 

+ 1 - 0
camlib.py

@@ -31,6 +31,7 @@ from shapely.wkt import loads as sloads
 from shapely.wkt import dumps as sdumps
 from shapely.wkt import dumps as sdumps
 from shapely.geometry.base import BaseGeometry
 from shapely.geometry.base import BaseGeometry
 from shapely.geometry import shape
 from shapely.geometry import shape
+from shapely import speedups
 
 
 from collections import Iterable
 from collections import Iterable