use ns
This commit is contained in:
parent
3999d67174
commit
5275b98cb5
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue