diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2017-04-19 13:22:25 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2017-04-19 13:23:06 +0300 |
commit | 4b376dbe84b205ef661ebf608c0322432fff1287 (patch) | |
tree | eac9705b9af9259b16f341ca6029ac6f2a78aac2 /source/blender/makesrna/intern/rna_texture.c | |
parent | 54f03914b0848a1fb80d62ab2bb01bad8631667e (diff) |
Fix wrong RNA update function declarations
This fixes lots of crashes, especially with painting/brush updates.
Diffstat (limited to 'source/blender/makesrna/intern/rna_texture.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_texture.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/makesrna/intern/rna_texture.c b/source/blender/makesrna/intern/rna_texture.c index 3a3359e1008..a05cc8edb11 100644 --- a/source/blender/makesrna/intern/rna_texture.c +++ b/source/blender/makesrna/intern/rna_texture.c @@ -225,7 +225,7 @@ static void rna_Texture_type_set(PointerRNA *ptr, int value) BKE_texture_type_set(tex, value); } -void rna_TextureSlot_update(Main *UNUSED(bmain), bContext *C, Scene *scene, PointerRNA *ptr) +void rna_TextureSlot_update(bContext *C, PointerRNA *ptr) { ID *id = ptr->id.data; @@ -245,6 +245,7 @@ void rna_TextureSlot_update(Main *UNUSED(bmain), bContext *C, Scene *scene, Poin break; case ID_BR: { + Scene *scene = CTX_data_scene(C); MTex *mtex = ptr->data; SceneLayer *sl = CTX_data_scene_layer(C); BKE_paint_invalidate_overlay_tex(scene, sl, mtex->tex); |