From a691487ed42796d48892a7a3be072a16bfc7d185 Mon Sep 17 00:00:00 2001 From: Bastien Montagne Date: Sun, 16 Jun 2013 13:13:42 +0000 Subject: =?UTF-8?q?Complete=20fix=20for=20[#35769]=20The=20=E2=80=9Cshow?= =?UTF-8?q?=20texture=20in=20texture=20tab=E2=80=9D=20button=20in=20a=20mo?= =?UTF-8?q?difier=20does=20not=20show=20up=20until=20the=20user=20manually?= =?UTF-8?q?=20shows=20the=20texture=20in=20the=20Texture=20tab=20(and=20be?= =?UTF-8?q?tter=20fix=20for=20[#35741]=20Material=20shows=20WORLD=20textur?= =?UTF-8?q?e=5Fcontext=20by=20default).?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Simply recompute texture context on every redraw, like already done for sbuts->texuser (also called texture context :/ ). Also allows simplification, buttons_check_texture_context can be merged back into set_texture_context... --- source/blender/editors/space_buttons/buttons_intern.h | 1 - 1 file changed, 1 deletion(-) (limited to 'source/blender/editors/space_buttons/buttons_intern.h') diff --git a/source/blender/editors/space_buttons/buttons_intern.h b/source/blender/editors/space_buttons/buttons_intern.h index 55c9bf0dffd..5700d361e15 100644 --- a/source/blender/editors/space_buttons/buttons_intern.h +++ b/source/blender/editors/space_buttons/buttons_intern.h @@ -111,7 +111,6 @@ extern const char *buttons_context_dir[]; /* doc access */ /* buttons_texture.c */ void buttons_texture_context_compute(const struct bContext *C, struct SpaceButs *sbuts); -void buttons_check_texture_context(const struct bContext *C, struct SpaceButs *sbuts); /* buttons_ops.c */ void BUTTONS_OT_file_browse(struct wmOperatorType *ot); -- cgit v1.2.3