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 <campbell@blender.org>2022-02-04 08:06:15 +0300
committerCampbell Barton <campbell@blender.org>2022-02-04 08:07:24 +0300
commit5a4eadc2e7cd607c83f7039609d8a27495efb20a (patch)
tree97f54ae70c8bd3bf2a92f3b7ccfb8ddfbc8404a2 /source/blender/editors/space_view3d
parent39a1b51efd4e4e163265fdfe69929c7573b57aa3 (diff)
Cleanup: spelling in comments
Also update viewport comments.
Diffstat (limited to 'source/blender/editors/space_view3d')
-rw-r--r--source/blender/editors/space_view3d/view3d_draw.c2
-rw-r--r--source/blender/editors/space_view3d/view3d_navigate.c8
-rw-r--r--source/blender/editors/space_view3d/view3d_navigate_ndof.c6
-rw-r--r--source/blender/editors/space_view3d/view3d_navigate_zoom.c1
4 files changed, 8 insertions, 9 deletions
diff --git a/source/blender/editors/space_view3d/view3d_draw.c b/source/blender/editors/space_view3d/view3d_draw.c
index 6bcb456a945..3f639e8ee1a 100644
--- a/source/blender/editors/space_view3d/view3d_draw.c
+++ b/source/blender/editors/space_view3d/view3d_draw.c
@@ -1036,7 +1036,7 @@ static void draw_rotation_guide(const RegionView3D *rv3d)
negate_v3_v3(o, rv3d->ofs);
GPU_blend(GPU_BLEND_ALPHA);
- GPU_depth_mask(false); /* don't overwrite zbuf */
+ GPU_depth_mask(false); /* Don't overwrite the Z-buffer. */
GPUVertFormat *format = immVertexFormat();
uint pos = GPU_vertformat_attr_add(format, "pos", GPU_COMP_F32, 3, GPU_FETCH_FLOAT);
diff --git a/source/blender/editors/space_view3d/view3d_navigate.c b/source/blender/editors/space_view3d/view3d_navigate.c
index 7818a062eb5..9b7304a6741 100644
--- a/source/blender/editors/space_view3d/view3d_navigate.c
+++ b/source/blender/editors/space_view3d/view3d_navigate.c
@@ -254,7 +254,7 @@ bool view3d_orbit_calc_center(bContext *C, float r_dyn_ofs[3])
}
}
else {
- /* If there's no selection, lastofs is unmodified and last value since static */
+ /* If there's no selection, `lastofs` is unmodified and last value since static. */
is_set = calculateTransformCenter(C, V3D_AROUND_CENTER_MEDIAN, lastofs, NULL);
}
@@ -300,7 +300,7 @@ void viewops_data_create(bContext *C,
if (viewops_flag & VIEWOPS_FLAG_DEPTH_NAVIGATE) {
float fallback_depth_pt[3];
- view3d_operator_needs_opengl(C); /* needed for zbuf drawing */
+ view3d_operator_needs_opengl(C); /* Needed for Z-buffer drawing. */
negate_v3_v3(fallback_depth_pt, rv3d->ofs);
@@ -356,8 +356,8 @@ void viewops_data_create(bContext *C,
if (viewops_flag & VIEWOPS_FLAG_DEPTH_NAVIGATE) {
if (vod->use_dyn_ofs) {
if (rv3d->is_persp) {
- float my_origin[3]; /* original G.vd->ofs */
- float my_pivot[3]; /* view */
+ float my_origin[3]; /* Original #RegionView3D.ofs. */
+ float my_pivot[3]; /* View pivot. */
float dvec[3];
/* locals for dist correction */
diff --git a/source/blender/editors/space_view3d/view3d_navigate_ndof.c b/source/blender/editors/space_view3d/view3d_navigate_ndof.c
index bf9be56fd09..69394b36e54 100644
--- a/source/blender/editors/space_view3d/view3d_navigate_ndof.c
+++ b/source/blender/editors/space_view3d/view3d_navigate_ndof.c
@@ -205,7 +205,7 @@ static void view3d_ndof_orbit(const struct wmNDOFMotionData *ndof,
/* Perform the orbital rotation */
angle = ndof->dt * rot[1];
- /* update the onscreen doo-dad */
+ /* Update the onscreen axis-angle indicator. */
rv3d->rot_angle = angle;
rv3d->rot_axis[0] = 0;
rv3d->rot_axis[1] = 0;
@@ -222,7 +222,7 @@ static void view3d_ndof_orbit(const struct wmNDOFMotionData *ndof,
/* transform rotation axis from view to world coordinates */
mul_qt_v3(view_inv, axis);
- /* update the onscreen doo-dad */
+ /* Update the onscreen axis-angle indicator. */
rv3d->rot_angle = angle;
copy_v3_v3(rv3d->rot_axis, axis);
@@ -251,7 +251,7 @@ void view3d_ndof_fly(const wmNDOFMotionData *ndof,
float view_inv[4];
invert_qt_qt_normalized(view_inv, rv3d->viewquat);
- rv3d->rot_angle = 0.0f; /* disable onscreen rotation doo-dad */
+ rv3d->rot_angle = 0.0f; /* Disable onscreen rotation indicator. */
if (has_translate) {
/* ignore real 'dist' since fly has its own speed settings,
diff --git a/source/blender/editors/space_view3d/view3d_navigate_zoom.c b/source/blender/editors/space_view3d/view3d_navigate_zoom.c
index f5fe838d1d1..24a977f7521 100644
--- a/source/blender/editors/space_view3d/view3d_navigate_zoom.c
+++ b/source/blender/editors/space_view3d/view3d_navigate_zoom.c
@@ -469,7 +469,6 @@ static int viewzoom_exec(bContext *C, wmOperator *op)
if (delta < 0) {
const float step = 1.2f;
- /* this min and max is also in viewmove() */
if (use_cam_zoom) {
view_zoom_to_window_xy_camera(scene, depsgraph, v3d, region, step, zoom_xy);
}