mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-09-13 23:23:17 +08:00
Check the bounding box before using it
Some objects don't have a bounding box if they are improperly constructed by a plug-in. Fixes Sentry issue CURA-N3.
This commit is contained in:
parent
481da09975
commit
bf3d6c67d9
@ -86,7 +86,7 @@ class ModelChecker(QObject, Extension):
|
|||||||
|
|
||||||
if material_shrinkage[node_extruder_position] > shrinkage_threshold:
|
if material_shrinkage[node_extruder_position] > shrinkage_threshold:
|
||||||
bbox = node.getBoundingBox()
|
bbox = node.getBoundingBox()
|
||||||
if bbox.width >= warning_size_xy or bbox.depth >= warning_size_xy or bbox.height >= warning_size_z:
|
if bbox is not None and (bbox.width >= warning_size_xy or bbox.depth >= warning_size_xy or bbox.height >= warning_size_z):
|
||||||
warning_nodes.append(node)
|
warning_nodes.append(node)
|
||||||
|
|
||||||
self._caution_message.setText(catalog.i18nc(
|
self._caution_message.setText(catalog.i18nc(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user