synfig.git
16 years agoTidying.
dooglus [Sat, 22 Nov 2008 15:34:38 +0000 (15:34 +0000)]
Tidying.

git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2238 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoRemove duplicate call to render the context.
dooglus [Sat, 22 Nov 2008 15:34:14 +0000 (15:34 +0000)]
Remove duplicate call to render the context.

git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2237 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoFix indentation.
dooglus [Sat, 22 Nov 2008 15:33:43 +0000 (15:33 +0000)]
Fix indentation.

git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2236 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoWhen making ducks for elements of a list of vectors, don't set origins for the ducks...
dooglus [Sat, 22 Nov 2008 15:33:14 +0000 (15:33 +0000)]
When making ducks for elements of a list of vectors, don't set origins for the ducks if the parameter in question has no origin set.

git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2235 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoAllow ValueBase objects to be cast to type Real to get their real value. This is...
dooglus [Sat, 22 Nov 2008 15:32:53 +0000 (15:32 +0000)]
Allow ValueBase objects to be cast to type Real to get their real value.  This is an attempt to get the 'metaballs' example module building again.

git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2234 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoExplicitly call get_list() when converting a bline's valuenode at a particular time...
dooglus [Sat, 22 Nov 2008 15:32:23 +0000 (15:32 +0000)]
Explicitly call get_list() when converting a bline's valuenode at a particular time to a vector of ValueBase objects.  This is needed since the next revision will introduce an ambiguity by allowing ValueBase objects to be cast to type Real, which in turn can be cast to type size_t which can be used as an argument to the std::vector constructor.

git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2233 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoCompiler suggested "parentheses around comparison in operand of ^". So I added them.
dooglus [Sat, 22 Nov 2008 15:31:17 +0000 (15:31 +0000)]
Compiler suggested "parentheses around comparison in operand of ^".  So I added them.

git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2232 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoRemove the declaration and definition of ValueNode_BLine::clone() since the parent...
dooglus [Sat, 22 Nov 2008 15:30:25 +0000 (15:30 +0000)]
Remove the declaration and definition of ValueNode_BLine::clone() since the parent class' version is now fine.

git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2231 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoWrite a proper definition for ValueNode_BLine::create_new().
dooglus [Sat, 22 Nov 2008 15:29:28 +0000 (15:29 +0000)]
Write a proper definition for ValueNode_BLine::create_new().

git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2230 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoFix indentation.
dooglus [Sat, 22 Nov 2008 15:28:38 +0000 (15:28 +0000)]
Fix indentation.

git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2229 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoUse the new definition of ValueNode_DynamicList::create_new() in ValueNode_DynamicLis...
dooglus [Sat, 22 Nov 2008 15:27:43 +0000 (15:27 +0000)]
Use the new definition of ValueNode_DynamicList::create_new() in ValueNode_DynamicList::clone().

git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2228 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoWrite a proper definition for ValueNode_DynamicList::create_new().
dooglus [Sat, 22 Nov 2008 15:26:53 +0000 (15:26 +0000)]
Write a proper definition for ValueNode_DynamicList::create_new().

git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2227 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoAllow PasteCanvas layers with unset canvas parameters to be exported.
dooglus [Sat, 22 Nov 2008 15:25:49 +0000 (15:25 +0000)]
Allow PasteCanvas layers with unset canvas parameters to be exported.

git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2226 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoFix 1730067: "Impervious Waypoints". Even inactive layers need to call Node::on_chan...
dooglus [Wed, 19 Nov 2008 19:37:14 +0000 (19:37 +0000)]
Fix 1730067: "Impervious Waypoints".  Even inactive layers need to call Node::on_changed() when they're changed to cause the information to ripple through to all other interested nodes.

git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2225 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoFix 1829182: "Right click context menu not always appears".
dooglus [Wed, 19 Nov 2008 14:50:53 +0000 (14:50 +0000)]
Fix 1829182: "Right click context menu not always appears".

git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2224 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoThe compiler was warning "format not a string literal and no format arguments".
dooglus [Wed, 19 Nov 2008 13:45:27 +0000 (13:45 +0000)]
The compiler was warning "format not a string literal and no format arguments".

git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2223 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoUse the functions from the last two revisions to rebuild the layer tree whenever...
dooglus [Wed, 19 Nov 2008 13:45:05 +0000 (13:45 +0000)]
Use the functions from the last two revisions to rebuild the layer tree whenever a PasteCanvas layer in the tree has its subcanvas changed.

git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2222 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoAdd a new signal_subcanvas_changed() that is signalled whenever a PasteCanvas' subcan...
dooglus [Wed, 19 Nov 2008 13:44:24 +0000 (13:44 +0000)]
Add a new signal_subcanvas_changed() that is signalled whenever a PasteCanvas' subcanvas is changed.  Not used yet.

git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2221 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoAdd function LayerTreeStore::queue_rebuild(). Nothing uses it yet.
dooglus [Wed, 19 Nov 2008 13:43:47 +0000 (13:43 +0000)]
Add function LayerTreeStore::queue_rebuild().  Nothing uses it yet.

git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2220 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years ago'queued' is an integer not a bool, so set it to 0 not false.
dooglus [Wed, 19 Nov 2008 13:42:49 +0000 (13:42 +0000)]
'queued' is an integer not a bool, so set it to 0 not false.

git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2219 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoRemove warning about Paletted PNGs not being fully supported, alpha blending (the...
pabs3 [Wed, 19 Nov 2008 04:05:06 +0000 (04:05 +0000)]
Remove warning about Paletted PNGs not being fully supported, alpha blending (the tRNS chunk) for them is done now.

git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2218 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoFix wtachi's entry in the AUTHORS file.
pabs3 [Wed, 19 Nov 2008 04:01:28 +0000 (04:01 +0000)]
Fix wtachi's entry in the AUTHORS file.

git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2217 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoFix 1826376, 1848018, 1901753. All caused by not making a copy of a canvas before...
dooglus [Tue, 18 Nov 2008 23:28:32 +0000 (23:28 +0000)]
Fix 1826376, 1848018, 1901753.  All caused by not making a copy of a canvas before exporting it.  This fix isn't ideal because in some cases it isn't necessary to duplicate the canvas, and it also leaves the canvas parameter of any pastecanvas layers which use the canvas with their original value until it is changed manually, but it stops the crashes.

git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2216 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoSeveral bugs in the tracker are related to crashes caused when exporting canvases...
dooglus [Tue, 18 Nov 2008 23:28:11 +0000 (23:28 +0000)]
Several bugs in the tracker are related to crashes caused when exporting canvases.  I think this is caused by the way that exporting a canvas doesn't make a copy of the canvas.  Cloning non-inline canvases was disabled in canvas.cpp; this revision reenables it.  This shouldn't cause any problems, and will allow me to experiment with fixes for the crashing bugs.

git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2215 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoWhen a new document is made and saved, register it in the canvas map as if it had...
dooglus [Tue, 18 Nov 2008 23:27:52 +0000 (23:27 +0000)]
When a new document is made and saved, register it in the canvas map as if it had been loaded.  Previously only documents that were loaded from disk were entered into the map causing errors in some situations.

git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2214 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoNot sure if this code is ever used, but if it is it would cause an infinite recursion.
dooglus [Tue, 18 Nov 2008 23:27:31 +0000 (23:27 +0000)]
Not sure if this code is ever used, but if it is it would cause an infinite recursion.

git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2213 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoJust comments.
dooglus [Tue, 18 Nov 2008 23:27:12 +0000 (23:27 +0000)]
Just comments.

git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2212 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoPut a space between the parameter name and its description when prompting for it.
dooglus [Tue, 18 Nov 2008 17:20:36 +0000 (17:20 +0000)]
Put a space between the parameter name and its description when prompting for it.

git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2211 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoWhen we try to open a file that doesn't exist, display an error in the command line...
dooglus [Tue, 18 Nov 2008 17:20:16 +0000 (17:20 +0000)]
When we try to open a file that doesn't exist, display an error in the command line tool.

git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2210 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoWhen we try to open a file that doesn't exist, display an error in studio.
dooglus [Tue, 18 Nov 2008 17:19:57 +0000 (17:19 +0000)]
When we try to open a file that doesn't exist, display an error in studio.

git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2209 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoRemove debugging printf().
dooglus [Tue, 18 Nov 2008 17:19:38 +0000 (17:19 +0000)]
Remove debugging printf().

git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2208 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoFix 1993098: "Composited Inline canvases fails if background is transp.". This was...
dooglus [Tue, 18 Nov 2008 12:07:17 +0000 (12:07 +0000)]
Fix 1993098: "Composited Inline canvases fails if background is transp.".  This was the same as bug 1671884, but failing to take account of a pastecanvas' zoom rather than its offset.  dooglus.rincevent.net/synfig/pastecanvas-zoom-bug.sifz is a simple example that didn't render correctly before this fix.

git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2207 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoFix 2119775: "Zoom tool doesn't work if drag outside the window". The problem was...
dooglus [Tue, 18 Nov 2008 10:58:17 +0000 (10:58 +0000)]
Fix 2119775: "Zoom tool doesn't work if drag outside the window".  The problem was that the zoom tool wouldn't allow zooming out by dragging a large rectangle.  Now it will.

git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2206 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoFix 2256600: "Delete all waypoints of a valuenode unexports it". When deleting the...
dooglus [Mon, 17 Nov 2008 20:36:57 +0000 (20:36 +0000)]
Fix 2256600: "Delete all waypoints of a valuenode unexports it".  When deleting the last waypoint of a valuenode, copy the exported name of the valuenode to the value of the last waypoint before replacing the valuenode with the waypoint's value.

git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2205 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoShow a warning when using file>import to import a .sif file which references itself...
dooglus [Mon, 17 Nov 2008 10:21:29 +0000 (10:21 +0000)]
Show a warning when using file>import to import a .sif file which references itself recursively.

git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2204 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoWhen loading .sif files, show any warnings in the GUI. When loading .sif files with...
dooglus [Mon, 17 Nov 2008 00:38:20 +0000 (00:38 +0000)]
When loading .sif files, show any warnings in the GUI.  When loading .sif files with circular references to themselves, show a warning, and avoid crashing.  The circular reference is shortcutted to allow loading.  (Fixes https://bugs.launchpad.net/ubuntu/+source/synfig/+bug/195447 )

git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2203 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoCommented prototype for undefined function add_layer().
dooglus [Mon, 17 Nov 2008 00:37:38 +0000 (00:37 +0000)]
Commented prototype for undefined function add_layer().

git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2202 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoFix 1814151: "Add a layer inside an exported canvas crash". Check the return value...
dooglus [Fri, 14 Nov 2008 21:14:21 +0000 (21:14 +0000)]
Fix 1814151: "Add a layer inside an exported canvas crash".  Check the return value of add_layer_to() in lots of places.  There may be more to come, and the function itself looks like it needs attention too.

git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2201 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoFix 2116947: "Pasting/importing across different image areas". When pasting nested...
dooglus [Fri, 14 Nov 2008 17:52:30 +0000 (17:52 +0000)]
Fix 2116947: "Pasting/importing across different image areas".  When pasting nested pastecanvases, update the renddesc of all of them rather than just the outermost one.

git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2200 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoWhen 'zoom to fit' is clicked, zoom a little less than before so the border of the...
dooglus [Fri, 14 Nov 2008 17:51:42 +0000 (17:51 +0000)]
When 'zoom to fit' is clicked, zoom a little less than before so the border of the canvas is visible.  It wasn't clear that the whole canvas was visible before.

git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2199 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoThe 'Radius Ratio' tool option wasn't being honoured when creating Star layers.
dooglus [Thu, 13 Nov 2008 23:04:21 +0000 (23:04 +0000)]
The 'Radius Ratio' tool option wasn't being honoured when creating Star layers.

git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2198 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoSame as the previous commit, but for the Star tool.
dooglus [Thu, 13 Nov 2008 22:48:49 +0000 (22:48 +0000)]
Same as the previous commit, but for the Star tool.

git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2197 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoWhen creating any bline with the circle tool, create the bline with its origin at...
dooglus [Thu, 13 Nov 2008 22:35:09 +0000 (22:35 +0000)]
When creating any bline with the circle tool, create the bline with its origin at the centre of the circle.  This allows us to link the circle layer's center to the bline's offset.

git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2196 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoRearrange the tool options to they're in the same order for each tool, giving a more...
dooglus [Thu, 13 Nov 2008 19:55:42 +0000 (19:55 +0000)]
Rearrange the tool options to they're in the same order for each tool, giving a more consistent look.

git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2195 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoIf we draw a polygon under some transform layers, the polygon layer itself (as oppose...
dooglus [Thu, 13 Nov 2008 19:55:08 +0000 (19:55 +0000)]
If we draw a polygon under some transform layers, the polygon layer itself (as opposed to any bline layers created simultaneously) is misplaced.  This fixes the positioning.

git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2194 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoAdd an option to the setup dialog "Scale New Imported Images to Fit Canvas". Previou...
dooglus [Thu, 13 Nov 2008 19:54:36 +0000 (19:54 +0000)]
Add an option to the setup dialog "Scale New Imported Images to Fit Canvas".  Previously all imported images were resized to fill the canvas so smaller images were scaled more than bigger ones.  When importing PNG files with areas of transparent pixels around the ninja parts, silently ignore as many transparent pixels as possible without affecting the render.  This can be disabled by setting environment variable SYNFIG_DISABLE_CROP_IMPORTED_IMAGES.

git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2193 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoSilence a couple of g++ 4.4 warnings in ETL make check
pabs3 [Thu, 13 Nov 2008 04:42:09 +0000 (04:42 +0000)]
Silence a couple of g++ 4.4 warnings in ETL make check

git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2192 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoFix the header include paths for ETL make check
pabs3 [Thu, 13 Nov 2008 04:28:10 +0000 (04:28 +0000)]
Fix the header include paths for ETL make check

git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2191 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoStop a bunch of compile warnings about not used returned value from vasprintf functio...
genete [Wed, 12 Nov 2008 19:01:34 +0000 (19:01 +0000)]
Stop a bunch of compile warnings about not used returned value from vasprintf function in _string.h file.

git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2190 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoMake the checkboxes added in the previous commit work.
dooglus [Tue, 11 Nov 2008 19:51:53 +0000 (19:51 +0000)]
Make the checkboxes added in the previous commit work.

git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2189 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoAdd checkboxes to create outlines, regions, etc. for the polygon tool. They're not...
dooglus [Tue, 11 Nov 2008 19:51:37 +0000 (19:51 +0000)]
Add checkboxes to create outlines, regions, etc. for the polygon tool.  They're not wired up to anything yet.

git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2188 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoAdd a 'feather' setting to the polygon tool's 'Tool Options' panel.
dooglus [Tue, 11 Nov 2008 19:51:20 +0000 (19:51 +0000)]
Add a 'feather' setting to the polygon tool's 'Tool Options' panel.

git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2187 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoAdd an 'invert' checkbox to the polygon tool's 'Tool Options' panel.
dooglus [Tue, 11 Nov 2008 19:51:03 +0000 (19:51 +0000)]
Add an 'invert' checkbox to the polygon tool's 'Tool Options' panel.

git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2186 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoLeft-justify the 'invert' tool option, like in the other tools.
dooglus [Tue, 11 Nov 2008 19:50:42 +0000 (19:50 +0000)]
Left-justify the 'invert' tool option, like in the other tools.

git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2185 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoFurther improvements to the Curve Warp layer.
dooglus [Tue, 11 Nov 2008 16:48:45 +0000 (16:48 +0000)]
Further improvements to the Curve Warp layer.

git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2184 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoRevert the previous commit. This is an issue that needs resolving somehow but just...
dooglus [Tue, 11 Nov 2008 16:41:48 +0000 (16:41 +0000)]
Revert the previous commit.  This is an issue that needs resolving somehow but just removing the line isn't how.

git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2183 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoRemove the "AC_CONFIG_SUBDIRS(libltdl)" line. It fails with libtool 2.
dooglus [Tue, 11 Nov 2008 16:33:54 +0000 (16:33 +0000)]
Remove the "AC_CONFIG_SUBDIRS(libltdl)" line.  It fails with libtool 2.

git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2182 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoApply 2198806: add support for alpha in paletted PNG files in the PNG importer. Patch...
pabs3 [Tue, 11 Nov 2008 04:47:50 +0000 (04:47 +0000)]
Apply 2198806: add support for alpha in paletted PNG files in the PNG importer. Patch by wtachi (hyperwiz)

git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2181 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoNew environment variable "SYNFIG_FORCE_TILE_RENDER" to cause tile rendering to always...
dooglus [Mon, 10 Nov 2008 16:45:06 +0000 (16:45 +0000)]
New environment variable "SYNFIG_FORCE_TILE_RENDER" to cause tile rendering to always be used.  Overrides even SYNFIG_DISABLE_TILE_RENDER.

git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2180 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agolibsynfig attempted to load modules from ~/.synfig/modules/ but didn't understand...
dooglus [Sun, 9 Nov 2008 19:50:18 +0000 (19:50 +0000)]
libsynfig attempted to load modules from ~/.synfig/modules/ but didn't understand what '~' meant.  Now it uses the HOME environment variable instead.

git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2179 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoWhen studio fails to start up, show a more specific error message stating why.
dooglus [Sun, 9 Nov 2008 19:22:28 +0000 (19:22 +0000)]
When studio fails to start up, show a more specific error message stating why.

git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2178 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoFix 2250533: "synfig_modules.cfg in ~/.synfig never loaded". Use the HOME environmen...
dooglus [Sun, 9 Nov 2008 19:09:45 +0000 (19:09 +0000)]
Fix 2250533: "synfig_modules.cfg in ~/.synfig never loaded".  Use the HOME environment variable if it's available.

git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2177 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoRemove a few non-useful comments.
dooglus [Sun, 9 Nov 2008 19:09:28 +0000 (19:09 +0000)]
Remove a few non-useful comments.

git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2176 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoFail to start if the synfig_modules.cfg file can't be found. Only load the first...
dooglus [Sun, 9 Nov 2008 19:09:10 +0000 (19:09 +0000)]
Fail to start if the synfig_modules.cfg file can't be found.  Only load the first synfig_modules.cfg file found, and show its path in the console output.

git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2175 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoRemoved the four essential modules from this list of optional modules.
dooglus [Sun, 9 Nov 2008 17:28:04 +0000 (17:28 +0000)]
Removed the four essential modules from this list of optional modules.

git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2174 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoFour of the modules provide features available from the tools in the main toolbox...
dooglus [Sun, 9 Nov 2008 17:24:01 +0000 (17:24 +0000)]
Four of the modules provide features available from the tools in the main toolbox.  If any of these four modules fails to load, refuse to start studio.

git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2173 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoRemove unused and undefined function 'load_modules'.
dooglus [Sun, 9 Nov 2008 17:23:41 +0000 (17:23 +0000)]
Remove unused and undefined function 'load_modules'.

git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2172 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoImplement accelerated_render for the Curve Warp layer. It can now warp text and...
dooglus [Sat, 8 Nov 2008 19:21:31 +0000 (19:21 +0000)]
Implement accelerated_render for the Curve Warp layer.  It can now warp text and feathered circles, etc.

git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2171 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoAlways #include <cstdio> when using sscanf.
pabs3 [Sat, 8 Nov 2008 05:49:11 +0000 (05:49 +0000)]
Always #include <cstdio> when using sscanf.
Fixes an FTBFS with GCC 4.4.

git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2170 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoDon't enable the use of mutexes on platforms other than Windows unless pthread is...
pabs3 [Sat, 8 Nov 2008 05:47:11 +0000 (05:47 +0000)]
Don't enable the use of mutexes on platforms other than Windows unless pthread is available.

git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2169 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoFix the pthread and kernel32 library checks to not check for main. The checks fail...
pabs3 [Sat, 8 Nov 2008 05:44:21 +0000 (05:44 +0000)]
Fix the pthread and kernel32 library checks to not check for main. The checks fail on GCC 4.4 otherwise.

git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2168 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoShow the start and end points connected, and add a width duck to the start point.
dooglus [Fri, 7 Nov 2008 18:11:26 +0000 (18:11 +0000)]
Show the start and end points connected, and add a width duck to the start point.

git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2167 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoUsing 'width' for the perpendicular scaling factor causes the parameter to be initial...
dooglus [Fri, 7 Nov 2008 17:17:30 +0000 (17:17 +0000)]
Using 'width' for the perpendicular scaling factor causes the parameter to be initialised from the toolbox.  This isn't ideal, so I renamed the parameter in the code.

git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2166 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoRemove a bunch of unused code.
dooglus [Fri, 7 Nov 2008 16:58:35 +0000 (16:58 +0000)]
Remove a bunch of unused code.

git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2165 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoFirst stab at adding genete's suggested 'Curve Warp' layer. It's pretty slow at...
dooglus [Fri, 7 Nov 2008 16:53:52 +0000 (16:53 +0000)]
First stab at adding genete's suggested 'Curve Warp' layer.  It's pretty slow at the moment, because it uses get_color() to render the context pixel by pixel rather than using accelerated_render() to render a block at once.

git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2164 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoFinding the distance along a bezier curve from point x to point x was failing with...
dooglus [Fri, 7 Nov 2008 15:06:42 +0000 (15:06 +0000)]
Finding the distance along a bezier curve from point x to point x was failing with a division by zero.  Fix by always returning 0 in that case.

git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2163 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoUpdate the scrollbar that controls the time ruler along the bottom of the canvas...
dooglus [Thu, 6 Nov 2008 17:29:46 +0000 (17:29 +0000)]
Update the scrollbar that controls the time ruler along the bottom of the canvas when the start and end time of the movie is modified.  Previously it wasn't updating immediately.

git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2162 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoSpeed up reverse seeking in the ffmpeg importer by using the ffmpeg -ss option to...
pabs3 [Thu, 6 Nov 2008 10:36:52 +0000 (10:36 +0000)]
Speed up reverse seeking in the ffmpeg importer by using the ffmpeg -ss option to tell ffmpeg to seek to the right frame.

git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2161 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years ago'const' is ignored in the return type of functions, so don't specify it.
dooglus [Thu, 6 Nov 2008 09:07:28 +0000 (09:07 +0000)]
'const' is ignored in the return type of functions, so don't specify it.

git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2160 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agonodebase.h appears to be unused. Mark it as such, and don't include it into node...
dooglus [Thu, 6 Nov 2008 09:07:16 +0000 (09:07 +0000)]
nodebase.h appears to be unused.  Mark it as such, and don't include it into node.cpp.

git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2159 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoInitialise a couple of values before using them.
pabs3 [Thu, 6 Nov 2008 05:25:34 +0000 (05:25 +0000)]
Initialise a couple of values before using them.

git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2158 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoUse the z printf length modifier when printing the value of size_t values, fixes...
pabs3 [Thu, 6 Nov 2008 04:55:12 +0000 (04:55 +0000)]
Use the z printf length modifier when printing the value of size_t values, fixes a compiler warning in the draw tool code.

git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2157 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoDon't ignore type qualifiers on a couple of ETL pen functions, fixes a couple of...
pabs3 [Thu, 6 Nov 2008 04:44:26 +0000 (04:44 +0000)]
Don't ignore type qualifiers on a couple of ETL pen functions, fixes a couple of GCC warnings.

git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2156 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoUse the l printf length modifier when printing the value of long ints, fixes a compil...
pabs3 [Thu, 6 Nov 2008 04:14:42 +0000 (04:14 +0000)]
Use the l printf length modifier when printing the value of long ints, fixes a compiler warning in the gradient code.

git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2155 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoCheck for EOF before complaining about the lack of PPM in the pipe in the ffmpeg...
pabs3 [Wed, 5 Nov 2008 09:39:07 +0000 (09:39 +0000)]
Check for EOF before complaining about the lack of PPM in the pipe in the ffmpeg importer

git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2154 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoWhen we cannot launch ffmpeg in the ffmpeg importer, kill the child process.
pabs3 [Wed, 5 Nov 2008 09:38:43 +0000 (09:38 +0000)]
When we cannot launch ffmpeg in the ffmpeg importer, kill the child process.

git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2153 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoMake the ffmpeg importer declare that it is animated
pabs3 [Wed, 5 Nov 2008 09:38:18 +0000 (09:38 +0000)]
Make the ffmpeg importer declare that it is animated

git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2152 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoIn the ffmpeg importer, if we successfully got a frame, do not say that we didn't...
pabs3 [Wed, 5 Nov 2008 09:37:54 +0000 (09:37 +0000)]
In the ffmpeg importer, if we successfully got a frame, do not say that we didn't get the frame.

git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2151 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoEnable use of the ffmpeg importer
pabs3 [Wed, 5 Nov 2008 09:37:19 +0000 (09:37 +0000)]
Enable use of the ffmpeg importer

git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2150 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoRevision 1150 stopped synfig-core/trunk/examples/star.sifz from rendering correctly...
dooglus [Tue, 4 Nov 2008 20:11:06 +0000 (20:11 +0000)]
Revision 1150 stopped synfig-core/trunk/examples/star.sifz from rendering correctly.  This fixes it.

git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2149 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoImprove the rendering of curvegradient layers near vertices with zero-length tangents...
dooglus [Tue, 4 Nov 2008 14:45:34 +0000 (14:45 +0000)]
Improve the rendering of curvegradient layers near vertices with zero-length tangents.  See dooglus.rincevent.net/random/arrow-old.png , http://dooglus.rincevent.net/random/arrow-new.png , http://dooglus.rincevent.net/random/arrow.sifz for an example of the various types of glitch that have been fixed in this revision.

git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2148 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoUse a single scalar product to calculate the distance of each point from the bline.
dooglus [Tue, 4 Nov 2008 14:45:06 +0000 (14:45 +0000)]
Use a single scalar product to calculate the distance of each point from the bline.

git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2147 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoBuild rectanglular blines in the same handedness as all the other shapes.
dooglus [Tue, 4 Nov 2008 14:44:38 +0000 (14:44 +0000)]
Build rectanglular blines in the same handedness as all the other shapes.

git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2146 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoFix crash when unsetting import layer filename after using PNG or JPEG importers.
pabs3 [Tue, 4 Nov 2008 07:26:49 +0000 (07:26 +0000)]
Fix crash when unsetting import layer filename after using PNG or JPEG importers.

Thanks to wlaut for discovering it.

git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2145 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoDelete generated ETL/etl_profile_.h.in file
pabs3 [Mon, 3 Nov 2008 08:50:01 +0000 (08:50 +0000)]
Delete generated ETL/etl_profile_.h.in file

git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2144 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoFix 2112320: "Change 'Grab' button in the Gradient Editor". Renamed the 'Grab' butto...
dooglus [Sun, 2 Nov 2008 18:31:51 +0000 (18:31 +0000)]
Fix 2112320: "Change 'Grab' button in the Gradient Editor".  Renamed the 'Grab' button to 'Set as Default', and greyed it out when it is editing the default gradient.

git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2143 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoFix 1968248: "Opening of any other XML-file crashes synfigstudio". Attempting to...
dooglus [Sun, 2 Nov 2008 17:24:35 +0000 (17:24 +0000)]
Fix 1968248: "Opening of any other XML-file crashes synfigstudio".  Attempting to open a non-SIF format XML file will now produce an error message, not a crash.

git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2142 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoFix 2205700: fix some issues with the desktop file:
pabs3 [Wed, 29 Oct 2008 01:32:00 +0000 (01:32 +0000)]
Fix 2205700: fix some issues with the desktop file:
* MimeType should end with a semicolon
* Icon should not contain the image extension
* Categories should contain GTK since synfigstudio is a GTK+ app

git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2141 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoRather than reporting "Couldn't create parsing context" when a file isn't readable...
dooglus [Sun, 26 Oct 2008 20:44:20 +0000 (20:44 +0000)]
Rather than reporting "Couldn't create parsing context" when a file isn't readable or doesn't exist, report "Can't open file <filename>".

git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2140 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoChange error message "unable to open file" to "unable to load", since the error may...
dooglus [Sun, 26 Oct 2008 20:44:10 +0000 (20:44 +0000)]
Change error message "unable to open file" to "unable to load", since the error may not be that we can't open it; perhaps we could open it, but didn't like the contents.

git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2139 1f10aa63-cdf2-0310-b900-c93c546f37ac