From cbd053154c5d938fb7049b850cc00b49dcf2ac64 Mon Sep 17 00:00:00 2001 From: Joseph Davies Date: Sun, 2 Aug 2020 20:59:39 -0700 Subject: [PATCH] Remove spurious code in lamp flare operator. --- korman/operators/op_mesh.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/korman/operators/op_mesh.py b/korman/operators/op_mesh.py index 85958bb..5a5a98e 100644 --- a/korman/operators/op_mesh.py +++ b/korman/operators/op_mesh.py @@ -28,10 +28,6 @@ class PlasmaMeshOperator: FLARE_MATERIAL_BASE_NAME = "FLAREGEN" -def store_material_selection(self, value): - if bpy.data.materials.get(value, None): - bpy.context.scene.plasma_scene.last_flare_material = value - class PlasmaAddFlareOperator(PlasmaMeshOperator, bpy.types.Operator): bl_idname = "mesh.plasma_flare_add" @@ -52,7 +48,6 @@ class PlasmaAddFlareOperator(PlasmaMeshOperator, bpy.types.Operator): flare_material_name = bpy.props.StringProperty(name="Material", description="A specially-crafted material to use for this flare", default=FLARE_MATERIAL_BASE_NAME, - update=store_material_selection, options=set()) @classmethod