big fix in bzselect

This commit is contained in:
STEINNI
2025-10-18 18:59:28 +00:00
parent e3ca6bd6b2
commit d0ca65a435
4 changed files with 7 additions and 5 deletions
+4 -2
View File
@@ -22,7 +22,10 @@ class KeyframeView extends WindozDomContent {
this.setupRefs(components)
this.agentDefs = await this.models.agents.getSprites('Basic 3D')
this.outputs.agentsSelector.fillOptions( Object.keys(this.agentDefs).map(aname => ({ markup: `<i>${aname}</i>`, value: aname})) )
this.outputs.agentsSelector.fillOptions( Object.keys(this.agentDefs).map(aname => {
console.log(this.agentDefs[aname])
return({ markup: `${aname}`, value: aname})
}))
this.outputs.agentsSelector.addEventListener('change',this.onChangeAgent.bind(this))
this.agentPreview = new app.LoadedModules.AgentPreview(this.outputs.agentSampleCanvas, this.agentDefs)
@@ -34,7 +37,6 @@ class KeyframeView extends WindozDomContent {
onChangeAgent(event){
console.log('onChangeAgent',this.outputs.agentsSelector.value)
if(this.outputs.agentsSelector.value) this.agentPreview.setAgent(this.outputs.agentsSelector.value)
}
@@ -49,7 +49,7 @@ export class AgentPreview{
this.currentAgentObj.position.set(0, 0, 0)
this.scene.add(this.currentAgentObj)
this.cameraAutoFrame(this.currentAgentObj, this.camera)
this.cameraAutoFrame(this.currentAgentObj, this.camera, 2)
}
set animation(value){