Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add in a pref for camera orbit speed multiplier #8725

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

GCRev
Copy link

@GCRev GCRev commented Mar 6, 2025

Description

The amount of rotation during camera orbit always struck me as too high, and I've wanted to be able to reduce it for quite a while. I suppose that this could be part of the character of slic3r, but I think it is sensible to add a pref for anyone who would like to adjust it.

I've placed this pref with the other camera prefs. It does some basic validation and formatting on the input value to keep it at two decimal places, and between a min and max of 0.05 and 2.0 respectively. This should be more than enough of a range and precision.

It defaults to 1.0 so that there is no change in the existing behavior.

I thought I might also mention that the reason I added an entirely new component for this pref is because there was no existing component that would perform the tasks required all at once which are:

  • accept a float-valued numeric input
  • perform custom validation on the input to limit to a min and max
  • format the output to limit the decimal precision to something reasonable
  • only update the saved value in the config once validation passes, and without saving twice

Screenshots/Recordings/Graphs

image

Tests

I've manually verified the behavior and checked that the pref is stored into OrcaSlicer.conf for recall.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants