1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-21 14:57:09 +00:00

Signals: Make callbacks non-const, callable_mp can't handle it

This commit is contained in:
Rémi Verschelde
2020-02-21 17:44:59 +01:00
parent 4b6c0560da
commit 65429f11a6
6 changed files with 10 additions and 10 deletions

View File

@@ -260,7 +260,7 @@ void InspectorDock::_prepare_history() {
}
}
void InspectorDock::_select_history(int p_idx) const {
void InspectorDock::_select_history(int p_idx) {
//push it to the top, it is not correct, but it's more useful
ObjectID id = EditorNode::get_singleton()->get_editor_history()->get_history_obj(p_idx);
Object *obj = ObjectDB::get_instance(id);
@@ -269,7 +269,7 @@ void InspectorDock::_select_history(int p_idx) const {
editor->push_item(obj);
}
void InspectorDock::_resource_created() const {
void InspectorDock::_resource_created() {
Object *c = new_resource_dialog->instance_selected();
ERR_FAIL_COND(!c);
@@ -280,7 +280,7 @@ void InspectorDock::_resource_created() const {
editor->push_item(c);
}
void InspectorDock::_resource_selected(const RES &p_res, const String &p_property) const {
void InspectorDock::_resource_selected(const RES &p_res, const String &p_property) {
if (p_res.is_null())
return;