Skip to content

OpenToonz - An open-source full-featured 2D animation creation software

C

consider layer name/number as dragbar in Column Viewer

Abel Youe00b07c321bf
diff --git a/toonz/sources/toonz/xshcolumnviewer.cpp b/toonz/sources/toonz/xshcolumnviewer.cpp
index 81bf7b70e..6154cb592 100644
--- a/toonz/sources/toonz/xshcolumnviewer.cpp
+++ b/toonz/sources/toonz/xshcolumnviewer.cpp
@@ -2399,11 +2399,12 @@ void ColumnArea::mousePressEvent(QMouseEvent *event) {
else if (!isEmpty) {
// grabbing the left side of the column enables column move
if (o->rect(PredefinedRect::DRAG_LAYER).contains(mouseInCell) ||
- (!o->flag(PredefinedFlag::DRAG_LAYER_VISIBLE) // If dragbar hidden,
+ /*(!o->flag(PredefinedFlag::DRAG_LAYER_VISIBLE) // If dragbar hidden,
// layer name/number
// becomes dragbar
- && (o->rect(PredefinedRect::LAYER_NUMBER).contains(mouseInCell) ||
- o->rect(PredefinedRect::LAYER_NAME).contains(mouseInCell)))) {
+ && */ // also consider layer name/number as dragbar
+ (o->rect(PredefinedRect::LAYER_NUMBER).contains(mouseInCell) ||
+ o->rect(PredefinedRect::LAYER_NAME).contains(mouseInCell))) {
setDragTool(XsheetGUI::DragTool::makeColumnMoveTool(m_viewer));
}
// lock button