blender.git
6 years agorigidbody: Code cleanup
Sergej Reich [Sat, 23 Feb 2013 23:04:03 +0000 (23:04 +0000)]
rigidbody: Code cleanup

Clean up DNA comments.

6 years agoGHOST/X11 support for frequency, from SDL's mode switching.
Campbell Barton [Sat, 23 Feb 2013 22:48:16 +0000 (22:48 +0000)]
GHOST/X11 support for frequency, from SDL's mode switching.
also free the modes when done.

6 years agoRename CMake's Boost_USE_ICU to WITH_BOOST_ICU (update your CMake conf if you make...
Bastien Montagne [Sat, 23 Feb 2013 20:42:15 +0000 (20:42 +0000)]
Rename CMake's Boost_USE_ICU to WITH_BOOST_ICU (update your CMake conf if you make static builds!), and add it as CMake option.

Patch by gdh (Gavin Howard), many thanks!

6 years agoFix for image alpha version patch with library linked files where the image
Brecht Van Lommel [Sat, 23 Feb 2013 20:24:02 +0000 (20:24 +0000)]
Fix for image alpha version patch with library linked files where the image
datablock is in a different library than the texture datablock. Adjusted the
fix in 54790 to check for this case specifically so it keeps working on other
files that have packed images.

The problem is that blo_do_versions_newlibadr will not return a valid datablock
in some cases with linked libraries. This function is used in various places in
the version patching code and would likely cause problems there as well, needs
to be investigated further.

6 years agoFix #34358: shrinkwrap modifier project along normal did not work correctly
Brecht Van Lommel [Sat, 23 Feb 2013 20:23:59 +0000 (20:23 +0000)]
Fix #34358: shrinkwrap modifier project along normal did not work correctly
after other modifiers. It needs normals and those were not calculated.

6 years agoBug fix in 2.66 release, irc submitted.
Ton Roosendaal [Sat, 23 Feb 2013 14:52:40 +0000 (14:52 +0000)]
Bug fix in 2.66 release, irc submitted.

File with packed images crashes on load.

Do-versions now is copying Images, because texture "use alpha" has been removed...
However, it then also copied packaged images, which crashes for some reason.

For now I skip packed image copy, which keeps blender work. This versioning
code needs more checking though.

6 years agoBug fix #34347
Ton Roosendaal [Sat, 23 Feb 2013 14:31:46 +0000 (14:31 +0000)]
Bug fix #34347

If you move (with F5) the properties and tools region in 3d viewport to the same side,
the mini-axis and text overlays were drawing in wrong place.

6 years agoMissed instance of ThemeGeneric.back -> ThemeGradient.gradients.high_gradient
Antony Riakiotakis [Sat, 23 Feb 2013 12:55:19 +0000 (12:55 +0000)]
Missed instance of ThemeGeneric.back -> ThemeGradient.gradients.high_gradient

6 years agoBugfix #34374
Ton Roosendaal [Sat, 23 Feb 2013 11:51:10 +0000 (11:51 +0000)]
Bugfix #34374

Fixed tooltip for checker-select, it works on the active item, not selected ones.

6 years agocode cleanup: confusingly written and named function for BGE materuial conversion...
Campbell Barton [Sat, 23 Feb 2013 07:36:40 +0000 (07:36 +0000)]
code cleanup: confusingly written and named function for BGE materuial conversion: getImageFromMaterial() --> getMTexFromMaterial()

6 years agocode cleanup: bge material conversion was creating STR_String just to check for empty...
Campbell Barton [Sat, 23 Feb 2013 07:15:37 +0000 (07:15 +0000)]
code cleanup: bge material conversion was creating STR_String just to check for empty string for no reason (empty string was assigned irrespective).

6 years agofix [#34378] GLSL materials using multiple UV layers fail in editmode
Campbell Barton [Sat, 23 Feb 2013 06:56:10 +0000 (06:56 +0000)]
fix [#34378] GLSL materials using multiple UV layers fail in editmode
regression since BMesh merge.

6 years agocode cleanup: make editmode PASSATTRIB into static functions.
Campbell Barton [Sat, 23 Feb 2013 05:36:15 +0000 (05:36 +0000)]
code cleanup: make editmode PASSATTRIB into static functions.

6 years agoBGE: fix for uninitialized tangents
Campbell Barton [Sat, 23 Feb 2013 04:49:46 +0000 (04:49 +0000)]
BGE: fix for uninitialized tangents

6 years agoBGE: Fix for bug #34377 "Multi UV mesh's materials not backwards compatible and Odd...
Mitchell Stokes [Sat, 23 Feb 2013 04:15:47 +0000 (04:15 +0000)]
BGE: Fix for bug #34377 "Multi UV mesh's materials not backwards compatible and Odd UV Coord behavior" reported by Alex Mairs (ctbm). The problem was the unused texture slot was still trying to be used. Now unused texture slots' mappings are set to DISABLE so they don't mess up the rest of the conversion process.

6 years agoBGE: Finally moving material IPOs to the 2.60 BGE animation system (BL_Action). It...
Mitchell Stokes [Sat, 23 Feb 2013 02:47:22 +0000 (02:47 +0000)]
BGE: Finally moving material IPOs to the 2.60 BGE animation system (BL_Action). It was kind of a fluke that they worked before.

6 years agofix for error using uninitialized draw mode with 'm_failsafe_storage' in the BGE.
Campbell Barton [Sat, 23 Feb 2013 02:45:12 +0000 (02:45 +0000)]
fix for error using uninitialized draw mode with 'm_failsafe_storage' in the BGE.

6 years agoadd include for scons.
Campbell Barton [Sat, 23 Feb 2013 02:03:53 +0000 (02:03 +0000)]
add include for scons.

6 years agocode cleanup: bge - was converting float[] to MT_Vector's just to compare. use BLI_ma...
Campbell Barton [Sat, 23 Feb 2013 01:57:56 +0000 (01:57 +0000)]
code cleanup: bge - was converting float[] to MT_Vector's just to compare. use BLI_math instead.

6 years agofix for error in the blenderplayer caused by r54727 (can't assume G.main is valid...
Campbell Barton [Sat, 23 Feb 2013 01:33:47 +0000 (01:33 +0000)]
fix for error in the blenderplayer caused by r54727 (can't assume G.main is valid on load).

6 years agoBGE: Object color channels can now be animated separately without zeroing out the...
Mitchell Stokes [Sat, 23 Feb 2013 01:17:01 +0000 (01:17 +0000)]
BGE: Object color channels can now be animated separately without zeroing out the other channels. Problem reported by Dalai via IRC.

6 years agoInstall_deps script:
Thomas Dinges [Sat, 23 Feb 2013 00:52:59 +0000 (00:52 +0000)]
Install_deps script:
* Use OIIO 1.1.7, this removes the need for the ugly patch.
* Use official OSL 1.3.0 repo
* Print OSL path for scons

Tested on Ubuntu 12.10 x64.

6 years agoBGE: Second fix for #34330 "Action Actuator "caching" the previous ran actions" repor...
Mitchell Stokes [Sat, 23 Feb 2013 00:46:58 +0000 (00:46 +0000)]
BGE: Second fix for #34330 "Action Actuator "caching" the previous ran actions" reported by Dalai. Now the multiple layers should also be working. When doing fcurve/IPO animations, the controllers are cleared as soon as the action is done and must be setup again every time the action is played.

6 years agoBGE: For BL_Action, use the object's scene rather than the "active" scene, which...
Mitchell Stokes [Sat, 23 Feb 2013 00:28:25 +0000 (00:28 +0000)]
BGE: For BL_Action, use the object's scene rather than the "active" scene, which can potentially cause problems with multiple scenes.

6 years agoBGE: (partial?) fix for #34330 "Action Actuator "caching" the previous ran actions...
Mitchell Stokes [Fri, 22 Feb 2013 23:55:06 +0000 (23:55 +0000)]
BGE: (partial?) fix for #34330 "Action Actuator "caching" the previous ran actions" reported by Dalai. The test file now works if all of the actions are using the same layer, but multiple layers can still cause problems. However, I am unsure as to what the "correct" behavior should be with multiple layers. They should probably blend somehow...

6 years agoWITH_PYTHON_FRAMEWORK cmake option for OSX
Dalai Felinto [Fri, 22 Feb 2013 22:24:38 +0000 (22:24 +0000)]
WITH_PYTHON_FRAMEWORK cmake option for OSX
This option allow Blender to be linked against the Framework python
It's useful if you want to have blenderplayer and bpy in the same application and need to avoid PyThread problems.

patch reviewed by Jens Verwiebe before 2.66. He may want to change something though.
(also small: I changed:
/Library/Frameworks/Python.framework/Versions//python
by
/Library/Frameworks/Python.framework/Versions//Python
as the latter seems to be the norm)

6 years agoBGE: Fix for bug #34219 "Webcam support under Linux in Standalone broken" reported...
Mitchell Stokes [Fri, 22 Feb 2013 20:37:14 +0000 (20:37 +0000)]
BGE: Fix for bug #34219 "Webcam support under Linux in Standalone broken" reported by Thomas Achtner (offtools).

No one bothered to update the player for ffmpeg changes made in August 2012. This meant the player was no longer calling avdevice_register_all(), and  ffmpeg would fail to open web cam streams.

6 years agofixing typo in include (report and patch by Jochen Schmitt)
Dalai Felinto [Fri, 22 Feb 2013 17:45:04 +0000 (17:45 +0000)]
fixing typo in include (report and patch by Jochen Schmitt)

6 years agoWorkaround for compilation error introduced in r54755
Sergey Sharybin [Fri, 22 Feb 2013 17:35:53 +0000 (17:35 +0000)]
Workaround for compilation error introduced in r54755

Scons used to fail because of couple of reasons:

- CMake does have WITH_DNA_GHASH enabled, Scons not
  Which is a good question why?!
- This makes Cmake including BLI_utildefines in dna_genfile.c,
  but scons missed this include
- This damn "bool" thing requires BLI_utildefines

And last question here is why would we want to use bool here =\
It's just always ends up in headache without any visible benefit
of using it.

Well, at least now svn shall be compilable again..

6 years agoApplying patch #33709 for dead keys on windows.
Alexander Kuznetsov [Fri, 22 Feb 2013 16:42:19 +0000 (16:42 +0000)]
Applying patch #33709 for dead keys on windows.
Thanks Harley Acheson!

6 years agoFix #34357: image editor scope and clip editor track preview did not resize
Brecht Van Lommel [Fri, 22 Feb 2013 16:11:27 +0000 (16:11 +0000)]
Fix #34357: image editor scope and clip editor track preview did not resize
properly with different DPI settings.

6 years agoFix for windows size on win32
Alexander Kuznetsov [Fri, 22 Feb 2013 15:57:50 +0000 (15:57 +0000)]
Fix for windows size on win32

6 years agoFix for building without python.
Alexander Kuznetsov [Fri, 22 Feb 2013 15:54:10 +0000 (15:54 +0000)]
Fix for building without python.

6 years agogame engine: Revert to using regular gimpact for mesh shapes
Sergej Reich [Fri, 22 Feb 2013 14:47:11 +0000 (14:47 +0000)]
game engine: Revert to using regular gimpact for mesh shapes

This reverts part of r53019.
While the compound shape trick works well in some cases, overall it's
much slower and even causes crashes under certain conditions.

We could make this and option and fix the crashes, but it's better to
implement convex decomposition anyway so just reverting for now.

Fixes [#34353] Ray cast on Triangle mesh bounded Rigid Body Object causes blender crash to desktop without error.

6 years agopatch [#34103] - listbase.patch, insertlinkbefore.patch
Campbell Barton [Fri, 22 Feb 2013 14:12:55 +0000 (14:12 +0000)]
patch [#34103] - listbase.patch, insertlinkbefore.patch
from Lawrence D'Oliveiro (ldo)

notes from tracker:
use bool for return type from BLI_remlink_safe, necessitating including BLI_utildefines.h in BLI_listbase.h
get rid of duplicate BLI_insertlink, use BLI_insertlinkafter instead.

A few places which were using BLI_insertlinkafter (actually BLI_insertlink), when it would be simpler to use BLI_insertlinkbefore instead.

6 years agopatch [#34103] Add explanatory comments to dna_genfile.[ch]
Campbell Barton [Fri, 22 Feb 2013 13:35:32 +0000 (13:35 +0000)]
patch [#34103] Add explanatory comments to dna_genfile.[ch]
from Lawrence D'Oliveiro (ldo)

6 years agoFix for [#34356] Inputs list in file output doesn't appear properly.
Thomas Dinges [Fri, 22 Feb 2013 12:24:08 +0000 (12:24 +0000)]
Fix for [#34356] Inputs list in file output doesn't appear properly.

* This made File Output Node more or less useless in the 2.66 release, as the list did not appear.
Issue caused in r53355.

Should be back ported to "a" release.

6 years agoremove 'register' from drag-toggle operator (so it doesn't show in the redo panel).
Campbell Barton [Fri, 22 Feb 2013 11:06:25 +0000 (11:06 +0000)]
remove 'register' from drag-toggle operator (so it doesn't show in the redo panel).
update credits script.

6 years agoSimple preset function for setting common node sizes based on enum instead of explici...
Lukas Toenne [Fri, 22 Feb 2013 10:46:27 +0000 (10:46 +0000)]
Simple preset function for setting common node sizes based on enum instead of explicit numbers.
Most nodes use the default size now and don't need explicit function calls. Most remaining nodes can also use the preset variant instead of explicit size values, these are only needed for a few special nodes.
Thanks to Sebastian K├Ânig for suggesting this and doing the monkey work of changing node definitions.

6 years agoMotion tracking dopesheet
Sergey Sharybin [Fri, 22 Feb 2013 10:13:15 +0000 (10:13 +0000)]
Motion tracking dopesheet

Highlight background depending on number of tracks existing on frame.

This is not so much mathematically accurate displaying where things
shall be improved, but it's nice feedback about which frames better
be reviewed.

Bad frames are tracks < 8, highlighted with red.
OK-ish frame  are 8 <= tracks < 16, highlighted with yellow.

Could be some artifacts with color region start/end, this is a bit
unclear what exactly expected to be highlighted -- frames are
displayed as dots, but in fact they're quite noticeable segments.

---
svn merge -r54572:54573 ^/branches/soc-2011-tomato

6 years agoRemove extern_ssba workaround
Sergey Sharybin [Fri, 22 Feb 2013 10:06:54 +0000 (10:06 +0000)]
Remove extern_ssba workaround

SSBA seemed to be working OK last time i've checked it
with MSVC and optimization enabled.

Also, we'll likely replace it with own BA soon, which
works fine with MSVC anyway.

6 years agoFix #34351: Displacement map Bake margin does not work
Sergey Sharybin [Fri, 22 Feb 2013 09:57:10 +0000 (09:57 +0000)]
Fix #34351: Displacement map Bake margin does not work

6 years agoFixing typos
Gaia Clary [Fri, 22 Feb 2013 09:31:42 +0000 (09:31 +0000)]
Fixing typos

6 years agoFix #34359: 2.66 crashes when using output node
Sergey Sharybin [Fri, 22 Feb 2013 09:20:22 +0000 (09:20 +0000)]
Fix #34359: 2.66 crashes when using output node

16bit PNG and Jpeg2K exporters were not aware of the simple
fact that float buffer could have only 3 or 1 channels.

6 years agobge bugfix: [#18967] alpha value is never available in the color buffer by Campbell...
Dalai Felinto [Fri, 22 Feb 2013 07:37:17 +0000 (07:37 +0000)]
bge bugfix: [#18967] alpha value is never available in the color buffer by Campbell Barton (X11) and me (Win32)
This is and old patch (June, 2009). The reason it never made into trunk it's that we (me at least) thought that
it should be optional, as a ui or command-line option.

However, it seems that OSX always have the OpenGL context with alpha enabled. So I think it's consistent to
have the other OSs to follow.

The main usage of this is the BGE (or more specifically people using BGE for TV broadcasting) but I think
pydevs can have their share of fun with it in Blender as well.

6 years agochange to drag-toggle don't exit when the mouse is outside the region - its annoying...
Campbell Barton [Fri, 22 Feb 2013 07:28:45 +0000 (07:28 +0000)]
change to drag-toggle don't exit when the mouse is outside the region - its annoying for setting layers in the 3d header.

6 years agocode cleanup: switch argument order for button_activate_exit() but/data args were...
Campbell Barton [Fri, 22 Feb 2013 06:02:52 +0000 (06:02 +0000)]
code cleanup: switch argument order for button_activate_exit() but/data args were flipped compared to other functions.

6 years agoToggle-Drag UI Feature
Campbell Barton [Fri, 22 Feb 2013 05:56:20 +0000 (05:56 +0000)]
Toggle-Drag UI Feature

Dragging on toggle buttons can now be used to press multiple buttons at once, especially useful for layer and outliner buttons.

notes:
- automatically enabled for all toggle buttons
  (may change this if it becomes a problem).
- only buttons of the same type are pressed
  (helps avoid annoyances eg; dragging past layer buttons onto other 3d header buttons and pressing by accident).
- automatic axis locking - dragging will lock to X/Y depending on the initial drag direction,
  makes swipe motions work better, especially with the outliner.

implementation details:
- may re-implement as a region handler (currently its a modal operator).
- checking buttons in-between cursor motion events could be more efficient (but currently works ok).
- button execution needs to be improved
  (currently executing a button thats not under the mouse needed a workaround for passing uiHandleButtonData),
  requires further changes to UI code, will do next.

6 years agonew weight paint draw option to display unweighted vertices with the option to check...
Campbell Barton [Fri, 22 Feb 2013 04:09:04 +0000 (04:09 +0000)]
new weight paint draw option to display unweighted vertices with the option to check on the active group or all groups.

notes:
- vertices with zero weights are considered the same as vertices outside of a group.
- currently these show black but this can be made a theme color.
- multi-paint overrides this option (noted in description)

6 years agoBGE: Fix for bug #34349 "Character walkDirection ADD mode -#INF error" reported by...
Mitchell Stokes [Fri, 22 Feb 2013 02:31:46 +0000 (02:31 +0000)]
BGE: Fix for bug #34349 "Character walkDirection ADD mode -#INF error" reported by Angus Hollands (agoose77). If the walk directions canceled each other out, the actuator would try to normalize a zero vector, which caused the error.

6 years agoExpose a few more operators for curves on the toolbar. Some of these were
Joshua Leung [Fri, 22 Feb 2013 02:10:41 +0000 (02:10 +0000)]
Expose a few more operators for curves on the toolbar. Some of these were
previously not available anywhere.

6 years agoWhitespace fixes
Joshua Leung [Fri, 22 Feb 2013 02:09:54 +0000 (02:09 +0000)]
Whitespace fixes

6 years agoAnimation Editors: Operators to Group/Ungroup Selected F-Curves
Joshua Leung [Fri, 22 Feb 2013 01:49:51 +0000 (01:49 +0000)]
Animation Editors: Operators to Group/Ungroup Selected F-Curves

This commit introduces operators to customise the grouping of F-Curves. As
groups are only available in Actions, these grouping operators only work in the
Dopesheet, Action Editor, and Graph Editor (Animation) modes.

To Use:
* Ctrl-G = Group selected F-Curves
* Alt-G  = Ungroup selected F-Curves
* or find these tools from the Channels menu

Notes:
* When invoking the grouping operator from the Channels menu, the name popup
won't show up. Instead, the group(s) created will be created with the default
name. To fix, you can either use the F6 operator properties edit OR manually
edit the names (Ctrl-LMB on the relevant channel)

6 years agoBGE projection code fix: old patch #28893 (to fix #28753) committed in rev.41131...
Dalai Felinto [Fri, 22 Feb 2013 01:48:53 +0000 (01:48 +0000)]
BGE projection code fix: old patch #28893 (to fix #28753) committed in rev.41131 changed the clipping for ortho camera from -far +far to +near +far. But also introduced this -far +far when using 3dviewport camera (which shouldn't).

6 years agocode cleanup: remove unused arg
Campbell Barton [Fri, 22 Feb 2013 00:51:58 +0000 (00:51 +0000)]
code cleanup: remove unused arg

6 years agoCode cleanup:
Thomas Dinges [Thu, 21 Feb 2013 21:05:31 +0000 (21:05 +0000)]
Code cleanup:
* Cycles: Removed leftover include of "kernel_qbvh.h", which was removed in r51352.

6 years agoDependency Graph: some refactoring which should have no user visible impact
Brecht Van Lommel [Thu, 21 Feb 2013 19:33:04 +0000 (19:33 +0000)]
Dependency Graph: some refactoring which should have no user visible impact
besides performance in some cases.

* DAG_scene_sort is now removed and replaced by DAG_relations_tag_update in
  most cases. This will clear the dependency graph, and only rebuild it right
  before it's needed again when the scene is re-evaluated.

  This is done because DAG_scene_sort is slow when called many times from
  python operators. Further the scene argument is not needed because most
  operations can potentially affect more than the current scene.

* DAG_scene_relations_update will now rebuild the dependency graph if it's not
  there yet, and DAG_scene_relations_rebuild will force a rebuild for the rare
  cases that need it.

* Remove various places where ob->recalc was set manually. This should go
  through DAG_id_tag_update() in nearly all cases instead since this is now
  a fast operation. Also removed DAG_ids_flush_update that goes along with
  such manual tagging of ob->recalc.

6 years agoFix scons compile
Jens Verwiebe [Thu, 21 Feb 2013 19:23:41 +0000 (19:23 +0000)]
Fix scons compile

6 years agorigidbody: Add option to create chanis for the connect operator
Sergej Reich [Thu, 21 Feb 2013 19:04:39 +0000 (19:04 +0000)]
rigidbody: Add option to create chanis for the connect operator

Connects objects based on distance.

Based on a patch by Brandon Hechinger (jaggz), thanks!

6 years agorigidbody: code cleanup
Sergej Reich [Thu, 21 Feb 2013 19:04:36 +0000 (19:04 +0000)]
rigidbody: code cleanup

Use bpy.data.objects.new() instead of the object.add() operator.

6 years agorigidbody: Move "Enabled" checkbox out of rigid body panel header
Sergej Reich [Thu, 21 Feb 2013 19:04:34 +0000 (19:04 +0000)]
rigidbody: Move "Enabled" checkbox out of rigid body panel header

Rename it to "Dynamic" to make it more obvious that it switches between
static and dynamic state.
Also don't show it for passive rigid bodies since it's redundant in that
case.

6 years agoBGE cleanup: Removing the PHY__Vector classes and replacing them with MT_Vectors...
Mitchell Stokes [Thu, 21 Feb 2013 18:30:11 +0000 (18:30 +0000)]
BGE cleanup: Removing the PHY__Vector classes and replacing them with MT_Vectors. The PHY__Vectors didn't offer anything (not even any real abstraction) and they required annoying MT_Vector <-> PHY_Vector conversions all over the place. No functional changes.

6 years agoBlender Internal: optimization to remove sleep() calls from the render threading
Brecht Van Lommel [Thu, 21 Feb 2013 18:08:07 +0000 (18:08 +0000)]
Blender Internal: optimization to remove sleep() calls from the render threading
code. This gives a speedup up to a couple of seconds based only on the image
resolution and tile size. For complex renders a second or two is not so noticeable
but for quick ones it's nice to save some time. On the default cube this gives me
about half a second speedup.

Patch by Johan Walles, based on the render branch implementation by me.

6 years agoObject Select Similar tool now has a Pass Index option.
Brecht Van Lommel [Thu, 21 Feb 2013 18:08:04 +0000 (18:08 +0000)]
Object Select Similar tool now has a Pass Index option.
Patch by Jesse Werner.

6 years agoRemove orthographic camera Scale hard min/max and make them soft limits instead,
Brecht Van Lommel [Thu, 21 Feb 2013 18:08:01 +0000 (18:08 +0000)]
Remove orthographic camera Scale hard min/max and make them soft limits instead,
based on patch by Alexander Trum.

6 years agobf-members.txt encoding changed from Mac Roman to UTF-8 so it displays properly
Brecht Van Lommel [Thu, 21 Feb 2013 18:07:59 +0000 (18:07 +0000)]
bf-members.txt encoding changed from Mac Roman to UTF-8 so it displays properly
cross platform, patch by Lawrence D'Oliveiro.

6 years agoIncrease maximum render resolution from 10000 to 65536.
Brecht Van Lommel [Thu, 21 Feb 2013 18:07:56 +0000 (18:07 +0000)]
Increase maximum render resolution from 10000 to 65536.

6 years agoCode cleanup:
Thomas Dinges [Thu, 21 Feb 2013 17:52:07 +0000 (17:52 +0000)]
Code cleanup:
* Remove some old RNA code for physics engines other than Bullet.

6 years agoCode cleanup:
Thomas Dinges [Thu, 21 Feb 2013 17:46:26 +0000 (17:46 +0000)]
Code cleanup:
* Removed "rotfrom" from particle RNA/DNA, was not used anywhere.

6 years agoCompile fixes for recent code cleanups:
Thomas Dinges [Thu, 21 Feb 2013 17:39:48 +0000 (17:39 +0000)]
Compile fixes for recent code cleanups:
* M_PI was not declared for MSVC.

6 years agoEnable new bevel tool code in bevel modifier.
Howard Trickey [Thu, 21 Feb 2013 17:29:35 +0000 (17:29 +0000)]
Enable new bevel tool code in bevel modifier.

Now modifier takes a segments parameter.
Bevel edge weights will multiply the overall amount.
For vertex-only, you can give a vertex group name,
and the weights in that will multiply the overall amount.

6 years agostyle cleanup: 'sizeof foo' --> 'sizeof(foo)', add check in style checking script.
Campbell Barton [Thu, 21 Feb 2013 17:18:27 +0000 (17:18 +0000)]
style cleanup: 'sizeof foo' --> 'sizeof(foo)', add check in style checking script.

6 years agocode cleanup: move 2d bevel list into its own function. (as with 3d bevel)
Campbell Barton [Thu, 21 Feb 2013 17:16:51 +0000 (17:16 +0000)]
code cleanup: move 2d bevel list into its own function. (as with 3d bevel)

6 years agoCycles GPU Rendering:
Thomas Dinges [Thu, 21 Feb 2013 17:16:32 +0000 (17:16 +0000)]
Cycles GPU Rendering:
* Make Cycles aware of sm_35 (Tesla K20, GeForce GTX TITAN).

The CUDA Toolkit 5.0 is needed for that and this is not officially used yet, but people with access to such cards can start testing. (just build sm_35 kernels).

6 years agocode cleanup: rename ScanFillVert.h --> edge_tot, SF_VERT_UNKNOWN --> SF_VERT_AVAILABLE
Campbell Barton [Thu, 21 Feb 2013 17:15:55 +0000 (17:15 +0000)]
code cleanup: rename ScanFillVert.h --> edge_tot, SF_VERT_UNKNOWN --> SF_VERT_AVAILABLE

6 years agouse radians for BLF_rotation
Campbell Barton [Thu, 21 Feb 2013 17:15:19 +0000 (17:15 +0000)]
use radians for BLF_rotation

6 years agocode cleanup: remove ctrl option from FONT_OT_line_break
Campbell Barton [Thu, 21 Feb 2013 17:14:27 +0000 (17:14 +0000)]
code cleanup: remove ctrl option from FONT_OT_line_break
(which in fact      wasn't mapped to ctrl), it would add in a non printable
character '1' / ascii-SOH, traced back to original commit and theres no
comments about this or mentions as to what its supposed to do).

6 years agoCycles GPU rendering:
Thomas Dinges [Thu, 21 Feb 2013 17:14:07 +0000 (17:14 +0000)]
Cycles GPU rendering:
* Deprecate computing capability 1.3 (sm_13)

This commit disables auto build of sm_13 CUDA platform, which means that starting with Blender 2.67, we don't support sm_13 devices anymore. It has become difficult to support that and it was already feature incomplete (no render-passes, AO, Multi Closure etc).

It's still possible to manually enable sm_13 for own tests, but building might break in the future.

6 years agocode cleanup: remove references to old bevel code (which has been removed for a while)
Campbell Barton [Thu, 21 Feb 2013 17:13:25 +0000 (17:13 +0000)]
code cleanup: remove references to old bevel code (which has been removed for a while)

6 years agocode cleanup: no need to use list(range()), just use range()
Campbell Barton [Thu, 21 Feb 2013 17:12:08 +0000 (17:12 +0000)]
code cleanup: no need to use list(range()), just use range()

6 years agocode cleanup: pass mval to ED_view3d_cursor3d_position() rather then event x/y
Campbell Barton [Thu, 21 Feb 2013 17:11:38 +0000 (17:11 +0000)]
code cleanup: pass mval to ED_view3d_cursor3d_position() rather then event x/y

6 years agocode cleanup: remove unused runtime var - World.fastcol
Campbell Barton [Thu, 21 Feb 2013 17:10:27 +0000 (17:10 +0000)]
code cleanup: remove unused runtime var - World.fastcol

6 years agoCycles:
Thomas Dinges [Thu, 21 Feb 2013 17:10:14 +0000 (17:10 +0000)]
Cycles:
* Code cleanup, remove deprecated support_advanced_shading() functions. Left over from r43734.

6 years agoCycles Addon:
Thomas Dinges [Thu, 21 Feb 2013 17:08:13 +0000 (17:08 +0000)]
Cycles Addon:
* Code cleanup

6 years agoBlender 2.67 release cycles begin:
Thomas Dinges [Thu, 21 Feb 2013 17:07:01 +0000 (17:07 +0000)]
Blender 2.67 release cycles begin:
* BCon1, alpha. New features, extensive breakage...the usual thing. :)

6 years agoGetting ready for the 2.66 release! v2.66
Ton Roosendaal [Wed, 20 Feb 2013 16:05:29 +0000 (16:05 +0000)]
Getting ready for the 2.66 release!

- Version bump to 2.66
- Splash image by Lucas Falcao, selected by Jonathan Williamson, Andrew Price
  and Bart Veldhuizen.

6 years agoincrease openmp limit for release so low poly meshes don't use openmp threads (which...
Campbell Barton [Wed, 20 Feb 2013 15:34:31 +0000 (15:34 +0000)]
increase openmp limit for release so low poly meshes don't use openmp threads (which can be slow)

6 years agoFix visible seams on normal map bake due to clear colour being black:
Antony Riakiotakis [Wed, 20 Feb 2013 15:06:13 +0000 (15:06 +0000)]
Fix visible seams on normal map bake due to clear colour being black:

 This is a special case, tangent space normal maps should be cleared to
0.5, 0.5, 1.0. This is good practice but there's no reason why not to
automate this (for artists whose bump map fu may be a bit shallow).

Thanks to Morten Mikkelsen for reporting.

6 years agoFix DPI not taken into account for header text (e.g. during transform).
Brecht Van Lommel [Wed, 20 Feb 2013 14:53:31 +0000 (14:53 +0000)]
Fix DPI not taken into account for header text (e.g. during transform).

6 years agoedits to document uploading script so the latest release docs can always be found at:
Campbell Barton [Wed, 20 Feb 2013 14:22:36 +0000 (14:22 +0000)]
edits to document uploading script so the latest release docs can always be found at:
http://www.blender.org/documentation/blender_python_api

Easier for linking wiki docs.

6 years agoQuick fix: translating header's string with some languages (complex scripts, like...
Bastien Montagne [Wed, 20 Feb 2013 13:41:29 +0000 (13:41 +0000)]
Quick fix: translating header's string with some languages (complex scripts, like Japanese or Hindi) generates a very odd segfault! Have really no time to fix now, will try in a few hours, but safer to do this for now!

6 years agoRaise a bit Header string fixed length, else some translations (e.g. Japanese) have...
Bastien Montagne [Wed, 20 Feb 2013 13:07:28 +0000 (13:07 +0000)]
Raise a bit Header string fixed length, else some translations (e.g. Japanese) have not enough room!

6 years agoFix for blenderplayer build after recent motrack changes
Sergey Sharybin [Wed, 20 Feb 2013 13:03:14 +0000 (13:03 +0000)]
Fix for blenderplayer build after recent motrack changes

6 years agoFix shadow pass issue with non-progressive render shadow pass with emitting
Brecht Van Lommel [Wed, 20 Feb 2013 12:10:05 +0000 (12:10 +0000)]
Fix shadow pass issue with non-progressive render shadow pass with emitting
meshes and world MIS.

6 years agoMade ldl code a part of extern_ssba library, otherwise gcc fails to
Sergey Sharybin [Wed, 20 Feb 2013 12:07:27 +0000 (12:07 +0000)]
Made ldl code a part of extern_ssba library, otherwise gcc fails to
find ldl symbols because order of libraries seems to be critical
for gcc linker.

A bit stupid, but that's how linker works..

Both CMake and SCons shall work fine on linux now.

6 years agoCorrection to previous release -- scons on linux was broken
Sergey Sharybin [Wed, 20 Feb 2013 11:41:33 +0000 (11:41 +0000)]
Correction to previous release -- scons on linux was broken

6 years agoFix #34299: Motion Tracking 20x slower under Windows
Sergey Sharybin [Wed, 20 Feb 2013 11:29:43 +0000 (11:29 +0000)]
Fix #34299: Motion Tracking 20x slower under Windows

Root of the issue goes to SSBA library which didn't work
properly when using optimization in MSVC. It was worked
around by disabling optimization for libmv, which is in
fact shame and shouldn't have been done.

It seems after some changes optimization does not affect
on SSBA code, but enabling optimization could be risky so
close to release.

For now solved by splitting SSBA to separate CMake/SCons
library, disabling optimization only for this particular
library and enabling optimization for rest of libmv.

Tested on all files which used to fail with optimization
enabled in SSBA and all of them works the same as before.
Tracking speed is significantly higher now.

After release we'll enable optimization for SSBA as well,
so there'll be no crappy build setup. Later we'll replace
old SSBA library with new BA code based on Ceres.

Bundle script would be broken for until then, so better
not to use it.

6 years agoFix drawing of translated strings (can't use _ascii version of BLF_draw in these...
Bastien Montagne [Wed, 20 Feb 2013 08:39:31 +0000 (08:39 +0000)]
Fix drawing of translated strings (can't use _ascii version of BLF_draw in these cases, when WITH_INTERNATIONAL is defined we need unicode support).

6 years agofix [#32294] Navmesh crashed if on creation navmesh is also selected
Campbell Barton [Wed, 20 Feb 2013 01:36:35 +0000 (01:36 +0000)]
fix [#32294] Navmesh crashed if on creation navmesh is also selected
thanks to Sv. Lockal for investigating and providing the fix.

6 years agoremove unneeded call to RNA_property_enum_get(), the icon was always overwritten...
Campbell Barton [Wed, 20 Feb 2013 01:23:34 +0000 (01:23 +0000)]
remove unneeded call to RNA_property_enum_get(), the icon was always overwritten after.