fix(board): SubViewport 手设尺寸警告清除——树内 stretch 容器接管时跳过 _viewport.size 直设(树外冒烟直建路径保留 1:1),运行时取证探针复核 Node2D 世界+100 格单元全 Node2D(2026-09-24,台账 152)
This commit is contained in:
1 parent
78b6cdbb51
commit
6649dc1ca5
1 file changed
+3
-1
@@ -231,7 +231,9 @@ func _update_world_size() -> void:
|
||||
return
|
||||
var px := Vector2(_board.width, _board.height) * (_cell + float(SEP)) - Vector2(SEP, SEP)
|
||||
_svp_container.custom_minimum_size = px
|
||||
_viewport.size = px # 树内 stretch=true 由容器回写同值;树外(冒烟直建)此处保 1:1
|
||||
# 树内 stretch=true 时 SubViewport 尺寸由容器接管(手设被引擎拒绝并刷警告);树外(冒烟直建)才需手设保 1:1
|
||||
if not _svp_container.is_inside_tree():
|
||||
_viewport.size = px
|
||||
|
||||
|
||||
# 真实输入路径(ADR-0006 Decision 3):壳层 _gui_input → 板级公式换算 → 复用既有 hover/点选/chord 出口
|
||||
|
||||
Reference in new issue
Block a user