You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Removed unused property hints and Object::get_translatable_strings()
* Remove unused `EditorPropertyMember` and related hints, previouly used by VisualScript. Such logic should be implemented in the VS module itself. * As the above broke compatibility with the VS module, clean up the other hacks that were still in core in support of VisualScript. * `PROPERTY_USAGE_INTERNATIONALIZED` was only used in Object's `get_translatable_strings()`, which is a legacy function not used anywhere. So both are removed. * Reordered some usage flags after the above removal to minimize the diff. * General clean up. Fixes #30203. Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
This commit is contained in:
committed by
Rémi Verschelde
parent
964fc6e15d
commit
0e0a6bb39b
@@ -1594,25 +1594,6 @@ bool Object::is_blocking_signals() const {
|
||||
return _block_signals;
|
||||
}
|
||||
|
||||
void Object::get_translatable_strings(List<String> *p_strings) const {
|
||||
List<PropertyInfo> plist;
|
||||
get_property_list(&plist);
|
||||
|
||||
for (const PropertyInfo &E : plist) {
|
||||
if (!(E.usage & PROPERTY_USAGE_INTERNATIONALIZED)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
String text = get(E.name);
|
||||
|
||||
if (text.is_empty()) {
|
||||
continue;
|
||||
}
|
||||
|
||||
p_strings->push_back(text);
|
||||
}
|
||||
}
|
||||
|
||||
Variant::Type Object::get_static_property_type(const StringName &p_property, bool *r_valid) const {
|
||||
bool valid;
|
||||
Variant::Type t = ClassDB::get_property_type(get_class_name(), p_property, &valid);
|
||||
|
||||
Reference in New Issue
Block a user