added always update to internal effects api

This commit is contained in:
itsmattkc
2018-11-20 08:54:59 +11:00
parent 97ef45ad00
commit 11710aea6f
2 changed files with 4 additions and 2 deletions
+3 -2
View File
@@ -240,7 +240,8 @@ Effect::Effect(Clip* c, const EffectMeta *em) :
glslProgram(NULL),
texture(NULL),
isOpen(false),
bound(false)
bound(false),
enable_always_update(false)
{
// set up base UI
container = new CollapsibleWidget();
@@ -809,7 +810,7 @@ GLuint Effect::process_superimpose(double timecode) {
recreate_texture = true;
}
if (valueHasChanged(timecode) || recreate_texture) {
if (valueHasChanged(timecode) || recreate_texture || enable_always_update) {
redraw(timecode);
}