mirror of
https://github.com/JannisX11/blockbench.git
synced 2024-11-27 04:21:46 +08:00
Fix angle dialogs not opening
This commit is contained in:
parent
7795011fd4
commit
ceab756bf6
@ -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()
|
||||
|
@ -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'
|
||||
}},
|
||||
|
Loading…
Reference in New Issue
Block a user