Skip to content

Commit

Permalink
Merge branch 'master' into network-update
Browse files Browse the repository at this point in the history
  • Loading branch information
jooste committed Jun 12, 2024
2 parents b07ced0 + 849d76f commit 09c40cd
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bluesky/stack/cmdparser.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
''' Stack Command implementation. '''
import inspect
from typing import Dict

from bluesky.core.funcobject import FuncObject
from bluesky.network.sharedstate import publisher
Expand All @@ -9,7 +10,7 @@
class Command:
''' Stack command object. '''
# Dictionary with all command objects
cmddict: dict[str, 'Command'] = dict()
cmddict: Dict[str, 'Command'] = dict()

@staticmethod
@publisher(topic='STACKCMDS')
Expand Down
8 changes: 8 additions & 0 deletions bluesky/ui/qtgl/glmap.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ 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)

Expand All @@ -75,7 +77,13 @@ def draw(self, skipmap=False):
self.shaderset.enable_wrap(False)

if self.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 not self.show_coast:
return
Expand Down

0 comments on commit 09c40cd

Please sign in to comment.