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:
authorPhilipp Oeser <info@graphics-engineer.com>2019-05-17 13:36:11 +0300
committerPhilipp Oeser <info@graphics-engineer.com>2019-05-17 15:18:02 +0300
commit222969e3805359444579d7ab96d75b93c73212fe (patch)
tree6b9985a4fc81544b428ce6d03d713ca11f9498ed /object_fracture_cell
parentb455cbf6b1074074c45cb365721b2d61a8004320 (diff)
Update for Depsgraph API changes
Reviewers: sergey Differential Revision: https://developer.blender.org/D4883
Diffstat (limited to 'object_fracture_cell')
-rw-r--r--object_fracture_cell/fracture_cell_setup.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/object_fracture_cell/fracture_cell_setup.py b/object_fracture_cell/fracture_cell_setup.py
index dc45c43c..0412a206 100644
--- a/object_fracture_cell/fracture_cell_setup.py
+++ b/object_fracture_cell/fracture_cell_setup.py
@@ -138,7 +138,7 @@ def cell_fracture_objects(context, obj,
from . import fracture_cell_calc
collection = context.collection
- scene = context.scene
+ view_layer = context.view_layer
# -------------------------------------------------------------------------
# GET POINTS
@@ -296,10 +296,10 @@ def cell_fracture_objects(context, obj,
slot_dst.material = slot_src.material
if use_debug_redraw:
- scene.update()
+ view_layer.update()
_redraw_yasiamevil()
- scene.update()
+ view_layer.update()
# move this elsewhere...
for obj_cell in objects:
@@ -404,7 +404,7 @@ def cell_fracture_boolean(context, obj, objects,
objects_boolean[:] = [obj_cell for obj_cell in scene.objects if obj_cell.select]
- scene.update()
+ context.view_layer.update()
return objects_boolean