[6.6.0][视角切换] 逻辑优化

This commit is contained in:
renwj
2024-09-05 16:29:12 +08:00
parent 538e99d020
commit 08b00f65db
9 changed files with 135 additions and 107 deletions

View File

@@ -32,8 +32,8 @@ class VisualViewModel : ViewModel(),
}
override fun onSceneChanged(scene: Scene) {
if (scene.isCanSwitch) {// 可切换
when (scene.angle) {
if (scene.isCanSwitch()) {// 可切换
when (scene.getVisualAngleMode()) {
VisualAngleMode.MODE_MEDIUM_SIGHT -> {
UiThreadHandler.post({
this.viewCallback?.setViewShow(true)