mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-05-19 20:37:36 +08:00
Fix object newline when missing custom properties
This commit is contained in:
7
dist/ueblueprint.js
vendored
7
dist/ueblueprint.js
vendored
@@ -6115,7 +6115,6 @@ class ObjectEntity extends IEntity {
|
|||||||
static printKey = k => !k.startsWith(Configuration.subObjectAttributeNamePrefix) ? k : ""
|
static printKey = k => !k.startsWith(Configuration.subObjectAttributeNamePrefix) ? k : ""
|
||||||
static attributeSeparator = "\n"
|
static attributeSeparator = "\n"
|
||||||
static wrap = this.notWrapped
|
static wrap = this.notWrapped
|
||||||
static trailing = true
|
|
||||||
static attributes = {
|
static attributes = {
|
||||||
...super.attributes,
|
...super.attributes,
|
||||||
Class: ObjectReferenceEntity,
|
Class: ObjectReferenceEntity,
|
||||||
@@ -6768,14 +6767,14 @@ class ObjectEntity extends IEntity {
|
|||||||
+ (Self.attributes.CustomProperties.ignored !== true && this.CustomProperties.ignored !== true
|
+ (Self.attributes.CustomProperties.ignored !== true && this.CustomProperties.ignored !== true
|
||||||
? this.getCustomproperties().map(pin =>
|
? this.getCustomproperties().map(pin =>
|
||||||
deeperIndentation
|
deeperIndentation
|
||||||
|
+ attributeSeparator
|
||||||
+ printKey("CustomProperties ")
|
+ printKey("CustomProperties ")
|
||||||
+ pin.serialize(insideString)
|
+ pin.serialize(insideString)
|
||||||
).join(Self.attributeSeparator)
|
).join("")
|
||||||
: ""
|
: ""
|
||||||
)
|
)
|
||||||
+ attributeSeparator
|
+ attributeSeparator
|
||||||
+ indentation + "End Object"
|
+ indentation + "End Object\n";
|
||||||
+ (this.trailing ? attributeSeparator : "");
|
|
||||||
return result
|
return result
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
2
dist/ueblueprint.min.js
vendored
2
dist/ueblueprint.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -41,7 +41,6 @@ export default class ObjectEntity extends IEntity {
|
|||||||
static printKey = k => !k.startsWith(Configuration.subObjectAttributeNamePrefix) ? k : ""
|
static printKey = k => !k.startsWith(Configuration.subObjectAttributeNamePrefix) ? k : ""
|
||||||
static attributeSeparator = "\n"
|
static attributeSeparator = "\n"
|
||||||
static wrap = this.notWrapped
|
static wrap = this.notWrapped
|
||||||
static trailing = true
|
|
||||||
static attributes = {
|
static attributes = {
|
||||||
...super.attributes,
|
...super.attributes,
|
||||||
Class: ObjectReferenceEntity,
|
Class: ObjectReferenceEntity,
|
||||||
@@ -696,14 +695,14 @@ export default class ObjectEntity extends IEntity {
|
|||||||
+ (Self.attributes.CustomProperties.ignored !== true && this.CustomProperties.ignored !== true
|
+ (Self.attributes.CustomProperties.ignored !== true && this.CustomProperties.ignored !== true
|
||||||
? this.getCustomproperties().map(pin =>
|
? this.getCustomproperties().map(pin =>
|
||||||
deeperIndentation
|
deeperIndentation
|
||||||
|
+ attributeSeparator
|
||||||
+ printKey("CustomProperties ")
|
+ printKey("CustomProperties ")
|
||||||
+ pin.serialize(insideString)
|
+ pin.serialize(insideString)
|
||||||
).join(Self.attributeSeparator)
|
).join("")
|
||||||
: ""
|
: ""
|
||||||
)
|
)
|
||||||
+ attributeSeparator
|
+ attributeSeparator
|
||||||
+ indentation + "End Object"
|
+ indentation + "End Object\n"
|
||||||
+ (this.trailing ? attributeSeparator : "")
|
|
||||||
return result
|
return result
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user