diff options
author | Juan Linietsky <reduzio@gmail.com> | 2016-05-31 22:28:27 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2016-05-31 22:33:43 -0300 |
commit | df139f57b32fb19759392e5082ec65a7df316ab9 (patch) | |
tree | a7637f34528086de4cc7686fcebcfc75d05bdcd9 /scene/resources | |
parent | 1ae9ff19194af9a365b3a76e50ee8d3aa01205b8 (diff) |
Some cleanup to GDScript
separated GDFunction (VM) from GDScript in two different files
Diffstat (limited to 'scene/resources')
-rw-r--r-- | scene/resources/dynamic_font.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/scene/resources/dynamic_font.cpp b/scene/resources/dynamic_font.cpp index 3cd5e5f329..78a5571bf0 100644 --- a/scene/resources/dynamic_font.cpp +++ b/scene/resources/dynamic_font.cpp @@ -574,8 +574,10 @@ void DynamicFont::set_font_data(const Ref<DynamicFontData>& p_data) { data=p_data; data_at_size=data->_get_dynamic_font_at_size(size); + emit_changed(); } + Ref<DynamicFontData> DynamicFont::get_font_data() const{ return data; @@ -594,6 +596,8 @@ void DynamicFont::set_size(int p_size){ fallback_data_at_size[i]=fallbacks[i]->_get_dynamic_font_at_size(size); } + emit_changed(); + _change_notify(); } int DynamicFont::get_size() const{ @@ -663,6 +667,9 @@ void DynamicFont::add_fallback(const Ref<DynamicFontData>& p_data) { fallback_data_at_size.push_back(fallbacks[fallbacks.size()-1]->_get_dynamic_font_at_size(size)); //const.. _change_notify(); + emit_changed(); + _change_notify(); + } int DynamicFont::get_fallback_count() const { @@ -679,6 +686,7 @@ void DynamicFont::remove_fallback(int p_idx) { ERR_FAIL_INDEX(p_idx,fallbacks.size()); fallbacks.remove(p_idx); fallback_data_at_size.remove(p_idx); + emit_changed(); _change_notify(); } |