BlenderKit: fix assetbar not reacting
commenting outh the fix for the mouse in assetbar function, needs more triage
This commit is contained in:
parent
43f46021b0
commit
e0319c4850
|
@ -1117,16 +1117,16 @@ def mouse_in_asset_bar(mx, my):
|
|||
s = bpy.context.scene
|
||||
|
||||
ui_props = bpy.context.scene.blenderkitUI
|
||||
search_results = s.get('search results')
|
||||
if search_results == None:
|
||||
return False
|
||||
|
||||
w_draw1 = min(ui_props.wcount + 1, len(search_results) - b * ui_props.wcount - ui_props.scrolloffset)
|
||||
end = ui_props.bar_x + (w_draw1) * (
|
||||
ui_props.margin + ui_props.thumb_size) + ui_props.margin + ui_props.drawoffset + 25
|
||||
# search_results = s.get('search results')
|
||||
# if search_results == None:
|
||||
# return False
|
||||
#
|
||||
# w_draw1 = min(ui_props.wcount + 1, len(search_results) - b * ui_props.wcount - ui_props.scrolloffset)
|
||||
# end = ui_props.bar_x + (w_draw1) * (
|
||||
# ui_props.margin + ui_props.thumb_size) + ui_props.margin + ui_props.drawoffset + 25
|
||||
|
||||
if ui_props.bar_y - ui_props.bar_height < my < ui_props.bar_y \
|
||||
and mx > ui_props.bar_x and mx < end:
|
||||
and mx > ui_props.bar_x and mx < ui_props.bar_x + ui_props.bar_width:
|
||||
return True
|
||||
else:
|
||||
return False
|
||||
|
@ -1790,7 +1790,7 @@ class UndoWithContext(bpy.types.Operator):
|
|||
# def modal(self, context, event):
|
||||
# return {'RUNNING_MODAL'}
|
||||
|
||||
message = StringProperty('Undo Message', default='BlenderKit operation')
|
||||
message: StringProperty('Undo Message', default='BlenderKit operation')
|
||||
|
||||
def execute(self, context):
|
||||
C_dict = bpy.context.copy()
|
||||
|
|
Loading…
Reference in New Issue