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-01-02 05:08:20 +0300
committerCampbell Barton <ideasman42@gmail.com>2020-01-02 05:08:20 +0300
commite9ac7842378182b48749c37be3e9f573d273c112 (patch)
treed78dc768d61edea043774903ea4b820d6321cb6c /source/blender/editors/uvedit/uvedit_draw.c
parentd27fb4671512a3834b61c5c350f428ddccc4669e (diff)
Cleanup: quiet const warnings
Diffstat (limited to 'source/blender/editors/uvedit/uvedit_draw.c')
-rw-r--r--source/blender/editors/uvedit/uvedit_draw.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/source/blender/editors/uvedit/uvedit_draw.c b/source/blender/editors/uvedit/uvedit_draw.c
index fafd54804c0..528fca85fa7 100644
--- a/source/blender/editors/uvedit/uvedit_draw.c
+++ b/source/blender/editors/uvedit/uvedit_draw.c
@@ -217,7 +217,7 @@ static void uvedit_get_batches(Object *ob,
}
static void draw_uvs_shadow(SpaceImage *UNUSED(sima),
- Scene *scene,
+ const Scene *scene,
Object *obedit,
Depsgraph *depsgraph)
{
@@ -237,11 +237,11 @@ static void draw_uvs_shadow(SpaceImage *UNUSED(sima),
}
}
-static void draw_uvs_texpaint(Scene *scene, Object *ob, Depsgraph *depsgraph)
+static void draw_uvs_texpaint(const Scene *scene, Object *ob, Depsgraph *depsgraph)
{
Object *ob_eval = DEG_get_evaluated_object(depsgraph, ob);
Mesh *me = ob_eval->data;
- ToolSettings *ts = scene->toolsettings;
+ const ToolSettings *ts = scene->toolsettings;
float col[4];
UI_GetThemeColor4fv(TH_UV_SHADOW, col);
@@ -296,7 +296,7 @@ static void draw_uvs_texpaint(Scene *scene, Object *ob, Depsgraph *depsgraph)
/* draws uv's in the image space */
static void draw_uvs(SpaceImage *sima,
- Scene *scene,
+ const Scene *scene,
Depsgraph *depsgraph,
UVEditGPUBatches *batch,
float tot_area_ratio,
@@ -496,7 +496,7 @@ static void draw_uv_shadows_get(
}
void ED_uvedit_draw_main(SpaceImage *sima,
- Scene *scene,
+ const Scene *scene,
ViewLayer *view_layer,
Object *obedit,
Object *obact,