Skip to content

Commit

Permalink
Make hardcoded properties ANIMATABLE
Browse files Browse the repository at this point in the history
  • Loading branch information
pragma37 committed Nov 9, 2023
1 parent d90227f commit 537e911
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions BlenderMalt/MaltLights.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,18 @@ def sync_data(self, context):
light.spot_blend = self.spot_blend_angle / self.spot_angle

strength : bpy.props.FloatProperty(name='Strength', default=1,
options={'LIBRARY_EDITABLE'}, override={'LIBRARY_OVERRIDABLE'})
options={'LIBRARY_EDITABLE', 'ANIMATABLE'}, override={'LIBRARY_OVERRIDABLE'})

override_global_settings : bpy.props.BoolProperty(name='Override Global Settings', default=False,
options={'LIBRARY_EDITABLE'}, override={'LIBRARY_OVERRIDABLE'})
max_distance : bpy.props.FloatProperty(name='Max Distance', default=100,
options={'LIBRARY_EDITABLE'}, override={'LIBRARY_OVERRIDABLE'})
options={'LIBRARY_EDITABLE', 'ANIMATABLE'}, override={'LIBRARY_OVERRIDABLE'})

radius : bpy.props.FloatProperty(
name='Radius',
default=5,
update=sync_data,
options={'LIBRARY_EDITABLE'},
options={'LIBRARY_EDITABLE', 'ANIMATABLE'},
override={'LIBRARY_OVERRIDABLE'}
)
spot_angle : bpy.props.FloatProperty(
Expand All @@ -33,7 +33,7 @@ def sync_data(self, context):
min=0,
max=math.pi,
update=sync_data,
options={'LIBRARY_EDITABLE'},
options={'LIBRARY_EDITABLE', 'ANIMATABLE'},
override={'LIBRARY_OVERRIDABLE'}
)
spot_blend_angle : bpy.props.FloatProperty(
Expand All @@ -43,7 +43,7 @@ def sync_data(self, context):
min=0,
max=math.pi,
update=sync_data,
options={'LIBRARY_EDITABLE'},
options={'LIBRARY_EDITABLE', 'ANIMATABLE'},
override={'LIBRARY_OVERRIDABLE'}
)

Expand Down

0 comments on commit 537e911

Please sign in to comment.