SubLink: fixes
This commit is contained in:
parent
ad2ef5bdf0
commit
cbf4c7482c
|
@ -21,21 +21,14 @@
|
||||||
#* *
|
#* *
|
||||||
#***************************************************************************
|
#***************************************************************************
|
||||||
|
|
||||||
from lattice2Common import *
|
|
||||||
import lattice2Markers as markers
|
|
||||||
import FreeCAD as App
|
|
||||||
|
|
||||||
__title__= "Lattice SubLink feature for FreeCAD"
|
__title__= "Lattice SubLink feature for FreeCAD"
|
||||||
__author__ = "DeepSOIC"
|
__author__ = "DeepSOIC"
|
||||||
__url__ = "Lattice SubLink is like Draft Facebinder, but for edges and vertices too."
|
__url__ = "Lattice SubLink is like Draft Facebinder, but for edges and vertices too."
|
||||||
|
|
||||||
|
from lattice2Common import *
|
||||||
try:
|
from lattice2BaseFeature import isObjectLattice
|
||||||
from lattice2BaseFeature import isObjectLattice
|
import lattice2Markers as markers
|
||||||
except Exception:
|
import FreeCAD as App
|
||||||
# I want to keep the module easy to strip off Lattice2 wb, so:
|
|
||||||
def isObjectLattice(obj):
|
|
||||||
return False
|
|
||||||
|
|
||||||
# -------------------------- feature --------------------------------------------------
|
# -------------------------- feature --------------------------------------------------
|
||||||
|
|
||||||
|
@ -317,9 +310,9 @@ class _CommandSubLink:
|
||||||
"Command to create SubLink feature"
|
"Command to create SubLink feature"
|
||||||
def GetResources(self):
|
def GetResources(self):
|
||||||
return {'Pixmap' : getIconPath("Lattice2_SubLink.svg"),
|
return {'Pixmap' : getIconPath("Lattice2_SubLink.svg"),
|
||||||
'MenuText': QtCore.QT_TRANSLATE_NOOP("Lattice2_SubLink","Compound Filter"),
|
'MenuText': QtCore.QT_TRANSLATE_NOOP("Lattice2_SubLink","SubLink"),
|
||||||
'Accel': "",
|
'Accel': "",
|
||||||
'ToolTip': QtCore.QT_TRANSLATE_NOOP("Lattice2_SubLink","Compound Filter: remove some childs from a compound")}
|
'ToolTip': QtCore.QT_TRANSLATE_NOOP("Lattice2_SubLink","SubLink: extract and analyse individual vertices, edges and faces from shapes")}
|
||||||
|
|
||||||
def Activated(self):
|
def Activated(self):
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user