diff options
author | Jace Priester <jacepriester@gmail.com> | 2012-09-20 14:45:55 +0400 |
---|---|---|
committer | Jace Priester <jacepriester@gmail.com> | 2012-09-20 14:45:55 +0400 |
commit | 97ab094eb6cf4f321e68486061f8491b6c69ed01 (patch) | |
tree | 926fd947cbd1f6666aa3c391da9ed003c377fefb /add_curve_sapling/utils.py | |
parent | efd15a20b5abc703feb3d2fbbc5728c4a5002962 (diff) |
The tree is now added at the cursor location instead of the world origin.
Diffstat (limited to 'add_curve_sapling/utils.py')
-rw-r--r-- | add_curve_sapling/utils.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/add_curve_sapling/utils.py b/add_curve_sapling/utils.py index 9d7b17ca..2aae8a62 100644 --- a/add_curve_sapling/utils.py +++ b/add_curve_sapling/utils.py @@ -482,6 +482,8 @@ def addTree(props): cu = bpy.data.curves.new('tree','CURVE') treeOb = bpy.data.objects.new('tree',cu) bpy.context.scene.objects.link(treeOb) + + treeOb.location=bpy.context.scene.cursor_location cu.dimensions = '3D' cu.fill_mode = 'FULL' |