Description of Time Machine

This commit is contained in:
Luis Fernando Molina committed 2020-03-03 16:17:25 +01:00
1 parent 71a5cda325
commit a2d49d7b0b
1 file changed
+8 -1
+8 -1
View File
@@ -612,7 +612,14 @@ function newTimeMachine () {
let icon = canvas.designSpace.iconByUiObjectType.get(thisObject.payload.node.type)
position = transformThisPoint(position, thisObject.container)
printLabel(thisObject.payload.node.name, position.x + 15, position.y - 28, opacity, fontSize)
let label = thisObject.payload.node.name
let description = loadPropertyFromNodeConfig(thisObject.payload, 'description')
if (description !== undefined) {
label = description
}
printLabel(label, position.x + 15, position.y - 28, opacity, fontSize)
if (icon !== undefined) {
if (icon.canDrawIcon === true) {