mirror of
https://github.com/Physton/sd-webui-prompt-all-in-one.git
synced 2026-05-01 03:31:41 +00:00
allow negative tag weight
This commit is contained in:
@@ -304,7 +304,6 @@ export default {
|
||||
getTagWeightNum(tag) {
|
||||
const match = tag.match(this.weightNumRegex)
|
||||
let weightNum = match ? parseFloat(match[2]) : 0
|
||||
weightNum = weightNum >= 0 ? weightNum : 0
|
||||
return weightNum
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user