Skip to content

Commit 02b098c

Browse files
committed
✨ Upgrade core:connect_point from old versions
1 parent ba5dd8f commit 02b098c

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

app/src/core/stage/ProjectUpgrader.tsx

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -484,6 +484,23 @@ export namespace ProjectUpgrader {
484484
}
485485
case "core:connect_point": {
486486
// 连接点
487+
data = {
488+
_: "ConnectPoint",
489+
uuid: entity.uuid,
490+
text: entity.text,
491+
details: toDetails(entity.details),
492+
collisionBox: {
493+
_: "CollisionBox",
494+
shapes: [
495+
{
496+
_: "Rectangle",
497+
location: toVector(entity.location),
498+
size: toVector([1, 1]),
499+
},
500+
],
501+
},
502+
color: toColor(entity.color),
503+
};
487504
break;
488505
}
489506
case "core:url_node": {

0 commit comments

Comments
 (0)