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:
authormeta-androcto <meta.androcto1@gmail.com>2019-07-16 14:29:03 +0300
committermeta-androcto <meta.androcto1@gmail.com>2019-07-16 14:29:03 +0300
commitea0873dedaa1b81e706bad49ed7997cdf11d5ec1 (patch)
treea85437090c851b294133cf7b77290e7098b77f0d
parentefc92efec2cfeeb13d269bf82695994285aebb6a (diff)
add_curve_sapling: Fix: T66252 D5154
-rw-r--r--add_curve_sapling/utils.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/add_curve_sapling/utils.py b/add_curve_sapling/utils.py
index 458273ef..4ec2cd83 100644
--- a/add_curve_sapling/utils.py
+++ b/add_curve_sapling/utils.py
@@ -755,7 +755,7 @@ def create_armature(armAnim, leafP, cu, frameRate, leafMesh, leafObj, leafVertSi
armMod.use_vertex_groups = True
# Make sure all objects are deselected (may not be required?)
- for ob in bpy.data.objects:
+ for ob in bpy.context.view_layer.objects:
ob.select_set(state=False)
fps = bpy.context.scene.render.fps
@@ -1594,7 +1594,7 @@ def addTree(props):
else:
handles = 'VECTOR'
- for ob in bpy.data.objects:
+ for ob in bpy.context.view_layer.objects:
ob.select_set(state=False)
# Initialise the tree object and curve and adjust the settings