BIM: Fix BimImagePlane.py imports
This commit is contained in:
@@ -47,13 +47,8 @@ class BIM_ImagePlane:
|
||||
return v
|
||||
|
||||
def Activated(self):
|
||||
import FreeCADGui
|
||||
from PySide import QtCore, QtGui
|
||||
|
||||
try:
|
||||
import DraftTrackers
|
||||
except Exception:
|
||||
import draftguitools.gui_trackers as DraftTrackers
|
||||
from PySide import QtGui
|
||||
import draftguitools.gui_trackers as DraftTrackers
|
||||
|
||||
self.tracker = DraftTrackers.rectangleTracker()
|
||||
self.basepoint = None
|
||||
@@ -74,6 +69,8 @@ class BIM_ImagePlane:
|
||||
)
|
||||
|
||||
def MoveCallback(self, point, snapinfo):
|
||||
import DraftVecUtils
|
||||
|
||||
if point and self.basepoint and (point != self.basepoint):
|
||||
chord = point.sub(self.basepoint)
|
||||
length = DraftVecUtils.project(chord, self.tracker.u).Length
|
||||
@@ -87,8 +84,8 @@ class BIM_ImagePlane:
|
||||
self.tracker.update(self.opposite)
|
||||
|
||||
def PointCallback(self, point, snapinfo):
|
||||
import FreeCADGui
|
||||
import Image
|
||||
import os
|
||||
import DraftVecUtils
|
||||
|
||||
if not point:
|
||||
# cancelled
|
||||
|
||||
Reference in New Issue
Block a user