Thomas Dinges [Fri, 1 Apr 2011 22:19:03 +0000 (22:19 +0000)]
2.5 Weight Paint UI:
* Added menu entry for "Set Weight" Tool. Request by venomgfx :)
Sergey Sharybin [Fri, 1 Apr 2011 21:38:04 +0000 (21:38 +0000)]
Oops, i've forgot that archive is preparing by scons, so stripping should
happpen before calling scons (hope, binaries wouldn't be overwritten by it)
Thomas Dinges [Fri, 1 Apr 2011 21:37:40 +0000 (21:37 +0000)]
3D View Toolbar:
* Code cleanup
Sergey Sharybin [Fri, 1 Apr 2011 21:22:19 +0000 (21:22 +0000)]
Initial support of linux 32/64 bit for buildbot:
- Use the same config as we're using for release builds
- Added stipping (maybe it should be generalized)
- Not software gl packing, bot would be easy to add
Note, that you should have special environment to create
proper linux builts (which would work for everybody)
Thomas Dinges [Fri, 1 Apr 2011 20:36:27 +0000 (20:36 +0000)]
2.5 UI:
*Brush option "size" had different naming in 3D View / Image Editor.
Ported back name "Radius" to RNA (Brush and ParticleBrush)
Discovered by Bart Crouch. Thanks!
Sergey Sharybin [Fri, 1 Apr 2011 18:35:49 +0000 (18:35 +0000)]
Comments for mesh normals calculation from Mortem Mikkelsen (aka sparky).
We hope it'll help for further workers in this area!
Brecht Van Lommel [Fri, 1 Apr 2011 16:01:29 +0000 (16:01 +0000)]
Partial fix for #26673: sss + normal map wasn't compatible with previous versions.
Campbell Barton [Fri, 1 Apr 2011 15:13:58 +0000 (15:13 +0000)]
modification to api docs so release point to:
http://www.blender.org/documentation/blender_python_api_2_57b_release
Development versions point to:
http://www.blender.org/documentation/blender_python_api_2_57_0
This way updates to api docs after release wont overwrite release docs.
Ton Roosendaal [Fri, 1 Apr 2011 15:08:45 +0000 (15:08 +0000)]
Bugfix #26691
"Theme default" missed a couple of new colors still.
Campbell Barton [Fri, 1 Apr 2011 14:14:37 +0000 (14:14 +0000)]
fix problem with recent commit [#26717] X-Ray conflict (X-Ray Grease Pencil and Object X-Ray)
Campbell Barton [Fri, 1 Apr 2011 14:04:26 +0000 (14:04 +0000)]
- bpy.app.release so python scripts can check if the release is stable or not.
- edited pose bone matrix description.
Ton Roosendaal [Fri, 1 Apr 2011 13:56:01 +0000 (13:56 +0000)]
Bugfix #26672
Minor glitch: Add Camera operator showed option "view aligned",
but that doesn't work for camera. Is now hidden.
Ton Roosendaal [Fri, 1 Apr 2011 12:51:04 +0000 (12:51 +0000)]
Bugfix #26654
A lot of UV tools only work in Image editor, but the operator polls
allowed them to be used in 3d window too, causing crashes in cases.
Also added a poll() check in F6 redo menu.
Joshua Leung [Fri, 1 Apr 2011 12:21:41 +0000 (12:21 +0000)]
Animation Editors: Name-based filtering
I'm finally yielding to months of feature requesting, and adding
support for filtering F-Curves by name, where the "name" here is the
text which is displayed for each F-Curve in the Animation Editor
channel lists.
To use, just enable the magnifying-glass toggle on the DopeSheet
filtering settings, and enter a snippet of text to find within the
names of channels you wish to filter. This is case insensitive, and
currently doesn't support any wildcard/regrex fanciness.
Some examples:
loc <--- location curves only
x loc <--- x location curves only
x eul <--- x rotation curves only
rot <--- rotation curves only
etc.
Campbell Barton [Fri, 1 Apr 2011 11:55:21 +0000 (11:55 +0000)]
xray option for grease pencil (on by default), sometimes its nicer not to have lines draw through the mesh.
Campbell Barton [Fri, 1 Apr 2011 09:00:16 +0000 (09:00 +0000)]
fix for memory leak when freeing metastrips from the clipboard.
Campbell Barton [Fri, 1 Apr 2011 08:51:12 +0000 (08:51 +0000)]
fix [#26713] Video Sequencer: Audio mute after making meta strip copy/paste
was not recursively restoring sound strips on paste.
also found many duplicate functions were defining the transform mode as in int but getting as an enum, use enum for both now.
Campbell Barton [Fri, 1 Apr 2011 06:56:45 +0000 (06:56 +0000)]
workaround for building blender with mingw, was giving syntax error, for now just dont include blender version in the exe for mingw
Campbell Barton [Fri, 1 Apr 2011 06:39:19 +0000 (06:39 +0000)]
fix for cmake / windows from mont29 on IRC.
Campbell Barton [Fri, 1 Apr 2011 06:14:39 +0000 (06:14 +0000)]
Add back sculpt mode brush keys.
Operator for switching brushes based on type, cycling through brushes when multiple exist.
This has the advantages over the old method that it doenst rely on hard coded brush names and if there are multiple brushes of the same type it cycles between them.
also fix error in previous commit which broke number buttons changing brushes.
Campbell Barton [Fri, 1 Apr 2011 04:22:30 +0000 (04:22 +0000)]
while looking into adding back brush tool keys found mixed texture/image paint rna vars, using 'image paint' internally.
Campbell Barton [Fri, 1 Apr 2011 02:41:15 +0000 (02:41 +0000)]
pep8 checker, mostly pedantic style changes but also found an error in mesh_utils.mesh_linked_faces()
Campbell Barton [Thu, 31 Mar 2011 17:54:23 +0000 (17:54 +0000)]
using wrong RNA type in sculpt update.
Ton Roosendaal [Thu, 31 Mar 2011 17:14:31 +0000 (17:14 +0000)]
Bugfix #26687
Using "New scene" operator was setting the screen->scene pointer
after the undo-push, messing up redos or undos immediate after.
Campbell Barton [Thu, 31 Mar 2011 15:28:53 +0000 (15:28 +0000)]
remove bpy python api from blenderplayer, it was being linked but not initialized/available.
Ton Roosendaal [Thu, 31 Mar 2011 15:26:51 +0000 (15:26 +0000)]
Bugfix #26651
If greasepencil became active, making Blender area full or restore
screen from full, the greasepencil handler was still running, using
outdated area pointer. This crashed Blender.
Now greasepencil modal() ends on the case its own stored area does
not exist anymore.
Campbell Barton [Thu, 31 Mar 2011 14:33:59 +0000 (14:33 +0000)]
blender had no option to add a new scene from the UI, only to copy the existing one.
added a new scene option which doesnt copy any render settings from the previous.
Campbell Barton [Thu, 31 Mar 2011 12:45:54 +0000 (12:45 +0000)]
examples for keyframing nested paths. based on report from user der_On's report [#25746]
Janne Karhu [Thu, 31 Mar 2011 11:49:01 +0000 (11:49 +0000)]
Fix for [#26694] Quick effects problems: Make Smoke/Fluid on a flat object creates flat domain. On a subdivided mesh create no domain.
* Fluidsim has to be before any constructive modifiers.
* Also a bit nicer domain size calculation + a warning message for using flat objects as fluid objects.
* Some code cleanup and clarification too.
Campbell Barton [Thu, 31 Mar 2011 11:21:21 +0000 (11:21 +0000)]
library linked modifiers were not having their ID linked expanded properly.
was missing array cap ends, wave map object and shrinkwrap objects.
use modifiers_foreachIDLink() rather then having to list all modifiers ID's in this function.
also add foreachIDLink() for smoke domain.
This fixes a bug where a linked object has as a modifier using an indirectly linked object for the missing cases mentioned above.
Campbell Barton [Thu, 31 Mar 2011 10:31:14 +0000 (10:31 +0000)]
fix for own error r35877, was ignoring #'s in file path by using the digits value passed rather then the number of digits in the string.
Campbell Barton [Thu, 31 Mar 2011 08:49:52 +0000 (08:49 +0000)]
fix for issue #2 in report: [#26695] Two fail cases with modifiers targeting linked assets
also fix for scene.objects.link() not setting library data as being directly used.
Campbell Barton [Thu, 31 Mar 2011 08:46:41 +0000 (08:46 +0000)]
use poppups for python UV unwrap operators (since they are too slow to be realtime). this change was lost when moving the menu items about.
Campbell Barton [Thu, 31 Mar 2011 05:20:48 +0000 (05:20 +0000)]
fix for a crash when loading a new blend file which had a scene with the same name as the old one, the freed backbuffer image from the previous blend file would get reused.
also NULL the bakebuf just incase its accessed in future though at the moment this isnt causing any problems.
Campbell Barton [Thu, 31 Mar 2011 04:55:57 +0000 (04:55 +0000)]
fix for using freed memory in ED_area_newspace() caused by loading webskategirl_bullet.blend and rendering which created a new image space.
Campbell Barton [Thu, 31 Mar 2011 04:43:26 +0000 (04:43 +0000)]
fix for crash when running blender with define WITH_PYTHON_SAFETY & no startup.blend was found.
was calling python function when python was not initialized.
Joshua Leung [Thu, 31 Mar 2011 01:37:42 +0000 (01:37 +0000)]
Pose Propagate - Further Tweaks:
- Pose Propagate and Pose Sliding tools now work in the same way as
Pose Library previewing, with regards to selections. If some bones are
selected, then only those will be affected. But if no bones are
selected, then the whole rig gets affected.
- Added a "On Selected Markers" option, which only propagates poses to
frames where there's a selected marker. Animators can combine this
with a "select markers whose name contains..." operator to get an
effective way to manage hand-keyed walk cycles, etc.
Joshua Leung [Thu, 31 Mar 2011 00:45:52 +0000 (00:45 +0000)]
Propagate Pose Tweaks:
- Renamed "Last Keyframe" mode to "Before End". This mode still just
copies the pose to all keyframes starting from the current frame until
the last one encountered per F-Curve
- "Last Keyframe" mode (new one) now copies the pose to the last
keyframe. This is useful for making animations cyclic (i.e. go to
first keyframe, edit, then Pose->Propagate->To Last Keyframe (Make
Cyclic))
Campbell Barton [Wed, 30 Mar 2011 16:44:18 +0000 (16:44 +0000)]
py/rna Operator.cancel method didnt have return defined.
Campbell Barton [Wed, 30 Mar 2011 16:21:35 +0000 (16:21 +0000)]
didnt mean to commit to Eigen2 since its externally maintained.
Campbell Barton [Wed, 30 Mar 2011 16:14:54 +0000 (16:14 +0000)]
includes for building with gcc 4.6 on fedora.
patch from Richard Shaw
Campbell Barton [Wed, 30 Mar 2011 16:11:16 +0000 (16:11 +0000)]
quiet gcc implicit float -> double warnings & use floats in places.
Campbell Barton [Wed, 30 Mar 2011 15:28:38 +0000 (15:28 +0000)]
fix [#26685] Cannot exit from "edit mode"
this does not fix the underlying problem that once in this state you cant exit editmode, only that the layer key bindings dont let the state come about.
Looked into fixing properly but its not so simple since currently object mode operators all use "active_object" which is supposed not to be set when in a hidden layer.
Campbell Barton [Wed, 30 Mar 2011 15:02:02 +0000 (15:02 +0000)]
pass pep8 checker.
Janne Karhu [Wed, 30 Mar 2011 13:35:54 +0000 (13:35 +0000)]
Small update to the quick effects operators:
* "Make fur" now creates a basic fur material for each object (smaller strand tip width and a little bit of surface diffuse)
* If fluid/smoke emitters aren't rendered the objects are also set to draw only in wire mode so that the fluid/smoke can be clearly seen.
Campbell Barton [Wed, 30 Mar 2011 11:51:06 +0000 (11:51 +0000)]
disallow rna paths resolving to upper case X/Y/Z/X / R/G/B/A, python cant resolve these.
Nathan Letwory [Wed, 30 Mar 2011 10:51:01 +0000 (10:51 +0000)]
COLLADA lights:
* simplify export and import, now that we have blender profiles for lights. The vanilla import is now more in line with the specs. If a blender profile is found, skip normal import, use the profile data instead.
* multiply energy into color rgb export (common profile).
* recalc distance taking metrics in account
Janne Karhu [Wed, 30 Mar 2011 10:29:32 +0000 (10:29 +0000)]
Quick effects operators:
* A couple of operators to quickly create effects that would otherwise take some time to set up.
* Nice to use for demoing functionality or as a starting point for more complex effects.
* "Make Fur" - Gives every selected mesh object particle fur with a desired density and length.
* "Make Smoke" - Makes each selected object a smoke emitter and creates a new domain object around the emitters with the correct material to render the smoke.
** Has style options for "stream": constant smoke flow, "puff": only create smoke once from the volume of the emitter object, "fire": enable high resolution smoke and set a secondary fire color texture for the domain object.
* "Make Fluid" - Makes every selected object a fluid object (normal/inflow) and has the option to start fluid baking immediately.
* This should provide a nice base for extending these / adding more operators for different effects.
Campbell Barton [Wed, 30 Mar 2011 07:21:41 +0000 (07:21 +0000)]
modify error when python is not found so as not to confuse users who don't build blender.
+ minor edits.
Campbell Barton [Wed, 30 Mar 2011 06:27:39 +0000 (06:27 +0000)]
print warning on windows/mac when bundled python is not found, suggesting to build the 'install' target.
Nathan Letwory [Wed, 30 Mar 2011 05:44:01 +0000 (05:44 +0000)]
Apply patch [#26660] Scons build on OSX fails to create Info.plist file fix
provided by Mike Sloman
from the patch report:
When building on Mac OSX with SCONS the Info.plist file is zero length and thus OSX cannot identify icons and file type associations.
The problems was in the execution of the "date" command to add times in the modified bundle name strings passed to sed. This failed and thus the info.plist file was overwritten with 0 length file.
Campbell Barton [Wed, 30 Mar 2011 05:08:52 +0000 (05:08 +0000)]
update blender release cycle ID.
Campbell Barton [Wed, 30 Mar 2011 05:07:12 +0000 (05:07 +0000)]
quiet gcc's float/double warnings.
Campbell Barton [Wed, 30 Mar 2011 04:58:45 +0000 (04:58 +0000)]
- include for BGE joystick sensor
- remove print from numinput and get rid of some float/double warnings.
- nicer align line-number in text editor.
Campbell Barton [Wed, 30 Mar 2011 02:59:32 +0000 (02:59 +0000)]
fix [#26682] Accessing weight sometimes crashes blender
also replace object type check from vgroup_edit_lattice() with an assert since all callers check for lattice type.
Campbell Barton [Wed, 30 Mar 2011 02:05:10 +0000 (02:05 +0000)]
Fix for old bug with subsurf not initializing normals for edges that had no faces,
Noted that a floating point exception caused by this r28953.
With the render engine using DerivedMesh normals this came up as a memory error when rendering some files.
for now zero the normals, could interpolate between vertex normals if needed.
Janne Karhu [Tue, 29 Mar 2011 21:00:42 +0000 (21:00 +0000)]
Fix for [#26646] Hair particle density texture prevents strand render on linked assets
* Linked particle textures weren't expanded during file load.
Erwin Coumans [Tue, 29 Mar 2011 18:44:18 +0000 (18:44 +0000)]
fixes in Bullet stuff, roll influence for raycast vehicles was broken,
enable the setPhysicsTicRate for BGE Python
Campbell Barton [Tue, 29 Mar 2011 16:52:26 +0000 (16:52 +0000)]
fix [#26623] script/console windows: BACKSPACE does not work when SHIFT is held
Campbell Barton [Tue, 29 Mar 2011 16:12:25 +0000 (16:12 +0000)]
fix [#26667] Can't import scripts when using blenderplayer
- move import override initialization to bpy_internal_import.c so the player and blender can both call.
- remove ineffectual & unused sandboxing code.
Erwin Coumans [Tue, 29 Mar 2011 15:46:02 +0000 (15:46 +0000)]
apply patch for body suspend/resume
See also issue #26614
http://projects.blender.org/tracker/index.php?func=detail&aid=26614&group_id=9&atid=306
Brecht Van Lommel [Tue, 29 Mar 2011 14:39:39 +0000 (14:39 +0000)]
Fix #26653: changed DPI setting in user preferences is not saved as default.
Clamping on load did not match RNA property min/max.
Campbell Barton [Tue, 29 Mar 2011 14:36:55 +0000 (14:36 +0000)]
use less verbose string formatting for units and interface.
Campbell Barton [Tue, 29 Mar 2011 14:13:11 +0000 (14:13 +0000)]
fix [#26657] Smart UV Project missing from Unwrap menu in 3D Viewport
Campbell Barton [Tue, 29 Mar 2011 14:07:07 +0000 (14:07 +0000)]
fix [#26656] video sequence editor rendering stops at frame 9999
Campbell Barton [Tue, 29 Mar 2011 13:48:28 +0000 (13:48 +0000)]
fix [#26666] Snapping the cursor to selected in UV Image Editor when unwrapping causes an assert.
Brecht Van Lommel [Tue, 29 Mar 2011 13:37:16 +0000 (13:37 +0000)]
Fix #26637: another problem with recent normals change, objects with negative
scale did not get correct render normals.
Janne Karhu [Tue, 29 Mar 2011 13:00:59 +0000 (13:00 +0000)]
Fix for [#26664] Some particle panels disappear when pinned
* Too strict poll functions for render & display panels.
* Like said in the report cache & vertex groups are a part of the particle system (not particle settings) they can't be shown when the settings are pinned.
Nathan Letwory [Tue, 29 Mar 2011 13:00:03 +0000 (13:00 +0000)]
Apply [#26044] Windows thumbnails and improved filetype registration
submitted by Tom Edwards
Fix [#25473] 64bit Windows installer for version 2.56 is not working
patch submitted by Caleb (Dobz)
The thumbnail patch adds a thumb handler DLL that adds .blend thumbnail support in Windows Explorer. A -r option is added to do registration in background. The patch also improves icon building and metadata for blender.exe.
Caleb fixes and cleans up our installer to an acceptable state. The patch uses the new -r option to do the .blend extension and thumbnailer registration.
Thanks to both Caleb and Tom for their efforts!
Janne Karhu [Tue, 29 Mar 2011 12:50:43 +0000 (12:50 +0000)]
Fix for [#26665] Force field absorption does not work
* Old bug fix led to all kinds of wrong behavior with "plane" shaped effectors, now things are working properly again.
Nathan Letwory [Tue, 29 Mar 2011 12:10:41 +0000 (12:10 +0000)]
build target was changing into wrong directory.
Campbell Barton [Tue, 29 Mar 2011 11:50:37 +0000 (11:50 +0000)]
remove DEBUG flag from OpenNL with cmake, was giving too many prints in the console when unwrapping.
Janne Karhu [Tue, 29 Mar 2011 10:27:31 +0000 (10:27 +0000)]
Fix for [#26658] Permeable colliders stop particles
* Forgot this exception from the collisions rewrite. Don't check collisions with the same face twice.
Joshua Leung [Tue, 29 Mar 2011 09:37:53 +0000 (09:37 +0000)]
Bugfix [#26645] Crash when duplicating an object with driver
Missing null check for "improper" driver variables.
------
Also, this commit includes some WIP NLA evaluation reshuffling which
should be harmless. I had originally intended this for a later
commit...
Joshua Leung [Tue, 29 Mar 2011 09:28:46 +0000 (09:28 +0000)]
Bugfix [#26650] Reset to Default Theme doesn't reset Bone Color Sets
Bone Color Sets weren't set in the call used here. This seems to be a
newish operator that didn't exist in the past, so this error didn't
really show up in the past.
Campbell Barton [Tue, 29 Mar 2011 05:49:34 +0000 (05:49 +0000)]
add rna read-only width/height for screen areas.
Campbell Barton [Tue, 29 Mar 2011 05:10:36 +0000 (05:10 +0000)]
use RNA_warning() rather then printf() so we get the python line number.
Campbell Barton [Tue, 29 Mar 2011 04:16:55 +0000 (04:16 +0000)]
use 'is None' rather then '== None' as suggested by python docs & mis-spelling.
Campbell Barton [Tue, 29 Mar 2011 01:47:03 +0000 (01:47 +0000)]
2 fixes for un-initialized memory uses, when running testfile: teapot_envmap.blend
boxsample() expected talpha to be set beforehand, also dont set the int value as a float since its confusing.
Guillermo S. Romero [Mon, 28 Mar 2011 21:30:41 +0000 (21:30 +0000)]
SVN maintenance.
Ton Roosendaal [Mon, 28 Mar 2011 18:56:43 +0000 (18:56 +0000)]
"Error totblock" renamed into "Error: Not freed memory blocks"
Ton Roosendaal [Mon, 28 Mar 2011 18:51:27 +0000 (18:51 +0000)]
Maintenance:
Gave the report-timer (in top header) an own TIMER define, to not
confuse with timers in use for UI. Easier for debugging. :)
Also gave better malloc names to regions in 3d window.
All this for testing proper buffer drawing in Intel cards... which
is still unsolved.
Campbell Barton [Mon, 28 Mar 2011 17:08:33 +0000 (17:08 +0000)]
misc nodes & editors: floats were being implicitly promoted to doubles, adjust to use floats.
+ minor update to demo_mode
Campbell Barton [Mon, 28 Mar 2011 17:06:15 +0000 (17:06 +0000)]
transform: floats were being implicitly promoted to doubles, adjust to use floats.
also use macros RAD2DEGF & DEG2RADF.
Thomas Dinges [Mon, 28 Mar 2011 15:01:19 +0000 (15:01 +0000)]
2.5 3D View Properties UI:
Show text "Nothing selected" in "Transform" panel (edit mode) rather than only the empty panel.
Campbell Barton [Mon, 28 Mar 2011 13:53:53 +0000 (13:53 +0000)]
example operator that uses a timer.
Campbell Barton [Mon, 28 Mar 2011 13:47:39 +0000 (13:47 +0000)]
color gamma (such as theme colors), were not being wrapped by python as 'mathutils.Color' types
Nathan Letwory [Mon, 28 Mar 2011 13:44:56 +0000 (13:44 +0000)]
Address [#26641] Texture Quick Edit kicks up error when Editor can't be found
reported by Keith Boshoff (Wahooney)
Instead of a confusing backtrace popup, tell the user the image editor cannot be found, and where to set the path to it.
Ton Roosendaal [Mon, 28 Mar 2011 12:16:20 +0000 (12:16 +0000)]
Bugfix, irc report:
Entering editmode crashed, missing v3d properties storage, which got
accidentally removed.
Campbell Barton [Mon, 28 Mar 2011 11:21:39 +0000 (11:21 +0000)]
particles & vector-font: floats were being implicitly promoted to
doubles, adjust to use floats.
Nathan Letwory [Mon, 28 Mar 2011 11:04:38 +0000 (11:04 +0000)]
Add missing header for *nix machines.
Campbell Barton [Mon, 28 Mar 2011 11:01:24 +0000 (11:01 +0000)]
Crouch on IRC noticed inconsistency between name COLOR_SETS & attribute bone_color_sets
Nathan Letwory [Mon, 28 Mar 2011 09:31:44 +0000 (09:31 +0000)]
Import light blender profile if it exists.
Janne Karhu [Mon, 28 Mar 2011 08:27:19 +0000 (08:27 +0000)]
Fix for [#26617] convert hair particles to mesh crash rev:35787
* Hair to mesh conversion wasn't making sure the hairs had valid keys
* Patch by Sergey Sharybin
Janne Karhu [Mon, 28 Mar 2011 08:08:59 +0000 (08:08 +0000)]
Bug fix: particles emitted from a moving emitter exploded with verlet integration
* Verlet integration didn't like moving emitters, so now the first step for newborn particles with verlet is actually done with euler integration.
Nathan Letwory [Mon, 28 Mar 2011 05:37:25 +0000 (05:37 +0000)]
Add stubs for the new timer add and remove functions.
Campbell Barton [Mon, 28 Mar 2011 04:55:24 +0000 (04:55 +0000)]
RNA functions for adding timer (needed for demo mode, also useful for python modal operators).
- timer = WindowManager.event_timer_add(time_step, window=None)
- WindowManager.event_timer_remove(timer)
Still TODO, is a way for python to check the timer identity.
Campbell Barton [Mon, 28 Mar 2011 04:22:50 +0000 (04:22 +0000)]
blenkernel: floats were being implicitly promoted to doubles, adjust to use floats.
Campbell Barton [Mon, 28 Mar 2011 02:34:55 +0000 (02:34 +0000)]
- quiet new warnings with gcc 4.6
- use BLI math funcs for normal float/short conversion.
- correct some un-intentional float/double promotions.
Campbell Barton [Mon, 28 Mar 2011 02:11:51 +0000 (02:11 +0000)]
set CMake's GCC warnings for GCC4.6.
-Wdouble-promotion -Wno-error=double-promotion
-Wno-error=unused-but-set-variable