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:
Diffstat (limited to 'source/blender/editors/space_node/drawnode.c')
-rw-r--r--source/blender/editors/space_node/drawnode.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/source/blender/editors/space_node/drawnode.c b/source/blender/editors/space_node/drawnode.c
index b0d5c3f8ef6..7b08b8368ba 100644
--- a/source/blender/editors/space_node/drawnode.c
+++ b/source/blender/editors/space_node/drawnode.c
@@ -1021,22 +1021,6 @@ static void node_shader_buts_uvmap(uiLayout *layout, bContext *C, PointerRNA *pt
}
}
-static void node_shader_buts_openvdb(uiLayout *layout, bContext *C, PointerRNA *ptr)
-{
- PointerRNA scene = CTX_data_pointer_get(C, "scene");
- if (scene.data) {
- PointerRNA cscene = RNA_pointer_get(&scene, "cycles");
- if (cscene.data && RNA_enum_get(&cscene, "device") == 1)
- uiItemL(layout, IFACE_("OpenVDB is not supported on GPU"), ICON_NONE);
- }
-
- uiItemR(layout, ptr, "filename", 0, "", 0);
- uiItemR(layout, ptr, "sampling", 0, "", 0);
- uiItemR(layout, ptr, "source", 0, "", 0);
-
- UNUSED_VARS(C);
-}
-
static void node_shader_buts_uvalongstroke(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
{
uiItemR(layout, ptr, "use_tips", 0, NULL, 0);
@@ -1277,9 +1261,6 @@ static void node_shader_set_butfunc(bNodeType *ntype)
case SH_NODE_OUTPUT_LINESTYLE:
ntype->draw_buttons = node_buts_output_linestyle;
break;
- case SH_NODE_OPENVDB:
- ntype->draw_buttons = node_shader_buts_openvdb;
- break;
}
}