Skip to content

[BUG] SmoothModifier.iterations expected an int type, not float #200

@wyhinton

Description

@wyhinton

Using the Smooth Modifier throws a type error:

Python: Traceback (most recent call last):
  File "C:\Users\Primary User\AppData\Roaming\Blender Foundation\Blender\3.1\scripts\addons\sorcar\operators\ScExecuteNode.py", line 19, in execute
    curr_tree.execute_node()
  File "C:\Users\Primary User\AppData\Roaming\Blender Foundation\Blender\3.1\scripts\addons\sorcar\tree\ScNodeTree.py", line 77, in execute_node
    if (not n.execute()):
  File "C:\Users\Primary User\AppData\Roaming\Blender Foundation\Blender\3.1\scripts\addons\sorcar\nodes\_base\node_base.py", line 56, in execute
    self.functionality()
  File "C:\Users\Primary User\AppData\Roaming\Blender Foundation\Blender\3.1\scripts\addons\sorcar\nodes\modifiers\ScSmoothMod.py", line 42, in functionality
    bpy.context.object.modifiers[self.prop_mod_name].iterations = self.inputs["Repeat"].default_value
TypeError: bpy_struct: item.attr = val: SmoothModifier.iterations expected an int type, not float

location: <unknown location>:-1

image

Blender: 3.1.2
Sorcar: 3.2.1
OS: Windows 10

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions