Minor fixes

This commit is contained in:
barsdeveloper
2024-09-09 16:55:52 +02:00
parent 4885a988f9
commit a763544b3b
7 changed files with 32 additions and 29 deletions

View File

@@ -414,7 +414,7 @@ export default class ObjectEntity extends IEntity {
getClass() {
if (!this.#class) {
this.#class = (this.Class?.path ? this.Class.path : this.Class?.type)
?? this.ExportPath.type
?? this.ExportPath?.type
?? ""
if (this.#class && !this.#class.startsWith("/")) {
// Old path names did not start with /Script or /Engine, check tests/resources/LegacyNodes.js