Fix wrong property name in preview render Python script.

This commit is contained in:
Brecht Van Lommel 2018-11-29 18:26:48 +01:00
parent 26d5a3625e
commit e03eaf5b81
1 changed files with 1 additions and 1 deletions

View File

@ -390,7 +390,7 @@ def do_previews(do_objects, do_collections, do_scenes, do_data_intern):
bpy.context.screen.scene = scene
bpy.ops.object.collection_instance_add(collection=grp.name)
grp_ob = next((ob for ob in scene.objects if ob.instance_collection and ob.dupli_coilection.name == grp.name))
grp_ob = next((ob for ob in scene.objects if ob.instance_collection and ob.instance_collection.name == grp.name))
grp_obname = grp_ob.name
scene.update()