Commit 5ea105ab authored by Yorik van Havre's avatar Yorik van Havre
Browse files

Draft: bugfix in dimensions

parent 5fa6db22
...@@ -1992,6 +1992,8 @@ class _ViewProviderDimension(_ViewProviderDraft): ...@@ -1992,6 +1992,8 @@ 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"]:
return
from pivy import coin from pivy import coin
try: try:
dm = obj.ViewObject.DisplayMode dm = obj.ViewObject.DisplayMode
...@@ -2017,6 +2019,7 @@ class _ViewProviderDimension(_ViewProviderDraft): ...@@ -2017,6 +2019,7 @@ class _ViewProviderDimension(_ViewProviderDraft):
if v1 != obj.Start: obj.Start = v1 if v1 != obj.Start: obj.Start = v1
if v2 != obj.End: obj.End = v2 if v2 != obj.End: obj.End = v2
p1,p2,p3,p4,tbase,norm,rot = self.calcGeom(obj) p1,p2,p3,p4,tbase,norm,rot = self.calcGeom(obj)
# print p1,p2,p3,p4,tbase,norm,rot
if 'Override' in obj.ViewObject.PropertiesList: if 'Override' in obj.ViewObject.PropertiesList:
text = str(obj.ViewObject.Override) text = str(obj.ViewObject.Override)
dtext = getParam("dimPrecision") dtext = getParam("dimPrecision")
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment