Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaurice Raybaud <mauriceraybaud@hotmail.fr>2019-04-27 21:12:29 +0300
committerMaurice Raybaud <mauriceraybaud@hotmail.fr>2019-04-27 21:12:29 +0300
commit573847caa34747a163d15b0410025d6bcda02663 (patch)
tree5752e4076faf70684d585144f2361ff7a0063819 /render_povray/nodes.py
parent18661f8ee717dc156181453353ed43b3ec6d9f53 (diff)
Pass 5 of 2.8 syntax update...
Diffstat (limited to 'render_povray/nodes.py')
-rw-r--r--render_povray/nodes.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/render_povray/nodes.py b/render_povray/nodes.py
index 79c38a78..a3267565 100644
--- a/render_povray/nodes.py
+++ b/render_povray/nodes.py
@@ -1265,13 +1265,13 @@ class UpdatePreviewMaterial(bpy.types.Operator):
bl_label = "Update preview"
def execute(self, context):
- scene=context.scene
+ scene=context.view_layer
ob=context.object
for obj in scene.objects:
if obj != ob:
- scene.objects.active=obj
+ scene.objects.active = ob
break
- scene.objects.active=ob
+ scene.objects.active = ob
def modal(self, context, event):
if event.type == 'RIGHTMOUSE':