Skip to content

Commit

Permalink
trigger 3d options for 3d datasets
Browse files Browse the repository at this point in the history
  • Loading branch information
straussmaximilian committed Nov 5, 2018
1 parent 6317253 commit fca8719
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions picasso/gui/render.py
Original file line number Diff line number Diff line change
Expand Up @@ -2245,6 +2245,10 @@ def add(self, path, render=True):

if hasattr(locs, "z"):
self.window.slicer_dialog.zcoord.append(locs.z)
# unlock 3D settings
for action in self.window.actions_3d:
action.setVisible(True)

self.window.mask_settings_dialog.locs.append(
locs
) # TODO: replace at some point, not very efficient
Expand Down Expand Up @@ -5457,6 +5461,14 @@ def __init__(self):

self.load_user_settings()

# Define 3D entries

self.actions_3d = [plotpick3dsingle_action, plotpick3d_action,
plotpick3d_iso_action, slicer_action]

for action in self.actions_3d:
action.setVisible(False)

def closeEvent(self, event):
settings = io.load_user_settings()
settings["Render"][
Expand Down

0 comments on commit fca8719

Please sign in to comment.