fix changing valtype to shadow breaking everything in its wake
This commit is contained in:
parent
f6f2e14c19
commit
f46adb6724
|
@ -616,16 +616,23 @@ export default {
|
||||||
return virtualDirectives[selectedVirtualDirectiveId.value].valType
|
return virtualDirectives[selectedVirtualDirectiveId.value].valType
|
||||||
},
|
},
|
||||||
set (value) {
|
set (value) {
|
||||||
virtualDirectives[selectedVirtualDirectiveId.value].valType = value
|
const newValType = value
|
||||||
|
let newValue
|
||||||
switch (value) {
|
switch (value) {
|
||||||
case 'shadow':
|
case 'shadow':
|
||||||
virtualDirectives[selectedVirtualDirectiveId.value].value = '0 0 0 #000000'
|
newValue = '0 0 0 #000000 / 1'
|
||||||
break
|
break
|
||||||
case 'color':
|
case 'color':
|
||||||
virtualDirectives[selectedVirtualDirectiveId.value].value = '#000000'
|
newValue = '#000000'
|
||||||
break
|
break
|
||||||
default:
|
default:
|
||||||
virtualDirectives[selectedVirtualDirectiveId.value].value = 'none'
|
newValue = 'none'
|
||||||
|
}
|
||||||
|
const newName = virtualDirectives[selectedVirtualDirectiveId.value].name
|
||||||
|
virtualDirectives[selectedVirtualDirectiveId.value] = {
|
||||||
|
name: newName,
|
||||||
|
value: newValue,
|
||||||
|
valType: newValType
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue