Final render wouldn't set compositor's update_draw callback, so added NULL check
[blender.git] / source / blender / compositor / intern / COM_ExecutionGroup.cpp
index 7095ccd57b74159955bd227a7e6e3509c743fedd..ffc36281874712584646fa89f731b4e1b7ea72c6 100644 (file)
@@ -352,7 +352,8 @@ void ExecutionGroup::execute(ExecutionSystem *graph)
                                startEvaluated = true;
                                numberEvaluated++;
 
-                               bTree->update_draw(bTree->udh);
+                               if (bTree->update_draw)
+                                       bTree->update_draw(bTree->udh);
                        }
                        else if (state == COM_ES_SCHEDULED) {
                                finished = false;