Skip to content

PVector's setHeading() highlighted #1007

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions app/src/processing/app/Sketch.java
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,7 @@ protected void insertCode(SketchCode newCode) {
// make sure the user didn't hide the sketch folder
ensureExistence();


// add file to the code/codeCount list, resort the list
//if (codeCount == code.length) {
code = (SketchCode[]) PApplet.append(code, newCode);
Expand All @@ -272,6 +273,8 @@ protected void insertCode(SketchCode newCode) {
}




protected void sortCode() {
// cheap-ass sort of the rest of the files
// it's a dumb, slow sort, but there shouldn't be more than ~5 files
Expand Down Expand Up @@ -808,6 +811,7 @@ public boolean isModified() {
*/
public void updateSketchCodes() {
current.setProgram(editor.getText());

}


Expand Down Expand Up @@ -1431,6 +1435,7 @@ public boolean addFile(File sourceFile) {
String codeExtension = null;
boolean replacement = false;


boolean isCode = false;

// if the file appears to be code related, drop it
Expand Down Expand Up @@ -1578,6 +1583,7 @@ public void setCurrentCode(int which) {
current = code[which];
currentIndex = which;
current.visited = System.currentTimeMillis();
//System.out.println(current);

editor.setCode(current);
editor.repaintHeader();
Expand Down
1 change: 1 addition & 0 deletions app/src/processing/app/SketchCode.java
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ public SketchCode(File file, String extension) {
this.file = file;
this.extension = extension;


try {
load();
} catch (IOException e) {
Expand Down
2 changes: 1 addition & 1 deletion app/src/processing/app/ui/Editor.java
Original file line number Diff line number Diff line change
Expand Up @@ -1147,7 +1147,7 @@ public void actionPerformed(ActionEvent e) {
if (sketch != null) {
sketch.setModified(!getText().equals(sketch.getCurrentCode().getSavedProgram()));
// Go through all tabs; Replace All, Rename or Undo could have changed them
for (SketchCode sc : sketch.getCode()) {
for ( SketchCode sc : sketch.getCode()) {
if (sc.getDocument() != null) {
try {
sc.setModified(!sc.getDocumentText().equals(sc.getSavedProgram()));
Expand Down
Loading