Et2Widget: If an attribute / property is already an object, don't try to transform it before setting

This commit is contained in:
nathan 2022-07-14 11:34:37 -06:00
parent 523c785049
commit fb423b4efc

View File

@ -1385,6 +1385,9 @@ function transformAttributes(widget, mgr : et2_arrayMgr, attributes)
attrValue = et2_compileLegacyJS(attrValue, widget, widget);
}
break;
case Object:
// Leave it alone...
break;
default:
attrValue = mgr ? mgr.expandName("" + attrValue) : attrValue;
if(attrValue && typeof attrValue == "string" && !attributes.no_lang && widget_class.translate[attribute])