NEON-27: apply gdformat to isometric_follow_camera.gd

Style-only: flatten short boolean expression in occlusion_policy_is_valid;
reformat string interpolation in push_warning calls.
pull/35/head
VinPropane 2026-04-08 23:56:21 -04:00
parent f1b4e50729
commit 986613fd26
1 changed files with 9 additions and 11 deletions

View File

@ -220,11 +220,7 @@ func _occlusion_policy_valid() -> bool:
## Static guard — safe to call from tests without a live scene.
static func occlusion_policy_is_valid(policy: Resource) -> bool:
return (
policy != null
and policy.get_script() == OcclusionPolicyScript
and policy.is_valid()
)
return policy != null and policy.get_script() == OcclusionPolicyScript and policy.is_valid()
## Cast iterative rays from the smoothed eye to the player focus.
@ -258,9 +254,10 @@ func _update_occlusion(focus: Vector3) -> void:
and newly_blocking.size() >= policy.occluder_count_log_threshold
):
push_warning(
"OcclusionPolicy: %d occluder(s) active (threshold %d)" % [
newly_blocking.size(), policy.occluder_count_log_threshold
]
(
"OcclusionPolicy: %d occluder(s) active (threshold %d)"
% [newly_blocking.size(), policy.occluder_count_log_threshold]
)
)
var to_restore: Array = _occluder_overrides.keys()
@ -295,9 +292,10 @@ func _apply_occluder_fade(body: Node3D) -> void:
faded = StandardMaterial3D.new()
else:
push_warning(
"OcclusionPolicy: %s surface %d is %s — skipping fade." % [
mi.get_path(), s, effective.get_class()
]
(
"OcclusionPolicy: %s surface %d is %s — skipping fade."
% [mi.get_path(), s, effective.get_class()]
)
)
continue
faded.transparency = BaseMaterial3D.TRANSPARENCY_ALPHA