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:
authorSergey Sharybin <sergey.vfx@gmail.com>2010-10-05 15:55:54 +0400
committerSergey Sharybin <sergey.vfx@gmail.com>2010-10-05 15:55:54 +0400
commit629ddacd48d1cb4256f25620730ab870bbd7eb60 (patch)
tree79a4b97371f47310a59ed1a9aa70c2e91057746f /source/blender/editors/space_outliner/outliner.c
parent0eeeab515b6b46f907016091b3a89bf5e320c400 (diff)
Fix #24135: Material modification not immediately updated in Outliner
Also fixed outliner update when changing active_material_index from Py and when selecting texture from UI
Diffstat (limited to 'source/blender/editors/space_outliner/outliner.c')
-rw-r--r--source/blender/editors/space_outliner/outliner.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/editors/space_outliner/outliner.c b/source/blender/editors/space_outliner/outliner.c
index aaeab9e7843..b876aa11ab5 100644
--- a/source/blender/editors/space_outliner/outliner.c
+++ b/source/blender/editors/space_outliner/outliner.c
@@ -2050,7 +2050,9 @@ static int tree_element_active_texture(bContext *C, Scene *scene, SpaceOops *soo
}
}
- WM_event_add_notifier(C, NC_TEXTURE, NULL);
+ if(set)
+ WM_event_add_notifier(C, NC_TEXTURE, NULL);
+
return 0;
}