Skip to content
Snippets Groups Projects
Commit 97ab094e authored by Jace Priester's avatar Jace Priester
Browse files

The tree is now added at the cursor location instead of the world origin.

parent efd15a20
No related branches found
No related tags found
No related merge requests found
......@@ -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 "
......
......@@ -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'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment