mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Fix redundant signal connection in TextureRegionEditor
This commit is contained in:
parent
5e27318b6c
commit
6b235de846
1 changed files with 4 additions and 4 deletions
|
|
@ -818,11 +818,11 @@ void TextureRegionEditor::_update_autoslice() {
|
||||||
void TextureRegionEditor::_notification(int p_what) {
|
void TextureRegionEditor::_notification(int p_what) {
|
||||||
switch (p_what) {
|
switch (p_what) {
|
||||||
case EditorSettings::NOTIFICATION_EDITOR_SETTINGS_CHANGED: {
|
case EditorSettings::NOTIFICATION_EDITOR_SETTINGS_CHANGED: {
|
||||||
if (!EditorSettings::get_singleton()->check_changed_settings_in_group("editors/panning")) {
|
if (EditorSettings::get_singleton()->check_changed_settings_in_group("editors/panning")) {
|
||||||
break;
|
panner->setup((ViewPanner::ControlScheme)EDITOR_GET("editors/panning/sub_editors_panning_scheme").operator int(), ED_GET_SHORTCUT("canvas_item_editor/pan_view"), bool(EDITOR_GET("editors/panning/simple_panning")));
|
||||||
|
panner->setup_warped_panning(get_viewport(), EDITOR_GET("editors/panning/warped_mouse_panning"));
|
||||||
}
|
}
|
||||||
[[fallthrough]];
|
} break;
|
||||||
}
|
|
||||||
|
|
||||||
case NOTIFICATION_ENTER_TREE: {
|
case NOTIFICATION_ENTER_TREE: {
|
||||||
get_tree()->connect("node_removed", callable_mp(this, &TextureRegionEditor::_node_removed));
|
get_tree()->connect("node_removed", callable_mp(this, &TextureRegionEditor::_node_removed));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue