mirror of
https://github.com/godotengine/godot.git
synced 2024-11-21 03:18:37 +08:00
Signals: Make callbacks non-const, callable_mp can't handle it
This commit is contained in:
parent
4b6c0560da
commit
65429f11a6
@ -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."),
|
||||
|
@ -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;
|
||||
|
@ -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);
|
||||
|
@ -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();
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user