diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-03-22 11:26:09 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-03-22 11:26:09 +0400 |
commit | 4c3bb77012024a3f14181eafe850b4d68bca1191 (patch) | |
tree | 0b90fefff48b03ad117c5e16d65f6e653ff5f57b /source/blender/editors/space_view3d/view3d_view.c | |
parent | 675628d24deba0afdc3da5b7a5bc802b13506251 (diff) |
style cleanup: spaces aroudn operators for operator definitions.
Diffstat (limited to 'source/blender/editors/space_view3d/view3d_view.c')
-rw-r--r-- | source/blender/editors/space_view3d/view3d_view.c | 68 |
1 files changed, 34 insertions, 34 deletions
diff --git a/source/blender/editors/space_view3d/view3d_view.c b/source/blender/editors/space_view3d/view3d_view.c index 7bd878351d9..5174c832ac4 100644 --- a/source/blender/editors/space_view3d/view3d_view.c +++ b/source/blender/editors/space_view3d/view3d_view.c @@ -334,14 +334,14 @@ void VIEW3D_OT_smoothview(wmOperatorType *ot) { /* identifiers */ - ot->name= "Smooth View"; - ot->idname= "VIEW3D_OT_smoothview"; - ot->description="The time to animate the change of view (in milliseconds)"; + ot->name = "Smooth View"; + ot->idname = "VIEW3D_OT_smoothview"; + ot->description = "The time to animate the change of view (in milliseconds)"; /* api callbacks */ - ot->invoke= view3d_smoothview_invoke; + ot->invoke = view3d_smoothview_invoke; - ot->poll= ED_operator_view3d_active; + ot->poll = ED_operator_view3d_active; } /* ****************** change view operators ****************** */ @@ -389,16 +389,16 @@ static int view3d_camera_to_view_poll(bContext *C) void VIEW3D_OT_camera_to_view(wmOperatorType *ot) { /* identifiers */ - ot->name= "Align Camera To View"; - ot->description= "Set camera view to active view"; - ot->idname= "VIEW3D_OT_camera_to_view"; + ot->name = "Align Camera To View"; + ot->description = "Set camera view to active view"; + ot->idname = "VIEW3D_OT_camera_to_view"; /* api callbacks */ - ot->exec= view3d_camera_to_view_exec; - ot->poll= view3d_camera_to_view_poll; + ot->exec = view3d_camera_to_view_exec; + ot->poll = view3d_camera_to_view_poll; /* flags */ - ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO; + ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO; } /* unlike VIEW3D_OT_view_selected this is for framing a render and not @@ -456,16 +456,16 @@ static int view3d_camera_to_view_selected_poll(bContext *C) void VIEW3D_OT_camera_to_view_selected(wmOperatorType *ot) { /* identifiers */ - ot->name= "Camera Fit Frame to Selected"; - ot->description= "Move the camera so selected objects are framed"; - ot->idname= "VIEW3D_OT_camera_to_view_selected"; + ot->name = "Camera Fit Frame to Selected"; + ot->description = "Move the camera so selected objects are framed"; + ot->idname = "VIEW3D_OT_camera_to_view_selected"; /* api callbacks */ - ot->exec= view3d_camera_to_view_selected_exec; - ot->poll= view3d_camera_to_view_selected_poll; + ot->exec = view3d_camera_to_view_selected_exec; + ot->poll = view3d_camera_to_view_selected_poll; /* flags */ - ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO; + ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO; } @@ -510,16 +510,16 @@ void VIEW3D_OT_object_as_camera(wmOperatorType *ot) { /* identifiers */ - ot->name= "Set Active Object as Camera"; - ot->description= "Set the active object as the active camera for this view or scene"; - ot->idname= "VIEW3D_OT_object_as_camera"; + ot->name = "Set Active Object as Camera"; + ot->description = "Set the active object as the active camera for this view or scene"; + ot->idname = "VIEW3D_OT_object_as_camera"; /* api callbacks */ - ot->exec= view3d_setobjectascamera_exec; - ot->poll= ED_operator_rv3d_user_region_poll; + ot->exec = view3d_setobjectascamera_exec; + ot->poll = ED_operator_rv3d_user_region_poll; /* flags */ - ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO; + ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO; } /* ********************************** */ @@ -1580,15 +1580,15 @@ void VIEW3D_OT_localview(wmOperatorType *ot) { /* identifiers */ - ot->name= "Local View"; - ot->description= "Toggle display of selected object(s) separately and centered in view"; - ot->idname= "VIEW3D_OT_localview"; + ot->name = "Local View"; + ot->description = "Toggle display of selected object(s) separately and centered in view"; + ot->idname = "VIEW3D_OT_localview"; /* api callbacks */ - ot->exec= localview_exec; - ot->flag= OPTYPE_UNDO; /* localview changes object layer bitflags */ + ot->exec = localview_exec; + ot->flag = OPTYPE_UNDO; /* localview changes object layer bitflags */ - ot->poll= ED_operator_view3d_active; + ot->poll = ED_operator_view3d_active; } #ifdef WITH_GAMEENGINE @@ -1814,14 +1814,14 @@ void VIEW3D_OT_game_start(wmOperatorType *ot) { /* identifiers */ - ot->name= "Start Game Engine"; - ot->description= "Start game engine"; - ot->idname= "VIEW3D_OT_game_start"; + ot->name = "Start Game Engine"; + ot->description = "Start game engine"; + ot->idname = "VIEW3D_OT_game_start"; /* api callbacks */ - ot->exec= game_engine_exec; + ot->exec = game_engine_exec; - ot->poll= game_engine_poll; + ot->poll = game_engine_poll; } /* ************************************** */ |