Fix model can't walk after resetting model (fix #53)
This commit is contained in:
parent
f88e60e07f
commit
929cc14761
@ -36,12 +36,12 @@
|
||||
/>
|
||||
</div>
|
||||
</h3>
|
||||
</div><!-- /.box-header -->
|
||||
</div>
|
||||
<div class="box-body">
|
||||
<div ref="previewer" class="previewer-3d">
|
||||
<!-- Container for 3D Preview -->
|
||||
</div>
|
||||
</div><!-- /.box-body -->
|
||||
</div>
|
||||
<div v-if="$slots.footer" class="box-footer">
|
||||
<slot name="footer" />
|
||||
</div>
|
||||
@ -144,7 +144,7 @@ export default {
|
||||
},
|
||||
toggleRun() {
|
||||
this.handles.run.paused = !this.handles.run.paused
|
||||
this.handles.walk.paused = !this.handles.walk.paused
|
||||
this.handles.walk.paused = false
|
||||
},
|
||||
toggleRotate() {
|
||||
this.handles.rotate.paused = !this.handles.rotate.paused
|
||||
|
@ -87,7 +87,7 @@ test('toggle run', () => {
|
||||
const wrapper = mount<Vue & Handles>(Previewer)
|
||||
wrapper.find('.fa-forward').trigger('click')
|
||||
expect(wrapper.vm.handles.run.paused).toBeFalse()
|
||||
expect(wrapper.vm.handles.walk.paused).toBeTrue()
|
||||
expect(wrapper.vm.handles.walk.paused).toBeFalse()
|
||||
})
|
||||
|
||||
test('toggle rotate', () => {
|
||||
|
@ -12,3 +12,4 @@
|
||||
- Fixed resetting options of "Customize" page.
|
||||
- Fixed that dashboard of user center cannot be centered. (Thanks @outtimes)
|
||||
- Fixed data consistency when deleting texture.
|
||||
- Fixed that model can't walk after resetting model in skin previewer.
|
||||
|
@ -12,3 +12,4 @@
|
||||
- 修复「个性化」页面不能重置选项的问题
|
||||
- 修复用户中心仪表盘不能居中的问题(感谢 @outtimes)
|
||||
- 修复删除材质时的数据一致性
|
||||
- 修复皮肤预览中重置预览后不能使模型行走的问题
|
||||
|
Loading…
Reference in New Issue
Block a user