diff options
author | Bruce Smith <bruce@nanorex.com> | 2008-09-09 00:49:13 +0000 |
---|---|---|
committer | Bruce Smith <bruce@nanorex.com> | 2008-09-09 00:49:13 +0000 |
commit | edb25acb472c8995195a518113341773821ec8dc (patch) | |
tree | 8276c46bf6e040009ff9f2bb9b9c58628b981add /cad/src/commands/Extrude | |
parent | b92ef11672a580a32aae7721bd62c74d956198ea (diff) | |
download | nanoengineer-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-x | cad/src/commands/Extrude/extrudeMode.py | 5 |
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): |