Cycles Node Editor:

* Add Use Nodes button for World shader type
* UI was not redrawing the Node area, when enabling "Use nodes", added check for it to the listener.
This commit is contained in:
Thomas Dinges
2012-01-24 20:10:37 +00:00
parent 439e9a39a8
commit c905415f6b
3 changed files with 7 additions and 1 deletions

View File

@@ -214,6 +214,11 @@ static void node_area_listener(ScrArea *sa, wmNotifier *wmn)
ED_area_tag_refresh(sa);
}
break;
case NC_WORLD:
if(type==NTREE_SHADER) {
ED_area_tag_refresh(sa);
}
break;
case NC_OBJECT:
if(type==NTREE_SHADER) {
if(wmn->data==ND_OB_SHADING)