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>2021-08-31 11:25:43 +0300
committerCampbell Barton <ideasman42@gmail.com>2021-08-31 11:29:09 +0300
commit1f0d63b9a1e3d11885a8acf8e55b36e3f7fb737b (patch)
tree71994a8e443feca471aceb56c12dce53ee0cf114 /source/blender/makesrna/intern/rna_material.c
parent8e00db42961297facd521139762fe8c42042fc5c (diff)
Cleanup: remove unnecessary obedit argument from ED_space_image_set
This was left over from when changing the image set the faces texture.
Diffstat (limited to 'source/blender/makesrna/intern/rna_material.c')
-rw-r--r--source/blender/makesrna/intern/rna_material.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/source/blender/makesrna/intern/rna_material.c b/source/blender/makesrna/intern/rna_material.c
index 144950235c8..8d0d3adab8b 100644
--- a/source/blender/makesrna/intern/rna_material.c
+++ b/source/blender/makesrna/intern/rna_material.c
@@ -173,12 +173,6 @@ static void rna_Material_active_paint_texture_index_update(Main *bmain,
continue;
}
- Object *obedit = NULL;
- {
- ViewLayer *view_layer = WM_window_get_active_view_layer(win);
- obedit = OBEDIT_FROM_VIEW_LAYER(view_layer);
- }
-
ScrArea *area;
for (area = screen->areabase.first; area; area = area->next) {
SpaceLink *sl;
@@ -186,7 +180,7 @@ static void rna_Material_active_paint_texture_index_update(Main *bmain,
if (sl->spacetype == SPACE_IMAGE) {
SpaceImage *sima = (SpaceImage *)sl;
if (!sima->pin) {
- ED_space_image_set(bmain, sima, obedit, image, true);
+ ED_space_image_set(bmain, sima, image, true);
}
}
}