Skip to content

Commit 517ae0b

Browse files
committed
✨ Upgrade core:url_node from old versions
1 parent 02b098c commit 517ae0b

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

app/src/core/stage/ProjectUpgrader.tsx

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,6 @@ export namespace ProjectUpgrader {
487487
data = {
488488
_: "ConnectPoint",
489489
uuid: entity.uuid,
490-
text: entity.text,
491490
details: toDetails(entity.details),
492491
collisionBox: {
493492
_: "CollisionBox",
@@ -499,12 +498,29 @@ export namespace ProjectUpgrader {
499498
},
500499
],
501500
},
502-
color: toColor(entity.color),
503501
};
504502
break;
505503
}
506504
case "core:url_node": {
507505
// 链接
506+
data = {
507+
_: "UrlNode",
508+
uuid: entity.uuid,
509+
title: entity.title,
510+
url: entity.url,
511+
details: toDetails(entity.details),
512+
collisionBox: {
513+
_: "CollisionBox",
514+
shapes: [
515+
{
516+
_: "Rectangle",
517+
location: toVector(entity.location),
518+
size: toVector(entity.size),
519+
},
520+
],
521+
},
522+
color: toColor(entity.color),
523+
};
508524
break;
509525
}
510526
case "core:portal_node": {

0 commit comments

Comments
 (0)