Skip to content

Consumer-Aware constant materialization (Issue #67) - #70

Merged
denikryt merged 15 commits into
mainfrom
feature/consumer-aware-constants
Nov 23, 2026
Merged

denikryt merged 15 commits into
mainfrom
feature/consumer-aware-constants

Conversation

@denikryt

Copy link
Copy Markdown
Owner

Summary

Closes #67.

Improves how NodeForge handles constants when generating Blender node graphs. Constants are now materialized based on the actual consumer socket instead of always creating separate Value nodes.

Changes

  • Write constants directly to compatible Blender socket defaults, reducing unnecessary nodes and links.
  • Preserve explicit connections for contextual inputs where unlinked sockets have different semantics.
  • Support constants across inline functions, expressions, geometry operations, node groups, and Bundle operations.
  • Preserve named Vector identity and shared values across multiple consumers.
  • Support compile-time String constants in Menu sockets, including nested inline calls and aliases.
  • Preserve constant values and connections during graph updates.

@denikryt
denikryt force-pushed the feature/consumer-aware-constants branch from f98a1c1 to 61bd096 Compare November 23, 2026 01:31
@denikryt
denikryt merged commit 7c012e2 into main Nov 23, 2026
6 checks passed
@denikryt
denikryt deleted the feature/consumer-aware-constants branch November 23, 2026 01:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Consumer-Aware Constant Materialization and Native Socket Semantics

2 participants