Skip to content

Commit

Permalink
LOL: Update active asset bar when downloading new ToC from server
Browse files Browse the repository at this point in the history
  • Loading branch information
neo2068 committed Dec 27, 2020
1 parent 2de1994 commit 8b0bf47
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
5 changes: 5 additions & 0 deletions operators/lol/update_ToC.py
Expand Up @@ -42,6 +42,9 @@ def execute(self, context):
import urllib.request
import json

scene = context.scene
ui_props = scene.luxcoreOL.ui

name = basename(dirname(dirname(dirname(__file__))))
user_preferences = context.preferences.addons[name].preferences

Expand All @@ -66,4 +69,6 @@ def execute(self, context):
with open(filepath, 'w') as file:
file.write(json.dumps(assets, indent=2))

utils.download_table_of_contents(context)
utils.load_previews(context, ui_props.asset_type)
return {'FINISHED'}
6 changes: 0 additions & 6 deletions ui/lol/panel.py
Expand Up @@ -68,11 +68,6 @@ def draw_panel_model_search(self, context):
model_props = scene.luxcoreOL.model
layout = self.layout

#TODO: Implement non_free models if needed
# Currently all available models are free

# col.prop(model_props, "free_only")

ui_props = scene.luxcoreOL.ui

if ui_props.assetbar_on:
Expand Down Expand Up @@ -105,7 +100,6 @@ def draw_panel_model_search(self, context):

def draw_panel_scene_search(self, context):
scene = context.scene
# scene_props = scene.luxcoreOL.scene
layout = self.layout
ui_props = scene.luxcoreOL.ui

Expand Down

0 comments on commit 8b0bf47

Please sign in to comment.