Skip to content
Snippets Groups Projects
Commit 2954e4d9 authored by Sergey Sharybin's avatar Sergey Sharybin
Browse files

Use new API after rename in Blender 2.8

parent b9809143
No related branches found
No related tags found
No related merge requests found
......@@ -40,7 +40,7 @@ def _get_depsgraph(context):
if bpy.app.version < (2, 80, 0,):
return scene.depsgraph
else:
scene_layer = scene.render_layers.active
scene_layer = scene.view_layers.active
return scene_layer.depsgraph
......@@ -163,7 +163,7 @@ class RENDERLAYER_PT_depsgraph(bpy.types.Panel):
bl_label = "Dependency Graph"
bl_space_type = "PROPERTIES"
bl_region_type = "WINDOW"
bl_context = "render_layer"
bl_context = "view_layer"
bl_options = {'DEFAULT_CLOSED'}
@classmethod
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment