Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_node/space_node.c
| Show First 20 Lines • Show All 376 Lines • ▼ Show 20 Lines | |||||
| /* spacetype; init callback */ | /* spacetype; init callback */ | ||||
| static void node_init(struct wmWindowManager *UNUSED(wm), ScrArea *UNUSED(sa)) | static void node_init(struct wmWindowManager *UNUSED(wm), ScrArea *UNUSED(sa)) | ||||
| { | { | ||||
| } | } | ||||
| static void node_area_listener(bScreen *UNUSED(sc), ScrArea *sa, wmNotifier *wmn, const Scene *scene) | static void node_area_listener(bScreen *UNUSED(sc), ScrArea *sa, wmNotifier *wmn, const Scene *scene, | ||||
| const WorkSpace *UNUSED(workspace)) | |||||
| { | { | ||||
| /* note, ED_area_tag_refresh will re-execute compositor */ | /* note, ED_area_tag_refresh will re-execute compositor */ | ||||
| SpaceNode *snode = sa->spacedata.first; | SpaceNode *snode = sa->spacedata.first; | ||||
| /* shaderfrom is only used for new shading nodes, otherwise all shaders are from objects */ | /* shaderfrom is only used for new shading nodes, otherwise all shaders are from objects */ | ||||
| short shader_type = BKE_scene_use_new_shading_nodes(scene) ? snode->shaderfrom : SNODE_SHADER_OBJECT; | short shader_type = BKE_scene_use_new_shading_nodes(scene) ? snode->shaderfrom : SNODE_SHADER_OBJECT; | ||||
| /* preview renders */ | /* preview renders */ | ||||
| switch (wmn->category) { | switch (wmn->category) { | ||||
| ▲ Show 20 Lines • Show All 623 Lines • Show Last 20 Lines | |||||