Cannot enlarge size of stencil GUI object (SOLVED)

I’m trying to animate the size of clipping node and the animation does nothing. Setting its size with gui.set_size works as intended.

This is the code that fails:

gui.animate(self.stencil, "size", vmath.vector3(0), gui.EASING_INEXPO, close_duration, close_delay);

UPDATE: Apparently I can’t get set_size to work as well. It’s like the stencil buffer isn’t cleared somehow. I can make the stencil bigger, but I can’t make it smaller. This is weird, since I do clear the stencil buffer in my render script to 0 (left as is from the default render script).

UPDATE 2: My render script was apparently out of date and I was having the same issue as in this thread

4 Likes