Library Import: Add models to editor scene #11

Closed
opened 2026-06-09 02:02:20 +00:00 by Mark · 0 comments
Owner

The Import to Project button in src/pages/library/QuickViewModal.tsx currently has no click handler - it does nothing when clicked.

Current State

  • Button UI exists with Import icon
  • No onClick handler attached to import action
  • No integration with editor state

Required Implementation

  • Implement GLTF/GLB file fetching/loading (models stored in src/pages/library/data.ts)
  • Add model to editor scene via useEditorStore.addObject()
  • Convert loaded geometry to SceneObject with proper mesh data
  • Support both demo preview models and real file imports

Acceptance Criteria

  • Click Import button adds model to editor
  • Model appears in editor viewport
  • Model is selectable and transformable
  • Model maintains proper material properties
The **Import to Project** button in `src/pages/library/QuickViewModal.tsx` currently has no click handler - it does nothing when clicked. ## Current State - Button UI exists with Import icon - No `onClick` handler attached to import action - No integration with editor state ## Required Implementation - Implement GLTF/GLB file fetching/loading (models stored in `src/pages/library/data.ts`) - Add model to editor scene via `useEditorStore.addObject()` - Convert loaded geometry to `SceneObject` with proper mesh data - Support both demo preview models and real file imports ## Acceptance Criteria - [ ] Click Import button adds model to editor - [ ] Model appears in editor viewport - [ ] Model is selectable and transformable - [ ] Model maintains proper material properties
Mark 2026-06-09 02:08:44 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Mark/kimi_agent_hero_forge_slice_issue#11
No description provided.