synfig.git
17 years agoAdd an error message explaining why the 'fixed' tests fail.
dooglus [Mon, 8 Oct 2007 02:34:57 +0000 (02:34 +0000)]
Add an error message explaining why the 'fixed' tests fail.

git-svn-id: http://svn.voria.com/code@864 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoRelease synfigstudio_0_61_07_rc2
dooglus [Sun, 7 Oct 2007 23:54:18 +0000 (23:54 +0000)]
Release synfigstudio_0_61_07_rc2

git-svn-id: http://svn.voria.com/code@863 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoRelease synfig_0_61_07_rc2
dooglus [Sun, 7 Oct 2007 23:54:12 +0000 (23:54 +0000)]
Release synfig_0_61_07_rc2

git-svn-id: http://svn.voria.com/code@862 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoRelease ETL_0_04_10_rc2
dooglus [Sun, 7 Oct 2007 23:54:01 +0000 (23:54 +0000)]
Release ETL_0_04_10_rc2

git-svn-id: http://svn.voria.com/code@861 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoUse 'Fast Gaussian' instead of 'Gaussian' for blur type, because 'Gaussian' has O...
dooglus [Sun, 7 Oct 2007 22:45:51 +0000 (22:45 +0000)]
Use 'Fast Gaussian' instead of 'Gaussian' for blur type, because 'Gaussian' has O(n^6) complexity.  ie. it's v. slow when zooming in on the dead heads.

git-svn-id: http://svn.voria.com/code@860 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoTypo.
dooglus [Sun, 7 Oct 2007 22:45:42 +0000 (22:45 +0000)]
Typo.

git-svn-id: http://svn.voria.com/code@859 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoFix a crash in the warp layer when the bounding_rect gets very small.
dooglus [Sun, 7 Oct 2007 22:28:43 +0000 (22:28 +0000)]
Fix a crash in the warp layer when the bounding_rect gets very small.

git-svn-id: http://svn.voria.com/code@858 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoTypo.
dooglus [Sun, 7 Oct 2007 22:28:34 +0000 (22:28 +0000)]
Typo.

git-svn-id: http://svn.voria.com/code@857 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoTypo.
dooglus [Sun, 7 Oct 2007 22:28:26 +0000 (22:28 +0000)]
Typo.

git-svn-id: http://svn.voria.com/code@856 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoRemove dups and clarify.
dooglus [Sun, 7 Oct 2007 09:33:57 +0000 (09:33 +0000)]
Remove dups and clarify.

git-svn-id: http://svn.voria.com/code@855 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoTurned on the smoke. It uses the plant layer, which works now.
dooglus [Sun, 7 Oct 2007 09:33:45 +0000 (09:33 +0000)]
Turned on the smoke.  It uses the plant layer, which works now.

git-svn-id: http://svn.voria.com/code@854 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoRelease synfigstudio_0_61_06
dooglus [Sat, 6 Oct 2007 13:53:10 +0000 (13:53 +0000)]
Release synfigstudio_0_61_06

git-svn-id: http://svn.voria.com/code@853 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoRelease synfigstudio_0_61_07_rc1
dooglus [Sat, 6 Oct 2007 13:41:10 +0000 (13:41 +0000)]
Release synfigstudio_0_61_07_rc1

git-svn-id: http://svn.voria.com/code@852 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoRelease synfig_0_61_07_rc1
dooglus [Sat, 6 Oct 2007 13:41:03 +0000 (13:41 +0000)]
Release synfig_0_61_07_rc1

git-svn-id: http://svn.voria.com/code@851 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoRelease ETL_0_04_10_rc1
dooglus [Sat, 6 Oct 2007 13:40:49 +0000 (13:40 +0000)]
Release ETL_0_04_10_rc1

git-svn-id: http://svn.voria.com/code@850 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoBump the required versions of ETL and synfig.
dooglus [Sat, 6 Oct 2007 02:28:50 +0000 (02:28 +0000)]
Bump the required versions of ETL and synfig.

git-svn-id: http://svn.voria.com/code@849 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoAdd my copyright to files I've modified.
dooglus [Sat, 6 Oct 2007 02:25:36 +0000 (02:25 +0000)]
Add my copyright to files I've modified.

git-svn-id: http://svn.voria.com/code@848 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoBump the version numbers ready for the coming release.
dooglus [Sat, 6 Oct 2007 02:25:10 +0000 (02:25 +0000)]
Bump the version numbers ready for the coming release.

git-svn-id: http://svn.voria.com/code@847 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoAdd my copyright.
dooglus [Sat, 6 Oct 2007 02:25:00 +0000 (02:25 +0000)]
Add my copyright.

git-svn-id: http://svn.voria.com/code@846 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoSet the default optimization level to be 2 now that it works OK.
dooglus [Sat, 6 Oct 2007 02:24:54 +0000 (02:24 +0000)]
Set the default optimization level to be 2 now that it works OK.

git-svn-id: http://svn.voria.com/code@845 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoUpdated to r843.
dooglus [Fri, 5 Oct 2007 23:56:42 +0000 (23:56 +0000)]
Updated to r843.

git-svn-id: http://svn.voria.com/code@844 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoFix 1807709: radial blur doesn't render properly. It renders much more properly...
dooglus [Fri, 5 Oct 2007 21:57:38 +0000 (21:57 +0000)]
Fix 1807709: radial blur doesn't render properly.  It renders much more properly now.  Compare dooglus.rincevent.net/synfig/radial-blur-without-fix.png and http://dooglus.rincevent.net/synfig/radial-blur-with-fix.png (rendered from http://dooglus.rincevent.net/synfig/radial-blur-3.sifz ).

git-svn-id: http://svn.voria.com/code@843 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoFix r841. Previously it was setting the menu to quality 10, but using parameteric...
dooglus [Thu, 4 Oct 2007 22:20:47 +0000 (22:20 +0000)]
Fix r841.  Previously it was setting the menu to quality 10, but using parameteric rendering.

git-svn-id: http://svn.voria.com/code@842 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoShow the correct initially selected quality level in the "View > Preview Quality...
dooglus [Thu, 4 Oct 2007 21:53:26 +0000 (21:53 +0000)]
Show the correct initially selected quality level in the "View > Preview Quality" menu.

git-svn-id: http://svn.voria.com/code@841 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoSorted by type, and added 'Time' to the list of acceptable types.
dooglus [Thu, 4 Oct 2007 21:53:18 +0000 (21:53 +0000)]
Sorted by type, and added 'Time' to the list of acceptable types.

git-svn-id: http://svn.voria.com/code@840 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoPrevent warnings when compiling with optimization.
dooglus [Thu, 4 Oct 2007 21:53:10 +0000 (21:53 +0000)]
Prevent warnings when compiling with optimization.

git-svn-id: http://svn.voria.com/code@839 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoShow filename and line number on a few error messages, and remove a noisy info message.
dooglus [Thu, 4 Oct 2007 21:53:00 +0000 (21:53 +0000)]
Show filename and line number on a few error messages, and remove a noisy info message.

git-svn-id: http://svn.voria.com/code@838 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoGive filename and line number in some warning messages.
dooglus [Thu, 4 Oct 2007 01:51:16 +0000 (01:51 +0000)]
Give filename and line number in some warning messages.

git-svn-id: http://svn.voria.com/code@837 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoFix the bug that caused almost everything in the caret menu of the 'other' canvas...
dooglus [Thu, 4 Oct 2007 01:51:08 +0000 (01:51 +0000)]
Fix the bug that caused almost everything in the caret menu of the 'other' canvas to be disabled when the focused canvas was closed.  Use present() to present the other canvas, rather than manipulating selected_canvas_view directly.  This allows CanvasView::on_focus_in_event() to run and call insert_action_group() to re-enable the menu.

git-svn-id: http://svn.voria.com/code@836 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoTidying.
dooglus [Thu, 4 Oct 2007 01:51:00 +0000 (01:51 +0000)]
Tidying.

git-svn-id: http://svn.voria.com/code@835 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoRemoved some debugging code that I didn't mean to commit.
dooglus [Thu, 4 Oct 2007 01:50:52 +0000 (01:50 +0000)]
Removed some debugging code that I didn't mean to commit.

git-svn-id: http://svn.voria.com/code@834 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoPrevent the "Gtk-CRITICAL **: gtk_label_set_label: assertion `str != NULL' failed...
dooglus [Wed, 3 Oct 2007 21:42:38 +0000 (21:42 +0000)]
Prevent the "Gtk-CRITICAL **: gtk_label_set_label: assertion `str != NULL' failed" warning, and give 'view > play' an icon, too.

git-svn-id: http://svn.voria.com/code@833 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoDefault timesliders to 24fps, not 0fps, to prevent the warning: "GLib-GObject-WARNING...
dooglus [Wed, 3 Oct 2007 20:13:59 +0000 (20:13 +0000)]
Default timesliders to 24fps, not 0fps, to prevent the warning: "GLib-GObject-WARNING **: value "inf" of type `gdouble' is invalid or out of range for property `step-increment' of type `gdouble'".

git-svn-id: http://svn.voria.com/code@832 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoPrevent a warning from Gtk about ownership of floating reference. The code's still...
dooglus [Wed, 3 Oct 2007 19:57:56 +0000 (19:57 +0000)]
Prevent a warning from Gtk about ownership of floating reference.  The code's still not right, and will be leaking a little (when new dialogs are opened), but I'm sure there are much bigger leaks elsewhere.

git-svn-id: http://svn.voria.com/code@831 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoIf 'view->play' is interrupted with the 'stop' button, note that the playback has...
dooglus [Wed, 3 Oct 2007 19:35:48 +0000 (19:35 +0000)]
If 'view->play' is interrupted with the 'stop' button, note that the playback has stopped.

git-svn-id: http://svn.voria.com/code@830 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoRemoved a couple of debugpoints.
dooglus [Wed, 3 Oct 2007 17:51:13 +0000 (17:51 +0000)]
Removed a couple of debugpoints.

git-svn-id: http://svn.voria.com/code@829 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoDon't save settings which we can't find a value for. This prevents warnings on startup.
dooglus [Wed, 3 Oct 2007 17:41:32 +0000 (17:41 +0000)]
Don't save settings which we can't find a value for.  This prevents warnings on startup.

git-svn-id: http://svn.voria.com/code@828 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoMake stdout quieter.
dooglus [Wed, 3 Oct 2007 17:41:23 +0000 (17:41 +0000)]
Make stdout quieter.

git-svn-id: http://svn.voria.com/code@827 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoFix #1806852: sort PasteCanvas layers by z-depth even if they do have a non-zero...
dooglus [Wed, 3 Oct 2007 12:31:16 +0000 (12:31 +0000)]
Fix #1806852: sort PasteCanvas layers by z-depth even if they do have a non-zero time offset.

git-svn-id: http://svn.voria.com/code@826 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoApply 1805544: un/install the sifz examples properly in the Win32 installer. Patch...
pabs [Wed, 3 Oct 2007 05:25:36 +0000 (05:25 +0000)]
Apply 1805544: un/install the sifz examples properly in the Win32 installer. Patch by Atrus.

git-svn-id: http://svn.voria.com/code@825 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoRevert r764. pxegeek on IRC reports:
dooglus [Wed, 3 Oct 2007 02:43:12 +0000 (02:43 +0000)]
Revert r764.  pxegeek on IRC reports:

  Looks like my build of 813 failed.  Looks like it was trying to render the logo
  synfig(5228): info: ValueNode::subsys_stop()
  synfig(5228): info: Importer::subsys_stop()
  synfig(5228): info: Target::subsys_stop()
  synfig(5228): info: Layer::subsys_stop()
  synfig(5228): info: Module::subsys_stop()
  I think it's hung - it shouldn't take this long. :(

Looks like it's hanging while stopping the module subsystem.  Maybe he has some modules I don't, and they're causing a crash.  I don't see any crash here.

git-svn-id: http://svn.voria.com/code@824 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoStop the "Gtk-WARNING **: node type doesn't match 2 (menu-main is type 7)" messages...
dooglus [Wed, 3 Oct 2007 02:18:10 +0000 (02:18 +0000)]
Stop the "Gtk-WARNING **: node type doesn't match 2 (menu-main is type 7)" messages.  The main menu is a popup, not a menubar.

git-svn-id: http://svn.voria.com/code@823 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoMake stdout quieter.
dooglus [Wed, 3 Oct 2007 02:18:03 +0000 (02:18 +0000)]
Make stdout quieter.

git-svn-id: http://svn.voria.com/code@822 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoMake stdout quieter.
dooglus [Wed, 3 Oct 2007 02:17:55 +0000 (02:17 +0000)]
Make stdout quieter.

git-svn-id: http://svn.voria.com/code@821 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoRemoved debugpoint.
dooglus [Wed, 3 Oct 2007 02:17:47 +0000 (02:17 +0000)]
Removed debugpoint.

git-svn-id: http://svn.voria.com/code@820 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoMake stdout quieter.
dooglus [Wed, 3 Oct 2007 02:17:38 +0000 (02:17 +0000)]
Make stdout quieter.

git-svn-id: http://svn.voria.com/code@819 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoMake stdout quieter.
dooglus [Wed, 3 Oct 2007 02:17:31 +0000 (02:17 +0000)]
Make stdout quieter.

git-svn-id: http://svn.voria.com/code@818 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoMake stdout quieter.
dooglus [Wed, 3 Oct 2007 02:17:21 +0000 (02:17 +0000)]
Make stdout quieter.

git-svn-id: http://svn.voria.com/code@817 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoRemove debugpoint.
dooglus [Wed, 3 Oct 2007 02:17:13 +0000 (02:17 +0000)]
Remove debugpoint.

git-svn-id: http://svn.voria.com/code@816 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoTidying.
dooglus [Wed, 3 Oct 2007 02:17:04 +0000 (02:17 +0000)]
Tidying.

git-svn-id: http://svn.voria.com/code@815 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoFixed a typo.
dooglus [Wed, 3 Oct 2007 02:16:55 +0000 (02:16 +0000)]
Fixed a typo.

git-svn-id: http://svn.voria.com/code@814 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoChanging the time slider on a child canvas wasn't updating the grandchild canvas...
dooglus [Tue, 2 Oct 2007 14:28:52 +0000 (14:28 +0000)]
Changing the time slider on a child canvas wasn't updating the grandchild canvas' time slider.  Now it does.

git-svn-id: http://svn.voria.com/code@813 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoTidying.
dooglus [Tue, 2 Oct 2007 14:28:43 +0000 (14:28 +0000)]
Tidying.

git-svn-id: http://svn.voria.com/code@812 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoCommented the "Adjust for time" code in valuenode_animated.cpp while trying to unders...
dooglus [Tue, 2 Oct 2007 13:30:12 +0000 (13:30 +0000)]
Commented the "Adjust for time" code in valuenode_animated.cpp while trying to understand what it's doing.

git-svn-id: http://svn.voria.com/code@811 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoWhen the user moves a canvas' time slider, update the time sliders of any open child...
dooglus [Tue, 2 Oct 2007 13:04:55 +0000 (13:04 +0000)]
When the user moves a canvas' time slider, update the time sliders of any open child canvas' workareas.

git-svn-id: http://svn.voria.com/code@810 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoMake the linear interpolation linear. See http://dooglus.rincevent.net/synfig/linear...
dooglus [Mon, 1 Oct 2007 23:18:56 +0000 (23:18 +0000)]
Make the linear interpolation linear.  See dooglus.rincevent.net/synfig/linear.sifz for an example of how linear interpolation currently works.  Both circles are animated over the same distance with identical waypoints, but one of them has an extra linear waypoint at frame zero.  That extra waypoints makes its entire movement non-linear.

git-svn-id: http://svn.voria.com/code@809 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoOnly fix the red border if we're not using the Gtk frame background color to draw...
dooglus [Mon, 1 Oct 2007 21:49:02 +0000 (21:49 +0000)]
Only fix the red border if we're not using the Gtk frame background color to draw the red border.

git-svn-id: http://svn.voria.com/code@808 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoKeep the red 'animate edit mode' border and the current keyframe name from leaving...
dooglus [Mon, 1 Oct 2007 21:48:48 +0000 (21:48 +0000)]
Keep the red 'animate edit mode' border and the current keyframe name from leaving artifacts when scrolling.

git-svn-id: http://svn.voria.com/code@807 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoFix typos.
dooglus [Mon, 1 Oct 2007 21:48:37 +0000 (21:48 +0000)]
Fix typos.

git-svn-id: http://svn.voria.com/code@806 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoFixed the way that the decision is made which value to use when linking values togeth...
dooglus [Sun, 30 Sep 2007 20:48:47 +0000 (20:48 +0000)]
Fixed the way that the decision is made which value to use when linking values together.  Also, output some information about the decision to the console.  Also show an error message if the user tries to link two different exported values, or values of two different types, rather than failing silently as before.

git-svn-id: http://svn.voria.com/code@805 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoTidying.
dooglus [Sun, 30 Sep 2007 20:48:39 +0000 (20:48 +0000)]
Tidying.

git-svn-id: http://svn.voria.com/code@804 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoMade a note that type names shouldn't be translated.
dooglus [Sun, 30 Sep 2007 20:48:30 +0000 (20:48 +0000)]
Made a note that type names shouldn't be translated.

git-svn-id: http://svn.voria.com/code@803 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoI messed up the last commit. Oops!
dooglus [Sat, 29 Sep 2007 20:13:43 +0000 (20:13 +0000)]
I messed up the last commit.  Oops!

git-svn-id: http://svn.voria.com/code@802 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years ago#include color.h to get the gamma_in() #define.
dooglus [Sat, 29 Sep 2007 20:04:14 +0000 (20:04 +0000)]
#include color.h to get the gamma_in() #define.

git-svn-id: http://svn.voria.com/code@801 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoPrevent a crash (for example when moving the mouse slowly over the bottom edge of...
dooglus [Sat, 29 Sep 2007 15:09:11 +0000 (15:09 +0000)]
Prevent a crash (for example when moving the mouse slowly over the bottom edge of the line in dooglus.rincevent.net/synfig/shape_crash.sifz at the default zoom level).

git-svn-id: http://svn.voria.com/code@800 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoReplace angle::epsilon with a #defined value instead. I don't know how to define...
dooglus [Fri, 28 Sep 2007 19:28:47 +0000 (19:28 +0000)]
Replace angle::epsilon with a #defined value instead.  I don't know how to define a static member variable in a template header file.

git-svn-id: http://svn.voria.com/code@799 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoFixed a typo in the last commit.
dooglus [Fri, 28 Sep 2007 15:24:30 +0000 (15:24 +0000)]
Fixed a typo in the last commit.

git-svn-id: http://svn.voria.com/code@798 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoRefine the bounding rectangles for 'Vertical Bar' and 'Horizontal Bar' spherize types.
dooglus [Fri, 28 Sep 2007 15:19:58 +0000 (15:19 +0000)]
Refine the bounding rectangles for 'Vertical Bar' and 'Horizontal Bar' spherize types.

git-svn-id: http://svn.voria.com/code@797 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoAdd Rect::horizontal_strip() and Rect::vertical_strip() to create infinite slices...
dooglus [Fri, 28 Sep 2007 15:19:48 +0000 (15:19 +0000)]
Add Rect::horizontal_strip() and Rect::vertical_strip() to create infinite slices of the plane.

git-svn-id: http://svn.voria.com/code@796 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoUse std::min and std::max rather than my ad-hoc #defines.
dooglus [Fri, 28 Sep 2007 15:19:39 +0000 (15:19 +0000)]
Use std::min and std::max rather than my ad-hoc #defines.

git-svn-id: http://svn.voria.com/code@795 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoFor the 'Range' convert type, when working with angles, if the link parameter is...
dooglus [Fri, 28 Sep 2007 03:01:15 +0000 (03:01 +0000)]
For the 'Range' convert type, when working with angles, if the link parameter is outside of the [min,max] rangle, the resulting angle is whichever of min and max is closest to the link parameter.

git-svn-id: http://svn.voria.com/code@794 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoAdd a new function angle::abs() which returns the absolute (positive) value of an...
dooglus [Fri, 28 Sep 2007 02:26:58 +0000 (02:26 +0000)]
Add a new function angle::abs() which returns the absolute (positive) value of an angle.

git-svn-id: http://svn.voria.com/code@793 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoCommented out the deprecated angle type conversion operators. They weren't used...
dooglus [Fri, 28 Sep 2007 02:08:18 +0000 (02:08 +0000)]
Commented out the deprecated angle type conversion operators.  They weren't used anywhere (everything still compiles without them, anyway) and they were preventing the multiplication operators from working.  (g++ complains "error: ISO C++ says that these are ambiguous, even though the worst conversion for the first is better than the worst conversion for the second").

git-svn-id: http://svn.voria.com/code@792 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoMove the deprecated type conversion operator prototypes to the end of their class...
dooglus [Fri, 28 Sep 2007 02:08:11 +0000 (02:08 +0000)]
Move the deprecated type conversion operator prototypes to the end of their class definitions.

git-svn-id: http://svn.voria.com/code@791 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoFixed a typo - the wrong method was marked as deprecated in angle::cos.
dooglus [Fri, 28 Sep 2007 02:08:05 +0000 (02:08 +0000)]
Fixed a typo - the wrong method was marked as deprecated in angle::cos.

git-svn-id: http://svn.voria.com/code@790 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoOperator '!' is supposed to be true when an angle is 'no rotation'. It was failing...
dooglus [Fri, 28 Sep 2007 02:07:59 +0000 (02:07 +0000)]
Operator '!' is supposed to be true when an angle is 'no rotation'.  It was failing for 360 degrees, and also failing due to floating point rounding error.  Fixed both of these problems.

git-svn-id: http://svn.voria.com/code@789 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoThe zero(), one(), and half() functions weren't documented, and aren't used anywhere...
dooglus [Fri, 28 Sep 2007 02:07:52 +0000 (02:07 +0000)]
The zero(), one(), and half() functions weren't documented, and aren't used anywhere, but half() was returning a quarter rotation, and one() was returning a half rotation.  Surely they're both meant to return twice that?  Fixed accordingly, and commented them.

git-svn-id: http://svn.voria.com/code@788 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoThe comments for the inequality comparison operators seemed to suggest that positive...
dooglus [Fri, 28 Sep 2007 02:07:46 +0000 (02:07 +0000)]
The comments for the inequality comparison operators seemed to suggest that positive rotation is clockwise.  In Synfig, 0 degrees is due east, and positive rotation is counter-clockwise.  Amended the comments accordingly, and made a comment at the top stating that positive rotation is counter-clockwise.

git-svn-id: http://svn.voria.com/code@787 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoFix the indentation.
dooglus [Fri, 28 Sep 2007 02:07:39 +0000 (02:07 +0000)]
Fix the indentation.

git-svn-id: http://svn.voria.com/code@786 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoOperators == and != were returning that 90 degrees != (90+360) degrees, due to floati...
dooglus [Fri, 28 Sep 2007 02:07:33 +0000 (02:07 +0000)]
Operators == and != were returning that 90 degrees != (90+360) degrees, due to floating point rounding errors.  Allow an epsilon of difference.

git-svn-id: http://svn.voria.com/code@785 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoThe angle comparison code was considering 90+359 degrees to be greater than 90 degree...
dooglus [Fri, 28 Sep 2007 02:07:26 +0000 (02:07 +0000)]
The angle comparison code was considering 90+359 degrees to be greater than 90 degrees.  The comments claim otherwise.  Fix the code to correspond with the comments.  Similarly for <, >=, and <=.

git-svn-id: http://svn.voria.com/code@784 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoSince angles are stored in radians, we need to add on PI, not 0.5 to rotate by 180...
dooglus [Fri, 28 Sep 2007 02:07:20 +0000 (02:07 +0000)]
Since angles are stored in radians, we need to add on PI, not 0.5 to rotate by 180 degrees.

git-svn-id: http://svn.voria.com/code@783 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoAngles are stored in radians, not rotations.
dooglus [Fri, 28 Sep 2007 02:07:13 +0000 (02:07 +0000)]
Angles are stored in radians, not rotations.

git-svn-id: http://svn.voria.com/code@782 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoRemove some debugging code I left in accidentally some time ago.
dooglus [Thu, 27 Sep 2007 22:43:42 +0000 (22:43 +0000)]
Remove some debugging code I left in accidentally some time ago.

git-svn-id: http://svn.voria.com/code@781 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoFixed a typo in the previous commit.
dooglus [Thu, 27 Sep 2007 20:56:48 +0000 (20:56 +0000)]
Fixed a typo in the previous commit.

git-svn-id: http://svn.voria.com/code@780 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoAllow the 'subtract' convert type to work with times.
dooglus [Thu, 27 Sep 2007 20:52:03 +0000 (20:52 +0000)]
Allow the 'subtract' convert type to work with times.

git-svn-id: http://svn.voria.com/code@779 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoAllow the 'add' convert type to work with times.
dooglus [Thu, 27 Sep 2007 20:51:45 +0000 (20:51 +0000)]
Allow the 'add' convert type to work with times.

git-svn-id: http://svn.voria.com/code@778 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoAllow the 'range' convert type to work with 'time' values too.
dooglus [Thu, 27 Sep 2007 20:51:29 +0000 (20:51 +0000)]
Allow the 'range' convert type to work with 'time' values too.

git-svn-id: http://svn.voria.com/code@777 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoAdd the 'range' convert type, for limiting a parameter to values between a given...
dooglus [Thu, 27 Sep 2007 20:43:40 +0000 (20:43 +0000)]
Add the 'range' convert type, for limiting a parameter to values between a given minimum and maximum.

git-svn-id: http://svn.voria.com/code@776 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agovector.h was assuming that its members would be laid out consequtively in memory...
dooglus [Thu, 27 Sep 2007 15:10:49 +0000 (15:10 +0000)]
vector.h was assuming that its members would be laid out consequtively in memory, without padding.  Is this a safe assumption?  Note that the same assumption is made in class bezier_base in the same file, but I didn't change that yet.

git-svn-id: http://svn.voria.com/code@775 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoFix 1509627: Work around a bug in gcc 4.1.2 and earlier. Compiling with -O2 or highe...
dooglus [Thu, 27 Sep 2007 15:10:39 +0000 (15:10 +0000)]
Fix 1509627: Work around a bug in gcc 4.1.2 and earlier.  Compiling with -O2 or higher was optimizing out a variable that we are using.

git-svn-id: http://svn.voria.com/code@774 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoUse the http svn repository, not https, because using the https causes svn2cl to...
dooglus [Thu, 27 Sep 2007 00:31:17 +0000 (00:31 +0000)]
Use the http svn repository, not https, because using the https causes svn2cl to hang forever if the server isn't trusted locally.

git-svn-id: http://svn.voria.com/code@773 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoStop the 'warning: underquoted definition of ...' warnings by putting [...] around...
dooglus [Thu, 27 Sep 2007 00:30:33 +0000 (00:30 +0000)]
Stop the 'warning: underquoted definition of ...' warnings by putting [...] around AC_DEFUN definitions.

git-svn-id: http://svn.voria.com/code@772 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoSame as the last commit, except for the 'splash screen' that is shown while Studio...
dooglus [Thu, 27 Sep 2007 00:30:24 +0000 (00:30 +0000)]
Same as the last commit, except for the 'splash screen' that is shown while Studio is loading, and while documents are loading.

git-svn-id: http://svn.voria.com/code@771 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoexport SYNFIG_DISABLE_POPUP_WINDOWS=1 to stop the "one moment please" staying on...
dooglus [Thu, 27 Sep 2007 00:30:16 +0000 (00:30 +0000)]
export SYNFIG_DISABLE_POPUP_WINDOWS=1 to stop the "one moment please" staying on top.  This is useful when debugging, because the 'one moment' often turns into 'several hours', and it's annoying to have an opaque strip in the centre of the screen for so long.

git-svn-id: http://svn.voria.com/code@770 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoReorder the members to avoid warnings.
dooglus [Wed, 26 Sep 2007 22:39:45 +0000 (22:39 +0000)]
Reorder the members to avoid warnings.

git-svn-id: http://svn.voria.com/code@769 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoThe line "SR1=SR2=SR3=typename T::value_type();" in ETL/trunk/ETL/_gaussian.h expects...
dooglus [Wed, 26 Sep 2007 22:36:41 +0000 (22:36 +0000)]
The line "SR1=SR2=SR3=typename T::value_type();" in ETL/trunk/ETL/_gaussian.h expects the default constructor of the types it supports (which includes Color) to initialise the constructed object.  I don't know what other code expects Color objects to be initialised, so let's play safe and initialise all colors for now.

git-svn-id: http://svn.voria.com/code@768 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoFix the crash that the previous commit half-fixed.
dooglus [Wed, 26 Sep 2007 19:10:53 +0000 (19:10 +0000)]
Fix the crash that the previous commit half-fixed.

studio::App::quit()                                                     at app.cpp:1575
  studio::Instance::safe_close ()                                       at instance.cpp:687
    [ handle magic ]
      ~CanvasView (this=0xa432378)                                      at canvasview.cpp:918
        ~WorkArea (this=0x8ed2a10)                                      at workarea.cpp:815
          [ handle magic ]
        ^   ~Canvas (this=0x8e8a2b8)                                    at canvas.cpp:94
        |     synfig::Canvas::clear ()                                  at canvas.cpp:136
        |       synfig::Canvas::erase (iter)                            at canvas.cpp:758
        |         synfig::Node::changed ()                              at node.cpp:194
        |           synfig::Canvas::on_changed ()                       at canvas.cpp:86
        |             synfig::Node::on_changed ()                       at node.cpp:290
        |               [ sigc magic ]
        |                 studio::CanvasView::on_dirty_preview ()       at canvasview.cpp:2774
        `- illegal -------  work_area->queue_render_preview();

git-svn-id: http://svn.voria.com/code@767 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoI thought this should prevent a crash, but it doesn't. __render_preview is still...
dooglus [Wed, 26 Sep 2007 16:59:45 +0000 (16:59 +0000)]
I thought this should prevent a crash, but it doesn't.  __render_preview is still being called after the WorkArea has been deleted.  Why?

git-svn-id: http://svn.voria.com/code@766 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoAdd some extra console output while closing down.
dooglus [Wed, 26 Sep 2007 16:59:37 +0000 (16:59 +0000)]
Add some extra console output while closing down.

git-svn-id: http://svn.voria.com/code@765 1f10aa63-cdf2-0310-b900-c93c546f37ac