blender.git
6 years agoCollada: exported normals now based on MPoly instead of MFace
Gaia Clary [Sun, 3 Mar 2013 13:53:32 +0000 (13:53 +0000)]
Collada: exported normals now based on MPoly instead of MFace

6 years agorigidbody: Revert to running simulation on frame update
Sergej Reich [Sun, 3 Mar 2013 06:09:48 +0000 (06:09 +0000)]
rigidbody: Revert to running simulation on frame update

Instead of flagging the rigid body world for frame update just call
BKE_rigidbody_do_simulation() recursively for all scenes.

This avoids having to constantly check if the simulation needs to be
updated.

6 years agorigidbody: Fix inconsistency with world rebuilding
Sergej Reich [Sun, 3 Mar 2013 06:09:45 +0000 (06:09 +0000)]
rigidbody: Fix inconsistency with world rebuilding

The rigid body world could be rebuilt on start frame and one frame after
start frame. The latter was necessary sice animation playback usually
doesn't start at start frame.
This lead to different simulations depending on which frame the
simulaton was rebuilt when animation was involved.

Now we only rebuild the world on start frame.
This is actually tricky to do since, as mentioned above, animation
playback starts on second frame. To work around this we rebuild the
world before the actual update.
The alternative would be to rebuld the world on every simulation change
(like the other simulations do it) but this is an expensive operation
and would be too slow.

6 years agocode cleanup: de-duplicate cast modifier logic, had 'optimization' which was only...
Campbell Barton [Sun, 3 Mar 2013 05:43:47 +0000 (05:43 +0000)]
code cleanup: de-duplicate cast modifier logic, had 'optimization' which was only saving a NULL check per loop, causing most of the logic to be copied, ~130 lines.

6 years agocode cleanup: ~400 duplicate lines for AO form factor math.
Campbell Barton [Sun, 3 Mar 2013 05:07:58 +0000 (05:07 +0000)]
code cleanup: ~400 duplicate lines for AO form factor math.

6 years agocode cleanup: de-duplicate ~75 lines copied twice - tsk tsk.
Campbell Barton [Sun, 3 Mar 2013 04:54:33 +0000 (04:54 +0000)]
code cleanup: de-duplicate ~75 lines copied twice - tsk tsk.

6 years agomove toggle drag into a UI handler (was modal operator)
Campbell Barton [Sun, 3 Mar 2013 03:29:57 +0000 (03:29 +0000)]
move toggle drag into a UI handler (was modal operator)

6 years agoenable triangulation with collada, disable BLI_STATIC_ASSERT for C++.
Campbell Barton [Sun, 3 Mar 2013 01:24:09 +0000 (01:24 +0000)]
enable triangulation with collada, disable BLI_STATIC_ASSERT for C++.

6 years agopartial revert of collada triangulation code due to problems on linux
Gaia Clary [Sat, 2 Mar 2013 23:42:03 +0000 (23:42 +0000)]
partial revert of collada triangulation code due to problems on linux

6 years agoOSX: Get the current locale in objC-style
Jens Verwiebe [Sat, 2 Mar 2013 22:50:46 +0000 (22:50 +0000)]
OSX: Get the current locale in objC-style

6 years agoFix Collada build error in scons
Gaia Clary [Sat, 2 Mar 2013 20:46:37 +0000 (20:46 +0000)]
Fix Collada build error in scons

6 years agoBGE: Fix for bugs #34428, #20856, #20281. These were all multi-uv bugs caused by...
Mitchell Stokes [Sat, 2 Mar 2013 18:05:52 +0000 (18:05 +0000)]
BGE: Fix for bugs #34428, #20856, #20281. These were all multi-uv bugs caused by the BGE keeping too much uv information. When setting up shaders the BGE assumes each UV layer is unique, but the converter would store duplicates.

6 years agofix [#34431] Crash with 2.66 when dyntopo enabled and using view plane mode
Campbell Barton [Sat, 2 Mar 2013 16:13:01 +0000 (16:13 +0000)]
fix [#34431] Crash with 2.66 when dyntopo enabled and using view plane mode

6 years agoCollada: Added support for ngon export/import and added triangulate option to export
Gaia Clary [Sat, 2 Mar 2013 15:58:13 +0000 (15:58 +0000)]
Collada: Added support for ngon export/import and added triangulate option to export

6 years agofix [#34486] Selection of bones in armature edit mode only toggles between two bones
Campbell Barton [Sat, 2 Mar 2013 15:34:47 +0000 (15:34 +0000)]
fix [#34486] Selection of bones in armature edit mode only toggles between two bones

6 years agoAdded typecasts to keep c++ from reporting errors
Gaia Clary [Sat, 2 Mar 2013 12:16:23 +0000 (12:16 +0000)]
Added typecasts to keep c++ from reporting errors

6 years agonow dragging an image onto an empty can be done without holding Ctrl.
Campbell Barton [Sat, 2 Mar 2013 12:05:25 +0000 (12:05 +0000)]
now dragging an image onto an empty can be done without holding Ctrl.
Make it set the empty draw type for existing empty object.
change from yakca on IRC

also some whitespace cleanup.

6 years agocode cleanup: clarify comment about virtial-modifiers, also add comments to DNA heade...
Campbell Barton [Sat, 2 Mar 2013 07:27:19 +0000 (07:27 +0000)]
code cleanup: clarify comment about virtial-modifiers, also add comments to DNA headers when its not so obvious what their purpose is.

6 years agoFix #34483: game engine multi UV glsl materials not working correct after changes
Brecht Van Lommel [Fri, 1 Mar 2013 20:45:42 +0000 (20:45 +0000)]
Fix #34483: game engine multi UV glsl materials not working correct after changes
to support more than 2 UV maps. This code indirectly depended on the order of
OpenGL attribute ID's assigned by the OpenGL driver being the same as the
attributes being declared in the GLSL shader code, which is not always the case.

6 years agoUI / World Units:
Thomas Dinges [Fri, 1 Mar 2013 19:15:32 +0000 (19:15 +0000)]
UI / World Units:
* Consistency tweak: for properties based on an enum, we hide the buttons and do not grey out.
Greying out is for properties based on a boolean.

6 years agoUI / Properties Editor:
Thomas Dinges [Fri, 1 Mar 2013 19:07:28 +0000 (19:07 +0000)]
UI / Properties Editor:
* Some alignment fixes for Fluid Buttons in the "Fluid" panel.
* Tweaked Fluid Particle buttons a bit, no need to have redundant "Particle" name inside the "Fluid Particles" panel.

6 years ago3D View properties region / Mesh Displays panel:
Thomas Dinges [Fri, 1 Mar 2013 18:45:41 +0000 (18:45 +0000)]
3D View properties region / Mesh Displays panel:
* Made overlays use 2 columns, rather than 1 as suggested by Sebastian K├Ânig in IRC.
* Small tweak to the Normal size button, grey out if unused.

6 years agoBug fix #34418
Ton Roosendaal [Fri, 1 Mar 2013 17:17:57 +0000 (17:17 +0000)]
Bug fix #34418

Fix for 2.66a

Screencast could be started twice in a row, but it then also added two handlers
for drawing an overlay circle around mouse cursor. After ending the screencast,
this circle then kept being drawn.

6 years agoFix #34461: Inconsistent behavior of "Color Mix Node" and "Alpha Over Node"
Sergey Sharybin [Fri, 1 Mar 2013 15:37:15 +0000 (15:37 +0000)]
Fix #34461: Inconsistent behavior of "Color Mix Node" and "Alpha Over Node"

Added compatibility option "Straight Alpha Output" to image input node

When this option is enabled, image input node will convert float buffer
to straight alpha.

This is not what you'll usually want with new alpha pipeline, nit this
is needed to preserve compatibility with older files saved in 2.65.
In that version byte image are resulting with straight alpha passing
to the compositor and alpha-overing required extra premultiplication
of inputs.

So, that's why Straight Alpha Output is needed -- it's set in versioning
code for byte node images so they'll still output straight alpha.

This option is currently only available in N-panel.

Additional change: added Alpha Mode for image input node to N-panel.

6 years agoFix #34480: cycles hair render in dupligroup did hide the emitter properly in some...
Brecht Van Lommel [Fri, 1 Mar 2013 14:55:30 +0000 (14:55 +0000)]
Fix #34480: cycles hair render in dupligroup did hide the emitter properly in some cases.

6 years agostyle cleanup: braces with multi-line statements, also add some comments.
Campbell Barton [Fri, 1 Mar 2013 14:47:06 +0000 (14:47 +0000)]
style cleanup: braces with multi-line statements, also add some comments.

6 years agoMore tweaks (gaining about ten seconds for each po in update branches process!).
Bastien Montagne [Fri, 1 Mar 2013 14:28:38 +0000 (14:28 +0000)]
More tweaks (gaining about ten seconds for each po in update branches process!).

6 years agoFix related to #34481: show units for camera aperature radius.
Brecht Van Lommel [Fri, 1 Mar 2013 14:06:20 +0000 (14:06 +0000)]
Fix related to #34481: show units for camera aperature radius.

6 years agoUpdates to libmv's bundle.sh to make sure libmv upstream
Sergey Sharybin [Fri, 1 Mar 2013 11:52:38 +0000 (11:52 +0000)]
Updates to libmv's bundle.sh to make sure libmv upstream
is copying properly to our sources.

6 years agoBug fix #34334
Ton Roosendaal [Fri, 1 Mar 2013 11:42:07 +0000 (11:42 +0000)]
Bug fix #34334

For 2.66a

Soft shadow was drawing a complete rect, but it should skip the top edge.
That allows transparent menus to still have a shadow too.

6 years agoHrm, gcc became broken after recent commit.
Sergey Sharybin [Fri, 1 Mar 2013 08:56:04 +0000 (08:56 +0000)]
Hrm, gcc became broken after recent commit.
Hope now gcc and 32bit msvc would both work.

6 years agoPass data to modal reprojection cost functor by reference
Sergey Sharybin [Fri, 1 Mar 2013 08:20:13 +0000 (08:20 +0000)]
Pass data to modal reprojection cost functor by reference

Seems it solves alignment error reported by 32bit MSVC.

6 years agokeymap filter by keybindings in the userpreferences.
Campbell Barton [Fri, 1 Mar 2013 06:17:59 +0000 (06:17 +0000)]
keymap filter by keybindings in the userpreferences.
- optional, select between name/keybinding.
- when key input can't be parsed, alert red to give the user some feedback.
- key shortcut parsing could be improved or swapped out for button which grabs shortcut.

6 years agofix for drag-toggle, bit-buttons weren't handled which made drag toggle fail for...
Campbell Barton [Fri, 1 Mar 2013 00:35:01 +0000 (00:35 +0000)]
fix for drag-toggle, bit-buttons weren't handled which made drag toggle fail for buttons in the graph editor for eg.

6 years agocode cleanup: minor refactor of button pressed state checking, needed for drag toggle...
Campbell Barton [Fri, 1 Mar 2013 00:19:32 +0000 (00:19 +0000)]
code cleanup: minor refactor of button pressed state checking, needed for drag toggle fix.

6 years agoFix / Workaround for [#34474] "Record Composite" image op segfaults in compositor...
Thomas Dinges [Thu, 28 Feb 2013 22:50:24 +0000 (22:50 +0000)]
Fix / Workaround for [#34474] "Record Composite" image op segfaults in compositor code
* These operators have never been ported to 2.5x and therefore should not come up inside the UI. (as they are not working).

6 years agoFix/workaround for newer FFmpeg 1.1.3 and MP3 decoder
Sergey Sharybin [Thu, 28 Feb 2013 18:28:08 +0000 (18:28 +0000)]
Fix/workaround for newer FFmpeg 1.1.3 and MP3 decoder

FFmpeg is now using S16P sampler for MP3 which is not actually
supported by audaspace, so request for S16 sampler instead.

6 years agoFix own regression in commit from today -- missing NULL check
Sergey Sharybin [Thu, 28 Feb 2013 17:23:44 +0000 (17:23 +0000)]
Fix own regression in commit from today -- missing NULL check

Crash happened when sequence image failed to load.

6 years agoUI/DPI: user preferences window size now takes into account DPI, otherwise the
Brecht Van Lommel [Thu, 28 Feb 2013 16:37:19 +0000 (16:37 +0000)]
UI/DPI: user preferences window size now takes into account DPI, otherwise the
buttons don't fit properly.

6 years agoFix #34366: mesh.select_mode operator could not be configure the use_extend
Brecht Van Lommel [Thu, 28 Feb 2013 16:37:18 +0000 (16:37 +0000)]
Fix #34366: mesh.select_mode operator could not be configure the use_extend
and use_expand properly. These are hardcoded to shift and ctrl to make them
work when clicking buttons or menus. Now it checks if the properties are set,
which is still not ideal but makes it possible to override them from the
key configuration.

6 years agoFix #34372: mesh.verts.foreach_set not working with normals, regression due to my
Brecht Van Lommel [Thu, 28 Feb 2013 16:37:15 +0000 (16:37 +0000)]
Fix #34372: mesh.verts.foreach_set not working with normals, regression due to my
bugfix for multidimensional arrays.

6 years agoFix #34390: quicktime video codec menu showing blank. It's a small miracle
Brecht Van Lommel [Thu, 28 Feb 2013 15:33:29 +0000 (15:33 +0000)]
Fix #34390: quicktime video codec menu showing blank. It's a small miracle
that this code worked at all at some point.

6 years agoFix #34414: python error with frame_change callback and Cycles motion blur.
Brecht Van Lommel [Thu, 28 Feb 2013 15:33:26 +0000 (15:33 +0000)]
Fix #34414: python error with frame_change callback and Cycles motion blur.
Now the RenderEngine.render callback allows writing blender data again, it
should not be allowed but in practice the API and render threading code is
too limited to make this work at the moment.

6 years agoMore UI messages fixes...
Bastien Montagne [Thu, 28 Feb 2013 15:31:20 +0000 (15:31 +0000)]
More UI messages fixes...

6 years agoHeader cleanup in libmv c-api
Sergey Sharybin [Thu, 28 Feb 2013 14:25:40 +0000 (14:25 +0000)]
Header cleanup in libmv c-api

6 years agoThis lines are also not so much useful for now.
Sergey Sharybin [Thu, 28 Feb 2013 14:25:33 +0000 (14:25 +0000)]
This lines are also not so much useful for now.

6 years agoChanged a way how RGB images are saving from RGBA
Sergey Sharybin [Thu, 28 Feb 2013 14:25:26 +0000 (14:25 +0000)]
Changed a way how RGB images are saving from RGBA

Before alpha channel was simply ignored causing bad looking
straight colors which is pretty much useless.

Now saving RGB would alpha-over image on top of black color,
which makes final image look really nice. It's also very
such the same what other graphics software does this.

In the future we could easily support configurable backdrop
color, which would be really the same as other SW does it.

Also, it'll probably worth adding the same mode to RGB
display of image editor.

6 years agoDraw a checker board as a background for animation player
Sergey Sharybin [Thu, 28 Feb 2013 14:25:18 +0000 (14:25 +0000)]
Draw a checker board as a background for animation player

This makes it easier and useful to investigate alpha channels,
without this straight colors are displayed on the screen which
are completely useless in case of player.

6 years agoFix sequencer crash when pasteing strips after creating new file
Sergey Sharybin [Thu, 28 Feb 2013 14:25:09 +0000 (14:25 +0000)]
Fix sequencer crash when pasteing strips after creating new file

Issue happened for scene. movie clip and mask strips, which contains
pointers to datablocks which are freeing on loading new file.

Also, scene strip would crash when pasted from clipboard after scene
was unlinked from file.

6 years agoFix memory leak when loading multilayer EXR as movie clip
Sergey Sharybin [Thu, 28 Feb 2013 14:25:00 +0000 (14:25 +0000)]
Fix memory leak when loading multilayer EXR as movie clip

Such kind of image sequences wouldn't be displayed still
and supporting them would take some additional time, but
for now it'll be no memory leak on attempt opening such
images.

6 years agoRemove unused rigid registration code
Sergey Sharybin [Thu, 28 Feb 2013 14:24:52 +0000 (14:24 +0000)]
Remove unused rigid registration code

There're some features planned which would
require rigid registration, but this code
would need to be re-done anyway to use new
minimizer and solving some issues with ICP
algorithm there.

6 years agoModal (aka tripod) solver rework
Sergey Sharybin [Thu, 28 Feb 2013 14:24:42 +0000 (14:24 +0000)]
Modal (aka tripod) solver rework

Several major things are done in this commit:

- First of all, logic of modal solver was changed.
  We do not rely on only minimizer to take care of
  guessing rotation for frame, but we're using
  analytical rotation computation for point clouds
  to obtain initial rotation.

  Then this rotation is being refined using Ceres
  minimizer and now instead of minimizing average
  distance between points of point of two clouds,
  minimization of reprojection error of point
  cloud onto frame happens.

  This gives quite a bit of precision improvement.

- Second bigger improvement here is using bundle
  adjustment for a result of first step when we're
  only estimating rotation between neighbor images
  and reprojecting markers.

  This averages error across the image sequence
  avoiding error accumulation. Also, this will
  tweak bundles themselves a bit for better match.

- And last bigger improvement here is support of
  camera intrinsics refirenment.

  This allowed to significantly improve solution
  for real-life footage and results after such
  refining are much more usable than it were before.

Thanks to Keir for the help and code review.

6 years agoIncrease verbosity level for reprojected markers info
Sergey Sharybin [Thu, 28 Feb 2013 14:24:25 +0000 (14:24 +0000)]
Increase verbosity level for reprojected markers info

This information is useful, but in cases when you, say,
working on a bundler it's annoying to scroll all the
information up.

Now behavior would be:
- running `./blender --debug-libmv` will print all the
  debug messages
- running `./blender --debug-libmv --verbose 0` will
  print only debug messages from solvers, recosntruction
  and so, but will bypass final reprojection bunch of
  messages
- running `./blender --debug-lib,v --verbose 1` will
  include final reprojection messages.

6 years agoMove radial distortion code to own templated function
Sergey Sharybin [Thu, 28 Feb 2013 14:24:17 +0000 (14:24 +0000)]
Move radial distortion code to own templated function

This shall not lead to any functional changes, just
avoids radial distortion code duplicated in camera
intrinsics and bundling code.

For fancier bundle adjustment supprting different
distortion models this is not actually enough and
would need to make some bigger changes, but this
changes makes code a bit easier to maintain already.

6 years agofix [#33466] alt + mouse wheel
Campbell Barton [Thu, 28 Feb 2013 11:39:13 +0000 (11:39 +0000)]
fix [#33466] alt + mouse wheel

Alt+Mouse Wheel events depended on the button under the mouse being active, else it would change the current frame.
Button re-activation wasn't 100% reliable since it depends on fake mousemove events.

Now keep button active when its executed if the mouse stays over it.

6 years agofix for harmless glitch rotating the camera in camera mode, having the center point...
Campbell Barton [Thu, 28 Feb 2013 11:29:27 +0000 (11:29 +0000)]
fix for harmless glitch rotating the camera in camera mode, having the center point so close to the viewpoint caused the helper line to erratically move about because of float precision.

6 years agoLocDiff Driver Vars: Red-Alert is not needed on the space-selectors
Joshua Leung [Thu, 28 Feb 2013 11:00:06 +0000 (11:00 +0000)]
LocDiff Driver Vars: Red-Alert is not needed on the space-selectors

6 years agoBugfix: Invalid target tagging for "Distance" driver variable type only
Joshua Leung [Thu, 28 Feb 2013 10:50:13 +0000 (10:50 +0000)]
Bugfix: Invalid target tagging for "Distance" driver variable type only
highlighted the first target if/when both targets were empty.

6 years agoBugfix: Types mismatch (flags and targetFlags were ints, but dtar->flag is a
Joshua Leung [Thu, 28 Feb 2013 10:27:04 +0000 (10:27 +0000)]
Bugfix: Types mismatch (flags and targetFlags were ints, but dtar->flag is a
short)

6 years agoInvalid Driver Targets are now indicated appropriately (using Red Backgrounds)
Joshua Leung [Thu, 28 Feb 2013 07:13:33 +0000 (07:13 +0000)]
Invalid Driver Targets are now indicated appropriately (using Red Backgrounds)
in the UI

This is the second part of the fixes for [#32492], making it easier to identify
which part of a driver (i.e. which of its targets) is causing problems

A number of additional/related changes needed to be made:
* Red-alert status for layouts is now propagated down to child layouts when they
are created. This is needed as otherwise some of the templates used in the Graph
Editor driver settings won't actually get the red-alert status flushed down to
them. Also, note that this status needs to be set before any widgets are added
to the layout, or else the settings aren't applied when the relevant widgets get
created.

* "Single Property" RNA-Paths resulting in out of bounds array access will now
trigger an error status and appropriate warnings

TODO:
* The error tagging doesn't get applied immediately after variables are created,
or their types changed
* There was also some other weirdness involved when a higher-value flag (1<<10)
was used for this setting, which needs further attention

6 years agofix [#34426] Manipulator handles drawn incorrectly by depth
Campbell Barton [Thu, 28 Feb 2013 06:12:06 +0000 (06:12 +0000)]
fix [#34426] Manipulator handles drawn incorrectly by depth
original patch by Philipp Oeser (lichtwerk) with own changes.

6 years agorst doc update: adding a link to Joystick class from bge.logic.joysticks
Dalai Felinto [Thu, 28 Feb 2013 05:18:47 +0000 (05:18 +0000)]
rst doc update: adding a link to Joystick class from bge.logic.joysticks
(so one can find more about the joystick class without having to search joystick)
code untested by the way. Sorry but I can no longer build sphinx docs here. I will try to fix that later.

6 years agofix for bmesh regression similar to last revision r54920. only effected loading old...
Campbell Barton [Thu, 28 Feb 2013 04:18:01 +0000 (04:18 +0000)]
fix for bmesh regression similar to last revision r54920. only effected loading old blend files without edge data.

6 years agofix for regression since BMesh merge, selecting linked faces in face-mask mode was...
Campbell Barton [Thu, 28 Feb 2013 03:39:41 +0000 (03:39 +0000)]
fix for regression since BMesh merge, selecting linked faces in face-mask mode was using an incorrect lookup on loops which made select-linked fail

6 years agocode cleanup: includes
Campbell Barton [Thu, 28 Feb 2013 01:28:46 +0000 (01:28 +0000)]
code cleanup: includes

6 years agofix for linking with recent armature refactor, was also missing file from CMakeLists...
Campbell Barton [Thu, 28 Feb 2013 00:45:07 +0000 (00:45 +0000)]
fix for linking with recent armature refactor, was also missing file from CMakeLists.txt.

6 years agopatch [#34465] Fix text editor bug: Crash when overwriting ascii character with multi...
Campbell Barton [Thu, 28 Feb 2013 00:08:47 +0000 (00:08 +0000)]
patch [#34465] Fix text editor bug: Crash when overwriting ascii character with multibyte character
from Shinsuke Irie (irie)

6 years agoRenaming the remaining PoseMode files for consistency (camelCase to
Joshua Leung [Thu, 28 Feb 2013 00:01:20 +0000 (00:01 +0000)]
Renaming the remaining PoseMode files for consistency (camelCase to
underscores_style)

6 years agoProperly prefixing name of exproted armature API
Joshua Leung [Wed, 27 Feb 2013 23:56:51 +0000 (23:56 +0000)]
Properly prefixing name of exproted armature API

6 years agoCode cleanups
Joshua Leung [Wed, 27 Feb 2013 23:50:44 +0000 (23:50 +0000)]
Code cleanups
* Replace magic numbers with enum-defines
* Remove superfluous return; statements (used as last statements in a few
"static void" methods)
* Remove some old unused/commented out stuff

6 years agoCode Maintenance - Splitting up Armature/Pose Editing Files
Joshua Leung [Wed, 27 Feb 2013 23:34:29 +0000 (23:34 +0000)]
Code Maintenance - Splitting up Armature/Pose Editing Files

This commit splits editarmature.c and poseobject.c into several files, such that
certain types of functionality are (mostly) self-contained within particular
files (instead of being mixed in with other functionality in a large file).

In particular, this was done so that:
1) Armature EditMode tools are now in the armature_*.c files only, and Pose Mode
tools in pose_*.c files only.
     - In one or two cases, this hasn't been possible as the two modes rely on
much of the same shared infrastructure.
2) The "clear loc/rot/scale" operators and pose show/hide are no longer housed
in editarmature.c
3) Selection operators, Transform operators, structural (add/delete) operators,
and supporting utilities for the modes (enter/exit/roll-calculations) are not
all interleaved in an ad-hoc manner

Notes:
* I've tried to ensure that the history of the new files has been maintained by
doing
   svn copy {editarmature.c/poseobject.c} {armature_*.c/pose_*.c}
   Unfortunately, this means that the diffs are a bit messy.
* There should be no functional/logic changes here. Just code moving around and
cosmetic comment tweaks where needed.
* #includes have largely been untouched for now, but could be cleaned up later
* CMake changes untested, but should work in theory.

6 years agofix for [#34440] motion blur (2d filter) not working in osx
Dalai Felinto [Wed, 27 Feb 2013 22:48:34 +0000 (22:48 +0000)]
fix for [#34440] motion blur (2d filter) not working in osx
thanks Jens Verwiebe for the tests and review.

6 years agoAdded preset values for Collada exporter.
Gaia Clary [Wed, 27 Feb 2013 17:48:07 +0000 (17:48 +0000)]
Added preset values for Collada exporter.

6 years agoReport #34450
Ton Roosendaal [Wed, 27 Feb 2013 17:12:57 +0000 (17:12 +0000)]
Report #34450

Fix for 2.66a

Some editors in Blender (Like Graph) have "maxzoom" set to 0, which caused the
MMB zoom sensitivity to be minimal. That used to be much more responsive, restored
it to how it worked before.

6 years agoVarious small enhancements/fixes.
Bastien Montagne [Wed, 27 Feb 2013 16:24:20 +0000 (16:24 +0000)]
Various small enhancements/fixes.

Most notable difference from now on will be that all py is handled from current blender's resource dirs, no more from source dir. Better for consistency, and avoid e.g. cycles' addon to be checked twice...

6 years agoBug fix #34436
Ton Roosendaal [Wed, 27 Feb 2013 14:25:39 +0000 (14:25 +0000)]
Bug fix #34436

Two example files that crashed texture nodes.
- On delete texture nodes, it should free the exec cache (because this cache
  stores the node pointer.
- On redo, nodes can exist can exist without typeinfo set. Exec (free) code
  was not checking for that. Don't ask me why this happens... tex nodes are weird.

6 years agofix [#34460] text editor freezes when turning on syntax highlight
Campbell Barton [Wed, 27 Feb 2013 14:19:44 +0000 (14:19 +0000)]
fix [#34460] text editor freezes when turning on syntax highlight

6 years agoCollada export: Add ngon support (initial)
Gaia Clary [Wed, 27 Feb 2013 13:53:43 +0000 (13:53 +0000)]
Collada export: Add ngon support (initial)

6 years agofix for error with drag toggle which showed up with overlapping regions.
Campbell Barton [Wed, 27 Feb 2013 11:26:51 +0000 (11:26 +0000)]
fix for error with drag toggle which showed up with overlapping regions.

6 years agoAdded RGBA|RGB channels toggle to sequencer preview
Sergey Sharybin [Wed, 27 Feb 2013 10:26:58 +0000 (10:26 +0000)]
Added RGBA|RGB channels toggle to sequencer preview

Main purpose of this is to be more compatible with older
versions of blender (before alpha cleanup) where sequencer
used to display premultiplied image on an straight opengl
viewport.

Now sequencer preview would behave closer to image editor
However adding Alpha and R|G|B displays is not so simple
because sequencer is using 2D textures. Would be nice to
implement this options as well, but this is not so much
important IMO.

This hall fix
- #34453: VSE: Subtract function does not work properly

TODO: Make RGBA display default for our startup.blend

6 years agominor changes to outliner
Campbell Barton [Wed, 27 Feb 2013 10:19:31 +0000 (10:19 +0000)]
minor changes to outliner
- linking groups into a scene now uses the objects original layers (some users have the layers set to useful values, so overwriting isnt so nice).
- dropping objects into the 3d view would make them active but not selected, a valid but confusing state, since most tools activate and select now objects.

6 years agochanging image dropping into the viewport to add empty objects (from r54825) wasnt...
Campbell Barton [Wed, 27 Feb 2013 10:14:36 +0000 (10:14 +0000)]
changing image dropping into the viewport to add empty objects (from r54825) wasnt such a popular move,
reinstate old behavior, holding Ctrl now adds empty objects instead.

6 years agoFix #34439: Strip modifier - Mask multiply failure
Sergey Sharybin [Wed, 27 Feb 2013 09:58:40 +0000 (09:58 +0000)]
Fix #34439: Strip modifier - Mask multiply failure

6 years agofix for own regression, edge path tagging worked but toggline bevel didnt.
Campbell Barton [Wed, 27 Feb 2013 07:05:01 +0000 (07:05 +0000)]
fix for own regression, edge path tagging worked but toggline bevel didnt.
reported as bug [#34449]

6 years agofix for own regression - joining meshes didn't merge customdata flags (could loose...
Campbell Barton [Wed, 27 Feb 2013 05:38:48 +0000 (05:38 +0000)]
fix for own regression - joining meshes didn't merge customdata flags (could loose crease/bevel weights).

6 years agoenable grabbing for 2d view zooming, good for the graph editor.
Campbell Barton [Wed, 27 Feb 2013 04:59:39 +0000 (04:59 +0000)]
enable grabbing for 2d view zooming, good for the graph editor.

6 years agomake sure objects dragged into the viewport are not hidden.
Campbell Barton [Wed, 27 Feb 2013 04:57:53 +0000 (04:57 +0000)]
make sure objects dragged into the viewport are not hidden.

6 years agocode cleanup: unused arg
Campbell Barton [Wed, 27 Feb 2013 01:43:48 +0000 (01:43 +0000)]
code cleanup: unused arg

6 years agocode cleanup: quiet warnings
Campbell Barton [Wed, 27 Feb 2013 01:40:36 +0000 (01:40 +0000)]
code cleanup: quiet warnings

6 years ago== Sequencer ==
Peter Schlaile [Wed, 27 Feb 2013 00:04:07 +0000 (00:04 +0000)]
== Sequencer ==

This fixes the placement code of new files added to the sequencer timeline.

The old code tried to guess the strip position from the current mouse
pointer position.

Annoying effect: if you add a new strip using the menu, especially if the
file editor pops up, the strip ends up in nowheres land (most likely around
track 40, frame -200).

New behaviour: strips are always placed at cfra, which is the
sequencer equivalent to the 3D cursor (and that's where new objects in
3D editing end up).

Bonus feature: we try our best to guess the right track by finding the
nearest strip by type.

The patch was inspired by
[#32766] VSE: Add Strip on Current Frame

Thanks to venomgfx for the idea!

6 years agoGrmlll... *Always* check before commit, even on such simple things! (Fix for own...
Bastien Montagne [Tue, 26 Feb 2013 23:12:42 +0000 (23:12 +0000)]
Grmlll... *Always* check before commit, even on such simple things! (Fix for own mistake in previous commit).

6 years agoadd PHY headers to cmake's ketsji (else some IDE's won't show)
Campbell Barton [Tue, 26 Feb 2013 23:08:42 +0000 (23:08 +0000)]
add PHY headers to cmake's ketsji (else some IDE's won't show)

6 years agoFix [#34455] Origin to Center of Mass is missing in menu Object > Transform
Bastien Montagne [Tue, 26 Feb 2013 23:01:54 +0000 (23:01 +0000)]
Fix [#34455] Origin to Center of Mass is missing in menu Object > Transform

Just adding the needed py line.

6 years agoFix various warnings with clang build, and adjust cmake clang warnings flags
Brecht Van Lommel [Tue, 26 Feb 2013 21:58:06 +0000 (21:58 +0000)]
Fix various warnings with clang build, and adjust cmake clang warnings flags
to include a few more that gcc is using too.

6 years agoFix build error in depsgraph refactoring commit.
Brecht Van Lommel [Tue, 26 Feb 2013 20:34:37 +0000 (20:34 +0000)]
Fix build error in depsgraph refactoring commit.

6 years agoAdd: [#34443] Ability to set 'Pivot Center for rotation/scale' missing in weight...
Gaia Clary [Tue, 26 Feb 2013 18:35:16 +0000 (18:35 +0000)]
Add: [#34443] Ability to set 'Pivot Center for rotation/scale' missing in weight paint mode

6 years agoDependency Graph: refactoring to move private functions to the private header,
Brecht Van Lommel [Tue, 26 Feb 2013 18:15:51 +0000 (18:15 +0000)]
Dependency Graph: refactoring to move private functions to the private header,
and add more documentation about the public functions. Also removed unused graph
traversal code and other minor unused functions.

6 years agoUse threaded cost function and jacobian computation
Sergey Sharybin [Tue, 26 Feb 2013 17:52:10 +0000 (17:52 +0000)]
Use threaded cost function and jacobian computation
Also made it theraded linear solver, seems it makes
sense for iterative schur with inner iterations
enabled.

Use OpenMO's max therads called from bundler code
to detect how many threads to use. Could be changed
in a way that number of threads is passing in options
from blender side in the future.

Also removed redundant V3D definition from compiler's
flags.

6 years agoFix #34421: cycles viewport render stuck with no objects in the scene.
Brecht Van Lommel [Tue, 26 Feb 2013 17:06:05 +0000 (17:06 +0000)]
Fix #34421: cycles viewport render stuck with no objects in the scene.

6 years agoFix [#34444] Curve: Select Nth Number of Points
Bastien Montagne [Tue, 26 Feb 2013 16:39:41 +0000 (16:39 +0000)]
Fix [#34444] Curve: Select Nth Number of Points

Just use default op name, as for meshes!