diff options
author | Vilém Duha <vilda.novak@gmail.com> | 2019-09-03 11:04:15 +0300 |
---|---|---|
committer | Vilém Duha <vilda.novak@gmail.com> | 2019-09-04 10:06:10 +0300 |
commit | 01e5dd5dd8f03b647b207a88d5a9bafd1cc49dc5 (patch) | |
tree | 30ba3e10caebedf120928e1e84cbe82636ed5940 | |
parent | 42e44bdf6df03c583e22a8ed835faeaa762af8c2 (diff) |
BlenderKit: fix a bug where bound box wasn't drawn if in the area where normally asset bar is.
-rw-r--r-- | blenderkit/ui.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/blenderkit/ui.py b/blenderkit/ui.py index 966d35bb..7d60ef8c 100644 --- a/blenderkit/ui.py +++ b/blenderkit/ui.py @@ -1096,6 +1096,7 @@ def mouse_in_area(mx, my, x, y, w, h): def mouse_in_asset_bar(mx, my): ui_props = bpy.context.scene.blenderkitUI + if ui_props.bar_y - ui_props.bar_height < my < ui_props.bar_y \ and mx > ui_props.bar_x and mx < ui_props.bar_x + ui_props.bar_width: return True @@ -1401,7 +1402,7 @@ class AssetBarOperator(bpy.types.Operator): else: result = False - if ui_props.dragging and not mouse_in_asset_bar(mx, my) and mouse_in_region(r, mx, my): + if ui_props.dragging and mouse_in_region(r, mx, my): ui_props.has_hit, ui_props.snapped_location, ui_props.snapped_normal, ui_props.snapped_rotation, face_index, object, matrix = mouse_raycast( context, mx, my) # MODELS can be dragged on scene floor |