summaryrefslogtreecommitdiff
path: root/cad/src/commands/Extrude
diff options
context:
space:
mode:
authorBruce Smith <bruce@nanorex.com>2008-09-09 00:49:13 +0000
committerBruce Smith <bruce@nanorex.com>2008-09-09 00:49:13 +0000
commitedb25acb472c8995195a518113341773821ec8dc (patch)
tree8276c46bf6e040009ff9f2bb9b9c58628b981add /cad/src/commands/Extrude
parentb92ef11672a580a32aae7721bd62c74d956198ea (diff)
downloadnanoengineer-edb25acb472c8995195a518113341773821ec8dc.tar.gz
nanoengineer-edb25acb472c8995195a518113341773821ec8dc.zip
clean up USE_COMMAND_STACK code related to Abandon and haveNontrivialState
Diffstat (limited to 'cad/src/commands/Extrude')
-rwxr-xr-xcad/src/commands/Extrude/extrudeMode.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/cad/src/commands/Extrude/extrudeMode.py b/cad/src/commands/Extrude/extrudeMode.py
index 7df0cf9a3..0f4c57b33 100755
--- a/cad/src/commands/Extrude/extrudeMode.py
+++ b/cad/src/commands/Extrude/extrudeMode.py
@@ -152,6 +152,7 @@ class extrudeMode(basicMode):
featurename = "Extrude Mode"
from utilities.constants import CL_ENVIRONMENT_PROVIDING
command_level = CL_ENVIRONMENT_PROVIDING
+ command_porting_status = 'NOT_PORTED'
keeppicked = 0 # whether to keep the units all picked, or all unpicked, during the mode
@@ -1132,6 +1133,10 @@ class extrudeMode(basicMode):
# methods related to exiting this mode
def haveNontrivialState(self):
+ # note: to port this to USE_COMMAND_STACK, check this condition in command_will_exit
+ # when self.commandSequencer.exit_is_forced -- see similar code in
+ # BuildCrystal_Command.command_will_exit; also relates to "Abandon"
+ # [bruce 080908 comment]
return self.ncopies != 1 # more or less...
def StateDone(self):