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>2020-05-27 09:54:34 +0300
committerCampbell Barton <ideasman42@gmail.com>2020-05-27 09:54:34 +0300
commit783624206593899c52b0744519a1991ae0133243 (patch)
tree74ef6f7e55add3c946aceea3ff29c5462b43d97b /source/blender/editors/gizmo_library
parent355d1299654aa9861318df500e4d532c612a1cb9 (diff)
Cleanup: remove unused Main struct from snap context
Diffstat (limited to 'source/blender/editors/gizmo_library')
-rw-r--r--source/blender/editors/gizmo_library/gizmo_types/move3d_gizmo.c2
-rw-r--r--source/blender/editors/gizmo_library/gizmo_types/snap3d_gizmo.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/gizmo_library/gizmo_types/move3d_gizmo.c b/source/blender/editors/gizmo_library/gizmo_types/move3d_gizmo.c
index 374b7b1f6a2..db57a33f543 100644
--- a/source/blender/editors/gizmo_library/gizmo_types/move3d_gizmo.c
+++ b/source/blender/editors/gizmo_library/gizmo_types/move3d_gizmo.c
@@ -382,7 +382,7 @@ static int gizmo_move_invoke(bContext *C, wmGizmo *gz, const wmEvent *event)
switch (area->spacetype) {
case SPACE_VIEW3D: {
inter->snap_context_v3d = ED_transform_snap_object_context_create_view3d(
- CTX_data_main(C), CTX_data_scene(C), 0, CTX_wm_region(C), CTX_wm_view3d(C));
+ CTX_data_scene(C), 0, CTX_wm_region(C), CTX_wm_view3d(C));
break;
}
default:
diff --git a/source/blender/editors/gizmo_library/gizmo_types/snap3d_gizmo.c b/source/blender/editors/gizmo_library/gizmo_types/snap3d_gizmo.c
index 94ca34f19de..b8d6d64ae8a 100644
--- a/source/blender/editors/gizmo_library/gizmo_types/snap3d_gizmo.c
+++ b/source/blender/editors/gizmo_library/gizmo_types/snap3d_gizmo.c
@@ -205,7 +205,7 @@ SnapObjectContext *ED_gizmotypes_snap_3d_context_ensure(Scene *scene,
SnapGizmo3D *gizmo_snap = (SnapGizmo3D *)gz;
if (gizmo_snap->snap_context_v3d == NULL) {
gizmo_snap->snap_context_v3d = ED_transform_snap_object_context_create_view3d(
- NULL, scene, 0, region, v3d);
+ scene, 0, region, v3d);
}
return gizmo_snap->snap_context_v3d;
}