Final render wouldn't set compositor's update_draw callback, so added NULL check
[blender.git] / source / blender / compositor / intern / COM_NodeOperation.h
index b0cc24fc487ab9b2bafae88e31ff5e3fa2136adb..f856d8e6a1148ecf2d3557bede181c7fb3e4df41 100644 (file)
@@ -248,7 +248,8 @@ public:
        }
 
        inline void updateDraw() {
-               this->m_btree->update_draw(this->m_btree->udh);
+               if (this->m_btree->update_draw)
+                       this->m_btree->update_draw(this->m_btree->udh);
        }
 protected:
        NodeOperation();