From ef8e5b1a427b473543fe3c38819d2cef4ee019b2 Mon Sep 17 00:00:00 2001 From: Comment Date: Thu, 9 May 2013 23:31:09 +0100 Subject: thinkingcd ../rotor/ --- rotord/rotor.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/rotord/rotor.h b/rotord/rotor.h index f06af2c..407d57c 100755 --- a/rotord/rotor.h +++ b/rotord/rotor.h @@ -622,11 +622,12 @@ namespace Rotor { else ++i; } - image->setup(frame.w,frame.h); + //if frame has already been calculated just return it + if (image) delete image; if (image_inputs.size()) { if (image_inputs[0]->connection){ if (LUT) { - Image *in= (((Image_node*)image_inputs[0]->connection)->get_output(frame)); + (*image)= *(((Image_node*)image_inputs[0]->connection)->get_output(frame)); for (int i=0;iRGBdata[i]=LUT[in->RGBdata[i]]; } -- cgit v1.2.3