Commit Graph

12369 Commits

Author SHA1 Message Date
Ben Fry
08e158d1e7 Merge pull request #4839 from JakubValtar/fix-zombie-process
Allow JAVA2D to terminate when animation thread dies
2017-01-29 10:42:36 -05:00
Ben Fry
92045a1c66 Merge pull request #4842 from JakubValtar/fix-sketchbook-update
Rebuild sketchbook window when needed
2017-01-29 10:41:18 -05:00
Ben Fry
dffceffd8f adding fix from #4843 manually 2017-01-29 10:36:25 -05:00
Ben Fry
72730ba8d6 Merge pull request #4844 from JakubValtar/cm-extra
Grab bag of Contribution Manager fixes I accumulated while fixing other stuff
2017-01-29 10:32:28 -05:00
Ben Fry
4b81579384 Merge pull request #4847 from JakubValtar/fix-pgl-timer
Keep Windows timer resolution high for OpenGL sketches
2017-01-29 10:30:38 -05:00
Ben Fry
398d1f60b2 Merge pull request #4848 from JakubValtar/fix-run-threads
Improvements to sketch launching and stopping
2017-01-29 10:29:40 -05:00
Jakub Valtar
d8e8619f6e Fix restarting sketch in Debug mode when Run is pressed
Disconnect event of the old VM would arrive after the new VM was
created, closing it instantly and leaving user without a running sketch.
2017-01-23 03:09:51 +01:00
Jakub Valtar
95ebcdb825 Add proper synchronization for sketch launching and closing
Pressing Run button twice launched two sketch windows, but only one of
them could be closed by Stop button. Pressing Stop had effect only after
sketch VM was launched.

Both of these issues are now fixed and buttons can handle a
frustration-relieving session of aggressive clicking, leaving one sketch
window if Run was the last button pressed or no window if Stop was the
last button pressed.
2017-01-23 03:07:42 +01:00
Jakub Valtar
28052c2b39 Make run button behave
When clicking run button while a sketch is running, it will be activated
again when the sketch is restarted. Previously it got deactivated by the
old sketch runner, because it was quitting after the new sketch runner
started.
2017-01-22 23:24:32 +01:00
Jakub Valtar
345b8ca3d9 Keep Windows timer resolution high for OpenGL sketches
Otherwise java.util.Timer used by FPSAnimator uses 10 or 15 ms
resolution, which results in 60 fps sketches running at around 30 fps
and 30 fps sketches running at around 21 fps.

Fixes #4846
2017-01-22 21:44:53 +01:00
Jakub Valtar
916e38b98d Small threading fixes for run/present/tweak 2017-01-21 19:03:12 +01:00
Jakub Valtar
9749ad28ec Fix broken Update tab
Contribution stays there with spinning wheel until the installation
completes
2017-01-21 06:56:32 +01:00
Jakub Valtar
c31c5f3ec6 Remove some unnecessary code 2017-01-21 05:21:05 +01:00
Jakub Valtar
6782337913 Get rid of unnecessary manual synchronization
Remove manual synchronization on visibleContributions and
panelByContribution. Both are accessed only from EDT.
2017-01-21 04:42:33 +01:00
Jakub Valtar
e77d81c137 Remove gratuitous invokeLater()
Again, just unwrapped bodies from invokeLater, because they run on EDT
already. Some were called in loops and spammed EDT with hundreds of
Runnables.
2017-01-21 04:26:26 +01:00
Jakub Valtar
43975107d7 Add filter conditions so contribs from other tabs are ignored
Wrapped both method bodies with one if condition each. Blame the diff.
2017-01-21 04:16:05 +01:00
Jakub Valtar
6d997906ab Fire change notifications after all changes has been made 2017-01-21 04:11:40 +01:00
Jakub Valtar
37d2c26b89 Rebuild menus after deleting sketch 2017-01-21 00:54:21 +01:00
Jakub Valtar
5172f5b780 Make sure old windows are disposed properly 2017-01-21 00:53:27 +01:00
Jakub Valtar
78ace8cdde Hide sketchbook window before creating a new one
Copy pasted from rebuildExamplesFrame()
2017-01-21 00:52:49 +01:00
Jakub Valtar
b531199eb5 Allow JAVA2D to terminate when animation thread dies
When Java2D sketch crashes, closing the window does not stop Event
Dispatch Thread. This fix makes PApplet.exit() do the right thing and
not wait for surface to finish when the thread is already dead.

Fixes #4831
2017-01-20 12:49:23 +01:00
Ben Fry
c5d9b713b8 add patch note 2017-01-18 06:48:56 -05:00
Ben Fry
08d7e18d1e Merge pull request #4834 from GKFX/bugfix-pshape
Fix #4826. PShape in Java2D wasn't respecting kind.
2017-01-18 06:44:57 -05:00
Ben Fry
e3ff6ceee9 update notes 2017-01-18 06:40:07 -05:00
Ben Fry
61c3c156fc deal with Oracle download change, double redirect (fixes #4823) 2017-01-18 06:38:25 -05:00
George Bateman
eb55609871 Fix #4826. PShape in Java2D wasn't respecting kind.
Reverses commit 6695215a7d.
2017-01-17 17:21:02 +00:00
Ben Fry
8cf1b56997 notes about recent updates 2017-01-09 15:42:00 -05:00
codeanticode
043eaa96c2 show warning when calling modelX/Y/Z in P2D, fixes #4813 2017-01-09 08:49:31 -05:00
Ben Fry
20d716009c Merge pull request #4816 from JakubValtar/fix-glsl-typo
Fix typo in glsl preprocessor
2017-01-06 16:10:10 -05:00
Jakub Valtar
58df48655c Fix typo in glsl preprocessor
Add missing 2D which disappeared in

https://github.com/processing/processing/pull/4052/files#diff-88c7dd4e8f37672d20e228a71a433a6dL1889
2017-01-06 21:45:53 +01:00
Ben Fry
fd3bbd5a6b make notes of recent PRs and bug reports 2017-01-06 11:18:27 -05:00
Ben Fry
87d1fdb61d Merge pull request #4797 from JakubValtar/fix-mouse-button-events
Unify mouse pressed/released events across renderers
2017-01-06 10:56:09 -05:00
Ben Fry
e086ceea2d Merge pull request #4798 from JakubValtar/fx-exception-handler
FX: Add exception handler which reports exceptions from user code
2017-01-06 10:50:19 -05:00
Ben Fry
86af999af5 Merge pull request #4800 from JakubValtar/fix-fx-curves
FX: Fix curveVertex drawing all curves together as one long curve
2017-01-06 10:49:14 -05:00
Ben Fry
702e4cf8cb Merge pull request #4796 from JakubValtar/fx-mouse-wheel
FX: Implement mouse wheel event
2017-01-06 10:42:04 -05:00
Ben Fry
583b3f43d4 Merge pull request #4795 from JakubValtar/master
FX: Reset transform to identity before drawing background
2017-01-06 10:41:13 -05:00
Ben Fry
e7786cd079 Merge pull request #4799 from JakubValtar/fix-matrix-overflow
FX: Prevent matrix stack overflow
2017-01-06 10:40:30 -05:00
Jakub Valtar
ec8e023e80 FX: Fix curveVertex drawing all curves together as one long curve
Fixes #4382
2016-12-29 21:29:57 +01:00
Jakub Valtar
faa22de621 FX: Prevent matrix stack overflow
Matrix stack could overflow in a very special case when beginShape() was
called while strokeWeight=1 and then strokeWeight was changed before
endShape(). This PR makes sure matrix is popped correctly even when user
changes strokeWeight in the beginShape()/endShape() block.

Decided to bug user only when necessary and not show warining when user
changes strokeWeight in the beginShape()/endShape() block, same as in
JAVA2D. Otherwise we could add checks for all the other things which are
mentioned in the docs, but it would be hell to maintain and use.

Fixes #4206
2016-12-29 19:00:24 +01:00
Jakub Valtar
fceb13bf73 FX: Add exception handler which reports exceptions form user code
Fixes #4339
2016-12-29 17:04:16 +01:00
Jakub Valtar
7f93baa904 Unify mouse pressed/released events across renderers
OPENGL and FX renderers will now correctly report button which triggered
this pressed/released event (same as JAVA2D).

Previously:
- OPENGL would report currently pressed buttons in order LEFT, CENTER,
RIGHT regardless of which button triggered the event. E.g. when holding
LEFT and presing RIGHT, LEFT would be reported. When holding CENTER and
pressing LEFT, LEFT would be reported
- FX would report only first button which is down, so in RELEASE event
button would be missing

Now:
- event contains only button which triggred this event (button just
pressed or just released)
2016-12-29 15:48:15 +01:00
Jakub Valtar
e5e5dc3dc8 FX: Implement mouse wheel event 2016-12-29 15:35:30 +01:00
Jakub Valtar
2439db5574 FX: Reset transform to identity before drawing background 2016-12-29 14:15:06 +01:00
Ben Fry
8b74491e69 fix direction of slashes 2016-12-23 03:40:25 -05:00
Ben Fry
71a6c643fa remove redundant use of "if (DEBUG)" 2016-12-21 23:56:40 -05:00
Ben Fry
fb1b0c4d02 remove unused import 2016-12-21 23:48:32 -05:00
Ben Fry
db810070e4 check for installed Source Sans on Windows (fix for #4747) 2016-12-21 17:21:58 -05:00
codeanticode
c4560e6945 Allow setting vertex of geometry 2D PShape in P3D, fixes #4773 2016-12-20 16:21:59 -05:00
Ben Fry
03578c6f66 note about recent changes 2016-12-18 11:17:18 -05:00
Ben Fry
68d0eaa635 Merge pull request #4777 from JakubValtar/error-check-update
Report missing brace in correct tab, suppress other errors until fixed
2016-12-18 11:04:47 -05:00