From 199101e98570d17c70e875ebb15e7596cc1d9dab Mon Sep 17 00:00:00 2001 From: Catboy-Slim <98989438+Catboy-Slim@users.noreply.github.com> Date: Fri, 3 Jul 2026 16:52:33 -0700 Subject: [PATCH] make is_smooth_shaded type safe properties.get(smoothing_property, 0) returns String "0", which causes an error for me --- addons/func_godot/src/core/data.gd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/func_godot/src/core/data.gd b/addons/func_godot/src/core/data.gd index b3edf24..9dad6c8 100644 --- a/addons/func_godot/src/core/data.gd +++ b/addons/func_godot/src/core/data.gd @@ -178,7 +178,7 @@ class EntityData extends RefCounted: ## Determines if the entity's mesh should be processed for normal smoothing. ## The smoothing property can be retrieved from [member FuncGodotMapSettings.entity_smoothing_property]. func is_smooth_shaded(smoothing_property: String = "_phong") -> bool: - return properties.get(smoothing_property, 0) + return int(properties.get(smoothing_property, 0)) > 0 ## Retrieves the entity's smoothing angle to determine if the face should be smoothed. ## The smoothing angle property can be retrieved from [member FuncGodotMapSettings.entity_smoothing_angle_property].