leomoon-studios / leomoon-lightstudio

Light Studio plugin for Blender
https://leomoon.com/store/plugins/leomoon-lightstudio/
GNU General Public License v3.0
353 stars 45 forks source link

Unable to move light using G hotkey in Blender 3.1.0 #65

Closed leomoon closed 2 years ago

leomoon commented 2 years ago

move:

Python: Traceback (most recent call last):
  File "C:\Users\LeoMoon\AppData\Roaming\Blender Foundation\Blender\3.1\scripts\addons\leomoon-lightstudio\operators\modal.py", line 243, in invoke
    self.mouse_x = context.area.width/2
  File "D:\LeoMoon\Desktop\blender-3.1.0-windows-x64\3.1\scripts\modules\bpy_types.py", line 778, in __setattr__
    return setattr(properties, attr, value)
TypeError: bpy_struct: item.attr = val: LIGHT_STUDIO_OT_grab.mouse_x expected an int type, not float

location: <unknown location>:-1

rotate:

Python: Traceback (most recent call last):
  File "C:\Users\LeoMoon\AppData\Roaming\Blender Foundation\Blender\3.1\scripts\addons\leomoon-lightstudio\operators\modal.py", line 73, in invoke
    self.mouse_x = context.area.width/2
  File "D:\LeoMoon\Desktop\blender-3.1.0-windows-x64\3.1\scripts\modules\bpy_types.py", line 778, in __setattr__
    return setattr(properties, attr, value)
TypeError: bpy_struct: item.attr = val: LIGHT_STUDIO_OT_rotate.mouse_x expected an int type, not float

location: <unknown location>:-1

scale:

Python: Traceback (most recent call last):
  File "C:\Users\LeoMoon\AppData\Roaming\Blender Foundation\Blender\3.1\scripts\addons\leomoon-lightstudio\operators\modal.py", line 156, in invoke
    self.mouse_x = context.area.width/2
  File "D:\LeoMoon\Desktop\blender-3.1.0-windows-x64\3.1\scripts\modules\bpy_types.py", line 778, in __setattr__
    return setattr(properties, attr, value)
TypeError: bpy_struct: item.attr = val: LIGHT_STUDIO_OT_scale.mouse_x expected an int type, not float

location: <unknown location>:-1

Also clicking alight in LightPanel will close it.

deadman49 commented 2 years ago

same problem, not working on 3.1

leomoon commented 2 years ago

Fixed in LightStudio 2.11.0