summaryrefslogtreecommitdiff
path: root/scene
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2019-01-23 15:01:48 +0100
committerGitHub <noreply@github.com>2019-01-23 15:01:48 +0100
commit03cc275cc1c31e1591b85729c4f00850f66c2370 (patch)
treeccc337e8555af8f4f737efd8f24b88b28b4213fb /scene
parent1953054fd8ca5d7a49d24cd9fe7641e955ca39bf (diff)
parentbbc9e9104331ad8c0e59f58ac2be243e789c69e1 (diff)
Merge pull request #25258 from dragmz/patch-9
Fix warning when setting out of range outline_size
Diffstat (limited to 'scene')
-rw-r--r--scene/resources/dynamic_font.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/resources/dynamic_font.cpp b/scene/resources/dynamic_font.cpp
index 5660f0a1b9..fd7b67a218 100644
--- a/scene/resources/dynamic_font.cpp
+++ b/scene/resources/dynamic_font.cpp
@@ -1009,7 +1009,7 @@ void DynamicFont::_bind_methods() {
ADD_GROUP("Settings", "");
ADD_PROPERTY(PropertyInfo(Variant::INT, "size"), "set_size", "get_size");
- ADD_PROPERTY(PropertyInfo(Variant::INT, "outline_size"), "set_outline_size", "get_outline_size");
+ ADD_PROPERTY(PropertyInfo(Variant::INT, "outline_size", PROPERTY_HINT_RANGE, "0,255,1"), "set_outline_size", "get_outline_size");
ADD_PROPERTY(PropertyInfo(Variant::COLOR, "outline_color"), "set_outline_color", "get_outline_color");
ADD_PROPERTY(PropertyInfo(Variant::BOOL, "use_mipmaps"), "set_use_mipmaps", "get_use_mipmaps");
ADD_PROPERTY(PropertyInfo(Variant::BOOL, "use_filter"), "set_use_filter", "get_use_filter");