Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'release/scripts/object_batch_name_edit.py')
-rw-r--r--release/scripts/object_batch_name_edit.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/release/scripts/object_batch_name_edit.py b/release/scripts/object_batch_name_edit.py
index 812eee9dfe6..eff43e05fa8 100644
--- a/release/scripts/object_batch_name_edit.py
+++ b/release/scripts/object_batch_name_edit.py
@@ -46,7 +46,7 @@ from Blender import *
global renameCount
renameCount = 0
-obsel = Scene.GetCurrent().objects.context
+obsel = Main.scenes.active.objects.context
def setDataNameWrapper(ob, newname):
if ob.getData(name_only=1) == newname: