Skip to content
Snippets Groups Projects
Commit ac8b28a0 authored by meta-androcto's avatar meta-androcto
Browse files

render_freestyle_svg: update to 2.8 D5127

parent ae3237c4
No related branches found
No related tags found
No related merge requests found
...@@ -22,7 +22,7 @@ bl_info = { ...@@ -22,7 +22,7 @@ bl_info = {
"name": "Freestyle SVG Exporter", "name": "Freestyle SVG Exporter",
"author": "Folkert de Vries", "author": "Folkert de Vries",
"version": (1, 0), "version": (1, 0),
"blender": (2, 72, 1), "blender": (2, 80, 0),
"location": "Properties > Render > Freestyle SVG Export", "location": "Properties > Render > Freestyle SVG Export",
"description": "Exports Freestyle's stylized edges in SVG format", "description": "Exports Freestyle's stylized edges in SVG format",
"warning": "", "warning": "",
...@@ -189,7 +189,7 @@ class SVGExporterLinesetPanel(bpy.types.Panel): ...@@ -189,7 +189,7 @@ class SVGExporterLinesetPanel(bpy.types.Panel):
scene = context.scene scene = context.scene
svg = scene.svg_export svg = scene.svg_export
freestyle = scene.render.layers.active.freestyle_settings freestyle = context.window.view_layer.freestyle_settings
try: try:
linestyle = freestyle.linesets.active.linestyle linestyle = freestyle.linesets.active.linestyle
...@@ -265,7 +265,7 @@ class SVGExporterPanel(bpy.types.Panel): ...@@ -265,7 +265,7 @@ class SVGExporterPanel(bpy.types.Panel):
scene = context.scene scene = context.scene
svg = scene.svg_export svg = scene.svg_export
freestyle = scene.render.layers.active.freestyle_settings freestyle = context.window.view_layer.freestyle_settings
layout.active = (svg.use_svg_export and freestyle.mode != 'SCRIPT') layout.active = (svg.use_svg_export and freestyle.mode != 'SCRIPT')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment