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:
authorNBurn <7nburn@gmail.com>2019-01-29 17:08:23 +0300
committerNBurn <7nburn@gmail.com>2019-01-29 17:08:23 +0300
commit5c994fde52196dfe8a7e0db03b6935bac001d353 (patch)
treea7836a0741695b78df699e59a30f2a527202a815 /add_mesh_extra_objects/add_mesh_round_brilliant.py
parent8b93448f56ecdf9c91ad1b6297580eedf1f6e18f (diff)
addons: more view_layer syntax updates
Diffstat (limited to 'add_mesh_extra_objects/add_mesh_round_brilliant.py')
-rw-r--r--add_mesh_extra_objects/add_mesh_round_brilliant.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/add_mesh_extra_objects/add_mesh_round_brilliant.py b/add_mesh_extra_objects/add_mesh_round_brilliant.py
index 90673ed4..7794269e 100644
--- a/add_mesh_extra_objects/add_mesh_round_brilliant.py
+++ b/add_mesh_extra_objects/add_mesh_round_brilliant.py
@@ -220,9 +220,6 @@ def addBrilliant(context, s, table_w, crown_h, girdle_t, pavi_d, bezel_f,
cf.append(i)
fa(*cf)
- # bpy variables / shortcuts
- scene = bpy.context.scene
-
# deactivate possible active Objects
bpy.context.view_layer.objects.active = None
@@ -236,7 +233,7 @@ def addBrilliant(context, s, table_w, crown_h, girdle_t, pavi_d, bezel_f,
dobj = object_utils.object_data_add(context, dmesh, operator=None, name="dobj").object
# activate and select object
- scene.objects.active = dobj
+ bpy.context.view_layer.objects.active = dobj
dobj.select_set(True)
obj = bpy.context.active_object