Page MenuHome

"Make Dupli Face" broken in 2.8 due to API change
Closed, ResolvedPublic

Description

System Information
Operating system: Darwin-17.6.0-x86_64-i386-64bit 64 Bits
Graphics card: AMD Radeon Pro 560 OpenGL Engine ATI Technologies Inc. 4.1 ATI-1.66.42

Blender Version
Broken: version: 2.80 (sub 53), branch: blender2.7, commit date: 2019-03-31 21:52, hash: rBb936d7b16c62
Worked: Blender 2.79

Short description of error
The "Make Dupli Face" feature is broken in 2.8 because of Python API changes. References to the old layer system, and scene.objects.link() are creating errors. This should be easy to fix.

Exact steps for others to reproduce the error


Simply open the attached blend file, press 'a' to select all, and go to object>relations>"Make Dupli Face". There will be a Python error.

The Python error is in scripts/startup/bl_operator/object.py.
Lines 644,645, 648, 649, 651 & 652 are causing the errors. Changing Line 644 and 648 "scene.objects.link" to "scene.collection.objects.link" seems to work OK. I commented the other lines because I don't know the new API well enough to replicate the old behavior. After that, the operator ran without errors.
I hope this helps!