Skip to content

Commit af7169a

Browse files
committed
Deleted scene monster dynamically changing
1 parent d789210 commit af7169a

File tree

2 files changed

+5
-12
lines changed

2 files changed

+5
-12
lines changed

demo/src/index.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,10 @@ class App extends Component {
2121

2222
handleMonsterChange = (event) => {
2323

24-
this.setState({ currentMonster: parseInt(event.target.value) })
24+
//this.setState({ currentMonster: parseInt(event.target.value) })
2525

2626
}
2727

28-
handleShaderChange = (event) => {
29-
this.setState({ currentShader: event.target.value })
30-
}
31-
32-
3328
render() {
3429
const { currentAnimation, currentMonster, currentShader } = this.state
3530

src/index.js

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -356,16 +356,14 @@ class Monster3DProfile extends Component {
356356
this.controls.autoRotate = autoRotate
357357
this.controls.autoRotateSpeed = autoRotateSpeed
358358

359-
this.dettachMonster();
360-
//const gltfModel = await monsterModelSrc(this.mon.model)
361-
console.log(typeId)
362-
console.log(monster3D(mon.model))
363-
try {
359+
//this.dettachMonster();
360+
361+
/*try {
364362
console.log(monster3D(mon.model))
365363
await gltfLoader(monster3D(mon.model), this.loadMonster);
366364
} catch (error) {
367365
console.log(error)
368-
}
366+
}*///
369367

370368
// darken or light the monster according to current 'action'
371369
this.monsterLightColor(action)

0 commit comments

Comments
 (0)