Page MenuHome

3D Print Toolbox fails to calculate Volume or Area for object with modifier
Closed, ResolvedPublic


System Information
Operating system: Ubuntu 18.04.1 LTS
Graphics card: GTX 680

Blender Version
Broken: 2.80, 7e5f31be418, 2018-12-04
Worked: In 2.79b this worked as expected, and the result was surface area or volume of modified object.

Short description of error
Traceback (most recent call last):

File "/home/lissanro/pkgs/blender/blender-2.80-63ac7c799c8-linux-glibc224-x86_64/2.80/scripts/addons/object_print3d_utils/", line 89, in execute
  bm = mesh_helpers.bmesh_copy_from_object(obj, apply_modifiers=True)
File "/home/lissanro/pkgs/blender/blender-2.80-63ac7c799c8-linux-glibc224-x86_64/2.80/scripts/addons/object_print3d_utils/", line 35, in bmesh_copy_from_object
  me = obj.to_mesh(bpy.context.scene, True, 'PREVIEW')
TypeError: Object.to_mesh(): error with argument 1, "depsgraph" -  Function.depsgraph expected a Depsgraph type, not Scene

Exact steps for others to reproduce the error
Enable 3D Print Toolbox addon. Then add Subsurface modifier (or any other modifier) to the default cube, press N to show N-panel, switch to 3D printing tab, and try to calculate cube's Area or Surface, and you should get the error above. Attempting to scale to specified volume also triggers this bug if the object has modifier(s).

Event Timeline

I'm guessing that this might be because most addons are not yet updated to 2.8. So it's not really a bug in blender. It's just that the addons need to update to the new API changes

Philipp Oeser (lichtwerk) triaged this task as Confirmed priority.

This is supposed to work, will check in a bit...