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:
authorSergey Sharybin <sergey.vfx@gmail.com>2018-11-28 19:51:13 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2018-11-28 20:23:31 +0300
commit1860441ee7cd4ec75c99cc372fccec839c525f46 (patch)
treefe8ef38166fce2ff001b2b92dcc77458526e4ebc /add_curve_sapling
parentfef2540b25775c3e1e4012bec35ddb8695daa209 (diff)
Use collection and instance terminology in Python API
This follows naming convention agreed on in T56648.
Diffstat (limited to 'add_curve_sapling')
-rw-r--r--add_curve_sapling/utils.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/add_curve_sapling/utils.py b/add_curve_sapling/utils.py
index 7f6a45b7..fb1fc7d3 100644
--- a/add_curve_sapling/utils.py
+++ b/add_curve_sapling/utils.py
@@ -1797,17 +1797,17 @@ def addTree(props):
# enable duplication
if leafShape == 'dFace':
- leafObj.dupli_type = "FACES"
- leafObj.use_dupli_faces_scale = True
- leafObj.dupli_faces_scale = 10.0
+ leafObj.instance_type = "FACES"
+ leafObj.use_instance_faces_scale = True
+ leafObj.instance_faces_scale = 10.0
try:
if leafDupliObj not in "NONE":
bpy.data.objects[leafDupliObj].parent = leafObj
except KeyError:
pass
elif leafShape == 'dVert':
- leafObj.dupli_type = "VERTS"
- leafObj.use_dupli_vertices_rotation = True
+ leafObj.instance_type = "VERTS"
+ leafObj.use_instance_vertices_rotation = True
try:
if leafDupliObj not in "NONE":
bpy.data.objects[leafDupliObj].parent = leafObj