[REBOL] VID 'effect block not clearing properly
From: kemp::extelligence::net at: 22-Oct-2002 2:43
I'm having an inconsistent error when trying to reassign a VID 'effect block
to empty.
I'm dynamically adding a series of effects like so (simplified a bit, but
crucial points should be here):
layout [
pic1: image an-image effect []
]
pic1/effect: append pic1/effect [sharpen]
pic1/effect: append pic1/effect [luma +20]
pic1/effect: append pic1/effect [sharpen]
pic1/effect: append pic1/effect [contrast -5]
; ... all above are actually performed via button functions
All works fine so far, every time. But... I have a reset button to clear the
effects - it's function is:
reset: func [] [
pic1/effect: none ; works better!
pic1/effect: [] ; doesn't always work!
show pic1
]
This SOMETIMES works, and oddly, works more often with the 'none line in
there.
When I probe just before the show, the block is not cleared, and contains
all the effect words.
Has anyone seen this before, or have any advice?? Am I even adding the
effects properly to the block??
Thanks,
Kemp