Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions packages/core/src/registry/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1458,6 +1458,9 @@ export type Presentation = {
/** Set false when selection is edited directly through in-scene affordances
* and the generic floating action menu would duplicate or conflict with them. */
actionMenu?: boolean
/** Set false to drop the "Find in catalog" action for this kind — for nodes
* that are placed through a plugin panel rather than a browsable catalog. */
findInCatalog?: boolean
}

export type IconRef =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -786,7 +786,13 @@ export function FloatingActionMenu() {
>
{menuVisibility.actions ? (
<NodeActionMenu
onFind={node && canFindNode ? handleFind : undefined}
onFind={
node &&
canFindNode &&
nodeRegistry.get(node.type)?.presentation?.findInCatalog !== false
? handleFind
: undefined
}
onAddHole={node && HOLE_TYPES.includes(node.type) ? handleAddHole : undefined}
onCurve={
(node?.type === 'fence' && !isSplineFence(node) && !isCurvedWall(node)) ||
Expand Down
Loading