diff options
author | Campbell Barton <ideasman42@gmail.com> | 2009-11-03 19:07:29 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2009-11-03 19:07:29 +0300 |
commit | b8b89d5ae4a1c94630847d12112597f4b8256986 (patch) | |
tree | 222d63d48a131c05b98a3160ac0fadf74e8eebe9 /release | |
parent | b3c8935b066cd1a9f17cb7199d87ede3f644a35c (diff) |
active property for collections for things like scene.objects.active
will add more properties later
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/io/add_mesh_torus.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/release/scripts/io/add_mesh_torus.py b/release/scripts/io/add_mesh_torus.py index 8a6a3a58ed6..27ef587ce5a 100644 --- a/release/scripts/io/add_mesh_torus.py +++ b/release/scripts/io/add_mesh_torus.py @@ -117,7 +117,7 @@ class AddTorusPrimitive(bpy.types.Operator): ob_new = bpy.data.add_object('MESH', "Torus") ob_new.data = mesh scene.add_object(ob_new) - scene.active_object = ob_new + scene.objects.active = ob_new ob_new.selected = True ob_new.location = tuple(context.scene.cursor_location) |