fix: rename 'is_visible' param to 'show' to avoid shadowing Node3D.is_visible()

This commit is contained in:
2026-06-22 21:06:35 -04:00
parent c8fcefe7ab
commit cd1722ce74
+2 -2
View File
@@ -192,10 +192,10 @@ func apply_skin(skin: PlayerSkin) -> void:
skin_model = null skin_model = null
_apply_color(skin.color_tint) _apply_color(skin.color_tint)
func _set_procedural_visible(is_visible: bool) -> void: func _set_procedural_visible(show: bool) -> void:
for part in [torso, head, upper_arm_l, lower_arm_l, upper_arm_r, lower_arm_r, thigh_l, calf_l, thigh_r, calf_r]: for part in [torso, head, upper_arm_l, lower_arm_l, upper_arm_r, lower_arm_r, thigh_l, calf_l, thigh_r, calf_r]:
if part: if part:
part.visible = is_visible part.visible = show
func _apply_color(col: Color) -> void: func _apply_color(col: Color) -> void:
var mat = StandardMaterial3D.new() var mat = StandardMaterial3D.new()