Skip to content

Commit

Permalink
fixed crash when app is installed
Browse files Browse the repository at this point in the history
  • Loading branch information
Nokse22 committed May 1, 2024
1 parent 5f5fa66 commit 8ec16ce
Showing 1 changed file with 7 additions and 18 deletions.
25 changes: 7 additions & 18 deletions src/window.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,18 +48,7 @@ def __init__(self, **kwargs):

self.options = {
"scene.up-direction": "+Y",
"render.raytracing.enable": False,
"render.background.color": [1.0, 1.0, 1.0],
"render.grid.enable": True,
"render.effect.tone-mapping": False,
"render.effect.ambient-occlusion": False,
"render.effect.anti-aliasing": False,
"render.effect.translucency-support": False,
"scene.animation.index": -1,
"scene.animation.autoplay": True,
"ui.bar": True,
"render.show-edges": False,
"render.hdri.ambient": True
}

self.engine = Engine(Window.EXTERNAL)
Expand Down Expand Up @@ -138,14 +127,14 @@ def on_open_file_response(self, dialog, response):
self.open_button.set_sensitive(False)
self.stack.set_visible_child_name("3d_page")

options = {
"render.effect.tone-mapping": True,
"render.effect.ambient-occlusion": True,
"render.effect.anti-aliasing": True,
"render.effect.translucency-support": True,
}
# options = {
# "render.effect.tone-mapping": True,
# "render.effect.ambient-occlusion": True,
# "render.effect.anti-aliasing": True,
# "render.effect.translucency-support": True,
# }

self.engine.options.update(options)
# self.engine.options.update(options)

self.gl_area.queue_render()

Expand Down

0 comments on commit 8ec16ce

Please sign in to comment.