Skip to content

Commit

Permalink
fixed SWRAD GEO/SAT
Browse files Browse the repository at this point in the history
  • Loading branch information
jooste committed Jun 6, 2024
1 parent 7c2bac2 commit 29544dc
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
10 changes: 8 additions & 2 deletions bluesky/ui/qtgl/glmap.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
''' BlueSky OpenGL map object. '''
from os import path
import numpy as np

from bluesky.ui import palette
Expand Down Expand Up @@ -49,15 +48,22 @@ def create(self):
break

def draw(self, skipmap=False):
actdata = bs.net.get_nodedata()

# Send the (possibly) updated global uniforms to the buffer
self.shaderset.set_vertex_scale_type(self.shaderset.VERTEX_IS_LATLON)

# --- DRAW THE MAP AND COASTLINES ---------------------------------------------
# Map and coastlines: don't wrap around in the shader
self.shaderset.enable_wrap(False)

if not skipmap:
if actdata.show_map and not skipmap:
self.map.draw()

# Skip coastlines if set to disabled
if not actdata.show_coast:
return

shaderset = glh.ShaderSet.selected
if shaderset.data.wrapdir == 0:
# Normal case, no wrap around
Expand Down
1 change: 1 addition & 0 deletions bluesky/ui/qtgl/guiclient.py
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,7 @@ def setflag(self, flag, args=None):

# Satellite image background on/off
elif flag == 'SAT':
print('setting sat')
self.show_map = not self.show_map

# Satellite image background on/off
Expand Down

0 comments on commit 29544dc

Please sign in to comment.