Skip to content

Commit 6db280f

Browse files
committed
fix bugs
1 parent 3ab1475 commit 6db280f

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/pages/edit/Editor/renderer/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ export default class CCComponentEditorRenderer extends CCComponentEditorRenderer
259259
});
260260

261261
this.context.store.nodes
262-
.getManyByComponentId(this.#componentId)
262+
.getManyByParentComponentId(this.#componentId)
263263
.forEach((node) => this.#addNodeRenderer(node.id));
264264
this.context.store.nodes.on("didRegister", this.#onNodeAdded);
265265
this.context.store.nodes.on("didUnregister", this.#onNodeRemoved);

src/pages/edit/Editor/renderer/node.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ export default class CCComponentEditorRendererNode extends CCComponentEditorRend
220220
nullthrows(this.#nodePinRenderers.get(nodePin.id)).render(
221221
index,
222222
size,
223-
inputNodePins.length
223+
outputNodePins.length
224224
);
225225
});
226226
this.#pixiTexts.componentName.anchor.set(0, 1);

src/store/component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ export function isIncluding(
150150

151151
const checkedComponentIds = new Set<CCComponentId>();
152152
const dfs = (_componentId: CCComponentId): boolean => {
153-
const nodes = store.nodes.getManyByComponentId(_componentId);
153+
const nodes = store.nodes.getManyByParentComponentId(_componentId);
154154
for (const node of nodes) {
155155
if (!checkedComponentIds.has(node.componentId)) {
156156
if (node.componentId === targetComponentId) return true;

0 commit comments

Comments
 (0)