Implemented a basic framework for node-based shaders.
[blender-staging.git] / source / blender / editors / space_node / space_node.c
index ddfbe3bebf2fbb0b8ed1861402100e43cfdaff3a..9eaee60bfce80cd627000a8efa687295a6834df4 100644 (file)
@@ -501,6 +501,12 @@ static void node_area_listener(bScreen *sc, ScrArea *sa, wmNotifier *wmn)
                                }
                        }
                        break;
+
+               case NC_LINESTYLE:
+                       if (ED_node_is_shader(snode) && shader_type == SNODE_SHADER_LINESTYLE) {
+                               ED_area_tag_refresh(sa);
+                       }
+                       break;
        }
 }
 
@@ -740,6 +746,7 @@ static void node_region_listener(bScreen *UNUSED(sc), ScrArea *UNUSED(sa), ARegi
                case NC_TEXTURE:
                case NC_WORLD:
                case NC_NODE:
+               case NC_LINESTYLE:
                        ED_region_tag_redraw(ar);
                        break;
                case NC_OBJECT: