From 97ab094eb6cf4f321e68486061f8491b6c69ed01 Mon Sep 17 00:00:00 2001
From: Jace Priester <jacepriester@gmail.com>
Date: Thu, 20 Sep 2012 10:45:55 +0000
Subject: [PATCH] The tree is now added at the cursor location instead of the
 world origin.

---
 add_curve_sapling/__init__.py | 2 +-
 add_curve_sapling/utils.py    | 2 ++
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/add_curve_sapling/__init__.py b/add_curve_sapling/__init__.py
index e69757a6d..e4f5b9ccd 100644
--- a/add_curve_sapling/__init__.py
+++ b/add_curve_sapling/__init__.py
@@ -19,7 +19,7 @@
 bl_info = {
     "name": "Sapling",
     "author": "Andrew Hale (TrumanBlending)",
-    "version": (0, 2, 5),
+    "version": (0, 2, 6),
     "blender": (2, 6, 4),
     "location": "View3D > Add > Curve",
     "description": ("Adds a parametric tree. The method is presented by "
diff --git a/add_curve_sapling/utils.py b/add_curve_sapling/utils.py
index 9d7b17ca3..2aae8a624 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'
-- 
GitLab