Bug Fixes and Time Machine description

This commit is contained in:
Luis Fernando Molina committed 2020-03-03 16:19:10 +01:00
1 parent b4c24ca59b
commit cf6360b95f
5 files changed
+48 -16

No files matched your search

+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) {