Fix incorrect active object setting in scripts.

This commit is contained in:
Brecht Van Lommel
2018-07-24 11:18:45 +02:00
parent 9284c051d6
commit 31c49493d1
6 changed files with 15 additions and 15 deletions

View File

@@ -166,7 +166,7 @@ def object_data_add(context, obdata, operator=None, name=None):
obj_act.select_set(action='SELECT')
scene.update() # apply location
# scene.objects.active = obj_new
# layer.objects.active = obj_new
# Match up UV layers, this is needed so adding an object with UV's
# doesn't create new layers when there happens to be a naming mis-match.