mirror of
https://github.com/godotengine/godot.git
synced 2025-10-31 21:51:22 +00:00
Undo support for locking and grouping for both 2D and 3D
This commit is contained in:
parent
260530f01c
commit
d1fa546dc9
5 changed files with 93 additions and 31 deletions
|
|
@ -1059,6 +1059,10 @@ Variant Object::get_meta(const String &p_name) const {
|
|||
return metadata[p_name];
|
||||
}
|
||||
|
||||
void Object::remove_meta(const String &p_name) {
|
||||
metadata.erase(p_name);
|
||||
}
|
||||
|
||||
Array Object::_get_property_list_bind() const {
|
||||
|
||||
List<PropertyInfo> lpi;
|
||||
|
|
@ -1691,6 +1695,7 @@ void Object::_bind_methods() {
|
|||
ClassDB::bind_method(D_METHOD("get_script"), &Object::get_script);
|
||||
|
||||
ClassDB::bind_method(D_METHOD("set_meta", "name", "value"), &Object::set_meta);
|
||||
ClassDB::bind_method(D_METHOD("remove_meta", "name"), &Object::remove_meta);
|
||||
ClassDB::bind_method(D_METHOD("get_meta", "name"), &Object::get_meta);
|
||||
ClassDB::bind_method(D_METHOD("has_meta", "name"), &Object::has_meta);
|
||||
ClassDB::bind_method(D_METHOD("get_meta_list"), &Object::_get_meta_list_bind);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue