Commit: 9f4ec7310171ef35f3cd82f45c04f0fbad7e1ca2 Author: Patrick Huang Date: Wed Jun 22 16:53:15 2022 +0200 Branches: master https://developer.blender.org/rB9f4ec7310171ef35f3cd82f45c04f0fbad7e1ca2
Fix T97675: slow zoom in node editor with Continue zoom method Speed increased by 10x, making it visually similar to other editors. Differential Revision: https://developer.blender.org/D15209 =================================================================== M source/blender/editors/interface/view2d_ops.cc =================================================================== diff --git a/source/blender/editors/interface/view2d_ops.cc b/source/blender/editors/interface/view2d_ops.cc index a4477c5271c..ec15c4ffc9f 100644 --- a/source/blender/editors/interface/view2d_ops.cc +++ b/source/blender/editors/interface/view2d_ops.cc @@ -960,8 +960,8 @@ static void view_zoomdrag_apply(bContext *C, wmOperator *op) const double time = PIL_check_seconds_timer(); const float time_step = (float)(time - vzd->timer_lastdraw); - dx *= time_step * 0.5f; - dy *= time_step * 0.5f; + dx *= time_step * 5.0f; + dy *= time_step * 5.0f; vzd->timer_lastdraw = time; } _______________________________________________ Bf-blender-cvs mailing list [email protected] List details, subscription details or unsubscribe: https://lists.blender.org/mailman/listinfo/bf-blender-cvs
