Skip to content

feat(ui): create objects with custom subtypes from context menus - #36

Merged
jeffamstutz merged 2 commits into
mainfrom
ui-custom-subtypes
Nov 25, 2026
Merged

jeffamstutz merged 2 commits into
mainfrom
ui-custom-subtypes

Conversation

@jeffamstutz

@jeffamstutz jeffamstutz commented Nov 25, 2026 •

Copy link
Copy Markdown
Collaborator

Adds a shared `custom...` submenu (`vsr::ui::buildUI_customSubtype_menu`) with a text box that accepts any subtype string; Enter or create commits it and closes the context menu.

LayerTree (add → new object)

  • light: `custom...` after the built-in lights
  • volume: new submenu listing `gaussianSplat`, `structuredRectilinear`, `structuredRegular`, `transferFunction1D`, plus `custom...`

ObjectEditor parameter menu (set type → object → new)

  • `custom...` for material, geometry and sampler; the new object is bound to the parameter
  • arrays have no subtype, so they get none

Also fixes a mislabelled `// "material"` end-of-menu comment on the sampler submenu.

Builds cleanly (`vsr_ui_imgui`); not yet exercised interactively.

CI: `build` and `build-cuda` now `needs: format`, so a formatting failure stops the run before any build runners start.

Add a shared "custom..." submenu (buildUI_customSubtype_menu) holding a
text box for any subtype string. The LayerTree "new object" menu offers it
for lights and a new volume submenu (which also lists the built-in volume
subtypes); the parameter context menu offers it for new materials,
geometries and samplers.
@jeffamstutz
jeffamstutz merged commit b51f398 into main Nov 25, 2026
13 checks passed
@jeffamstutz
jeffamstutz deleted the ui-custom-subtypes branch November 25, 2026 16:59
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