File tree Expand file tree Collapse file tree 1 file changed +16
-1
lines changed
src/main/java/com/neuronrobotics/bowlerstudio/scripting/cadoodle Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -119,6 +119,21 @@ public String toString(){
119119 return projectName ;
120120 }
121121
122+ public void deleteTailFromCurrent () {
123+ fireRegenerateStart (getCurrentOpperation ());
124+ IAcceptPruneForward oldAccept = getAccept ();
125+
126+ setAccept (() -> OperationResult .PRUNE );
127+
128+ try {
129+ pruneForward (getCurrentOpperation ());
130+ } catch (Exception ex ) {
131+ com .neuronrobotics .sdk .common .Log .error ("Failed to prune tail" + ex );
132+ }
133+
134+ setAccept (oldAccept );
135+ }
136+
122137 public ArrayList <MobileBase > getMobileBases () {
123138 ArrayList <MobileBase > back = new ArrayList <MobileBase >();
124139 for (MobileBaseBuilder b : robots .values ()) {
@@ -586,7 +601,7 @@ public Thread deleteOperation(CaDoodleOperation op) {
586601 t = new Thread () {
587602 public void run () {
588603 timeOfLastUpdate = System .currentTimeMillis ();
589- this .setName ("addOpperation Thread " + toProcess .size ());
604+ this .setName ("deleteOpperation Thread " + toProcess .size ());
590605 int index = 0 ;
591606 for (int i = 0 ; i < getOpperations ().size (); i ++)
592607 if (getOpperations ().get (i ) == op )
You can’t perform that action at this time.
0 commit comments