Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wyhinton opened this issue May 30, 2022 · 0 comments
Open

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

wyhinton opened this issue May 30, 2022 · 0 comments

Comments

@wyhinton
Copy link

wyhinton commented May 30, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant