- Изменено
Graph not zooming in to fit Scale X/Y curves
Hi, I'm noticing that when pressing the "Frame" button on scale X/Y curves to zoom in the graph the curves don't end up fitting the entire area, for example, pressing the "Frame" button on a rotate curve shows the following:
But when doing the same on either scaleX or scaleY results in:
Horizontally the curve fits, but it seems that vertical zoom is calculated incorrectly which makes it harder to do small adjustments to the curves without needing to manually zoom in the graph.
Rotate, Translate and Shear seem to work fine, only Scale is the one behaving differently (my guess is that it has something to do with the values being percentages).
Spine version: 4.0.53-beta
OS: Windows 10 Home
This is actually working as intended. What's happening is it's including 0 and 100 along with the scale key values, then zooming to fit all that. It's been a while so I don't remember the exact reason for doing that. I looked up the code change in the history that added it and found only:
Always include 0-100 when framing percent values in the graph.
My guess is that it was difficult to set reasonable values when auto frame zooms in a lot. All the percent values that are not scale, such as constraint mixes, don't usually require tiny changes. Scale often does though, so we could exclude scale from including 0 and 100. What do you think @Sinisa?
That's a good catch @HyperSSam! Yes, I think we should exclude scale from including 0 and 100. I'm used to zooming the curves how I like them after I frame them, this will definitely make me zoom the Graph less when using Scale.