Draft: Small fix in dimensions
This commit is contained in:
parent
4ddfa9fc96
commit
03be0d39ec
|
@ -2715,7 +2715,7 @@ class _ViewProviderDimension(_ViewProviderDraft):
|
||||||
self.onChanged(obj,"FontName")
|
self.onChanged(obj,"FontName")
|
||||||
|
|
||||||
def updateData(self, obj, prop):
|
def updateData(self, obj, prop):
|
||||||
if not prop in ["Start","End","Dimline"]:
|
if not prop in ["Start","End","Dimline","DisplayMode","ExtLines","FontSize"]:
|
||||||
return
|
return
|
||||||
from pivy import coin
|
from pivy import coin
|
||||||
try:
|
try:
|
||||||
|
@ -2788,6 +2788,7 @@ class _ViewProviderDimension(_ViewProviderDraft):
|
||||||
self.font.size = vp.FontSize
|
self.font.size = vp.FontSize
|
||||||
if hasattr(self,"font3d"):
|
if hasattr(self,"font3d"):
|
||||||
self.font3d.size = vp.FontSize*100
|
self.font3d.size = vp.FontSize*100
|
||||||
|
self.updateData(vp.Object, prop)
|
||||||
elif prop == "FontName":
|
elif prop == "FontName":
|
||||||
if hasattr(self,"font") and hasattr(self,"font3d"):
|
if hasattr(self,"font") and hasattr(self,"font3d"):
|
||||||
self.font.name = self.font3d.name = str(vp.FontName)
|
self.font.name = self.font3d.name = str(vp.FontName)
|
||||||
|
@ -2801,7 +2802,7 @@ class _ViewProviderDimension(_ViewProviderDraft):
|
||||||
else:
|
else:
|
||||||
if hasattr(self,"drawstyle"):
|
if hasattr(self,"drawstyle"):
|
||||||
self.drawstyle.lineWidth = vp.LineWidth
|
self.drawstyle.lineWidth = vp.LineWidth
|
||||||
self.updateData(vp.Object, None)
|
self.updateData(vp.Object, prop)
|
||||||
|
|
||||||
def getDisplayModes(self,obj):
|
def getDisplayModes(self,obj):
|
||||||
return ["2D","3D"]
|
return ["2D","3D"]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user