Fix angle dialogs not opening

This commit is contained in:
JannisX11 2023-04-07 22:14:44 +02:00
parent 7795011fd4
commit ceab756bf6
2 changed files with 3 additions and 3 deletions

View File

@ -253,7 +253,7 @@ function buildForm(dialog) {
bar.append(group)
for (let i = 0; i < (data.dimensions || 3); i++) {
let numeric_input = new Interface.CustomElements.NumericInput(form_id + '_' + i, {
value: data.value[i],
value: data.value ? data.value[i] : 0,
min: data.min, max: data.max, step: data.step,
onChange() {
dialog.updateFormValues()

View File

@ -629,7 +629,7 @@ class Preview {
orthographic: 'dialog.save_angle.projection.orthographic'
}},
divider1: '_',
rotation_mode: {label: 'dialog.save_angle.rotation_mode', type: 'select', value: rotation_mode, options: {
rotation_mode: {label: 'dialog.save_angle.rotation_mode', type: 'inline_select', value: rotation_mode, options: {
target: 'dialog.save_angle.target',
rotation: 'dialog.save_angle.rotation'
}},
@ -1493,7 +1493,7 @@ function editCameraPreset(preset, presets) {
orthographic: 'dialog.save_angle.projection.orthographic'
}},
divider1: '_',
rotation_mode: {label: 'dialog.save_angle.rotation_mode', type: 'select', value: rotation_mode, options: {
rotation_mode: {label: 'dialog.save_angle.rotation_mode', type: 'inline_select', value: rotation_mode, options: {
target: 'dialog.save_angle.target',
rotation: 'dialog.save_angle.rotation'
}},