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>2006-01-03 14:34:28 +0300
committerTon Roosendaal <ton@blender.org>2006-01-03 14:34:28 +0300
commit4bc4eac1e5c15d45a25b3586ea637a1e035f5e1e (patch)
tree2a3f00c73e1c23b9c23f50bed6b1928482e787db /source/blender/blenkernel/intern/material.c
parent85f089f3b951c110cd70f9864ba2536119d54453 (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/blenkernel/intern/material.c')
-rw-r--r--source/blender/blenkernel/intern/material.c23
1 files changed, 0 insertions, 23 deletions
diff --git a/source/blender/blenkernel/intern/material.c b/source/blender/blenkernel/intern/material.c
index 7e00fde33b3..c617541e225 100644
--- a/source/blender/blenkernel/intern/material.c
+++ b/source/blender/blenkernel/intern/material.c
@@ -579,29 +579,6 @@ void new_material_to_objectdata(Object *ob)
ob->actcol= ob->totcol;
}
-/* will be renamed... now easy to re-use for nodes! */
-Material *get_active_matlayer(Material *ma)
-{
-
- if(ma==NULL) return NULL;
-
- if(ma->use_nodes) {
- bNode *node= nodeGetActiveID(ma->nodetree, ID_MA);
- if(node && node->id) {
- return (Material *)node->id;
- }
- return NULL;
- }
- else {
- MaterialLayer *ml;
- for(ml= ma->layers.first; ml; ml= ml->next)
- if(ml->flag & ML_ACTIVE) break;
- if(ml)
- return ml->mat;
- }
- return ma;
-}
-
static void do_init_render_material(Material *ma)
{
MTex *mtex;