1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-09 12:50:35 +00:00

Allow selecting frames by holding down the mouse in SpriteFrames editor

This complements the existing (Ctrl +) Shift + Left mouse button
multiple frame (de)selection.

(cherry picked from commit 5e8eb20ad6)
This commit is contained in:
Hugo Locurcio
2021-04-11 18:53:23 +02:00
committed by Rémi Verschelde
parent fa77e501f7
commit bf22de76f7
2 changed files with 47 additions and 8 deletions

View File

@@ -86,6 +86,7 @@ class SpriteFramesEditor : public HSplitContainer {
ToolButton *split_sheet_zoom_in;
EditorFileDialog *file_split_sheet;
Set<int> frames_selected;
Set<int> frames_toggled_by_mouse_hover;
int last_frame_selected;
float scale_ratio;