bugfix #t fragment, default nonloop
This commit is contained in:
parent
92c7660366
commit
2b1905d90f
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* v0.5.1 generated at Wed Jul 17 01:53:27 PM UTC 2024
|
||||
* v0.5.1 generated at Fri Jul 19 03:41:31 PM UTC 2024
|
||||
* https://xrfragment.org
|
||||
* SPDX-License-Identifier: MPL-2.0
|
||||
*/
|
||||
|
@ -2733,7 +2733,7 @@ xrf.addEventListener('parseModel', (opts) => {
|
|||
let mixer = model.mixer = new xrf.THREE.AnimationMixer(model.scene)
|
||||
|
||||
mixer.model = model
|
||||
mixer.loop = {timeStart:0,timeStop:0,speed:1.0}
|
||||
mixer.loop = {timeStart:0,timeStop:0,speed:1.0,enabled:false}
|
||||
mixer.i = xrf.mixers.length
|
||||
mixer.actions = []
|
||||
|
||||
|
@ -2789,7 +2789,11 @@ xrf.addEventListener('parseModel', (opts) => {
|
|||
if( mixer.loop.timeStop > 0 && mixer.time > mixer.loop.timeStop ){
|
||||
if( mixer.loop.enabled ){
|
||||
setTimeout( () => mixer.updateLoop(), 0 ) // prevent recursion
|
||||
}else mixer.stop()
|
||||
}else{
|
||||
mixer.setTime( mixer.time = mixer.loop.timeStop )
|
||||
//mixer.update(mixer.time )
|
||||
mixer.timeScale = 0
|
||||
}
|
||||
}
|
||||
return update.call( this, time )
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* v0.5.1 generated at Wed Jul 17 01:53:27 PM UTC 2024
|
||||
* v0.5.1 generated at Fri Jul 19 03:41:31 PM UTC 2024
|
||||
* https://xrfragment.org
|
||||
* SPDX-License-Identifier: MPL-2.0
|
||||
*/
|
||||
|
@ -2731,7 +2731,7 @@ xrf.addEventListener('parseModel', (opts) => {
|
|||
let mixer = model.mixer = new xrf.THREE.AnimationMixer(model.scene)
|
||||
|
||||
mixer.model = model
|
||||
mixer.loop = {timeStart:0,timeStop:0,speed:1.0}
|
||||
mixer.loop = {timeStart:0,timeStop:0,speed:1.0,enabled:false}
|
||||
mixer.i = xrf.mixers.length
|
||||
mixer.actions = []
|
||||
|
||||
|
@ -2787,7 +2787,11 @@ xrf.addEventListener('parseModel', (opts) => {
|
|||
if( mixer.loop.timeStop > 0 && mixer.time > mixer.loop.timeStop ){
|
||||
if( mixer.loop.enabled ){
|
||||
setTimeout( () => mixer.updateLoop(), 0 ) // prevent recursion
|
||||
}else mixer.stop()
|
||||
}else{
|
||||
mixer.setTime( mixer.time = mixer.loop.timeStop )
|
||||
//mixer.update(mixer.time )
|
||||
mixer.timeScale = 0
|
||||
}
|
||||
}
|
||||
return update.call( this, time )
|
||||
}
|
||||
|
|
|
@ -2728,7 +2728,7 @@ xrf.addEventListener('parseModel', (opts) => {
|
|||
let mixer = model.mixer = new xrf.THREE.AnimationMixer(model.scene)
|
||||
|
||||
mixer.model = model
|
||||
mixer.loop = {timeStart:0,timeStop:0,speed:1.0}
|
||||
mixer.loop = {timeStart:0,timeStop:0,speed:1.0,enabled:false}
|
||||
mixer.i = xrf.mixers.length
|
||||
mixer.actions = []
|
||||
|
||||
|
@ -2784,7 +2784,11 @@ xrf.addEventListener('parseModel', (opts) => {
|
|||
if( mixer.loop.timeStop > 0 && mixer.time > mixer.loop.timeStop ){
|
||||
if( mixer.loop.enabled ){
|
||||
setTimeout( () => mixer.updateLoop(), 0 ) // prevent recursion
|
||||
}else mixer.stop()
|
||||
}else{
|
||||
mixer.setTime( mixer.time = mixer.loop.timeStop )
|
||||
//mixer.update(mixer.time )
|
||||
mixer.timeScale = 0
|
||||
}
|
||||
}
|
||||
return update.call( this, time )
|
||||
}
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* v0.5.1 generated at Wed Jul 17 01:53:27 PM UTC 2024
|
||||
* v0.5.1 generated at Fri Jul 19 03:41:31 PM UTC 2024
|
||||
* https://xrfragment.org
|
||||
* SPDX-License-Identifier: MPL-2.0
|
||||
*/
|
||||
|
@ -2731,7 +2731,7 @@ xrf.addEventListener('parseModel', (opts) => {
|
|||
let mixer = model.mixer = new xrf.THREE.AnimationMixer(model.scene)
|
||||
|
||||
mixer.model = model
|
||||
mixer.loop = {timeStart:0,timeStop:0,speed:1.0}
|
||||
mixer.loop = {timeStart:0,timeStop:0,speed:1.0,enabled:false}
|
||||
mixer.i = xrf.mixers.length
|
||||
mixer.actions = []
|
||||
|
||||
|
@ -2787,7 +2787,11 @@ xrf.addEventListener('parseModel', (opts) => {
|
|||
if( mixer.loop.timeStop > 0 && mixer.time > mixer.loop.timeStop ){
|
||||
if( mixer.loop.enabled ){
|
||||
setTimeout( () => mixer.updateLoop(), 0 ) // prevent recursion
|
||||
}else mixer.stop()
|
||||
}else{
|
||||
mixer.setTime( mixer.time = mixer.loop.timeStop )
|
||||
//mixer.update(mixer.time )
|
||||
mixer.timeScale = 0
|
||||
}
|
||||
}
|
||||
return update.call( this, time )
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* v0.5.1 generated at Wed Jul 17 01:53:27 PM UTC 2024
|
||||
* v0.5.1 generated at Fri Jul 19 03:41:31 PM UTC 2024
|
||||
* https://xrfragment.org
|
||||
* SPDX-License-Identifier: MPL-2.0
|
||||
*/
|
||||
|
@ -2731,7 +2731,7 @@ xrf.addEventListener('parseModel', (opts) => {
|
|||
let mixer = model.mixer = new xrf.THREE.AnimationMixer(model.scene)
|
||||
|
||||
mixer.model = model
|
||||
mixer.loop = {timeStart:0,timeStop:0,speed:1.0}
|
||||
mixer.loop = {timeStart:0,timeStop:0,speed:1.0,enabled:false}
|
||||
mixer.i = xrf.mixers.length
|
||||
mixer.actions = []
|
||||
|
||||
|
@ -2787,7 +2787,11 @@ xrf.addEventListener('parseModel', (opts) => {
|
|||
if( mixer.loop.timeStop > 0 && mixer.time > mixer.loop.timeStop ){
|
||||
if( mixer.loop.enabled ){
|
||||
setTimeout( () => mixer.updateLoop(), 0 ) // prevent recursion
|
||||
}else mixer.stop()
|
||||
}else{
|
||||
mixer.setTime( mixer.time = mixer.loop.timeStop )
|
||||
//mixer.update(mixer.time )
|
||||
mixer.timeScale = 0
|
||||
}
|
||||
}
|
||||
return update.call( this, time )
|
||||
}
|
||||
|
|
|
@ -42,7 +42,7 @@ xrf.addEventListener('parseModel', (opts) => {
|
|||
let mixer = model.mixer = new xrf.THREE.AnimationMixer(model.scene)
|
||||
|
||||
mixer.model = model
|
||||
mixer.loop = {timeStart:0,timeStop:0,speed:1.0}
|
||||
mixer.loop = {timeStart:0,timeStop:0,speed:1.0,enabled:false}
|
||||
mixer.i = xrf.mixers.length
|
||||
mixer.actions = []
|
||||
|
||||
|
@ -98,7 +98,11 @@ xrf.addEventListener('parseModel', (opts) => {
|
|||
if( mixer.loop.timeStop > 0 && mixer.time > mixer.loop.timeStop ){
|
||||
if( mixer.loop.enabled ){
|
||||
setTimeout( () => mixer.updateLoop(), 0 ) // prevent recursion
|
||||
}else mixer.stop()
|
||||
}else{
|
||||
mixer.setTime( mixer.time = mixer.loop.timeStop )
|
||||
//mixer.update(mixer.time )
|
||||
mixer.timeScale = 0
|
||||
}
|
||||
}
|
||||
return update.call( this, time )
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue