Skip to content

Conversation

@SiboVG
Copy link
Member

@SiboVG SiboVG commented Sep 8, 2022

This PR fixes #1653. The problem was the order of scaling. The previous behavior was that first the outer radius of the ring was scaled, and then the inner ring. This works for scaling up, but if scaled down, the outer radius would first scale down, would then become smaller than the inner radius, so the inner radius got clipped, and then the clipped inner radius got scaled down again. This PR changes the scaling order based on when you're scaling up or down. If scaled up, first the outer radius is scaled and then the inner radius, when scaling down, first the inner radius is scaled, and then the outer radius.

@hcraigmiller
Copy link
Collaborator

Functions as expected, no anomalies found.

Build 1001
[Windows 11 Pro; Version 21H2; OS Build 22000.739; Windows Feature Experience Pack 1000.22000.739.0]
[Java "11.0.15" 2022-04-19 LTS; Java(TM) SE Runtime Environment 18.9 (build 11.0.15+8-LTS-149)]

@SiboVG SiboVG merged commit e1128d0 into openrocket:unstable Sep 10, 2022
@SiboVG SiboVG deleted the issue-1653 branch September 30, 2022 12:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] Centering ring inner diameter does not scale "down" correctly

2 participants