You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-10 13:00:37 +00:00
Merge pull request #81406 from bruvzg/ts_dict_chk2
[TextServer] Pass Dictionary properties by value and check property values instead of references.
This commit is contained in:
@@ -2819,12 +2819,14 @@ Ref<Font> FontVariation::_get_base_font_or_default() const {
|
||||
}
|
||||
|
||||
void FontVariation::set_variation_opentype(const Dictionary &p_coords) {
|
||||
variation.opentype = p_coords;
|
||||
_invalidate_rids();
|
||||
if (!variation.opentype.recursive_equal(p_coords, 1)) {
|
||||
variation.opentype = p_coords.duplicate();
|
||||
_invalidate_rids();
|
||||
}
|
||||
}
|
||||
|
||||
Dictionary FontVariation::get_variation_opentype() const {
|
||||
return variation.opentype;
|
||||
return variation.opentype.duplicate();
|
||||
}
|
||||
|
||||
void FontVariation::set_variation_embolden(float p_strength) {
|
||||
@@ -2861,12 +2863,14 @@ int FontVariation::get_variation_face_index() const {
|
||||
}
|
||||
|
||||
void FontVariation::set_opentype_features(const Dictionary &p_features) {
|
||||
opentype_features = p_features;
|
||||
_invalidate_rids();
|
||||
if (!opentype_features.recursive_equal(p_features, 1)) {
|
||||
opentype_features = p_features.duplicate();
|
||||
_invalidate_rids();
|
||||
}
|
||||
}
|
||||
|
||||
Dictionary FontVariation::get_opentype_features() const {
|
||||
return opentype_features;
|
||||
return opentype_features.duplicate();
|
||||
}
|
||||
|
||||
void FontVariation::set_spacing(TextServer::SpacingType p_spacing, int p_value) {
|
||||
|
||||
Reference in New Issue
Block a user