Skip to content

Commit

Permalink
feat: add a handy image opener to color image based light effects
Browse files Browse the repository at this point in the history
  • Loading branch information
vasarhelyi authored and ntamas committed Oct 12, 2023
1 parent 88ee978 commit 618a593
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/modules/sbstudio/plugin/panels/light_effects.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,13 @@ def draw(self, context):
row = layout.box()
row.template_color_ramp(entry.texture, "color_ramp")
elif entry.type == "IMAGE":
layout.prop_search(
entry.texture, "image", bpy.data, "images", text=""
)
row = layout.row()

col = row.column()
col.prop_search(entry.texture, "image", bpy.data, "images", text="")

col = row.column(align=True)
col.operator("image.open", icon="FILE_FOLDER", text="")
else:
row = layout.box()
row.alert = True
Expand Down

0 comments on commit 618a593

Please sign in to comment.