问题点

在blender3.1及以上的版本中使用PolyQuilt的笔刷工具,会弹出错误。
错误.gif

  1. Python: Traceback (most recent call last):
  2. File "C:\Users\CCF-Package\AppData\Roaming\Blender Foundation\Blender\3.2\scripts\addons\PolyQuilt\pq_operator.py", line 172, in modal
  3. raise e
  4. File "C:\Users\CCF-Package\AppData\Roaming\Blender Foundation\Blender\3.2\scripts\addons\PolyQuilt\pq_operator.py", line 168, in modal
  5. val = self.update( context, event)
  6. File "C:\Users\CCF-Package\AppData\Roaming\Blender Foundation\Blender\3.2\scripts\addons\PolyQuilt\pq_operator.py", line 205, in update
  7. ret = self.currentSubTool.Update(context, event)
  8. File "C:\Users\CCF-Package\AppData\Roaming\Blender Foundation\Blender\3.2\scripts\addons\PolyQuilt\subtools\subtool.py", line 97, in Update
  9. ret = subTool.Update(context , event)
  10. File "C:\Users\CCF-Package\AppData\Roaming\Blender Foundation\Blender\3.2\scripts\addons\PolyQuilt\subtools\subtool.py", line 116, in Update
  11. ret = self.OnUpdate(context,event)
  12. File "C:\Users\CCF-Package\AppData\Roaming\Blender Foundation\Blender\3.2\scripts\addons\PolyQuilt\subtools\subtool_brush_relax.py", line 58, in OnUpdate
  13. self.DoRelax( context ,self.mouse_pos )
  14. File "C:\Users\CCF-Package\AppData\Roaming\Blender Foundation\Blender\3.2\scripts\addons\PolyQuilt\subtools\subtool_brush_relax.py", line 148, in DoRelax
  15. coords = self.CollectVerts( context, coord )
  16. File "C:\Users\CCF-Package\AppData\Roaming\Blender Foundation\Blender\3.2\scripts\addons\PolyQuilt\subtools\subtool_brush_relax.py", line 94, in CollectVerts
  17. bpy.ops.view3d.select_circle( x = coord.x , y = coord.y , radius = radius , wait_for_input=False, mode='SET' )
  18. File "E:\A APP\Blender Foundation\Blender 3.2\3.2\scripts\modules\bpy\ops.py", line 115, in __call__
  19. ret = _op_call(self.idname_py(), None, kw)
  20. TypeError: Converting py args to operator properties: VIEW3D_OT_select_circle.x expected an int type, not float

解决办法

平滑工具

要快速修复平滑工具,请转到 路径**PolyQuilt \ Subtools \ subtool_brush_relax.py**并将第 93 行从**bpy.ops.view3d.select_circle( x = coord.x , y = coord.y , radius = radius , wait_for_input=False, mode='SET' )** 更改为 **bpy.ops.view3d.select_circle( x = int(coord.x), y = int(coord.y) , radius = int(radius) , wait_for_input=False, mode='SET' )** 并重新启动搅拌机。

移动工具

要快速修复移动工具,请转到 路径**PolyQuilt \ Subtools \ subtool_brush_move.py**并将第 97 行从**bpy.ops.view3d.select_circle( x = coord.x , y = coord.y , radius = radius , wait_for_input=False, mode='SET' )** 更改为 **bpy.ops.view3d.select_circle( x = int(coord.x), y = int(coord.y) , radius = int(radius) , wait_for_input=False, mode='SET' )** 并重新启动搅拌机。

删除工具

要快速修复移动工具,请转到 路径**PolyQuilt \ Subtools \ subtool_brush_delete.py**并将第 97 行从**bpy.ops.view3d.select_circle( x = coord.x , y = coord.y , radius = radius , wait_for_input=False, mode='SET' )** 更改为 **bpy.ops.view3d.select_circle( x = int(coord.x), y = int(coord.y) , radius = int(radius) , wait_for_input=False, mode='SET' )** 并重新启动搅拌机。

完美解决

解决.gif

📑官方地址