Browse Source

Merge pull request #192 from Deledrius/flare_fix

Remove spurious code in lamp flare operator.
pull/193/head
Adam Johnson 4 years ago committed by GitHub
parent
commit
b762c3c64c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      korman/operators/op_mesh.py

5
korman/operators/op_mesh.py

@ -28,10 +28,6 @@ class PlasmaMeshOperator:
FLARE_MATERIAL_BASE_NAME = "FLAREGEN" 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): class PlasmaAddFlareOperator(PlasmaMeshOperator, bpy.types.Operator):
bl_idname = "mesh.plasma_flare_add" bl_idname = "mesh.plasma_flare_add"
@ -52,7 +48,6 @@ class PlasmaAddFlareOperator(PlasmaMeshOperator, bpy.types.Operator):
flare_material_name = bpy.props.StringProperty(name="Material", flare_material_name = bpy.props.StringProperty(name="Material",
description="A specially-crafted material to use for this flare", description="A specially-crafted material to use for this flare",
default=FLARE_MATERIAL_BASE_NAME, default=FLARE_MATERIAL_BASE_NAME,
update=store_material_selection,
options=set()) options=set())
@classmethod @classmethod

Loading…
Cancel
Save