Cleanup: view-port --> 2D/3D Viewport
This commit is contained in:
parent
cba5137f32
commit
dc4feed59d
|
@ -414,8 +414,8 @@ class CLIP_OT_delete_proxy(Operator):
|
||||||
|
|
||||||
|
|
||||||
class CLIP_OT_set_viewport_background(Operator):
|
class CLIP_OT_set_viewport_background(Operator):
|
||||||
"""Set current movie clip as a camera background in 3D view-port """ \
|
"""Set current movie clip as a camera background in 3D Viewport """ \
|
||||||
"""(works only when a 3D view-port is visible)"""
|
"""(works only when a 3D Viewport is visible)"""
|
||||||
|
|
||||||
bl_idname = "clip.set_viewport_background"
|
bl_idname = "clip.set_viewport_background"
|
||||||
bl_label = "Set as Background"
|
bl_label = "Set as Background"
|
||||||
|
|
|
@ -116,7 +116,7 @@ class EditExternally(Operator):
|
||||||
|
|
||||||
|
|
||||||
class ProjectEdit(Operator):
|
class ProjectEdit(Operator):
|
||||||
"""Edit a snapshot of the view-port in an external image editor"""
|
"""Edit a snapshot of the 3D Viewport in an external image editor"""
|
||||||
bl_idname = "image.project_edit"
|
bl_idname = "image.project_edit"
|
||||||
bl_label = "Project Edit"
|
bl_label = "Project Edit"
|
||||||
bl_options = {'REGISTER'}
|
bl_options = {'REGISTER'}
|
||||||
|
|
|
@ -1261,7 +1261,7 @@ void BKE_layer_collection_local_sync(ViewLayer *view_layer, const View3D *v3d)
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sync the local collection for all the view-ports.
|
* Sync the local collection for all the 3D Viewports.
|
||||||
*/
|
*/
|
||||||
void BKE_layer_collection_local_sync_all(const Main *bmain)
|
void BKE_layer_collection_local_sync_all(const Main *bmain)
|
||||||
{
|
{
|
||||||
|
|
|
@ -3574,7 +3574,7 @@ static int edbm_select_linked_pick_invoke(bContext *C, wmOperator *op, const wmE
|
||||||
|
|
||||||
/* To support redo. */
|
/* To support redo. */
|
||||||
{
|
{
|
||||||
/* Note that the `base_index` can't be used as the index depends on the view-port
|
/* Note that the `base_index` can't be used as the index depends on the 3D Viewport
|
||||||
* which might not be available on redo. */
|
* which might not be available on redo. */
|
||||||
BM_mesh_elem_index_ensure(bm, ele->head.htype);
|
BM_mesh_elem_index_ensure(bm, ele->head.htype);
|
||||||
int object_index;
|
int object_index;
|
||||||
|
|
|
@ -886,7 +886,7 @@ static void calc_text_rcts(SpaceText *st, ARegion *region, rcti *scroll, rcti *b
|
||||||
scroll->ymin = pix_top_margin;
|
scroll->ymin = pix_top_margin;
|
||||||
scroll->ymax = pix_available;
|
scroll->ymax = pix_available;
|
||||||
|
|
||||||
/* when re-sizing a view-port with the bar at the bottom to a greater height
|
/* when re-sizing a 2D Viewport with the bar at the bottom to a greater height
|
||||||
* more blank lines will be added */
|
* more blank lines will be added */
|
||||||
if (ltexth + blank_lines < st->top + st->runtime.viewlines) {
|
if (ltexth + blank_lines < st->top + st->runtime.viewlines) {
|
||||||
blank_lines = st->top + st->runtime.viewlines - ltexth;
|
blank_lines = st->top + st->runtime.viewlines - ltexth;
|
||||||
|
|
|
@ -848,7 +848,7 @@ void ED_view3d_draw_depth(Depsgraph *depsgraph, ARegion *region, View3D *v3d, bo
|
||||||
/* get surface depth without bias */
|
/* get surface depth without bias */
|
||||||
rv3d->rflag |= RV3D_ZOFFSET_DISABLED;
|
rv3d->rflag |= RV3D_ZOFFSET_DISABLED;
|
||||||
|
|
||||||
/* Needed in cases the view-port isn't already setup. */
|
/* Needed in cases the 3D Viewport isn't already setup. */
|
||||||
WM_draw_region_viewport_ensure(region, SPACE_VIEW3D);
|
WM_draw_region_viewport_ensure(region, SPACE_VIEW3D);
|
||||||
WM_draw_region_viewport_bind(region);
|
WM_draw_region_viewport_bind(region);
|
||||||
|
|
||||||
|
|
|
@ -222,7 +222,7 @@ typedef struct ViewOpsData {
|
||||||
/** Current state. */
|
/** Current state. */
|
||||||
struct {
|
struct {
|
||||||
/** Working copy of #RegionView3D.viewquat, needed for rotation calculation
|
/** Working copy of #RegionView3D.viewquat, needed for rotation calculation
|
||||||
* so we can apply snap to the view-port while keeping the unsnapped rotation
|
* so we can apply snap to the 3D Viewport while keeping the unsnapped rotation
|
||||||
* here to use when snap is disabled and for continued calculation. */
|
* here to use when snap is disabled and for continued calculation. */
|
||||||
float viewquat[4];
|
float viewquat[4];
|
||||||
} curr;
|
} curr;
|
||||||
|
|
|
@ -171,7 +171,7 @@ bool ED_view3d_boundbox_clip_ex(const RegionView3D *rv3d,
|
||||||
bool ED_view3d_boundbox_clip(RegionView3D *rv3d, const struct BoundBox *bb);
|
bool ED_view3d_boundbox_clip(RegionView3D *rv3d, const struct BoundBox *bb);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Parameters for setting the new view-port state.
|
* Parameters for setting the new 3D Viewport state.
|
||||||
*
|
*
|
||||||
* Each of the struct members may be NULL to signify they aren't to be adjusted.
|
* Each of the struct members may be NULL to signify they aren't to be adjusted.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -574,11 +574,11 @@ bool ED_view3d_persp_ensure(const Depsgraph *depsgraph, View3D *v3d, ARegion *re
|
||||||
/* -------------------------------------------------------------------- */
|
/* -------------------------------------------------------------------- */
|
||||||
/** \name Camera Lock API
|
/** \name Camera Lock API
|
||||||
*
|
*
|
||||||
* Lock the camera to the view-port, allowing view manipulation to transform the camera.
|
* Lock the camera to the 3D Viewport, allowing view manipulation to transform the camera.
|
||||||
* \{ */
|
* \{ */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \return true when the view-port is locked to its camera.
|
* \return true when the 3D Viewport is locked to its camera.
|
||||||
*/
|
*/
|
||||||
bool ED_view3d_camera_lock_check(const View3D *v3d, const RegionView3D *rv3d)
|
bool ED_view3d_camera_lock_check(const View3D *v3d, const RegionView3D *rv3d)
|
||||||
{
|
{
|
||||||
|
@ -587,8 +587,8 @@ bool ED_view3d_camera_lock_check(const View3D *v3d, const RegionView3D *rv3d)
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Apply the camera object transformation to the view-port.
|
* Apply the camera object transformation to the 3D Viewport.
|
||||||
* (needed so we can use regular view-port manipulation operators, that sync back to the camera).
|
* (needed so we can use regular 3D Viewport manipulation operators, that sync back to the camera).
|
||||||
*/
|
*/
|
||||||
void ED_view3d_camera_lock_init_ex(const Depsgraph *depsgraph,
|
void ED_view3d_camera_lock_init_ex(const Depsgraph *depsgraph,
|
||||||
View3D *v3d,
|
View3D *v3d,
|
||||||
|
@ -612,7 +612,7 @@ void ED_view3d_camera_lock_init(const Depsgraph *depsgraph, View3D *v3d, RegionV
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Apply the view-port transformation back to the camera object.
|
* Apply the 3D Viewport transformation back to the camera object.
|
||||||
*
|
*
|
||||||
* \return true if the camera is moved.
|
* \return true if the camera is moved.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -340,7 +340,7 @@ enum {
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \note While alpha is currently is not in the view-port,
|
* \note While alpha is not currently in the 3D Viewport,
|
||||||
* this may eventually be added back, keep this value set to 255.
|
* this may eventually be added back, keep this value set to 255.
|
||||||
*/
|
*/
|
||||||
typedef struct MLoopCol {
|
typedef struct MLoopCol {
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
/** \file
|
/** \file
|
||||||
* \ingroup DNA
|
* \ingroup DNA
|
||||||
*
|
*
|
||||||
* Vector Fonts used for text in the 3D view-port
|
* Vector Fonts used for text in the 3D Viewport
|
||||||
* (unrelated to text used to render the GUI).
|
* (unrelated to text used to render the GUI).
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue