Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2012-03-22 11:26:09 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-03-22 11:26:09 +0400
commit4c3bb77012024a3f14181eafe850b4d68bca1191 (patch)
tree0b90fefff48b03ad117c5e16d65f6e653ff5f57b /source/blender/editors/space_clip
parent675628d24deba0afdc3da5b7a5bc802b13506251 (diff)
style cleanup: spaces aroudn operators for operator definitions.
Diffstat (limited to 'source/blender/editors/space_clip')
-rw-r--r--source/blender/editors/space_clip/clip_graph_ops.c42
-rw-r--r--source/blender/editors/space_clip/clip_ops.c134
-rw-r--r--source/blender/editors/space_clip/clip_toolbar.c20
-rw-r--r--source/blender/editors/space_clip/tracking_ops.c444
4 files changed, 320 insertions, 320 deletions
diff --git a/source/blender/editors/space_clip/clip_graph_ops.c b/source/blender/editors/space_clip/clip_graph_ops.c
index d75c14df054..0b8b4724062 100644
--- a/source/blender/editors/space_clip/clip_graph_ops.c
+++ b/source/blender/editors/space_clip/clip_graph_ops.c
@@ -287,17 +287,17 @@ static int select_invoke(bContext *C, wmOperator *op, wmEvent *event)
void CLIP_OT_graph_select(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Select";
- ot->description= "Select graph curves";
- ot->idname= "CLIP_OT_graph_select";
+ ot->name = "Select";
+ ot->description = "Select graph curves";
+ ot->idname = "CLIP_OT_graph_select";
/* api callbacks */
- ot->exec= select_exec;
- ot->invoke= select_invoke;
- ot->poll= ED_space_clip_graph_poll;
+ ot->exec = select_exec;
+ ot->invoke = select_invoke;
+ ot->poll = ED_space_clip_graph_poll;
/* flags */
- ot->flag= OPTYPE_UNDO;
+ ot->flag = OPTYPE_UNDO;
/* properties */
RNA_def_float_vector(ot->srna, "location", 2, NULL, -FLT_MAX, FLT_MAX,
@@ -453,7 +453,7 @@ void CLIP_OT_graph_select_all_markers(wmOperatorType *ot)
ot->poll = ED_space_clip_graph_poll;
/* flags */
- ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+ ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
WM_operator_properties_select_all(ot);
}
@@ -477,17 +477,17 @@ static int delete_curve_exec(bContext *C, wmOperator *UNUSED(op))
void CLIP_OT_graph_delete_curve(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Delete Curve";
- ot->description= "Delete selected curves";
- ot->idname= "CLIP_OT_graph_delete_curve";
+ ot->name = "Delete Curve";
+ ot->description = "Delete selected curves";
+ ot->idname = "CLIP_OT_graph_delete_curve";
/* api callbacks */
- ot->invoke= WM_operator_confirm;
- ot->exec= delete_curve_exec;
- ot->poll= ED_space_clip_poll;
+ ot->invoke = WM_operator_confirm;
+ ot->exec = delete_curve_exec;
+ ot->poll = ED_space_clip_poll;
/* flags */
- ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+ ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
}
/******************** delete knot operator ********************/
@@ -519,16 +519,16 @@ static int delete_knot_exec(bContext *C, wmOperator *UNUSED(op))
void CLIP_OT_graph_delete_knot(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Delete Knot";
- ot->description= "Delete curve knots";
- ot->idname= "CLIP_OT_graph_delete_knot";
+ ot->name = "Delete Knot";
+ ot->description = "Delete curve knots";
+ ot->idname = "CLIP_OT_graph_delete_knot";
/* api callbacks */
- ot->exec= delete_knot_exec;
- ot->poll= ED_space_clip_graph_poll;
+ ot->exec = delete_knot_exec;
+ ot->poll = ED_space_clip_graph_poll;
/* flags */
- ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+ ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
}
/******************** view all operator ********************/
diff --git a/source/blender/editors/space_clip/clip_ops.c b/source/blender/editors/space_clip/clip_ops.c
index 552c62936b6..c9428737770 100644
--- a/source/blender/editors/space_clip/clip_ops.c
+++ b/source/blender/editors/space_clip/clip_ops.c
@@ -221,17 +221,17 @@ static int open_invoke(bContext *C, wmOperator *op, wmEvent *UNUSED(event))
void CLIP_OT_open(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Open Clip";
- ot->description= "Load a sequence of frames or a movie file";
- ot->idname= "CLIP_OT_open";
+ ot->name = "Open Clip";
+ ot->description = "Load a sequence of frames or a movie file";
+ ot->idname = "CLIP_OT_open";
/* api callbacks */
- ot->exec= open_exec;
- ot->invoke= open_invoke;
- ot->cancel= open_cancel;
+ ot->exec = open_exec;
+ ot->invoke = open_invoke;
+ ot->cancel = open_cancel;
/* flags */
- ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+ ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
/* properties */
WM_operator_properties_filesel(ot, FOLDERFILE|IMAGEFILE|MOVIEFILE, FILE_SPECIAL, FILE_OPENFILE, WM_FILESEL_FILEPATH|WM_FILESEL_RELPATH, FILE_DEFAULTDISPLAY);
@@ -256,12 +256,12 @@ static int reload_exec(bContext *C, wmOperator *UNUSED(op))
void CLIP_OT_reload(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Reload Clip";
- ot->description= "Reload clip";
- ot->idname= "CLIP_OT_reload";
+ ot->name = "Reload Clip";
+ ot->description = "Reload clip";
+ ot->idname = "CLIP_OT_reload";
/* api callbacks */
- ot->exec= reload_exec;
+ ot->exec = reload_exec;
}
/********************** view pan operator *********************/
@@ -390,18 +390,18 @@ static int view_pan_cancel(bContext *C, wmOperator *op)
void CLIP_OT_view_pan(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "View Pan";
- ot->idname= "CLIP_OT_view_pan";
+ ot->name = "View Pan";
+ ot->idname = "CLIP_OT_view_pan";
/* api callbacks */
- ot->exec= view_pan_exec;
- ot->invoke= view_pan_invoke;
- ot->modal= view_pan_modal;
- ot->cancel= view_pan_cancel;
- ot->poll= ED_space_clip_poll;
+ ot->exec = view_pan_exec;
+ ot->invoke = view_pan_invoke;
+ ot->modal = view_pan_modal;
+ ot->cancel = view_pan_cancel;
+ ot->poll = ED_space_clip_poll;
/* flags */
- ot->flag= OPTYPE_BLOCKING;
+ ot->flag = OPTYPE_BLOCKING;
/* properties */
RNA_def_float_vector(ot->srna, "offset", 2, NULL, -FLT_MAX, FLT_MAX,
@@ -514,18 +514,18 @@ static int view_zoom_cancel(bContext *C, wmOperator *op)
void CLIP_OT_view_zoom(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "View Zoom";
- ot->idname= "CLIP_OT_view_zoom";
+ ot->name = "View Zoom";
+ ot->idname = "CLIP_OT_view_zoom";
/* api callbacks */
- ot->exec= view_zoom_exec;
- ot->invoke= view_zoom_invoke;
- ot->modal= view_zoom_modal;
- ot->cancel= view_zoom_cancel;
- ot->poll= ED_space_clip_poll;
+ ot->exec = view_zoom_exec;
+ ot->invoke = view_zoom_invoke;
+ ot->modal = view_zoom_modal;
+ ot->cancel = view_zoom_cancel;
+ ot->poll = ED_space_clip_poll;
/* flags */
- ot->flag= OPTYPE_BLOCKING|OPTYPE_GRAB_POINTER;
+ ot->flag = OPTYPE_BLOCKING|OPTYPE_GRAB_POINTER;
/* properties */
RNA_def_float(ot->srna, "factor", 0.0f, 0.0f, FLT_MAX,
@@ -562,13 +562,13 @@ static int view_zoom_in_invoke(bContext *C, wmOperator *op, wmEvent *event)
void CLIP_OT_view_zoom_in(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "View Zoom In";
- ot->idname= "CLIP_OT_view_zoom_in";
+ ot->name = "View Zoom In";
+ ot->idname = "CLIP_OT_view_zoom_in";
/* api callbacks */
- ot->exec= view_zoom_in_exec;
- ot->invoke= view_zoom_in_invoke;
- ot->poll= ED_space_clip_poll;
+ ot->exec = view_zoom_in_exec;
+ ot->invoke = view_zoom_in_invoke;
+ ot->poll = ED_space_clip_poll;
/* properties */
RNA_def_float_vector(ot->srna, "location", 2, NULL, -FLT_MAX, FLT_MAX, "Location", "Cursor location in screen coordinates", -10.0f, 10.0f);
@@ -602,13 +602,13 @@ static int view_zoom_out_invoke(bContext *C, wmOperator *op, wmEvent *event)
void CLIP_OT_view_zoom_out(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "View Zoom Out";
- ot->idname= "CLIP_OT_view_zoom_out";
+ ot->name = "View Zoom Out";
+ ot->idname = "CLIP_OT_view_zoom_out";
/* api callbacks */
- ot->exec= view_zoom_out_exec;
- ot->invoke= view_zoom_out_invoke;
- ot->poll= ED_space_clip_poll;
+ ot->exec = view_zoom_out_exec;
+ ot->invoke = view_zoom_out_invoke;
+ ot->poll = ED_space_clip_poll;
/* properties */
RNA_def_float_vector(ot->srna, "location", 2, NULL, -FLT_MAX, FLT_MAX, "Location", "Cursor location in normalised (0.0-1.0) coordinates", -10.0f, 10.0f);
@@ -635,12 +635,12 @@ static int view_zoom_ratio_exec(bContext *C, wmOperator *op)
void CLIP_OT_view_zoom_ratio(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "View Zoom Ratio";
- ot->idname= "CLIP_OT_view_zoom_ratio";
+ ot->name = "View Zoom Ratio";
+ ot->idname = "CLIP_OT_view_zoom_ratio";
/* api callbacks */
- ot->exec= view_zoom_ratio_exec;
- ot->poll= ED_space_clip_poll;
+ ot->exec = view_zoom_ratio_exec;
+ ot->poll = ED_space_clip_poll;
/* properties */
RNA_def_float(ot->srna, "ratio", 0.0f, 0.0f, FLT_MAX,
@@ -702,12 +702,12 @@ static int view_all_exec(bContext *C, wmOperator *op)
void CLIP_OT_view_all(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "View All";
- ot->idname= "CLIP_OT_view_all";
+ ot->name = "View All";
+ ot->idname = "CLIP_OT_view_all";
/* api callbacks */
- ot->exec= view_all_exec;
- ot->poll= ED_space_clip_poll;
+ ot->exec = view_all_exec;
+ ot->poll = ED_space_clip_poll;
/* properties */
RNA_def_boolean(ot->srna, "fit_view", 0, "Fit View", "Fit frame to the viewport");
@@ -732,12 +732,12 @@ static int view_selected_exec(bContext *C, wmOperator *UNUSED(op))
void CLIP_OT_view_selected(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "View Selected";
- ot->idname= "CLIP_OT_view_selected";
+ ot->name = "View Selected";
+ ot->idname = "CLIP_OT_view_selected";
/* api callbacks */
- ot->exec= view_selected_exec;
- ot->poll= ED_space_clip_poll;
+ ot->exec = view_selected_exec;
+ ot->poll = ED_space_clip_poll;
}
/********************** change frame operator *********************/
@@ -836,18 +836,18 @@ static int change_frame_modal(bContext *C, wmOperator *op, wmEvent *event)
void CLIP_OT_change_frame(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Change frame";
- ot->idname= "CLIP_OT_change_frame";
- ot->description= "Interactively change the current frame number";
+ ot->name = "Change frame";
+ ot->idname = "CLIP_OT_change_frame";
+ ot->description = "Interactively change the current frame number";
/* api callbacks */
- ot->exec= change_frame_exec;
- ot->invoke= change_frame_invoke;
- ot->modal= change_frame_modal;
- ot->poll= change_frame_poll;
+ ot->exec = change_frame_exec;
+ ot->invoke = change_frame_invoke;
+ ot->modal = change_frame_modal;
+ ot->poll = change_frame_poll;
/* flags */
- ot->flag= OPTYPE_BLOCKING|OPTYPE_UNDO;
+ ot->flag = OPTYPE_BLOCKING|OPTYPE_UNDO;
/* rna */
RNA_def_int(ot->srna, "frame", 0, MINAFRAME, MAXFRAME, "Frame", "", MINAFRAME, MAXFRAME);
@@ -1002,16 +1002,16 @@ static int clip_rebuild_proxy_exec(bContext *C, wmOperator *UNUSED(op))
void CLIP_OT_rebuild_proxy(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Rebuild Proxy and Timecode Indices";
- ot->idname= "CLIP_OT_rebuild_proxy";
- ot->description= "Rebuild all selected proxies and timecode indices in the background";
+ ot->name = "Rebuild Proxy and Timecode Indices";
+ ot->idname = "CLIP_OT_rebuild_proxy";
+ ot->description = "Rebuild all selected proxies and timecode indices in the background";
/* api callbacks */
- ot->exec= clip_rebuild_proxy_exec;
- ot->poll= ED_space_clip_poll;
+ ot->exec = clip_rebuild_proxy_exec;
+ ot->poll = ED_space_clip_poll;
/* flags */
- ot->flag= OPTYPE_REGISTER;
+ ot->flag = OPTYPE_REGISTER;
}
/********************** mode set operator *********************/
@@ -1044,14 +1044,14 @@ void CLIP_OT_mode_set(wmOperatorType *ot)
/* identifiers */
- ot->name= "Set Clip Mode";
+ ot->name = "Set Clip Mode";
ot->description = "Set the clip interaction mode";
- ot->idname= "CLIP_OT_mode_set";
+ ot->idname = "CLIP_OT_mode_set";
/* api callbacks */
- ot->exec= mode_set_exec;
+ ot->exec = mode_set_exec;
- ot->poll= ED_space_clip_poll;
+ ot->poll = ED_space_clip_poll;
/* properties */
RNA_def_enum(ot->srna, "mode", mode_items, SC_MODE_TRACKING, "Mode", "");
diff --git a/source/blender/editors/space_clip/clip_toolbar.c b/source/blender/editors/space_clip/clip_toolbar.c
index d90f429a206..287edfa3f1c 100644
--- a/source/blender/editors/space_clip/clip_toolbar.c
+++ b/source/blender/editors/space_clip/clip_toolbar.c
@@ -101,13 +101,13 @@ static int properties_exec(bContext *C, wmOperator *UNUSED(op))
void CLIP_OT_properties(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Properties";
- ot->description= "Toggle clip properties panel";
- ot->idname= "CLIP_OT_properties";
+ ot->name = "Properties";
+ ot->description = "Toggle clip properties panel";
+ ot->idname = "CLIP_OT_properties";
/* api callbacks */
- ot->exec= properties_exec;
- ot->poll= properties_poll;
+ ot->exec = properties_exec;
+ ot->poll = properties_poll;
}
/************************** tools ******************************/
@@ -175,13 +175,13 @@ static int tools_exec(bContext *C, wmOperator *UNUSED(op))
void CLIP_OT_tools(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Tools";
- ot->description= "Toggle clip tools panel";
- ot->idname= "CLIP_OT_tools";
+ ot->name = "Tools";
+ ot->description = "Toggle clip tools panel";
+ ot->idname = "CLIP_OT_tools";
/* api callbacks */
- ot->exec= tools_exec;
- ot->poll= tools_poll;
+ ot->exec = tools_exec;
+ ot->poll = tools_poll;
}
/************************** redo panel ******************************/
diff --git a/source/blender/editors/space_clip/tracking_ops.c b/source/blender/editors/space_clip/tracking_ops.c
index 15bbcd910b6..f69e964e045 100644
--- a/source/blender/editors/space_clip/tracking_ops.c
+++ b/source/blender/editors/space_clip/tracking_ops.c
@@ -149,17 +149,17 @@ static int add_marker_invoke(bContext *C, wmOperator *op, wmEvent *event)
void CLIP_OT_add_marker(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Add Marker";
- ot->idname= "CLIP_OT_add_marker";
- ot->description= "Place new marker at specified location";
+ ot->name = "Add Marker";
+ ot->idname = "CLIP_OT_add_marker";
+ ot->description = "Place new marker at specified location";
/* api callbacks */
- ot->invoke= add_marker_invoke;
- ot->exec= add_marker_exec;
- ot->poll= space_clip_frame_poll;
+ ot->invoke = add_marker_invoke;
+ ot->exec = add_marker_exec;
+ ot->poll = space_clip_frame_poll;
/* flags */
- ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+ ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
/* properties */
RNA_def_float_vector(ot->srna, "location", 2, NULL, -FLT_MIN, FLT_MAX,
@@ -194,17 +194,17 @@ static int delete_track_exec(bContext *C, wmOperator *UNUSED(op))
void CLIP_OT_delete_track(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Delete Track";
- ot->idname= "CLIP_OT_delete_track";
- ot->description= "Delete selected tracks";
+ ot->name = "Delete Track";
+ ot->idname = "CLIP_OT_delete_track";
+ ot->description = "Delete selected tracks";
/* api callbacks */
- ot->invoke= WM_operator_confirm;
- ot->exec= delete_track_exec;
- ot->poll= ED_space_clip_poll;
+ ot->invoke = WM_operator_confirm;
+ ot->exec = delete_track_exec;
+ ot->poll = ED_space_clip_poll;
/* flags */
- ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+ ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
}
/********************** delete marker operator *********************/
@@ -245,17 +245,17 @@ static int delete_marker_exec(bContext *C, wmOperator *UNUSED(op))
void CLIP_OT_delete_marker(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Delete Marker";
- ot->idname= "CLIP_OT_delete_marker";
- ot->description= "Delete marker for current frame from selected tracks";
+ ot->name = "Delete Marker";
+ ot->idname = "CLIP_OT_delete_marker";
+ ot->description = "Delete marker for current frame from selected tracks";
/* api callbacks */
- ot->invoke= WM_operator_confirm;
- ot->exec= delete_marker_exec;
- ot->poll= ED_space_clip_poll;
+ ot->invoke = WM_operator_confirm;
+ ot->exec = delete_marker_exec;
+ ot->poll = ED_space_clip_poll;
/* flags */
- ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+ ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
}
/********************** slide marker operator *********************/
@@ -621,17 +621,17 @@ static int slide_marker_modal(bContext *C, wmOperator *op, wmEvent *event)
void CLIP_OT_slide_marker(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Slide Marker";
- ot->description= "Slide marker areas";
- ot->idname= "CLIP_OT_slide_marker";
+ ot->name = "Slide Marker";
+ ot->description = "Slide marker areas";
+ ot->idname = "CLIP_OT_slide_marker";
/* api callbacks */
- ot->poll= space_clip_frame_poll;
- ot->invoke= slide_marker_invoke;
- ot->modal= slide_marker_modal;
+ ot->poll = space_clip_frame_poll;
+ ot->invoke = slide_marker_invoke;
+ ot->modal = slide_marker_modal;
/* flags */
- ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO|OPTYPE_GRAB_POINTER|OPTYPE_BLOCKING;
+ ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO|OPTYPE_GRAB_POINTER|OPTYPE_BLOCKING;
/* properties */
RNA_def_float_vector(ot->srna, "offset", 2, NULL, -FLT_MAX, FLT_MAX,
@@ -827,17 +827,17 @@ static int select_invoke(bContext *C, wmOperator *op, wmEvent *event)
void CLIP_OT_select(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Select";
- ot->description= "Select tracking markers";
- ot->idname= "CLIP_OT_select";
+ ot->name = "Select";
+ ot->description = "Select tracking markers";
+ ot->idname = "CLIP_OT_select";
/* api callbacks */
- ot->exec= select_exec;
- ot->invoke= select_invoke;
- ot->poll= ED_space_clip_poll;
+ ot->exec = select_exec;
+ ot->invoke = select_invoke;
+ ot->poll = ED_space_clip_poll;
/* flags */
- ot->flag= OPTYPE_UNDO;
+ ot->flag = OPTYPE_UNDO;
/* properties */
RNA_def_boolean(ot->srna, "extend", 0,
@@ -903,18 +903,18 @@ static int border_select_exec(bContext *C, wmOperator *op)
void CLIP_OT_select_border(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Border Select";
- ot->description= "Select markers using border selection";
- ot->idname= "CLIP_OT_select_border";
+ ot->name = "Border Select";
+ ot->description = "Select markers using border selection";
+ ot->idname = "CLIP_OT_select_border";
/* api callbacks */
- ot->invoke= WM_border_select_invoke;
- ot->exec= border_select_exec;
- ot->modal= WM_border_select_modal;
- ot->poll= ED_space_clip_poll;
+ ot->invoke = WM_border_select_invoke;
+ ot->exec = border_select_exec;
+ ot->modal = WM_border_select_modal;
+ ot->poll = ED_space_clip_poll;
/* flags */
- ot->flag= OPTYPE_UNDO;
+ ot->flag = OPTYPE_UNDO;
/* properties */
WM_operator_properties_gesture_border(ot, TRUE);
@@ -987,18 +987,18 @@ static int circle_select_exec(bContext *C, wmOperator *op)
void CLIP_OT_select_circle(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Circle Select";
- ot->description= "Select markers using circle selection";
- ot->idname= "CLIP_OT_select_circle";
+ ot->name = "Circle Select";
+ ot->description = "Select markers using circle selection";
+ ot->idname = "CLIP_OT_select_circle";
/* api callbacks */
- ot->invoke= WM_gesture_circle_invoke;
- ot->modal= WM_gesture_circle_modal;
- ot->exec= circle_select_exec;
- ot->poll= ED_space_clip_poll;
+ ot->invoke = WM_gesture_circle_invoke;
+ ot->modal = WM_gesture_circle_modal;
+ ot->exec = circle_select_exec;
+ ot->poll = ED_space_clip_poll;
/* flags */
- ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+ ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
/* properties */
RNA_def_int(ot->srna, "x", 0, INT_MIN, INT_MAX, "X", "", INT_MIN, INT_MAX);
@@ -1080,16 +1080,16 @@ static int select_all_exec(bContext *C, wmOperator *op)
void CLIP_OT_select_all(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "(De)select All";
- ot->description= "Change selection of all tracking markers";
- ot->idname= "CLIP_OT_select_all";
+ ot->name = "(De)select All";
+ ot->description = "Change selection of all tracking markers";
+ ot->idname = "CLIP_OT_select_all";
/* api callbacks */
- ot->exec= select_all_exec;
- ot->poll= ED_space_clip_poll;
+ ot->exec = select_all_exec;
+ ot->poll = ED_space_clip_poll;
/* flags */
- ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+ ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
WM_operator_properties_select_all(ot);
}
@@ -1169,16 +1169,16 @@ void CLIP_OT_select_grouped(wmOperatorType *ot)
};
/* identifiers */
- ot->name= "Select Grouped";
- ot->description= "Select all tracks from specified group";
- ot->idname= "CLIP_OT_select_grouped";
+ ot->name = "Select Grouped";
+ ot->description = "Select all tracks from specified group";
+ ot->idname = "CLIP_OT_select_grouped";
/* api callbacks */
- ot->exec= select_groped_exec;
- ot->poll= space_clip_frame_poll;
+ ot->exec = select_groped_exec;
+ ot->poll = space_clip_frame_poll;
/* flags */
- ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+ ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
/* proeprties */
RNA_def_enum(ot->srna, "group", select_group_items, TRACK_CLEAR_REMAINED, "Action", "Clear action to execute");
@@ -1531,18 +1531,18 @@ static int track_markers_modal(bContext *C, wmOperator *UNUSED(op), wmEvent *eve
void CLIP_OT_track_markers(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Track Markers";
- ot->description= "Track selected markers";
- ot->idname= "CLIP_OT_track_markers";
+ ot->name = "Track Markers";
+ ot->description = "Track selected markers";
+ ot->idname = "CLIP_OT_track_markers";
/* api callbacks */
- ot->exec= track_markers_exec;
- ot->invoke= track_markers_invoke;
- ot->poll= space_clip_frame_poll;
- ot->modal= track_markers_modal;
+ ot->exec = track_markers_exec;
+ ot->invoke = track_markers_invoke;
+ ot->poll = space_clip_frame_poll;
+ ot->modal = track_markers_modal;
/* flags */
- ot->flag= OPTYPE_UNDO;
+ ot->flag = OPTYPE_UNDO;
/* properties */
RNA_def_boolean(ot->srna, "backwards", 0, "Backwards", "Do backwards tracking");
@@ -1753,18 +1753,18 @@ static int solve_camera_modal(bContext *C, wmOperator *UNUSED(op), wmEvent *even
void CLIP_OT_solve_camera(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Solve Camera";
- ot->description= "Solve camera motion from tracks";
- ot->idname= "CLIP_OT_solve_camera";
+ ot->name = "Solve Camera";
+ ot->description = "Solve camera motion from tracks";
+ ot->idname = "CLIP_OT_solve_camera";
/* api callbacks */
- ot->exec= solve_camera_exec;
- ot->invoke= solve_camera_invoke;
- ot->modal= solve_camera_modal;
- ot->poll= ED_space_clip_poll;
+ ot->exec = solve_camera_exec;
+ ot->invoke = solve_camera_invoke;
+ ot->modal = solve_camera_modal;
+ ot->poll = ED_space_clip_poll;
/* flags */
- ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+ ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
}
/********************** clear solution operator *********************/
@@ -1803,16 +1803,16 @@ static int clear_solution_exec(bContext *C, wmOperator *UNUSED(op))
void CLIP_OT_clear_solution(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Clear Solution";
- ot->description= "Clear all calculated data";
- ot->idname= "CLIP_OT_clear_solution";
+ ot->name = "Clear Solution";
+ ot->description = "Clear all calculated data";
+ ot->idname = "CLIP_OT_clear_solution";
/* api callbacks */
- ot->exec= clear_solution_exec;
- ot->poll= ED_space_clip_poll;
+ ot->exec = clear_solution_exec;
+ ot->poll = ED_space_clip_poll;
/* flags */
- ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+ ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
}
/********************** clear track operator *********************/
@@ -1855,16 +1855,16 @@ void CLIP_OT_clear_track_path(wmOperatorType *ot)
};
/* identifiers */
- ot->name= "Clear Track Path";
- ot->description= "Clear tracks after/before current position or clear the whole track";
- ot->idname= "CLIP_OT_clear_track_path";
+ ot->name = "Clear Track Path";
+ ot->description = "Clear tracks after/before current position or clear the whole track";
+ ot->idname = "CLIP_OT_clear_track_path";
/* api callbacks */
- ot->exec= clear_track_path_exec;
- ot->poll= ED_space_clip_poll;
+ ot->exec = clear_track_path_exec;
+ ot->poll = ED_space_clip_poll;
/* flags */
- ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+ ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
/* proeprties */
RNA_def_enum(ot->srna, "action", clear_path_actions, TRACK_CLEAR_REMAINED, "Action", "Clear action to execute");
@@ -1911,16 +1911,16 @@ void CLIP_OT_disable_markers(wmOperatorType *ot)
};
/* identifiers */
- ot->name= "Disable Markers";
- ot->description= "Disable/enable selected markers";
- ot->idname= "CLIP_OT_disable_markers";
+ ot->name = "Disable Markers";
+ ot->description = "Disable/enable selected markers";
+ ot->idname = "CLIP_OT_disable_markers";
/* api callbacks */
- ot->exec= disable_markers_exec;
- ot->poll= ED_space_clip_poll;
+ ot->exec = disable_markers_exec;
+ ot->poll = ED_space_clip_poll;
/* flags */
- ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+ ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
/* properties */
RNA_def_enum(ot->srna, "action", actions_items, 0, "Action", "Disable action to execute");
@@ -2131,16 +2131,16 @@ static int set_origin_exec(bContext *C, wmOperator *op)
void CLIP_OT_set_origin(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Set Origin";
- ot->description= "Set active marker as origin by moving camera (or it's parent if present) in 3D space";
- ot->idname= "CLIP_OT_set_origin";
+ ot->name = "Set Origin";
+ ot->description = "Set active marker as origin by moving camera (or it's parent if present) in 3D space";
+ ot->idname = "CLIP_OT_set_origin";
/* api callbacks */
- ot->exec= set_origin_exec;
- ot->poll= set_orientation_poll;
+ ot->exec = set_origin_exec;
+ ot->poll = set_orientation_poll;
/* flags */
- ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+ ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
/* properties */
RNA_def_boolean(ot->srna, "use_median", 0, "Use Median", "Set origin to median point of selected bundles");
@@ -2377,16 +2377,16 @@ void CLIP_OT_set_plane(wmOperatorType *ot)
};
/* identifiers */
- ot->name= "Set Plane";
- ot->description= "Set plane based on 3 selected bundles by moving camera (or it's parent if present) in 3D space";
- ot->idname= "CLIP_OT_set_plane";
+ ot->name = "Set Plane";
+ ot->description = "Set plane based on 3 selected bundles by moving camera (or it's parent if present) in 3D space";
+ ot->idname = "CLIP_OT_set_plane";
/* api callbacks */
- ot->exec= set_plane_exec;
- ot->poll= set_orientation_poll;
+ ot->exec = set_plane_exec;
+ ot->poll = set_orientation_poll;
/* flags */
- ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+ ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
/* properties */
RNA_def_enum(ot->srna, "plane", plane_items, 0, "Plane", "Plane to be sued for orientation");
@@ -2449,16 +2449,16 @@ void CLIP_OT_set_axis(wmOperatorType *ot)
};
/* identifiers */
- ot->name= "Set Axis";
- ot->description= "Set direction of scene axis rotating camera (or it's parent if present) and assuming selected track lies on real axis joining it with the origin";
- ot->idname= "CLIP_OT_set_axis";
+ ot->name = "Set Axis";
+ ot->description = "Set direction of scene axis rotating camera (or it's parent if present) and assuming selected track lies on real axis joining it with the origin";
+ ot->idname = "CLIP_OT_set_axis";
/* api callbacks */
- ot->exec= set_axis_exec;
- ot->poll= set_orientation_poll;
+ ot->exec = set_axis_exec;
+ ot->poll = set_orientation_poll;
/* flags */
- ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+ ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
/* properties */
RNA_def_enum(ot->srna, "axis", axis_actions, 0, "Axis", "Axis to use to align bundle along");
@@ -2561,17 +2561,17 @@ static int set_scale_invoke(bContext *C, wmOperator *op, wmEvent *UNUSED(event))
void CLIP_OT_set_scale(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Set Scale";
- ot->description= "Set scale of scene by scaling camera (or it's parent if present)";
- ot->idname= "CLIP_OT_set_scale";
+ ot->name = "Set Scale";
+ ot->description = "Set scale of scene by scaling camera (or it's parent if present)";
+ ot->idname = "CLIP_OT_set_scale";
/* api callbacks */
- ot->exec= set_scale_exec;
- ot->invoke= set_scale_invoke;
- ot->poll= set_orientation_poll;
+ ot->exec = set_scale_exec;
+ ot->invoke = set_scale_invoke;
+ ot->poll = set_orientation_poll;
/* flags */
- ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+ ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
/* properties */
RNA_def_float(ot->srna, "distance", 0.0f, -FLT_MAX, FLT_MAX,
@@ -2613,17 +2613,17 @@ static int set_solution_scale_invoke(bContext *C, wmOperator *op, wmEvent *UNUSE
void CLIP_OT_set_solution_scale(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Set Solution Scale";
- ot->description= "Set object solution scale using distance between two selected tracks";
- ot->idname= "CLIP_OT_set_solution_scale";
+ ot->name = "Set Solution Scale";
+ ot->description = "Set object solution scale using distance between two selected tracks";
+ ot->idname = "CLIP_OT_set_solution_scale";
/* api callbacks */
- ot->exec= set_solution_scale_exec;
- ot->invoke= set_solution_scale_invoke;
- ot->poll= set_solution_scale_poll;
+ ot->exec = set_solution_scale_exec;
+ ot->invoke = set_solution_scale_invoke;
+ ot->poll = set_solution_scale_poll;
/* flags */
- ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+ ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
/* properties */
RNA_def_float(ot->srna, "distance", 0.0f, -FLT_MAX, FLT_MAX,
@@ -2654,16 +2654,16 @@ static int set_center_principal_exec(bContext *C, wmOperator *UNUSED(op))
void CLIP_OT_set_center_principal(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Set Principal to Center";
- ot->description= "Set optical center to center of footage";
- ot->idname= "CLIP_OT_set_center_principal";
+ ot->name = "Set Principal to Center";
+ ot->description = "Set optical center to center of footage";
+ ot->idname = "CLIP_OT_set_center_principal";
/* api callbacks */
- ot->exec= set_center_principal_exec;
- ot->poll= ED_space_clip_poll;
+ ot->exec = set_center_principal_exec;
+ ot->poll = ED_space_clip_poll;
/* flags */
- ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+ ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
}
/********************** hide tracks operator *********************/
@@ -2707,16 +2707,16 @@ static int hide_tracks_exec(bContext *C, wmOperator *op)
void CLIP_OT_hide_tracks(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Hide Tracks";
- ot->description= "Hide selected tracks";
- ot->idname= "CLIP_OT_hide_tracks";
+ ot->name = "Hide Tracks";
+ ot->description = "Hide selected tracks";
+ ot->idname = "CLIP_OT_hide_tracks";
/* api callbacks */
- ot->exec= hide_tracks_exec;
- ot->poll= ED_space_clip_poll;
+ ot->exec = hide_tracks_exec;
+ ot->poll = ED_space_clip_poll;
/* flags */
- ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+ ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
/* properties */
RNA_def_boolean(ot->srna, "unselected", 0, "Unselected", "Hide unselected tracks");
@@ -2746,16 +2746,16 @@ static int hide_tracks_clear_exec(bContext *C, wmOperator *UNUSED(op))
void CLIP_OT_hide_tracks_clear(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Hide Tracks Clear";
- ot->description= "Clear hide selected tracks";
- ot->idname= "CLIP_OT_hide_tracks_clear";
+ ot->name = "Hide Tracks Clear";
+ ot->description = "Clear hide selected tracks";
+ ot->idname = "CLIP_OT_hide_tracks_clear";
/* api callbacks */
- ot->exec= hide_tracks_clear_exec;
- ot->poll= ED_space_clip_poll;
+ ot->exec = hide_tracks_clear_exec;
+ ot->poll = ED_space_clip_poll;
/* flags */
- ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+ ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
}
/********************** detect features operator *********************/
@@ -2828,16 +2828,16 @@ void CLIP_OT_detect_features(wmOperatorType *ot)
};
/* identifiers */
- ot->name= "Detect Features";
- ot->description= "Automatically detect features and place markers to track";
- ot->idname= "CLIP_OT_detect_features";
+ ot->name = "Detect Features";
+ ot->description = "Automatically detect features and place markers to track";
+ ot->idname = "CLIP_OT_detect_features";
/* api callbacks */
- ot->exec= detect_features_exec;
- ot->poll= space_clip_frame_poll;
+ ot->exec = detect_features_exec;
+ ot->poll = space_clip_frame_poll;
/* flags */
- ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+ ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
/* properties */
RNA_def_enum(ot->srna, "placement", placement_items, 0, "Placement", "Placement for detected features");
@@ -2923,16 +2923,16 @@ void CLIP_OT_frame_jump(wmOperatorType *ot)
};
/* identifiers */
- ot->name= "Jump to Frame";
- ot->description= "Jump to special frame";
- ot->idname= "CLIP_OT_frame_jump";
+ ot->name = "Jump to Frame";
+ ot->description = "Jump to special frame";
+ ot->idname = "CLIP_OT_frame_jump";
/* api callbacks */
- ot->exec= frame_jump_exec;
- ot->poll= space_clip_frame_poll;
+ ot->exec = frame_jump_exec;
+ ot->poll = space_clip_frame_poll;
/* flags */
- ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+ ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
/* properties */
RNA_def_enum(ot->srna, "position", position_items, 0, "Position", "Position to jump to");
@@ -2980,16 +2980,16 @@ static int join_tracks_exec(bContext *C, wmOperator *op)
void CLIP_OT_join_tracks(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Join Tracks";
- ot->description= "Join selected tracks";
- ot->idname= "CLIP_OT_join_tracks";
+ ot->name = "Join Tracks";
+ ot->description = "Join selected tracks";
+ ot->idname = "CLIP_OT_join_tracks";
/* api callbacks */
- ot->exec= join_tracks_exec;
- ot->poll= space_clip_frame_poll;
+ ot->exec = join_tracks_exec;
+ ot->poll = space_clip_frame_poll;
/* flags */
- ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+ ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
}
/********************** lock tracks operator *********************/
@@ -3028,16 +3028,16 @@ void CLIP_OT_lock_tracks(wmOperatorType *ot)
};
/* identifiers */
- ot->name= "Lock Tracks";
- ot->description= "Lock/unlock selected tracks";
- ot->idname= "CLIP_OT_lock_tracks";
+ ot->name = "Lock Tracks";
+ ot->description = "Lock/unlock selected tracks";
+ ot->idname = "CLIP_OT_lock_tracks";
/* api callbacks */
- ot->exec= lock_tracks_exec;
- ot->poll= ED_space_clip_poll;
+ ot->exec = lock_tracks_exec;
+ ot->poll = ED_space_clip_poll;
/* flags */
- ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+ ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
/* properties */
RNA_def_enum(ot->srna, "action", actions_items, 0, "Action", "Lock action to execute");
@@ -3078,16 +3078,16 @@ static int track_copy_color_exec(bContext *C, wmOperator *UNUSED(op))
void CLIP_OT_track_copy_color(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Copy Color";
- ot->description= "Copy color to all selected tracks";
- ot->idname= "CLIP_OT_track_copy_color";
+ ot->name = "Copy Color";
+ ot->description = "Copy color to all selected tracks";
+ ot->idname = "CLIP_OT_track_copy_color";
/* api callbacks */
- ot->exec= track_copy_color_exec;
- ot->poll= ED_space_clip_poll;
+ ot->exec = track_copy_color_exec;
+ ot->poll = ED_space_clip_poll;
/* flags */
- ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+ ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
}
/********************** add 2d stabilization tracks operator *********************/
@@ -3127,16 +3127,16 @@ static int stabilize_2d_add_exec(bContext *C, wmOperator *UNUSED(op))
void CLIP_OT_stabilize_2d_add(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Add Stabilization Tracks";
- ot->description= "Add selected tracks to 2D stabilization tool";
- ot->idname= "CLIP_OT_stabilize_2d_add";
+ ot->name = "Add Stabilization Tracks";
+ ot->description = "Add selected tracks to 2D stabilization tool";
+ ot->idname = "CLIP_OT_stabilize_2d_add";
/* api callbacks */
- ot->exec= stabilize_2d_add_exec;
- ot->poll= ED_space_clip_poll;
+ ot->exec = stabilize_2d_add_exec;
+ ot->poll = ED_space_clip_poll;
/* flags */
- ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+ ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
}
/********************** remove 2d stabilization tracks operator *********************/
@@ -3187,16 +3187,16 @@ static int stabilize_2d_remove_exec(bContext *C, wmOperator *UNUSED(op))
void CLIP_OT_stabilize_2d_remove(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Remove Stabilization Track";
- ot->description= "Remove selected track from stabilization";
- ot->idname= "CLIP_OT_stabilize_2d_remove";
+ ot->name = "Remove Stabilization Track";
+ ot->description = "Remove selected track from stabilization";
+ ot->idname = "CLIP_OT_stabilize_2d_remove";
/* api callbacks */
- ot->exec= stabilize_2d_remove_exec;
- ot->poll= ED_space_clip_poll;
+ ot->exec = stabilize_2d_remove_exec;
+ ot->poll = ED_space_clip_poll;
/* flags */
- ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+ ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
}
/********************** select 2d stabilization tracks operator *********************/
@@ -3230,16 +3230,16 @@ static int stabilize_2d_select_exec(bContext *C, wmOperator *UNUSED(op))
void CLIP_OT_stabilize_2d_select(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Select Stabilization Tracks";
- ot->description= "Select track which are used for stabilization";
- ot->idname= "CLIP_OT_stabilize_2d_select";
+ ot->name = "Select Stabilization Tracks";
+ ot->description = "Select track which are used for stabilization";
+ ot->idname = "CLIP_OT_stabilize_2d_select";
/* api callbacks */
- ot->exec= stabilize_2d_select_exec;
- ot->poll= ED_space_clip_poll;
+ ot->exec = stabilize_2d_select_exec;
+ ot->poll = ED_space_clip_poll;
/* flags */
- ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+ ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
}
/********************** set 2d stabilization rotation track operator *********************/
@@ -3267,16 +3267,16 @@ static int stabilize_2d_set_rotation_exec(bContext *C, wmOperator *UNUSED(op))
void CLIP_OT_stabilize_2d_set_rotation(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Set Rotation Track";
- ot->description= "Use active track to compensate rotation when doing 2D stabilization";
- ot->idname= "CLIP_OT_stabilize_2d_set_rotation";
+ ot->name = "Set Rotation Track";
+ ot->description = "Use active track to compensate rotation when doing 2D stabilization";
+ ot->idname = "CLIP_OT_stabilize_2d_set_rotation";
/* api callbacks */
- ot->exec= stabilize_2d_set_rotation_exec;
- ot->poll= ED_space_clip_poll;
+ ot->exec = stabilize_2d_set_rotation_exec;
+ ot->poll = ED_space_clip_poll;
/* flags */
- ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+ ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
}
/********************** clean tracks operator *********************/
@@ -3457,17 +3457,17 @@ void CLIP_OT_clean_tracks(wmOperatorType *ot)
};
/* identifiers */
- ot->name= "Clean Tracks";
- ot->description= "Clean tracks with high error values or few frames";
- ot->idname= "CLIP_OT_clean_tracks";
+ ot->name = "Clean Tracks";
+ ot->description = "Clean tracks with high error values or few frames";
+ ot->idname = "CLIP_OT_clean_tracks";
/* api callbacks */
- ot->exec= clean_tracks_exec;
- ot->invoke= clean_tracks_invoke;
- ot->poll= ED_space_clip_poll;
+ ot->exec = clean_tracks_exec;
+ ot->invoke = clean_tracks_invoke;
+ ot->poll = ED_space_clip_poll;
/* flags */
- ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+ ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
/* properties */
RNA_def_int(ot->srna, "frames", 0, 0, INT_MAX, "Tracked Frames", "Effect on tracks which are tracked less than specified amount of frames", 0, INT_MAX);
@@ -3493,16 +3493,16 @@ static int tracking_object_new_exec(bContext *C, wmOperator *UNUSED(op))
void CLIP_OT_tracking_object_new(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Add Tracking Object";
- ot->description= "Add new object for tracking";
- ot->idname= "CLIP_OT_tracking_object_new";
+ ot->name = "Add Tracking Object";
+ ot->description = "Add new object for tracking";
+ ot->idname = "CLIP_OT_tracking_object_new";
/* api callbacks */
- ot->exec= tracking_object_new_exec;
- ot->poll= ED_space_clip_poll;
+ ot->exec = tracking_object_new_exec;
+ ot->poll = ED_space_clip_poll;
/* flags */
- ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+ ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
}
/********************** remove tracking object *********************/
@@ -3531,16 +3531,16 @@ static int tracking_object_remove_exec(bContext *C, wmOperator *op)
void CLIP_OT_tracking_object_remove(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Movie Tracking Object";
- ot->description= "Remove object for tracking";
- ot->idname= "CLIP_OT_tracking_object_remove";
+ ot->name = "Movie Tracking Object";
+ ot->description = "Remove object for tracking";
+ ot->idname = "CLIP_OT_tracking_object_remove";
/* api callbacks */
- ot->exec= tracking_object_remove_exec;
- ot->poll= ED_space_clip_poll;
+ ot->exec = tracking_object_remove_exec;
+ ot->poll = ED_space_clip_poll;
/* flags */
- ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+ ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
}
/********************** copy tracks to clipboard operator *********************/
@@ -3571,7 +3571,7 @@ void CLIP_OT_copy_tracks(wmOperatorType *ot)
ot->poll = ED_space_clip_poll;
/* flags */
- ot->flag= OPTYPE_REGISTER;
+ ot->flag = OPTYPE_REGISTER;
}
/********************** paste tracks from clipboard operator *********************/
@@ -3611,5 +3611,5 @@ void CLIP_OT_paste_tracks(wmOperatorType *ot)
ot->poll = paste_tracks_poll;
/* flags */
- ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+ ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
}