Open PaulsonH opened 2 years ago
Confirming, it is broken for me in Blender 3.1
Not working in my case as well in 3.1
me to(
Same here :(
For anyone else with this problem, Blender 3.1 updated python from 3.9 to 3.10, which removed implicit conversion of floats to ints. For a quick fix for the relaxation tool go to PolyQuilt\Subtools\subtool_brush_relax.py and change line 93 from
bpy.ops.view3d.select_circle( x = coord.x , y = coord.y , radius = radius , wait_for_input=False, mode='SET' )
to
bpy.ops.view3d.select_circle( x = int(coord.x), y = int(coord.y) , radius = int(radius) , wait_for_input=False, mode='SET' )
and restart blender. That fixed it for me.
For anyone else with this problem, Blender 3.1 updated python from 3.9 to 3.10, which removed implicit conversion of floats to ints. For a quick fix for the relaxation tool go to PolyQuilt\Subtools\subtool_brush_relax.py and change line 93 from
bpy.ops.view3d.select_circle( x = coord.x , y = coord.y , radius = radius , wait_for_input=False, mode='SET' )
tobpy.ops.view3d.select_circle( x = int(coord.x), y = int(coord.y) , radius = int(radius) , wait_for_input=False, mode='SET' )
and restart blender. That fixed it for me.
Meeeeeen)) you are a god!
For anyone else with this problem, Blender 3.1 updated python from 3.9 to 3.10, which removed implicit conversion of floats to ints. For a quick fix...
Cheers, that did it.
For anyone else with this problem, Blender 3.1 updated python from 3.9 to 3.10, which removed implicit conversion of floats to ints. For a quick fix for the relaxation tool go to PolyQuilt\Subtools\subtool_brush_relax.py and change line 93 from
bpy.ops.view3d.select_circle( x = coord.x , y = coord.y , radius = radius , wait_for_input=False, mode='SET' )
tobpy.ops.view3d.select_circle( x = int(coord.x), y = int(coord.y) , radius = int(radius) , wait_for_input=False, mode='SET' )
and restart blender. That fixed it for me.
This worked!! thank you so much!
wow...thank you...
For anyone else with this problem, Blender 3.1 updated python from 3.9 to 3.10, which removed implicit conversion of floats to ints. For a quick fix for the relaxation tool go to PolyQuilt\Subtools\subtool_brush_relax.py and change line 93 from
bpy.ops.view3d.select_circle( x = coord.x , y = coord.y , radius = radius , wait_for_input=False, mode='SET' )
tobpy.ops.view3d.select_circle( x = int(coord.x), y = int(coord.y) , radius = int(radius) , wait_for_input=False, mode='SET' )
and restart blender. That fixed it for me.
Thank you. By correcting the following as you pointed out, we were able to handle brush resizing. ---\PolyQuilt\subtools\subtool_brush_size.py line 58 bpy.context.window.cursor_warp( self.PressPrevPos.x , self.PressPrevPos.y ) to bpy.context.window.cursor_warp( int(self.PressPrevPos.x) , int(self.PressPrevPos.y) )
location::-1
Error: Python: Traceback (most recent call last):
File "C:\Users\74091\AppData\Roaming\Blender Foundation\Blender\3.1\scripts\addons\PolyQuilt\pq_operator.py", line 172, in modal
raise e
File "C:\Users\74091\AppData\Roaming\Blender Foundation\Blender\3.1\scripts\addons\PolyQuilt\pq_operator.py", line 168, in modal
val = self.update( context, event)
File "C:\Users\74091\AppData\Roaming\Blender Foundation\Blender\3.1\scripts\addons\PolyQuilt\pq_operator.py", line 205, in update
ret = self.currentSubTool.Update(context, event)
File "C:\Users\74091\AppData\Roaming\Blender Foundation\Blender\3.1\scripts\addons\PolyQuilt\subtools\subtool.py", line 97, in Update
ret = subTool.Update(context , event)
File "C:\Users\74091\AppData\Roaming\Blender Foundation\Blender\3.1\scripts\addons\PolyQuilt\subtools\subtool.py", line 116, in Update
ret = self.OnUpdate(context,event)
File "C:\Users\74091\AppData\Roaming\Blender Foundation\Blender\3.1\scripts\addons\PolyQuilt\subtools\subtool_brush_relax.py", line 58, in OnUpdate
self.DoRelax( context ,self.mouse_pos )
File "C:\Users\74091\AppData\Roaming\Blender Foundation\Blender\3.1\scripts\addons\PolyQuilt\subtools\subtool_brush_relax.py", line 147, in DoRelax
coords = self.CollectVerts( context, coord )
File "C:\Users\74091\AppData\Roaming\Blender Foundation\Blender\3.1\scripts\addons\PolyQuilt\subtools\subtool_brush_relax.py", line 93, in CollectVerts
bpy.ops.view3d.select_circle( x = coord.x , y = coord.y , radius = radius , wait_for_input=False, mode='SET' )
File "I:\Program Files\Blender Foundation\Blender 3.1\3.1\scripts\modules\bpy\ops.py", line 132, in call
ret = _op_call(self.idname_py(), None, kw)
TypeError: Converting py args to operator properties: VIEW3D_OT_select_circle.x expected an int type, not float
location::-1