diff options
Diffstat (limited to 'release/scripts/startup/bl_operators/freestyle.py')
-rw-r--r-- | release/scripts/startup/bl_operators/freestyle.py | 24 |
1 files changed, 17 insertions, 7 deletions
diff --git a/release/scripts/startup/bl_operators/freestyle.py b/release/scripts/startup/bl_operators/freestyle.py index 453be519abf..edda92284d2 100644 --- a/release/scripts/startup/bl_operators/freestyle.py +++ b/release/scripts/startup/bl_operators/freestyle.py @@ -16,10 +16,13 @@ # # ##### END GPL LICENSE BLOCK ##### -import sys import bpy -from bpy.props import (BoolProperty, EnumProperty, StringProperty) +from bpy.props import ( + BoolProperty, + EnumProperty, + StringProperty, + ) class SCENE_OT_freestyle_fill_range_by_selection(bpy.types.Operator): @@ -29,11 +32,16 @@ class SCENE_OT_freestyle_fill_range_by_selection(bpy.types.Operator): bl_label = "Fill Range by Selection" bl_options = {'INTERNAL'} - type = EnumProperty(name="Type", description="Type of the modifier to work on", - items=(("COLOR", "Color", "Color modifier type"), - ("ALPHA", "Alpha", "Alpha modifier type"), - ("THICKNESS", "Thickness", "Thickness modifier type"))) - name = StringProperty(name="Name", description="Name of the modifier to work on") + type = EnumProperty( + name="Type", description="Type of the modifier to work on", + items=(("COLOR", "Color", "Color modifier type"), + ("ALPHA", "Alpha", "Alpha modifier type"), + ("THICKNESS", "Thickness", "Thickness modifier type")), + ) + name = StringProperty( + name="Name", + description="Name of the modifier to work on", + ) @classmethod def poll(cls, context): @@ -41,6 +49,8 @@ class SCENE_OT_freestyle_fill_range_by_selection(bpy.types.Operator): return rl and rl.freestyle_settings.linesets.active def execute(self, context): + import sys + scene = context.scene rl = scene.render.layers.active lineset = rl.freestyle_settings.linesets.active |