3D Print Toolbox fails to calculate Volume or Area for object with modifier #58798

Closed
opened 2018-12-05 15:40:55 +01:00 by Lissanro Rayen · 7 comments

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/operators.py", 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/mesh_helpers.py", 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).

**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/operators.py", 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/mesh_helpers.py", 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).
Author

Added subscriber: @Dragon.Studio

Added subscriber: @Dragon.Studio

Added subscriber: @ZedDB

Added subscriber: @ZedDB

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

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
Member

Added subscriber: @lichtwerk

Added subscriber: @lichtwerk
Philipp Oeser self-assigned this 2018-12-06 10:52:46 +01:00
Member

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

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

This issue was referenced by c3c0fd18ee

This issue was referenced by c3c0fd18ee1d58f8c9e7b03329894503afffa732
Member

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'
Sign in to join this conversation.
No Milestone
No project
No Assignees
4 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender-addons#58798
No description provided.