franMarz / TexTools-Blender

TexTools is a UV and Texture toolset created several years ago for Blender and Max by @renderhjs. In this open repository, originally created by @SavMartin, we develop the current version of this popular Blender add-on.
Other
2.03k stars 138 forks source link

Crashing on baking anything in 3.x #131

Closed Vector-Impulse closed 2 years ago

Vector-Impulse commented 2 years ago

I'm getting this error for some reason when I bake anything in 3.1

Python: Traceback (most recent call last):
  File "C:\Users\Owner\AppData\Roaming\Blender Foundation\Blender\3.1\scripts\addons\TexTools_1_4_4\op_bake.py", line 191, in execute
    bake(
  File "C:\Users\Owner\AppData\Roaming\Blender Foundation\Blender\3.1\scripts\addons\TexTools_1_4_4\op_bake.py", line 509, in bake
    cycles_bake(
  File "C:\Users\Owner\AppData\Roaming\Blender Foundation\Blender\3.1\scripts\addons\TexTools_1_4_4\op_bake.py", line 948, in cycles_bake
    bpy.context.scene.cycles.samples = samples
TypeError: bpy_struct: item.attr = val: CyclesRenderSettings.samples expected an int type, not float

location: <unknown location>:-1
franMarz commented 2 years ago

Are you using the latest version (master)?

Vector-Impulse commented 2 years ago

Oh ok, the master copy works fine. The one version I was using initially was from the releases version. Thanks for being patient with me.

franMarz commented 2 years ago

No problem, come back anytime you have an issue. Have a nice day.