修复玩家脸部
This commit is contained in:
@@ -4,7 +4,6 @@ extends Control
|
||||
signal confirmed
|
||||
signal back_pressed
|
||||
|
||||
const SPIN_SPEED := 0.5
|
||||
|
||||
@onready var _model: Node3D = %Model
|
||||
@onready var _camera: Camera3D = %PreviewCamera
|
||||
@@ -25,12 +24,12 @@ func _ready() -> void:
|
||||
_paint_panel.finished.connect(_refresh_expression_list)
|
||||
_paint_panel.cancelled.connect(_refresh_expression_list)
|
||||
_refresh_expression_list()
|
||||
|
||||
# 将模型选择180度
|
||||
if (_model != null):
|
||||
_model.rotate_y(PI)
|
||||
|
||||
|
||||
func _process(delta: float) -> void:
|
||||
if _model != null:
|
||||
_model.rotate_y(SPIN_SPEED * delta)
|
||||
|
||||
|
||||
## 内置表情用 AtlasTexture 显示对应 UV 小格;本地表情直接显示各自 PNG。
|
||||
func _refresh_expression_list() -> void:
|
||||
|
||||
Reference in New Issue
Block a user