rgb: don't pass alpha when not set
This commit is contained in:
parent
fa3697fa0d
commit
b779156547
1 changed files with 3 additions and 1 deletions
|
|
@ -147,7 +147,9 @@ module.exports = class Rgb extends Pad {
|
|||
}
|
||||
|
||||
if (rgb.r != this.value[0] || rgb.g != this.value[1] || rgb.b != this.value[2]) {
|
||||
this.setValue([rgb.r, rgb.g, rgb.b, this.alpha.value],{send:true,sync:true,dragged:true,nohue:!hue})
|
||||
var value = [rgb.r, rgb.g, rgb.b]
|
||||
if (this.getProp('alpha')) value.push(this.alpha.value)
|
||||
this.setValue(value, {send:true,sync:true,dragged:true,nohue:!hue})
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue