Add a preference for scaling up tiny objects

When objects have been modeled with meters as units, they become so tiny that the cannot be selected in Cura to be scaled up.
This commit is contained in:
fieldOfView 2016-05-04 11:01:36 +02:00
parent d8c53f7a1f
commit 220939acbf
2 changed files with 15 additions and 0 deletions

View File

@ -115,6 +115,7 @@ class CuraApplication(QtApplication):
Preferences.getInstance().addPreference("cura/categories_expanded", "")
Preferences.getInstance().addPreference("view/center_on_select", True)
Preferences.getInstance().addPreference("mesh/scale_to_fit", True)
Preferences.getInstance().addPreference("mesh/scale_tiny_meshes", True)
Preferences.getInstance().setDefault("local_file/last_used_type", "text/x-gcode")
JobQueue.getInstance().jobFinished.connect(self._onJobFinished)

View File

@ -136,6 +136,20 @@ UM.PreferencesPage
}
}
UM.TooltipArea {
width: childrenRect.width
height: childrenRect.height
text: catalog.i18nc("@info:tooltip","Should opened files be scaled up if they are extremely small?")
CheckBox
{
id: scaleTinyCheckbox
text: catalog.i18nc("@option:check","Scale extremely small files")
checked: boolCheck(UM.Preferences.getValue("mesh/scale_tiny_meshes"))
onCheckedChanged: UM.Preferences.setValue("mesh/scale_tiny_meshes", checked)
}
}
UM.TooltipArea {
width: childrenRect.width
height: childrenRect.height