UI: Fix Studio Light panel in user preferencies

This commit is contained in:
Clément Foucault 2018-10-29 22:27:12 +01:00
parent d64247976c
commit 4f4a74c0af
1 changed files with 2 additions and 2 deletions

View File

@ -1506,7 +1506,7 @@ class StudioLightPanelMixin():
userpref = context.user_preferences
lights = self._get_lights(userpref)
if lights:
flow = layout.column_flow(4)
flow = layout.column_flow(columns=4)
for studio_light in lights:
self.draw_studio_light(flow, studio_light)
else:
@ -1517,7 +1517,7 @@ class StudioLightPanelMixin():
row = box.row()
row.template_icon(layout.icon(studio_light), scale=6.0)
op = row.operator('wm.studiolight_uninstall', text="", icon='ZOOMOUT')
op = row.operator('wm.studiolight_uninstall', text="", icon='REMOVE')
op.index = studio_light.index
box.label(text=studio_light.name)