Skip to content

Tweak and Relax brush not showing in Blender 4.2 #1489

Closed
@jlampel

Description

@jlampel

Tweak and Relax aren't getting their radius properly, but only in Blender 4.2 and before. The error I get is below.

I've set the minimum Blender version to 4.3, so users should not run into this, but seeing as 4.3 is less than six months old, it would be nice to support 4.2 as well if there's an easy fix.

I could remove the error by switching return self.hit_scale * self.radius to just return self.radius in falloff_brush.py, but that didn't make the brush show up, it just got rid of the error. I tried filtering through the various checks that would make drawing the brush return, but didn't find the right cause.

Traceback (most recent call last):
  File "C:\Users\Jonathan\AppData\Roaming\Blender Foundation\Blender\4.2\extensions\vscode_development\retopoflow\retopoflow\common\operator.py", line 172, in invoke
    self.init(context, event)
  File "C:\Users\Jonathan\AppData\Roaming\Blender Foundation\Blender\4.2\extensions\vscode_development\retopoflow\retopoflow\rftool_tweak\tweak.py", line 172, in init
    self.logic = Tweak_Logic(context, event, RFTool_Tweak.rf_brush, self)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Jonathan\AppData\Roaming\Blender Foundation\Blender\4.2\extensions\vscode_development\retopoflow\retopoflow\rftool_tweak\tweak_logic.py", line 67, in __init__
    self.collect_verts(context, event)
  File "C:\Users\Jonathan\AppData\Roaming\Blender Foundation\Blender\4.2\extensions\vscode_development\retopoflow\retopoflow\rftool_tweak\tweak_logic.py", line 91, in collect_verts
    radius2D, radius3D = self.brush.radius, self.brush.get_scaled_radius()
                                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Jonathan\AppData\Roaming\Blender Foundation\Blender\4.2\extensions\vscode_development\retopoflow\retopoflow\rfbrushes\falloff_brush.py", line 112, in get_scaled_radius
    return self.hit_scale * self.radius
           ~~~~~~~~~~~~~~~^~~~~~~~~~~~~
TypeError: unsupported operand type(s) for *: 'NoneType' and 'int'

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions