diff --git a/dist/ueblueprint.js b/dist/ueblueprint.js index 1e9f1c3..09a5b36 100755 --- a/dist/ueblueprint.js +++ b/dist/ueblueprint.js @@ -5372,9 +5372,9 @@ class PinEntity extends IEntity { } getType() { - const category = this.PinType.PinCategory.toString().toLocaleLowerCase(); + const category = this.PinType.PinCategory?.valueOf().toLocaleLowerCase(); if (category === "struct" || category === "class" || category === "object" || category === "type") { - return this.PinType.PinSubCategoryObject.path + return this.PinType.PinSubCategoryObject?.path } if (this.isEnum()) { return "enum" @@ -5406,7 +5406,8 @@ class PinEntity extends IEntity { } } if (category === "optional") { - switch (this.PinType.PinSubCategory.toString()) { + const subCategory = this.PinType.PinSubCategory?.valueOf(); + switch (subCategory) { case "red": return "real" case "rg": @@ -5416,7 +5417,7 @@ class PinEntity extends IEntity { case "rgba": return Configuration.paths.linearColor default: - return this.PinType.PinSubCategory + return subCategory } } return category @@ -8424,7 +8425,7 @@ class CommentNodeTemplate extends IResizeableTemplate {