mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-05-13 23:37:30 +08:00
Small serialization fixes
This commit is contained in:
10
dist/ueblueprint.js
vendored
10
dist/ueblueprint.js
vendored
@@ -5122,7 +5122,12 @@ class ObjectReferenceEntity extends IEntity {
|
||||
super();
|
||||
this.#type = type;
|
||||
this.#path = path;
|
||||
this.#full = full ?? `"${this.type + (this.path ? (`'${this.path}'`) : "")}"`;
|
||||
this.#full = full
|
||||
?? (
|
||||
this.type.includes("/") || this.path
|
||||
? `"${this.type + (this.path ? (`'${this.path}'`) : "")}"`
|
||||
: this.type
|
||||
);
|
||||
}
|
||||
|
||||
/** @returns {P<ObjectReferenceEntity>} */
|
||||
@@ -5162,7 +5167,7 @@ class ObjectReferenceEntity extends IEntity {
|
||||
}
|
||||
|
||||
static createNoneInstance() {
|
||||
return new ObjectReferenceEntity("None")
|
||||
return new ObjectReferenceEntity("None", "", "None")
|
||||
}
|
||||
|
||||
getName(dropCounter = false) {
|
||||
@@ -6436,6 +6441,7 @@ class ObjectEntity extends IEntity {
|
||||
obj.Node.getter = () => new ObjectReferenceEntity(
|
||||
this.PCGNode.type,
|
||||
`${this.Name}.${this.PCGNode.path}`,
|
||||
nodeRef.full,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
2
dist/ueblueprint.min.js
vendored
2
dist/ueblueprint.min.js
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user