fix custom watermark issue
a fix for better backwards compatibility made reading the size not work as well. new build_custom_watermark_blend function resolves both problems
This commit is contained in:
@@ -1101,19 +1101,6 @@ set_watermark_blend := {
|
||||
}
|
||||
spotlight_watermark_blend := {
|
||||
face := [1:card.card_color, 2:card.card_color_2, 3:card.card_color_3][face]
|
||||
if type_of(input) == type_of("string") then (
|
||||
array := split_comma(input)
|
||||
input := array.0
|
||||
if length(array) > 1 then (
|
||||
px := px_split(array.2)
|
||||
if length(px) > 2
|
||||
then l := 0
|
||||
else (
|
||||
l := px.0
|
||||
h := px.1
|
||||
)
|
||||
)
|
||||
)
|
||||
|
||||
if l < 1 or h < 1 or l > 1024 or h > 1024 then (
|
||||
input
|
||||
|
||||
Reference in New Issue
Block a user