diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2020-02-21 17:44:59 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2020-02-23 23:48:44 +0100 |
commit | 65429f11a6169d17048e99e0d4bddb2f4eaef6d0 (patch) | |
tree | 0790ce7042521f8cc30264d1162611811f466cd5 /editor | |
parent | 4b6c0560da066135aae9d6512f94770b6db99724 (diff) |
Signals: Make callbacks non-const, callable_mp can't handle it
Diffstat (limited to 'editor')
-rw-r--r-- | editor/animation_track_editor.cpp | 2 | ||||
-rw-r--r-- | editor/animation_track_editor.h | 2 | ||||
-rw-r--r-- | editor/filesystem_dock.cpp | 2 | ||||
-rw-r--r-- | editor/filesystem_dock.h | 2 | ||||
-rw-r--r-- | editor/inspector_dock.cpp | 6 | ||||
-rw-r--r-- | editor/inspector_dock.h | 6 |
6 files changed, 10 insertions, 10 deletions
diff --git a/editor/animation_track_editor.cpp b/editor/animation_track_editor.cpp index f5c7b91a99..b311ea1675 100644 --- a/editor/animation_track_editor.cpp +++ b/editor/animation_track_editor.cpp @@ -5707,7 +5707,7 @@ float AnimationTrackEditor::snap_time(float p_value, bool p_relative) { return p_value; } -void AnimationTrackEditor::_show_imported_anim_warning() const { +void AnimationTrackEditor::_show_imported_anim_warning() { // It looks terrible on a single line but the TTR extractor doesn't support line breaks yet. EditorNode::get_singleton()->show_warning(TTR("This animation belongs to an imported scene, so changes to imported tracks will not be saved.\n\nTo enable the ability to add custom tracks, navigate to the scene's import settings and set\n\"Animation > Storage\" to \"Files\", enable \"Animation > Keep Custom Tracks\", then re-import.\nAlternatively, use an import preset that imports animations to separate files."), diff --git a/editor/animation_track_editor.h b/editor/animation_track_editor.h index c2660652d6..26f9c15f6c 100644 --- a/editor/animation_track_editor.h +++ b/editor/animation_track_editor.h @@ -314,7 +314,7 @@ class AnimationTrackEditor : public VBoxContainer { OptionButton *snap_mode; Button *imported_anim_warning; - void _show_imported_anim_warning() const; + void _show_imported_anim_warning(); void _snap_mode_changed(int p_mode); Vector<AnimationTrackEdit *> track_edits; diff --git a/editor/filesystem_dock.cpp b/editor/filesystem_dock.cpp index 4172570089..5363d6a1e2 100644 --- a/editor/filesystem_dock.cpp +++ b/editor/filesystem_dock.cpp @@ -1775,7 +1775,7 @@ void FileSystemDock::_file_option(int p_option, const Vector<String> &p_selected } } -void FileSystemDock::_resource_created() const { +void FileSystemDock::_resource_created() { Object *c = new_resource_dialog->instance_selected(); ERR_FAIL_COND(!c); diff --git a/editor/filesystem_dock.h b/editor/filesystem_dock.h index d20d4add4e..1969f85e72 100644 --- a/editor/filesystem_dock.h +++ b/editor/filesystem_dock.h @@ -215,7 +215,7 @@ private: void _files_moved(String p_old_file, String p_new_file); void _folder_moved(String p_old_folder, String p_new_folder); - void _resource_created() const; + void _resource_created(); void _make_dir_confirm(); void _make_scene_confirm(); void _rename_operation_confirm(); diff --git a/editor/inspector_dock.cpp b/editor/inspector_dock.cpp index 85356a209f..1f96092bba 100644 --- a/editor/inspector_dock.cpp +++ b/editor/inspector_dock.cpp @@ -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; diff --git a/editor/inspector_dock.h b/editor/inspector_dock.h index a7da4bef4c..016aee12cf 100644 --- a/editor/inspector_dock.h +++ b/editor/inspector_dock.h @@ -104,13 +104,13 @@ class InspectorDock : public VBoxContainer { void _paste_resource() const; void _warning_pressed(); - void _resource_created() const; - void _resource_selected(const RES &p_res, const String &p_property = "") const; + void _resource_created(); + void _resource_selected(const RES &p_res, const String &p_property = ""); void _edit_forward(); void _edit_back(); void _menu_collapseall(); void _menu_expandall(); - void _select_history(int p_idx) const; + void _select_history(int p_idx); void _prepare_history(); void _property_keyed(const String &p_keyed, const Variant &p_value, bool p_advance); |