diff --git a/scripts/startup/bl_ui/properties_freestyle.py b/scripts/startup/bl_ui/properties_freestyle.py index d0fe93e3726..c06bf7b6843 100644 --- a/scripts/startup/bl_ui/properties_freestyle.py +++ b/scripts/startup/bl_ui/properties_freestyle.py @@ -1247,12 +1247,11 @@ class VIEWLAYER_PT_freestyle_linestyle_texture(ViewLayerFreestyleLineStyle, Pane layout.prop(linestyle, "texture_spacing", text="Spacing Along Stroke") row = layout.row() - props = row.operator( - "wm.properties_context_change", - text="Go to Linestyle Textures Properties", - icon='TEXTURE', - ) - props.context = 'TEXTURE' + if linestyle.active_texture: + slot = linestyle.texture_slots[linestyle.active_texture_index] + layout.template_ID(slot, "texture", new="texture.new") + else: + layout.template_ID(linestyle, "active_texture", new="texture.new") class VIEWLAYER_PT_freestyle_animation(ViewLayerFreestyleButtonsPanel, PropertiesAnimationMixin, Panel):