From be4b5551c7a4f0f5be1d6fc55c87c890ee0ddb27 Mon Sep 17 00:00:00 2001 From: Dalai Felinto Date: Thu, 22 Jun 2017 10:25:05 +0200 Subject: Fix T51863: CompositorNodeSwitchView have the wrong rna API Although the original report was about the docs, the real issue was in the API. My original commit started from a copy-paste from the Switch Node. However I don't use custom1 for thew Switch View node. The docs is slightly incomplete since it would be nice to mention the views here. Or maybe even expose them via Python. But honestly they are generated depending on the scene multi-view settings. --- source/blender/makesrna/intern/rna_nodetree.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'source/blender/makesrna/intern/rna_nodetree.c') diff --git a/source/blender/makesrna/intern/rna_nodetree.c b/source/blender/makesrna/intern/rna_nodetree.c index 22d07d739cd..10422c85579 100644 --- a/source/blender/makesrna/intern/rna_nodetree.c +++ b/source/blender/makesrna/intern/rna_nodetree.c @@ -6320,14 +6320,8 @@ static void def_cmp_switch(StructRNA *srna) RNA_def_property_update(prop, NC_NODE | NA_EDITED, "rna_Node_update"); } -static void def_cmp_switch_view(StructRNA *srna) +static void def_cmp_switch_view(StructRNA *UNUSED(srna)) { - PropertyRNA *prop; - - prop = RNA_def_property(srna, "check", PROP_BOOLEAN, PROP_NONE); - RNA_def_property_boolean_sdna(prop, NULL, "custom1", 0); - RNA_def_property_ui_text(prop, "Switch", "Off: first socket, On: second socket"); - RNA_def_property_update(prop, NC_NODE | NA_EDITED, "rna_Node_update"); } static void def_cmp_colorcorrection(StructRNA *srna) -- cgit v1.2.3