[Bf-extensions-cvs] [d413d73c] master: Fix (unreported) missing updates after `scene.update()` removal...
Bastien Montagne
noreply at git.blender.org
Tue Jun 4 14:40:39 CEST 2019
Commit: d413d73cdd4b775f54f05861e7b8fd47b44c29b4
Author: Bastien Montagne
Date: Tue Jun 4 14:39:22 2019 +0200
Branches: master
https://developer.blender.org/rBACd413d73cdd4b775f54f05861e7b8fd47b44c29b4
Fix (unreported) missing updates after `scene.update()` removal...
===================================================================
M add_advanced_objects_menu/mesh_easylattice.py
M add_advanced_objects_panels/object_laplace_lightning.py
M space_view3d_library_hide.py
===================================================================
diff --git a/add_advanced_objects_menu/mesh_easylattice.py b/add_advanced_objects_menu/mesh_easylattice.py
index 6c8fa49f..a1e4f70c 100644
--- a/add_advanced_objects_menu/mesh_easylattice.py
+++ b/add_advanced_objects_menu/mesh_easylattice.py
@@ -257,7 +257,7 @@ def main(context, lat_props):
bpy.ops.object.select_pattern(pattern=lat.name, extend=False)
context.view_layer.objects.active = lat
- context.scene.update()
+ context.view_layer.update()
return
diff --git a/add_advanced_objects_panels/object_laplace_lightning.py b/add_advanced_objects_panels/object_laplace_lightning.py
index ece0640d..dfb64cb1 100644
--- a/add_advanced_objects_panels/object_laplace_lightning.py
+++ b/add_advanced_objects_panels/object_laplace_lightning.py
@@ -336,7 +336,7 @@ def writeArrayToCubes(arr, gridBU, orig, cBOOL=False, jBOOL=True):
col = (0.0, 0.0, a[3], 1.0)
ob.color = col
bpy.context.collection.objects.link(ob)
- bpy.context.scene.update()
+ bpy.context.view_layer.update()
if jBOOL:
# Selects all cubes w/ ?bpy.ops.object.join() b/c
diff --git a/space_view3d_library_hide.py b/space_view3d_library_hide.py
index dd82c99e..c5875b03 100644
--- a/space_view3d_library_hide.py
+++ b/space_view3d_library_hide.py
@@ -134,7 +134,7 @@ def pick_object(context, event, pick_objects, ray_max=10000.0):
#if best_obj_parent:
# best_obj_parent.update_tag(refresh={'OBJECT'})
- #scene.update()
+ #context.view_layer.update()
return True
else:
print("found none")
More information about the Bf-extensions-cvs
mailing list