Removed support for nested texture trees, minor ui enhancements
This commit is contained in:
@@ -3700,7 +3700,8 @@ static void material_panel_texture(Object *ob, Material *ma)
|
||||
|
||||
if(mtex->tex->use_nodes) {
|
||||
char *menustr = ntreeTexOutputMenu(mtex->tex->nodetree);
|
||||
uiDefButS(block, MENU, B_MATPRV, menustr, 100, 100, 163, 20, &mtex->which_output, 0, 0, 0, 0, "Which output to use, for multi-output textures");
|
||||
uiDefBut(block, LABEL, 0, "Use Output:", 100, 100, 163, 20, 0, 0, 0, 0, 0, "");
|
||||
uiDefButS(block, MENU, B_MATPRV, menustr, 100, 80, 163, 20, &mtex->which_output, 0, 0, 0, 0, "Which output to use, for multi-output textures");
|
||||
free(menustr);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -494,7 +494,12 @@ static void node_dynamic_update_cb(void *ntree_v, void *node_v)
|
||||
|
||||
static int node_buts_texture(uiBlock *block, bNodeTree *ntree, bNode *node, rctf *butr)
|
||||
{
|
||||
short multi = (node->id && ((Tex*)node->id)->use_nodes && (node->type != CMP_NODE_TEXTURE));
|
||||
short multi = (
|
||||
node->id &&
|
||||
((Tex*)node->id)->use_nodes &&
|
||||
(node->type != CMP_NODE_TEXTURE) &&
|
||||
(node->type != TEX_NODE_TEXTURE)
|
||||
);
|
||||
|
||||
if(block) {
|
||||
uiBut *bt;
|
||||
|
||||
@@ -180,6 +180,7 @@ static void snode_handle_recalc(SpaceNode *snode)
|
||||
}
|
||||
else if(snode->treetype==NTREE_TEXTURE) {
|
||||
ntreeTexUpdatePreviews(snode->nodetree);
|
||||
BIF_preview_changed(ID_TE);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user