This commit is contained in:
Nicolas Predella 2026-05-17 12:23:18 +03:00
parent 3999d67174
commit 5275b98cb5

View file

@ -253,8 +253,8 @@ class SlicingGroup():
if obj.mode == 'EDIT': if obj.mode == 'EDIT':
obj.update_from_editmode() obj.update_from_editmode()
eval_obj = obj.evaluated_get(depsgraph) eval_obj = obj.evaluated_get(depsgraph)
if hasattr(eval_obj, 'blendertoprusaslicer'): if hasattr(eval_obj, 'nodeslicer'):
if eval_obj.blendertoprusaslicer.object_type == 'WipeTower': if eval_obj.nodeslicer.object_type == 'WipeTower':
self.wipe_tower_xy = np.array(eval_obj.location[0:2]) * scale_tx self.wipe_tower_xy = np.array(eval_obj.location[0:2]) * scale_tx
self.wipe_tower_rotation_deg = round(eval_obj.rotation_euler[2]*180/math.pi,5) self.wipe_tower_rotation_deg = round(eval_obj.rotation_euler[2]*180/math.pi,5)
break break