Skip to content

Commit fca8719

Browse files
trigger 3d options for 3d datasets
1 parent 6317253 commit fca8719

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

picasso/gui/render.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2245,6 +2245,10 @@ def add(self, path, render=True):
22452245

22462246
if hasattr(locs, "z"):
22472247
self.window.slicer_dialog.zcoord.append(locs.z)
2248+
# unlock 3D settings
2249+
for action in self.window.actions_3d:
2250+
action.setVisible(True)
2251+
22482252
self.window.mask_settings_dialog.locs.append(
22492253
locs
22502254
) # TODO: replace at some point, not very efficient
@@ -5457,6 +5461,14 @@ def __init__(self):
54575461

54585462
self.load_user_settings()
54595463

5464+
# Define 3D entries
5465+
5466+
self.actions_3d = [plotpick3dsingle_action, plotpick3d_action,
5467+
plotpick3d_iso_action, slicer_action]
5468+
5469+
for action in self.actions_3d:
5470+
action.setVisible(False)
5471+
54605472
def closeEvent(self, event):
54615473
settings = io.load_user_settings()
54625474
settings["Render"][

0 commit comments

Comments
 (0)