BIM+Draft: change object related version info to log messages
To inform the user warnings are shown if an object has new or modified properties in the current version. These warnings can however be confusing, especially if there are many. With this PR they are turned into log messages. They are also moved out of translation, and instead of the object Label the object Name is displayed. Additionally: Zero path length warnings for path arrays are now only displayed if the Align property is True. See: #21180.
This commit is contained in:
@@ -39,7 +39,7 @@ from PySide.QtCore import QT_TRANSLATE_NOOP
|
||||
|
||||
import FreeCAD as App
|
||||
from draftutils import gui_utils
|
||||
from draftutils.messages import _wrn
|
||||
from draftutils.messages import _log
|
||||
|
||||
from draftobjects.base import DraftObject
|
||||
|
||||
@@ -167,8 +167,7 @@ class DraftLink(DraftObject):
|
||||
# all models should use 'use_link' by default
|
||||
# and this won't be run.
|
||||
self.use_link = bool(self.useLink)
|
||||
_wrn("v0.19, {}, 'useLink' will be migrated "
|
||||
"to 'use_link'".format(obj.Label))
|
||||
_log("v0.19, {}, 'useLink' will be migrated to 'use_link'".format(obj.Name))
|
||||
del self.useLink
|
||||
|
||||
def onDocumentRestored(self, obj):
|
||||
|
||||
Reference in New Issue
Block a user