Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans Goudey <h.goudey@me.com>2021-12-28 20:05:31 +0300
committerHans Goudey <h.goudey@me.com>2021-12-28 20:05:31 +0300
commit1a721c5dbec928b0e36e0d1295b12c14f9026562 (patch)
treec5dd369a9d3296804846c5d62a2fd1456cd3b851
parent0e38002dd5dda049b5b8ff0ba635f4192984163d (diff)
Fix T94380: Scrolling zooms in spreadsheet data set region
The region used to be type "Channels", but the standard for this type is "Tools", which is what the file browser uses. This follows the changes in rB01df48a98394, which also make the region more "standard."
-rw-r--r--source/blender/editors/space_spreadsheet/space_spreadsheet.cc7
1 files changed, 3 insertions, 4 deletions
diff --git a/source/blender/editors/space_spreadsheet/space_spreadsheet.cc b/source/blender/editors/space_spreadsheet/space_spreadsheet.cc
index 908954f1815..02f7f1d71c4 100644
--- a/source/blender/editors/space_spreadsheet/space_spreadsheet.cc
+++ b/source/blender/editors/space_spreadsheet/space_spreadsheet.cc
@@ -85,9 +85,8 @@ static SpaceLink *spreadsheet_create(const ScrArea *UNUSED(area), const Scene *U
/* Dataset Region */
ARegion *region = MEM_cnew<ARegion>("spreadsheet dataset region");
BLI_addtail(&spreadsheet_space->regionbase, region);
- region->regiontype = RGN_TYPE_CHANNELS;
+ region->regiontype = RGN_TYPE_TOOLS;
region->alignment = RGN_ALIGN_LEFT;
- region->v2d.scroll = (V2D_SCROLL_RIGHT | V2D_SCROLL_BOTTOM);
}
{
@@ -688,9 +687,9 @@ void ED_spacetype_spreadsheet()
/* regions: channels */
art = MEM_cnew<ARegionType>("spreadsheet dataset region");
- art->regionid = RGN_TYPE_CHANNELS;
+ art->regionid = RGN_TYPE_TOOLS;
art->prefsizex = 150 + V2D_SCROLL_WIDTH;
- art->keymapflag = ED_KEYMAP_UI | ED_KEYMAP_VIEW2D;
+ art->keymapflag = ED_KEYMAP_UI;
art->init = ED_region_panels_init;
art->draw = spreadsheet_dataset_region_draw;
art->listener = spreadsheet_dataset_region_listener;