debug和修复
This commit is contained in:
+2
-2
@@ -66,8 +66,8 @@ func open(rig: FaceRig, start_blank: bool = false) -> void:
|
||||
|
||||
## 屏幕坐标 → 画布坐标。显示尺寸和画布尺寸不一致时按比例缩
|
||||
func _canvas_pos(event: InputEventMouse) -> Vector2:
|
||||
var scale := float(_rig.painter.canvas_size) / maxf(1.0, _canvas_rect.size.x)
|
||||
return event.position * scale
|
||||
var scale_factor := float(_rig.painter.canvas_size) / maxf(1.0, _canvas_rect.size.x)
|
||||
return event.position * scale_factor
|
||||
|
||||
|
||||
func _on_canvas_input(event: InputEvent) -> void:
|
||||
|
||||
Reference in New Issue
Block a user