synfig.git
17 years agoFix 1797488: use set_link() rather than modifying the members directly.
dooglus [Tue, 18 Sep 2007 22:31:43 +0000 (22:31 +0000)]
Fix 1797488: use set_link() rather than modifying the members directly.

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

17 years agoInitialise a sine valuenode from its parent.
dooglus [Tue, 18 Sep 2007 21:04:25 +0000 (21:04 +0000)]
Initialise a sine valuenode from its parent.

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

17 years agoHeader file change to go with the last commit.
dooglus [Tue, 18 Sep 2007 19:56:56 +0000 (19:56 +0000)]
Header file change to go with the last commit.

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

17 years agoInitialise 'scale' valuenodes when converting, rather than using preset values.
dooglus [Tue, 18 Sep 2007 19:55:31 +0000 (19:55 +0000)]
Initialise 'scale' valuenodes when converting, rather than using preset values.

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

17 years agoInitialise subtract valuenodes from the value they are converted from, rather than...
dooglus [Tue, 18 Sep 2007 19:49:29 +0000 (19:49 +0000)]
Initialise subtract valuenodes from the value they are converted from, rather than using a preset value.

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

17 years agoRound integers towards zero in linear convert type.
dooglus [Tue, 18 Sep 2007 19:44:05 +0000 (19:44 +0000)]
Round integers towards zero in linear convert type.

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

17 years agoUse a switch statement in the operator() like the other valuenode types do.
dooglus [Tue, 18 Sep 2007 19:41:49 +0000 (19:41 +0000)]
Use a switch statement in the operator() like the other valuenode types do.

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

17 years agoRound integer subtraction convertions to the nearest integer.
dooglus [Tue, 18 Sep 2007 19:33:54 +0000 (19:33 +0000)]
Round integer subtraction convertions to the nearest integer.

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

17 years agoFix a crash when converting an integer type to 'subtract'.
dooglus [Tue, 18 Sep 2007 19:25:56 +0000 (19:25 +0000)]
Fix a crash when converting an integer type to 'subtract'.

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

17 years agoImplement feature request 1741236: Use 'Synfig Animation N' (N=1,2,3,...) rather...
dooglus [Tue, 18 Sep 2007 12:54:44 +0000 (12:54 +0000)]
Implement feature request 1741236: Use 'Synfig Animation N' (N=1,2,3,...) rather than 'untitledN' (N=0,1,2,...) as the default file name.  Put the default name in the file selector dialog when saving.

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

17 years agoPut the 'paste_canvas' and 'PasteCanvas' mentions on a single line to make things...
dooglus [Tue, 18 Sep 2007 11:07:04 +0000 (11:07 +0000)]
Put the 'paste_canvas' and 'PasteCanvas' mentions on a single line to make things clearer when 'grep'ing the code.

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

17 years agoRenaming the PasteCanvas layer in r705 missed the other references to the name elsewh...
dooglus [Tue, 18 Sep 2007 11:02:19 +0000 (11:02 +0000)]
Renaming the PasteCanvas layer in r705 missed the other references to the name elsewhere in the code.  This fixes it.  We should use a #define'd value so it only needs to be changed in one place, really.  See also r590 and r597.

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

17 years agoRevert r590. Use the same names for PasteCanvas, SolidColor, and MotionBlur as in...
dooglus [Tue, 18 Sep 2007 01:18:13 +0000 (01:18 +0000)]
Revert r590.  Use the same names for PasteCanvas, SolidColor, and MotionBlur as in previous releases.  Recognise the lower_case names, and convert them back to the previous names on save.

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

17 years agoRemoved unused members/prototypes.
dooglus [Tue, 18 Sep 2007 00:50:47 +0000 (00:50 +0000)]
Removed unused members/prototypes.

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

17 years agoWhen saving a file, remember the directory it was saved to, and use that as the defau...
dooglus [Mon, 17 Sep 2007 23:53:22 +0000 (23:53 +0000)]
When saving a file, remember the directory it was saved to, and use that as the default directory in future.  Like was already the case when loading a file.

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

17 years agoRemoved more unused code. There were 4 'save_as' functions, and 2 of them were never...
dooglus [Mon, 17 Sep 2007 23:36:30 +0000 (23:36 +0000)]
Removed more unused code.  There were 4 'save_as' functions, and 2 of them were never used, so I removed them.

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

17 years agoApp::dialog_saveas_file() and App::dialog_save_file() are identical. Deleted one...
dooglus [Mon, 17 Sep 2007 23:01:17 +0000 (23:01 +0000)]
App::dialog_saveas_file() and App::dialog_save_file() are identical.  Deleted one of them.

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

17 years agoSaving a document (I'm going to call them documents because I don't know what else...
dooglus [Mon, 17 Sep 2007 22:39:21 +0000 (22:39 +0000)]
Saving a document (I'm going to call them documents because I don't know what else to call them - I mean .sif or .sifz files) without specifying an extension should add the default extension (.sifz) to the name you specify, but that's not working if the full path includes a dot.  This change fixes that bug.

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

17 years agor679 introduced an error, assuming 'filename' would never be an absolute path. This...
dooglus [Mon, 17 Sep 2007 21:49:58 +0000 (21:49 +0000)]
r679 introduced an error, assuming 'filename' would never be an absolute path.  This fixes it.

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

17 years agoSave as .sifz by default (if there is no '.' in the saved file's path).
dooglus [Mon, 17 Sep 2007 20:49:57 +0000 (20:49 +0000)]
Save as .sifz by default (if there is no '.' in the saved file's path).

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

17 years agoReplaced the whitespace that I removed in r467. Now that the files are compressed...
dooglus [Mon, 17 Sep 2007 20:13:30 +0000 (20:13 +0000)]
Replaced the whitespace that I removed in r467.  Now that the files are compressed it doesn't make too much difference, and makes for easier text-editing of the files.

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

17 years agoCompressed .sif files to .sifz to save space.
dooglus [Mon, 17 Sep 2007 20:01:56 +0000 (20:01 +0000)]
Compressed .sif files to .sifz to save space.

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

17 years agoCompressed .sif to .sifz to save space.
dooglus [Mon, 17 Sep 2007 19:58:43 +0000 (19:58 +0000)]
Compressed .sif to .sifz to save space.

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

17 years agoUse compression when saving as a .sifz file.
dooglus [Mon, 17 Sep 2007 17:59:01 +0000 (17:59 +0000)]
Use compression when saving as a .sifz file.

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

17 years agoOops. TCB is called "auto" in the SIF file.
dooglus [Mon, 17 Sep 2007 15:59:35 +0000 (15:59 +0000)]
Oops.  TCB is called "auto" in the SIF file.

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

17 years agoFix 1778930: TCB is the default waypoint type except for angles, which default to...
dooglus [Mon, 17 Sep 2007 15:43:30 +0000 (15:43 +0000)]
Fix 1778930: TCB is the default waypoint type except for angles, which default to linear.  Also fixed a copy/paste typo in an error message.  Still need to get angle waypoints to default to linear interpolation on creation.

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

17 years agoTidying up a little.
dooglus [Mon, 17 Sep 2007 13:51:19 +0000 (13:51 +0000)]
Tidying up a little.

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

17 years agoTypos.
dooglus [Mon, 17 Sep 2007 13:47:16 +0000 (13:47 +0000)]
Typos.

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

17 years agoFixed the View>Play menu entry properly. It now waits for each frame to display...
dooglus [Mon, 17 Sep 2007 13:34:22 +0000 (13:34 +0000)]
Fixed the View>Play menu entry properly.  It now waits for each frame to display before rendering the next one.

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

17 years agoThe View>Play menu entry now does something. It doesn't work particularly well,...
dooglus [Mon, 17 Sep 2007 12:24:08 +0000 (12:24 +0000)]
The View>Play menu entry now does something.  It doesn't work particularly well, but on simple animations it works.

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

17 years agoDon't accept an empty input when setting a paste canvas' layer's 'canvas' parameter...
dooglus [Mon, 17 Sep 2007 11:50:46 +0000 (11:50 +0000)]
Don't accept an empty input when setting a paste canvas' layer's 'canvas' parameter using 'other...'.  Doing so causes an infinite loop, much like in bug #1796110.

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

17 years agoFix 1796110: don't try finding the specified canvas when no canvas is specified ...
dooglus [Mon, 17 Sep 2007 11:35:02 +0000 (11:35 +0000)]
Fix 1796110: don't try finding the specified canvas when no canvas is specified (ie. when the user clicks 'cancel' instead of typing a canvas name using 'other...' from a paste canvas layer's "canvas" parameter.

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

17 years agoFix 1796068: when a valuenode changes, ValueNode::on_changed() will now signal all...
dooglus [Mon, 17 Sep 2007 10:04:05 +0000 (10:04 +0000)]
Fix 1796068: when a valuenode changes, ValueNode::on_changed() will now signal all its parent canvases.

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

17 years agoFix a copy-paste typo when applying the 'scale' convert type to a color. Previously...
dooglus [Mon, 17 Sep 2007 00:00:20 +0000 (00:00 +0000)]
Fix a copy-paste typo when applying the 'scale' convert type to a color.  Previously the red component was used for R, G, and B in the resulting value.

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

17 years agoFix 1795922: loadcanvas.cpp was special-casing subtract valuenodes when there's no...
dooglus [Sun, 16 Sep 2007 22:52:14 +0000 (22:52 +0000)]
Fix 1795922: loadcanvas.cpp was special-casing subtract valuenodes when there's no need to - the generic code works better.

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

17 years agoFix 1795913. Subtract now works with colors.
dooglus [Sun, 16 Sep 2007 22:06:58 +0000 (22:06 +0000)]
Fix 1795913.  Subtract now works with colors.

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

17 years agoRearranged a bit so I can see what's missing.
dooglus [Sun, 16 Sep 2007 22:05:46 +0000 (22:05 +0000)]
Rearranged a bit so I can see what's missing.

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

17 years agoI'm working on bug 1779592. The problem is related to the 'no_egress_on_selection_ch...
dooglus [Sun, 16 Sep 2007 19:28:39 +0000 (19:28 +0000)]
I'm working on bug 1779592.  The problem is related to the 'no_egress_on_selection_change' variable, and the double-negatives aren't making things any less confusing.  So I renamed it to 'egress_on_selection_change' instead, and changed the sense of its value.

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

17 years agoFix 1383736: use absolute pathnames when setting up Gtk file selector dialogs.
dooglus [Sun, 16 Sep 2007 17:47:23 +0000 (17:47 +0000)]
Fix 1383736: use absolute pathnames when setting up Gtk file selector dialogs.

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

17 years agoFix 1795802: Fixed a crash in the animated gradient code I wrote yesterday. Added...
dooglus [Sun, 16 Sep 2007 14:11:39 +0000 (14:11 +0000)]
Fix 1795802: Fixed a crash in the animated gradient code I wrote yesterday.  Added comments.  Added code to animate 'hidden' cpoints (ie. when there are more than 2 cpoints in the same place in a gradient).

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

17 years agoMultiplying a gradient by zero empties it.
dooglus [Sun, 16 Sep 2007 00:54:26 +0000 (00:54 +0000)]
Multiplying a gradient by zero empties it.

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

17 years agoFix 1568818: Animate gradients.
dooglus [Sat, 15 Sep 2007 20:11:31 +0000 (20:11 +0000)]
Fix 1568818: Animate gradients.

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

17 years agoPartially fix 1568818: Define mathematical operators so that we can animate gradients.
dooglus [Sat, 15 Sep 2007 20:10:31 +0000 (20:10 +0000)]
Partially fix 1568818: Define mathematical operators so that we can animate gradients.

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

17 years agoPartially fix 1568818: Declare mathematical operators so that we can animate gradient...
dooglus [Sat, 15 Sep 2007 20:06:08 +0000 (20:06 +0000)]
Partially fix 1568818: Declare mathematical operators so that we can animate gradients over time.

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

17 years agoI'm told that it's a bad idea to inherit from std::vector (because it has no virtual...
dooglus [Sat, 15 Sep 2007 07:56:41 +0000 (07:56 +0000)]
I'm told that it's a bad idea to inherit from std::vector (because it has no virtual destructor), so use a vector member variable instead.

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

17 years agoMade a few more of the member variables in class WorkArea private.
dooglus [Fri, 14 Sep 2007 22:34:53 +0000 (22:34 +0000)]
Made a few more of the member variables in class WorkArea private.

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

17 years agoFix 1794374 for 'gradient rotate' valuenodes.
dooglus [Fri, 14 Sep 2007 15:45:10 +0000 (15:45 +0000)]
Fix 1794374 for 'gradient rotate' valuenodes.

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

17 years agoFix 1794374 for 'repeat gradient' valuenodes.
dooglus [Fri, 14 Sep 2007 15:38:38 +0000 (15:38 +0000)]
Fix 1794374 for 'repeat gradient' valuenodes.

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

17 years agoSome member variables were public, but never used publically. Made them private...
dooglus [Fri, 14 Sep 2007 13:15:06 +0000 (13:15 +0000)]
Some member variables were public, but never used publically.  Made them private instead to make it clearer how they can be modified.

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

17 years agoFix 1794006: when removing a CPoint, signal that the gradient changed, so things...
dooglus [Fri, 14 Sep 2007 01:33:11 +0000 (01:33 +0000)]
Fix 1794006: when removing a CPoint, signal that the gradient changed, so things can be redrawn.

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

17 years agoAllow the user to specify the start and end colors when repeating a gradient.
dooglus [Thu, 13 Sep 2007 22:31:57 +0000 (22:31 +0000)]
Allow the user to specify the start and end colors when repeating a gradient.

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

17 years agoAdd a new type of valuenode conversion for gradients: "repeat gradient" which lets...
dooglus [Thu, 13 Sep 2007 16:53:01 +0000 (16:53 +0000)]
Add a new type of valuenode conversion for gradients: "repeat gradient" which lets you loop a gradient a specified number of times.  See wiki.synfig.com/Convert#Repeat_Gradient .

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

17 years agoSpelling corrections.
dooglus [Thu, 13 Sep 2007 14:54:42 +0000 (14:54 +0000)]
Spelling corrections.

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

17 years agoSpelling corrections.
dooglus [Thu, 13 Sep 2007 14:51:21 +0000 (14:51 +0000)]
Spelling corrections.

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

17 years agoWhen a curve gradient layer's bline is looped and perpendicular is checked, spread...
dooglus [Thu, 13 Sep 2007 12:44:31 +0000 (12:44 +0000)]
When a curve gradient layer's bline is looped and perpendicular is checked, spread the gradient over the entire loop.  Previously the last bline wasn't used.

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

17 years agoAdd some changes to NEWS
pabs [Thu, 13 Sep 2007 07:54:38 +0000 (07:54 +0000)]
Add some changes to NEWS

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

17 years agoAdd some changes to NEWS
pabs [Thu, 13 Sep 2007 07:44:43 +0000 (07:44 +0000)]
Add some changes to NEWS

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

17 years agoAdd some changes to NEWS
pabs [Thu, 13 Sep 2007 07:36:56 +0000 (07:36 +0000)]
Add some changes to NEWS

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

17 years agoA few more typos.
dooglus [Wed, 12 Sep 2007 21:01:33 +0000 (21:01 +0000)]
A few more typos.

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

17 years agoSince the last change will require a recompilation of pretty much everything, I took...
dooglus [Wed, 12 Sep 2007 20:36:47 +0000 (20:36 +0000)]
Since the last change will require a recompilation of pretty much everything, I took this opportunity to fix some spelling mistakes that were annoying me.

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

17 years agoFix 1793306: dirname() doesn't work on absolute paths. Also fixed basename(). Fixed...
dooglus [Wed, 12 Sep 2007 20:14:25 +0000 (20:14 +0000)]
Fix 1793306: dirname() doesn't work on absolute paths.  Also fixed basename().  Fixed a potentially infinite loop, and a couple of other small changes.

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

17 years agoFix 1792063: problem with curve gradients when a vertex has split tangents which...
dooglus [Wed, 12 Sep 2007 01:38:05 +0000 (01:38 +0000)]
Fix 1792063: problem with curve gradients when a vertex has split tangents which are almost parallel to each other.

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

17 years agoReinstate the -Wno-unused-parameter flag, because when building a non-debug build...
dooglus [Wed, 12 Sep 2007 00:24:18 +0000 (00:24 +0000)]
Reinstate the -Wno-unused-parameter flag, because when building a non-debug build, the 'assert()'s don't get compiled, leading to a whole lot of warnings about an unused parameter in value.h.

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

17 years agoAdded a few comments.
dooglus [Tue, 11 Sep 2007 20:07:59 +0000 (20:07 +0000)]
Added a few comments.

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

17 years agoMove the 'Simple Text' into the 'Other' menu, rather than having it in a menu of...
dooglus [Mon, 10 Sep 2007 23:31:45 +0000 (23:31 +0000)]
Move the 'Simple Text' into the 'Other' menu, rather than having it in a menu of its own.  And rename it "Text", since we don't have any non-simple text layer.

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

17 years agoRearranged "if (!x) a; else b;" to "if (x) b; else a;". Added a couple of comments...
dooglus [Mon, 10 Sep 2007 23:00:31 +0000 (23:00 +0000)]
Rearranged "if (!x) a; else b;" to "if (x) b; else a;".  Added a couple of comments.  No real changes.

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

17 years agoThe icons are in $SYNFIG_ROOT/share/pixmaps/synfigstudio/ now, not $SYNFIG_ROOT/share...
dooglus [Mon, 10 Sep 2007 20:13:40 +0000 (20:13 +0000)]
The icons are in $SYNFIG_ROOT/share/pixmaps/synfigstudio/ now, not $SYNFIG_ROOT/share/pixmaps/.  Updated the code which uses the SYNFIG_ROOT environment variable to locate them.  It shouldn't be necessary to set SYNFIG_ROOT, in which case this fix will have no effect, but setting it shouldn't break things like it currently does.

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

17 years agoShow basic motion blur even in the workarea display; ie. show the current frame and...
dooglus [Mon, 10 Sep 2007 16:54:18 +0000 (16:54 +0000)]
Show basic motion blur even in the workarea display; ie. show the current frame and the (time-aperture) frame only.  Don't use any future frames to generate the blur, only past frames.  Make older frames contribute less to the blur than newer frames - ie. the blur decays linearly, rather than not decaying at all.

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

17 years agoAdded a comment about the strange fudge factor in the previous versions of the plant...
dooglus [Mon, 10 Sep 2007 01:38:21 +0000 (01:38 +0000)]
Added a comment about the strange fudge factor in the previous versions of the plant layer code.

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

17 years agoDefault the plant layer's Perpendicular Velocity to zero, for compatibility with...
dooglus [Mon, 10 Sep 2007 01:22:14 +0000 (01:22 +0000)]
Default the plant layer's Perpendicular Velocity to zero, for compatibility with older .sif files.

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

17 years agoMade a comment about some compiler warnings that I don't yet understand.
dooglus [Mon, 10 Sep 2007 01:10:13 +0000 (01:10 +0000)]
Made a comment about some compiler warnings that I don't yet understand.

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

17 years agoTime Plant::sync(). Display timing information if it takes a long time. Show progre...
dooglus [Sun, 9 Sep 2007 23:40:44 +0000 (23:40 +0000)]
Time Plant::sync().  Display timing information if it takes a long time.  Show progress after every million particles.  Use antialiasing on rendered plants.  See dooglus.rincevent.net/synfig/plant-before-646.png and http://dooglus.rincevent.net/synfig/plant-after-646.png for before and after shots, rendered from http://dooglus.rincevent.net/synfig/plant-646.sif .  Thin lines were being completely lost before this change.

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

17 years agoIn the plant layer, don't stunt growth at all when random factor is zero.
dooglus [Sun, 9 Sep 2007 23:05:17 +0000 (23:05 +0000)]
In the plant layer, don't stunt growth at all when random factor is zero.

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

17 years agoPartially fix 1790903: Fixed the problem with the plant layer leaving outlines around...
dooglus [Sun, 9 Sep 2007 09:26:58 +0000 (09:26 +0000)]
Partially fix 1790903: Fixed the problem with the plant layer leaving outlines around each 64x64 rendered tile.  Didn't yet fix the lack of anti-aliasing for larger particles mentioned in the same bug report.

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

17 years agoAdded a new parameter to the plant layer, "Perpendicular Velocity" which controls...
dooglus [Sun, 9 Sep 2007 08:17:34 +0000 (08:17 +0000)]
Added a new parameter to the plant layer, "Perpendicular Velocity" which controls how much the growth happens at right angles to the bline tangent.  ( eg. dooglus.rincevent.net/synfig/plant2.png )

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

17 years agoSuccessfully fixed speling mistakes.
dooglus [Sun, 9 Sep 2007 00:32:16 +0000 (00:32 +0000)]
Successfully fixed speling mistakes.

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

17 years agoShow 'info' messages during the sync()ing of large plants - one message for every...
dooglus [Sat, 8 Sep 2007 23:59:52 +0000 (23:59 +0000)]
Show 'info' messages during the sync()ing of large plants - one message for every million particles.  Added descriptions for each of the parameters.  Added more comments.  Tidied up.

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

17 years agoSpread the sprouts out evenly along each bline. Previously they appeared at both...
dooglus [Sat, 8 Sep 2007 23:35:18 +0000 (23:35 +0000)]
Spread the sprouts out evenly along each bline.  Previously they appeared at both ends of each bline segment, resulting in double sprouts at each internal blinepoint.  Added a few comments.  Tidied up a little.  Oh, and apply the 'random_factor' parameter when calculating 'stunt_growth', too.  Setting random_factor to 0 will unstunt all growth.

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

17 years agoDon't keep trying to sync() a plant layer if its bline has less than 2 points.
dooglus [Sat, 8 Sep 2007 23:24:40 +0000 (23:24 +0000)]
Don't keep trying to sync() a plant layer if its bline has less than 2 points.

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

17 years agoPlant::sync() doesn't need to be public.
dooglus [Sat, 8 Sep 2007 23:18:02 +0000 (23:18 +0000)]
Plant::sync() doesn't need to be public.

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

17 years agoAdded a comment questioning one of the Random::operator() methods.
dooglus [Sat, 8 Sep 2007 23:16:30 +0000 (23:16 +0000)]
Added a comment questioning one of the Random::operator() methods.

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

17 years agoUse an enumeration type rather than unnamed integers to specify the different types...
dooglus [Sat, 8 Sep 2007 23:12:50 +0000 (23:12 +0000)]
Use an enumeration type rather than unnamed integers to specify the different types of random numbers.

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

17 years agoPut a mutex around Plant::sync() to stop 2 threads running it at the same time. ...
dooglus [Sat, 8 Sep 2007 23:03:11 +0000 (23:03 +0000)]
Put a mutex around Plant::sync() to stop 2 threads running it at the same time.  This was causing crashes.  The same probably needs doing to most of the other layers, too.

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

17 years agoAdded a #warning about some bad code in an unused source file, just in case it ever...
dooglus [Sat, 8 Sep 2007 16:33:16 +0000 (16:33 +0000)]
Added a #warning about some bad code in an unused source file, just in case it ever gets used.

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

17 years agoMark ETL/status and ETL/_status.h as unused.
dooglus [Sat, 8 Sep 2007 16:02:24 +0000 (16:02 +0000)]
Mark ETL/status and ETL/_status.h as unused.

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

17 years agoRemove the -Wno-unused-parameter flag from the compile options now that it won't...
dooglus [Sat, 8 Sep 2007 15:58:43 +0000 (15:58 +0000)]
Remove the -Wno-unused-parameter flag from the compile options now that it won't generate hundreds of warnings.

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

17 years agoPrevent compiler warnings about unused parameters.
dooglus [Sat, 8 Sep 2007 15:33:07 +0000 (15:33 +0000)]
Prevent compiler warnings about unused parameters.

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

17 years agoAnother case of initialising a variable from itself - but this time it's commented...
dooglus [Fri, 7 Sep 2007 23:33:19 +0000 (23:33 +0000)]
Another case of initialising a variable from itself - but this time it's commented out.  Added a note not to uncomment it.

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

17 years agoRemoved unused parameters.
dooglus [Fri, 7 Sep 2007 23:05:02 +0000 (23:05 +0000)]
Removed unused parameters.

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

17 years agoPrevent a compiler warning about uninitialised variables. Added a few comments and...
dooglus [Fri, 7 Sep 2007 22:15:35 +0000 (22:15 +0000)]
Prevent a compiler warning about uninitialised variables.  Added a few comments and rearranged things a little.  No functional differences.

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

17 years agoThis looks like a typo. I don't think this function is ever used, anyway (other...
dooglus [Fri, 7 Sep 2007 20:59:34 +0000 (20:59 +0000)]
This looks like a typo.  I don't think this function is ever used, anyway (other than by a few other functions which are never used (other than by a few functions that ...)).

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

17 years agoFix a couple of compiler warnings ("passing 'float' for argument 1 to 'void Pango...
dooglus [Fri, 7 Sep 2007 19:58:47 +0000 (19:58 +0000)]
Fix a couple of compiler warnings ("passing 'float' for argument 1 to 'void Pango::FontDescription::set_size(int)" twice)

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

17 years agoPrevent a compiler warning. (variable 'mag' is used uninitialised if iterations...
dooglus [Fri, 7 Sep 2007 19:38:04 +0000 (19:38 +0000)]
Prevent a compiler warning.  (variable 'mag' is used uninitialised if iterations is less than 1)

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

17 years agoPrevent a compiler warning. (variable mag is used uninitialised if iterations is...
dooglus [Fri, 7 Sep 2007 19:36:50 +0000 (19:36 +0000)]
Prevent a compiler warning.  (variable mag is used uninitialised if iterations is set to zero or less).

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

17 years agoFixed another instance of the bug which was causing the plant layer to break. When...
dooglus [Fri, 7 Sep 2007 19:31:50 +0000 (19:31 +0000)]
Fixed another instance of the bug which was causing the plant layer to break.  When initialising a variable at the same time as declaring it, it's not possible to use the previous variable of the same name in the initialiser.

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

17 years agoTidying.
dooglus [Fri, 7 Sep 2007 19:13:08 +0000 (19:13 +0000)]
Tidying.

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

17 years agoAllow plant blines to have 2 points in them. Previously a minimum of 3 was enforced...
dooglus [Fri, 7 Sep 2007 19:11:48 +0000 (19:11 +0000)]
Allow plant blines to have 2 points in them.  Previously a minimum of 3 was enforced, even though the comment says "Bline must have at least 2 points in it".

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

17 years agoFix the 'plant' layer.
dooglus [Fri, 7 Sep 2007 19:10:48 +0000 (19:10 +0000)]
Fix the 'plant' layer.

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

17 years agoPrevent a warning from the compiler. It warns that "loadcanvas.cpp:349: warning...
dooglus [Fri, 7 Sep 2007 19:07:50 +0000 (19:07 +0000)]
Prevent a warning from the compiler.  It warns that "loadcanvas.cpp:349: warning: 'color.synfig::Color::r_' may be used uninitialized in this function" (and g_, b_ and a_, too), whereas so long as the .sif file isn't corrupted, this won't happen.

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

17 years agoTidying.
dooglus [Thu, 6 Sep 2007 15:51:08 +0000 (15:51 +0000)]
Tidying.

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