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:
authorGermano Cavalcante <germano.costa@ig.com.br>2021-10-20 16:03:46 +0300
committerGermano Cavalcante <germano.costa@ig.com.br>2021-10-20 16:04:03 +0300
commit4539c7cc5786c20aa52e046739e39ce67c8b2a17 (patch)
treec8fcbc48ebfd62c083eb2674177ef27dd47540c3 /source/blender/editors/space_view3d/view3d_cursor_snap.c
parent2743d746ea4f38c098512f6dd6fc33d5a62429d3 (diff)
Cleanup: silence Warnings
Warning C4100 unreferenced formal parameter Warning C4242 conversion from 'int' to 'short', possible loss of data
Diffstat (limited to 'source/blender/editors/space_view3d/view3d_cursor_snap.c')
-rw-r--r--source/blender/editors/space_view3d/view3d_cursor_snap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/space_view3d/view3d_cursor_snap.c b/source/blender/editors/space_view3d/view3d_cursor_snap.c
index 4457afcb67f..52b9f468ca0 100644
--- a/source/blender/editors/space_view3d/view3d_cursor_snap.c
+++ b/source/blender/editors/space_view3d/view3d_cursor_snap.c
@@ -235,7 +235,7 @@ static void v3d_cursor_plane_draw_grid(const int resolution,
i += 1;
}
}
- BLI_assert(i == coords_len);
+ BLI_assert(i == (int)coords_len);
immBeginAtMost(GPU_PRIM_LINES, coords_len * 4);
i = 0;
for (int x = 0; x < resolution_min; x++) {
@@ -661,7 +661,7 @@ static void v3d_cursor_snap_update(V3DSnapCursorState *state,
else {
ViewLayer *view_layer = CTX_data_view_layer(C);
Object *ob = OBACT(view_layer);
- const short orient_index = BKE_scene_orientation_get_index(scene, SCE_ORIENT_DEFAULT);
+ const int orient_index = BKE_scene_orientation_get_index(scene, SCE_ORIENT_DEFAULT);
const int pivot_point = scene->toolsettings->transform_pivot_point;
ED_transform_calc_orientation_from_type_ex(
scene, view_layer, v3d, region->regiondata, ob, ob, orient_index, pivot_point, omat);