Mango request: added an input node to use track's position in compositor
[blender-staging.git] / source / blender / compositor / nodes / COM_TrackPositionNode.cpp
index c692bb4cb987623d130f508c1770fb9654c37b7f..243f63a014967deddc6c8f4fdbd842c27d1cf770 100644 (file)
@@ -52,12 +52,14 @@ void TrackPositionNode::convertToOperations(ExecutionSystem *graph, CompositorCo
        operationX->setTrackName(trackpos_data->track_name);
        operationX->setFramenumber(context->getFramenumber());
        operationX->setAxis(0);
+       operationX->setRelative(editorNode->custom1);
 
        operationY->setMovieClip(clip);
        operationY->setTrackingObject(trackpos_data->tracking_object);
        operationY->setTrackName(trackpos_data->track_name);
        operationY->setFramenumber(context->getFramenumber());
        operationY->setAxis(1);
+       operationY->setRelative(editorNode->custom1);
 
        outputX->relinkConnections(operationX->getOutputSocket());
        outputY->relinkConnections(operationY->getOutputSocket());