mirror of
https://github.com/jdegenstein/jmwright-CQ-Editor.git
synced 2025-12-19 22:24:19 +01:00
Fix DEFAULT_EDGE_WIDTH from DEFUALT_EDGE_WIDTH
and refs
This commit is contained in:
@@ -23,7 +23,7 @@ from pyqtgraph.parametertree import Parameter
|
|||||||
import qtawesome as qta
|
import qtawesome as qta
|
||||||
DEFAULT_FACE_COLOR = Quantity_Color(GOLD)
|
DEFAULT_FACE_COLOR = Quantity_Color(GOLD)
|
||||||
DEFAULT_EDGE_COLOR = Quantity_Color(BLACK)
|
DEFAULT_EDGE_COLOR = Quantity_Color(BLACK)
|
||||||
DEFUALT_EDGE_WIDTH = 2
|
DEFAULT_EDGE_WIDTH = 2
|
||||||
|
|
||||||
class OCCViewer(QWidget,ComponentMixin):
|
class OCCViewer(QWidget,ComponentMixin):
|
||||||
|
|
||||||
@@ -74,7 +74,7 @@ class OCCViewer(QWidget,ComponentMixin):
|
|||||||
|
|
||||||
# face edge lw
|
# face edge lw
|
||||||
line_aspect = self.canvas.context.DefaultDrawer().FaceBoundaryAspect()
|
line_aspect = self.canvas.context.DefaultDrawer().FaceBoundaryAspect()
|
||||||
line_aspect.SetWidth(DEFUALT_EDGE_WIDTH)
|
line_aspect.SetWidth(DEFAULT_EDGE_WIDTH)
|
||||||
line_aspect.SetColor(DEFAULT_EDGE_COLOR)
|
line_aspect.SetColor(DEFAULT_EDGE_COLOR)
|
||||||
|
|
||||||
def updatePreferences(self,*args):
|
def updatePreferences(self,*args):
|
||||||
|
|||||||
Reference in New Issue
Block a user