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:
authorTon Roosendaal <ton@blender.org>2011-03-19 21:23:21 +0300
committerTon Roosendaal <ton@blender.org>2011-03-19 21:23:21 +0300
commit647f4246da908dd46cb618bebc9e8682dea8c7bc (patch)
tree9e7dd0d68d4e3d32e9aee30c87b9291aae58dffe /source/blender/editors/space_buttons/buttons_context.c
parent5179a0c4775c82f8a94f20a5d9f9dc4dba60edbc (diff)
Todo item:
Improving UI visualization of using Material nodes: - Property editor: the context top line now shows the linkage path (in material and texture view mode) - Activating new material node refreshes preview in property editor when in texture mode. This should make editing textures with node materials a bit more clear.
Diffstat (limited to 'source/blender/editors/space_buttons/buttons_context.c')
-rw-r--r--source/blender/editors/space_buttons/buttons_context.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/editors/space_buttons/buttons_context.c b/source/blender/editors/space_buttons/buttons_context.c
index 9e07ccd8c68..f91e830d52e 100644
--- a/source/blender/editors/space_buttons/buttons_context.c
+++ b/source/blender/editors/space_buttons/buttons_context.c
@@ -236,6 +236,12 @@ static int buttons_context_path_material(ButsContextPath *path)
ma= give_current_material(ob, ob->actcol);
RNA_id_pointer_create(&ma->id, &path->ptr[path->len]);
path->len++;
+
+ ma= give_node_material(ma);
+ if(ma) {
+ RNA_id_pointer_create(&ma->id, &path->ptr[path->len]);
+ path->len++;
+ }
return 1;
}
}