diff options
author | Ton Roosendaal <ton@blender.org> | 2006-01-03 14:34:28 +0300 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2006-01-03 14:34:28 +0300 |
commit | 4bc4eac1e5c15d45a25b3586ea637a1e035f5e1e (patch) | |
tree | 2a3f00c73e1c23b9c23f50bed6b1928482e787db /source/blender/src/header_buttonswin.c | |
parent | 85f089f3b951c110cd70f9864ba2536119d54453 (diff) |
Orange; tweaks for further integrating node editing in UI
- Previews inside groups now get updated too
- Activating nodes inside of groups updates UI and preview render correctly
- Entering/leaving groups updates UI and previewrender
- Material Node: now draws socket name next to colorpicker for inputs
Diffstat (limited to 'source/blender/src/header_buttonswin.c')
-rw-r--r-- | source/blender/src/header_buttonswin.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/source/blender/src/header_buttonswin.c b/source/blender/src/header_buttonswin.c index 60099a0f1d9..6d6512417a3 100644 --- a/source/blender/src/header_buttonswin.c +++ b/source/blender/src/header_buttonswin.c @@ -71,7 +71,9 @@ #include "BKE_node.h" #include "BKE_texture.h" #include "BKE_utildefines.h" + #include "BSE_drawipo.h" +#include "BSE_node.h" #include "BSE_headerbuttons.h" #include "MEM_guardedalloc.h" @@ -286,13 +288,14 @@ void buttons_active_id(ID **id, ID **idfrom) ma= give_current_material(ob, ob->actcol); if(ma && ma->use_nodes) - node= nodeGetActiveID(ma->nodetree, ID_TE); + node= editnode_get_active_idnode(ma->nodetree, ID_TE); + if(node) { *idfrom= NULL; *id= node->id; } else { - ma= get_active_matlayer(ma); + ma= editnode_get_active_material(ma); *idfrom= (ID *)ma; if(ma) { mtex= ma->mtex[ ma->texact ]; |