BlenderKit: Fix Selected model panel
Operator exec context wasn't set Fast rating operator had wrong numbers in enum removed a hacky fix for BGL bug that was introduced during 2.91 develpment and now fixed
This commit is contained in:
parent
33eae7da67
commit
0941b635cc
|
@ -346,14 +346,16 @@ class FastRateMenu(Operator):
|
|||
('3', '3', ''),
|
||||
('4', '4', ''),
|
||||
('5', '5', ''),
|
||||
('6', '6', ''),
|
||||
('8', '8', ''),
|
||||
('10', '10', ''),
|
||||
('15', '15', ''),
|
||||
('20', '20', ''),
|
||||
('50', '50', ''),
|
||||
('100', '100', ''),
|
||||
('150', '100', ''),
|
||||
('200', '100', ''),
|
||||
('250', '100', ''),
|
||||
('150', '150', ''),
|
||||
('200', '200', ''),
|
||||
('250', '250', ''),
|
||||
],
|
||||
default='0', update=update_ratings_work_hours_ui
|
||||
)
|
||||
|
|
|
@ -738,14 +738,14 @@ def draw_callback_2d_search(self, context):
|
|||
highlight = (1, 1, 1, .2)
|
||||
# highlight = (1, 1, 1, 0.8)
|
||||
# background of asset bar
|
||||
if ui_props.hcount>0:
|
||||
#this fixes a draw issue introduced in blender 2.91. draws a very small version of the image to avoid problems
|
||||
# with alpha. Not sure why this works.
|
||||
img = utils.get_thumbnail('arrow_left.png')
|
||||
ui_bgl.draw_image(0, 0, 1,
|
||||
1,
|
||||
img,
|
||||
1)
|
||||
# if ui_props.hcount>0:
|
||||
# #this fixes a draw issue introduced in blender 2.91. draws a very small version of the image to avoid problems
|
||||
# # with alpha. Not sure why this works.
|
||||
# img = utils.get_thumbnail('arrow_left.png')
|
||||
# ui_bgl.draw_image(0, 0, 1,
|
||||
# 1,
|
||||
# img,
|
||||
# 1)
|
||||
if not ui_props.dragging and ui_props.hcount>0:
|
||||
search_results = s.get('search results')
|
||||
search_results_orig = s.get('search results orig')
|
||||
|
|
|
@ -1083,6 +1083,8 @@ def draw_asset_context_menu(self, context, asset_data):
|
|||
# validation
|
||||
if utils.profile_is_validator():
|
||||
layout.label(text='Validation tools:')
|
||||
layout.operator_context = 'EXEC_DEFAULT'
|
||||
|
||||
if asset_data['verificationStatus'] != 'uploaded':
|
||||
op = layout.operator('object.blenderkit_change_status', text='set Uploaded')
|
||||
op.asset_id = asset_data['id']
|
||||
|
|
|
@ -836,7 +836,7 @@ class AssetVerificationStatusChange(Operator):
|
|||
return {'FINISHED'}
|
||||
|
||||
def invoke(self, context, event):
|
||||
print(self.state)
|
||||
# print(self.state)
|
||||
if self.state == 'deleted':
|
||||
wm = context.window_manager
|
||||
return wm.invoke_props_dialog(self)
|
||||
|
|
Loading…
Reference in New Issue