Skip to content

Add inline compilation for .nf functions - #57

Merged
denikryt merged 10 commits into
mainfrom
feature/inline-nf-functions
Nov 17, 2026
Merged

denikryt merged 10 commits into
mainfrom
feature/inline-nf-functions

Conversation

@denikryt

@denikryt denikryt commented Nov 17, 2026 •

Copy link
Copy Markdown
Owner

Implements #41.

Adds support for compiling source-backed .nf functions directly into the caller's node tree instead of creating separate Geometry Node groups.

Key changes:

  • Added the compiler-only __inline__ parameter (__inline__=True or __inline__: Bool = True) to control the default compilation mode.
  • Added per-call overrides (__inline__=True/False) and compatibility rules with __unique__.
  • Implemented inline lowering with typed argument binding, default values, multiple outputs, and independent compilation modes for nested calls.
  • Supported inline compilation across local, imported, and package functions.
  • Integrated inline dependencies into Compile, Update, and Reload workflows while preserving standalone group creation.
  • Added unit and Blender integration tests, documentation, and regression coverage.

Inline calls generate native nodes in the immediate caller's tree, while regular calls retain the existing shared-group behavior.

@denikryt
denikryt force-pushed the feature/inline-nf-functions branch 2 times, most recently from 31a222d to 64c316f Compare November 17, 2026 23:45
@denikryt
denikryt merged commit a987f29 into main Nov 17, 2026
6 checks passed
@denikryt
denikryt deleted the feature/inline-nf-functions branch November 17, 2026 23:48
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.

1 participant