From 7f9808a41509139ad303a607684ab136cc1391e1 Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Thu, 17 Oct 2019 14:15:51 +0200 Subject: [PATCH] Fix mixed indentation in `gen_switch.gd` Mixed indentation is no longer allowed in Godot's `master` branch. This change allows Material Maker to run without script errors when using the `master` branch. --- addons/material_maker/engine/gen_switch.gd | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/addons/material_maker/engine/gen_switch.gd b/addons/material_maker/engine/gen_switch.gd index 5cdc67a..4101340 100644 --- a/addons/material_maker/engine/gen_switch.gd +++ b/addons/material_maker/engine/gen_switch.gd @@ -13,9 +13,11 @@ func get_type_name(): return "Switch" func get_parameter_defs(): - return [ { name="outputs", label="Outputs", type="float", min=1, max=5, step=1, default=2 }, - { name="choices", label="Choices", type="float", min=2, max=5, step=1, default=2 }, - { name="source", label="Source", type="float", min=0, max=1, step=1, default=0 } ] + return [ + { name="outputs", label="Outputs", type="float", min=1, max=5, step=1, default=2 }, + { name="choices", label="Choices", type="float", min=2, max=5, step=1, default=2 }, + { name="source", label="Source", type="float", min=0, max=1, step=1, default=0 }, + ] func get_input_defs(): var rv : Array = [] @@ -23,7 +25,7 @@ func get_input_defs(): for o in range(parameters.outputs): rv.push_back({ name=PoolByteArray([64+o]).get_string_from_ascii()+str(c), type="rgba" }) return rv - + func get_output_defs(): var rv : Array = [] for o in range(parameters.outputs):