[Error] face stretch rendering plugin was given an empty batch
Hi so im getting the error:
face stretch rendering plugin was given an empty batch
When disabling/enabling objects in a script that have Face Insets and Liquidfy components on them.
Here is the script
// -----JS CODE-----
//@input SceneObject[] objs
var event = script.createEvent("TapEvent");
var index = 0;
var objTodisable = 0;
event.bind(function(eventData)
{
Cycle();
});
function Cycle()
{
objTodisable = index;
index++;
if(index > script.objs.length -1)
{
index = 0;
}
if(script.objs[index].enabled == false)
script.objs[index].enabled = true;
if(script.objs[objTodisable].enabled == true)
script.objs[objTodisable].enabled = false;
}
Any ideas on how to fix this erorr?
Hi Ethan,
Can you share us a minimal version of this project? I am not able to reproduce:
By the way, in case it is helpful: https://support.lensstudio.snapchat.com/hc/en-us/community/posts/115020451643-Make-Things-Change-on-Tap
Cheers,
Jonathan