blender.git
9 years agoMerging r38562 through r38614 from trunkinto soc-2011-tomato
Sergey Sharybin [Fri, 22 Jul 2011 16:58:22 +0000 (16:58 +0000)]
Merging r38562 through r38614 from trunkinto soc-2011-tomato

9 years agoTwo fixes in drop-node-on-noodle:
Ton Roosendaal [Fri, 22 Jul 2011 16:39:06 +0000 (16:39 +0000)]
Two fixes in drop-node-on-noodle:

- Intersection code was using undefined vector
  caused wrong lines to be picked
- Code now also copes with hidden sockets.
  If all fails, is just unhides a good socket.

9 years agoCamera tracking integration
Sergey Sharybin [Fri, 22 Jul 2011 16:18:51 +0000 (16:18 +0000)]
Camera tracking integration
===========================

- Operator "Join Selected Tracks".
  This operator joins all selected tracks to active track.
  Hotkey is Ctrl-J.
- Operator "Select Grouped".
  Now it's easy to select all locked/keyframes/etc markers.
  Hotkey is Shit-G.
- Operator to jump to beginning/end of active path.
  Hotkeys are Shift+Ctrl+Arrow Left/Right.
- Operator to copy color from active track to all tracks.

9 years agoSmall fix in drop-node-on-noodle: intersect code only did 3 edges of
Ton Roosendaal [Fri, 22 Jul 2011 16:02:56 +0000 (16:02 +0000)]
Small fix in drop-node-on-noodle: intersect code only did 3 edges of
node.

9 years agoLet's try default High Quality for object align, it's slow but it's simply the correc...
Daniel Salazar [Fri, 22 Jul 2011 15:54:54 +0000 (15:54 +0000)]
Let's try default High Quality for object align, it's slow but it's simply the correct way, users can disable while tweaking the align modes and then enable again for final result IF they are working on *dense* meshes

9 years agoNeed some fun once a while:
Ton Roosendaal [Fri, 22 Jul 2011 15:28:50 +0000 (15:28 +0000)]
Need some fun once a while:

On dragging a non-connected node on a noodle, it will insert it.
Functionality tweaks are possible, but it already feels non-intrusive.

Rules:
- Insertion only when a single noodle is intersecting with node.
- Default connects first matching socket type.
- If no socket match, it connects the first.

9 years agoCamera tracking integration
Sergey Sharybin [Fri, 22 Jul 2011 14:06:31 +0000 (14:06 +0000)]
Camera tracking integration
===========================

- Damn hidden searches. Again fix in select_all operator.
  This time for inverted selection.
- Do not select "hidden" parts of marker on creation.
- Added modifier key for marker transformation:
  if alt is pressed down -- pattern/search will be moving
  relative to marker center.
- Changed behavior of mouse sliding:
  * To change marker position markers should be slided by it's center.
  * Left-top corners now used to offset pattern/search relative to
   marker center.
  * Hide mouse cursor during sliding.

9 years agoremove duplicate function for printing the current file:line of a python script in...
Campbell Barton [Fri, 22 Jul 2011 11:21:01 +0000 (11:21 +0000)]
remove duplicate function for printing the current file:line of a python script in the BGE.

9 years agofix [#27910] baking ambient occlusion, do not consider closer object for blender...
Campbell Barton [Fri, 22 Jul 2011 05:33:06 +0000 (05:33 +0000)]
fix [#27910] baking ambient occlusion, do not consider closer object for blender 2.58a

9 years agopatch [#28045] Straighten tool from Simple Todos
Campbell Barton [Fri, 22 Jul 2011 01:21:20 +0000 (01:21 +0000)]
patch [#28045] Straighten tool from Simple Todos
from Kyle Mills (khonkhortisan)

9 years agomissed this file when adding option to disable frameserver
Campbell Barton [Fri, 22 Jul 2011 00:34:03 +0000 (00:34 +0000)]
missed this file when adding option to disable frameserver

9 years agofix [#28053] New material tooltip
Campbell Barton [Fri, 22 Jul 2011 00:31:24 +0000 (00:31 +0000)]
fix [#28053] New material tooltip

9 years agofix [#28052] PET: Shift-O cycling skips "random falloff"
Campbell Barton [Thu, 21 Jul 2011 23:36:17 +0000 (23:36 +0000)]
fix [#28052] PET: Shift-O cycling skips "random falloff"

9 years agocmake - option to disable the frame server
Campbell Barton [Thu, 21 Jul 2011 23:06:51 +0000 (23:06 +0000)]
cmake - option to disable the frame server

9 years agoAdding Shear transform to UV menu and Ctrl Alt Shift S hotkey (same as in 3D View)
Daniel Salazar [Thu, 21 Jul 2011 21:34:08 +0000 (21:34 +0000)]
Adding Shear transform to UV menu and Ctrl Alt Shift S hotkey (same as in 3D View)

9 years agoBugfix #28034
Ton Roosendaal [Thu, 21 Jul 2011 17:40:20 +0000 (17:40 +0000)]
Bugfix #28034

Blender render optimizes alpha=0 materials away, unless it has
a number of properties... but there wasn't a check for material
being ray-mirror, it then should be rendered always.

9 years agoCamera tracking integration
Sergey Sharybin [Thu, 21 Jul 2011 17:02:04 +0000 (17:02 +0000)]
Camera tracking integration
===========================

Second attempt to fix log2f issue. Should work now.

9 years agoCamera tracking integration
Sergey Sharybin [Thu, 21 Jul 2011 16:56:44 +0000 (16:56 +0000)]
Camera tracking integration
===========================

Attempt to fix undefined log2f function.

9 years agoCamera tracking integration
Sergey Sharybin [Thu, 21 Jul 2011 16:04:01 +0000 (16:04 +0000)]
Camera tracking integration
===========================

Fixed own mistake in changed Select All operator.

9 years agoMerging r38516 through r38561 from trunk into soc-2011-tomato
Sergey Sharybin [Thu, 21 Jul 2011 15:04:41 +0000 (15:04 +0000)]
Merging r38516 through r38561 from trunk into soc-2011-tomato

9 years agoCamera tracking integration
Sergey Sharybin [Thu, 21 Jul 2011 14:59:56 +0000 (14:59 +0000)]
Camera tracking integration
===========================

Forgot to initialize aspect ratio for opening clip.

9 years agoCamera tracking integration
Sergey Sharybin [Thu, 21 Jul 2011 14:56:13 +0000 (14:56 +0000)]
Camera tracking integration
===========================

- Fixed discovered bug with selecting hidden marker areas with mouse.
- Refactor of context structure used for 2D tracking:
  * Tracker object is now per-track. This allows to use
    different pyramid levels for different tracks and
    now search area resizing shouldn't make tracking less
    accurate.
  * This is also be used for new optimized libmv API.
  * This allowed to use OpenMP to track different markers in
    separated threads.
    This allowed to reach quite cool speedup for multi-core CPU.

9 years agoCorrected View Selected operator for image editor so now it works
Sergey Sharybin [Thu, 21 Jul 2011 09:50:39 +0000 (09:50 +0000)]
Corrected View Selected operator for image editor so now it works
fine for images with different X and Y aspect ratio.

9 years agoCamera tracking integration
Sergey Sharybin [Thu, 21 Jul 2011 09:47:33 +0000 (09:47 +0000)]
Camera tracking integration
===========================

- Small fix for recent commit -- zoom was calculating incorrect
  for some values of aspect ratio.
- Small spelling fixes for operator descriptions.

9 years agoCamera tracking integration
Sergey Sharybin [Thu, 21 Jul 2011 09:23:25 +0000 (09:23 +0000)]
Camera tracking integration
===========================

- Fixed crash when transforming disabled marker.
- Select Inverse wouldn't select hidden parts of markers.
- Movie Clip display aspect ratio is now available on Display panel.

9 years agoFixed bug with multires baking to float buffers.
Sergey Sharybin [Thu, 21 Jul 2011 08:10:34 +0000 (08:10 +0000)]
Fixed bug with multires baking to float buffers.
Was missed a flag to set rect marked as changed.

9 years agorevert recent matrix multiplication patch:
Campbell Barton [Thu, 21 Jul 2011 02:00:29 +0000 (02:00 +0000)]
revert recent matrix multiplication patch:
 [#28032] Python Mathutils: Matrix Multiplication Error

Since they ended up reversing the order we better keep old code unless its proven to be incorrect.
also change Matrix.__repr__ function args to evaluate correctly (need to be inside a tuple).

9 years agoadd tip that duplicator system doesnt support xray / transp object draw options since...
Campbell Barton [Thu, 21 Jul 2011 01:37:15 +0000 (01:37 +0000)]
add tip that duplicator system doesnt support xray / transp object draw options since we keep getting reports about this.

9 years agofix [#28037] Missing orange selection lines (trivial)
Campbell Barton [Thu, 21 Jul 2011 01:30:26 +0000 (01:30 +0000)]
fix [#28037] Missing orange selection lines (trivial)

From what I can tell there is no good fix for this bug, calculating the 2d/3d viewborder and then attempting to align them to be pixel perfect fails because of float imprecision.

Added a workaround, so the camera border is always drawn in 2d space,
since this workaround may cause problems later on its kept under the define VIEW3D_CAMERA_BORDER_HACK so we can get old behavior back easily.

9 years agofix/workaround [#28040] float images reduced to 256 levels per channel upon save
Campbell Barton [Thu, 21 Jul 2011 00:41:00 +0000 (00:41 +0000)]
fix/workaround [#28040] float images reduced to 256 levels per channel upon save

Generated images would not be re-generated with a float buffer on load, even when selected on creation.
Now save the float buffer setting as a generated image flag.

This means you can enable before baking to enable baking to a float buffer.

9 years agoCamera tracking integration
Sergey Sharybin [Wed, 20 Jul 2011 20:31:25 +0000 (20:31 +0000)]
Camera tracking integration
===========================

- Fixed crash when holding down S and R keys.
- Fixed deleting of first marker.
- Tracking should now work fine with float buffers.
- Added option to show distortion grid. It's most probably
  temporary solution until [auto]calibration tools aren't
  merged.
  This grid defines straight lines on the image.

9 years agofix [#27922] using preset_paths() with an absolute path returns twice the same thing
Campbell Barton [Wed, 20 Jul 2011 15:33:27 +0000 (15:33 +0000)]
fix [#27922] using preset_paths() with an absolute path returns twice the same thing
raise an error when an invalid subdir is passed to preset_paths()

9 years agoCamera tracking integration
Sergey Sharybin [Wed, 20 Jul 2011 15:02:49 +0000 (15:02 +0000)]
Camera tracking integration
===========================

Test feature: configurable marker colors in Clip Editor.

Use presets, so plenty of different color could be defined and
easily re-used.

9 years agoCamera tracking integration
Sergey Sharybin [Wed, 20 Jul 2011 12:46:22 +0000 (12:46 +0000)]
Camera tracking integration
===========================

- Hide all reconreuction-related sliders from Display N-panel
  of 3D viewport if "Show Reconstruction" is turned off.
- Added setting for shape of bundle. Default is sphere.

9 years agoCamera tracking integration
Sergey Sharybin [Wed, 20 Jul 2011 11:02:26 +0000 (11:02 +0000)]
Camera tracking integration
===========================

Changed hotkeys for locking track:
- Ctrl-L for lock
- Alt-L for unlock

9 years agoCamera tracking integration
Sergey Sharybin [Wed, 20 Jul 2011 10:51:47 +0000 (10:51 +0000)]
Camera tracking integration
===========================

- Internal change: do not use maroses for checking the only
  one bit of track/marker flags.
- Do not display track name for disabled markers when
  "Show Disabled" is turned off.
- Option to lock tracks. Locked tracks can't be be moved,
  scaled, re-tracked and so.

9 years agoCamera tracking integration
Sergey Sharybin [Wed, 20 Jul 2011 09:27:17 +0000 (09:27 +0000)]
Camera tracking integration
===========================

Moved tweak from "Cursor To Active" to "Cursor To Selection".
It's more logical due to this operator already works with midpoints.

9 years agoCamera tracking integration
Sergey Sharybin [Wed, 20 Jul 2011 09:16:26 +0000 (09:16 +0000)]
Camera tracking integration
===========================

- Fixed bug with bundle getting selected when clicking on camera.
- Bundles are now low-poly.
- Tweaked "Snap Cursor To Active" operator:
  If active object is camera and there's bundles wisible in viewport,
  snapping would happen to midpoint of selected bundles.

9 years agoadded bpy.path.basename because "//" prefix breaks os.path.basename.
Campbell Barton [Wed, 20 Jul 2011 08:10:01 +0000 (08:10 +0000)]
added bpy.path.basename because "//" prefix breaks os.path.basename.

9 years agopatch [#28032] swapped matrix multiplication order, reverse it back, tested with...
Campbell Barton [Wed, 20 Jul 2011 06:41:51 +0000 (06:41 +0000)]
patch [#28032] swapped matrix multiplication order, reverse it back, tested with FBX, BVH import/export which are very sensitive to changes in matrix rotation.

9 years agopatch [#28030] SCONS Build: Build Date reflects "1" instead of actual date of build
Campbell Barton [Wed, 20 Jul 2011 06:22:16 +0000 (06:22 +0000)]
patch [#28030] SCONS Build: Build Date reflects "1" instead of actual date of build
by Scott Giese (sgiese)

This bug effected windows and linux.

9 years agopatch [#28031] Minor typo in Blenlib
Campbell Barton [Wed, 20 Jul 2011 06:05:47 +0000 (06:05 +0000)]
patch [#28031] Minor typo in Blenlib
from Scott Giese (sgiese)

9 years agopatch [#28032] Python Mathutils: Matrix Multiplication Error
Campbell Barton [Wed, 20 Jul 2011 05:57:38 +0000 (05:57 +0000)]
patch [#28032] Python Mathutils: Matrix Multiplication Error
from Scott Giese (sgiese)

9 years agoCamera tracking integration
Sergey Sharybin [Tue, 19 Jul 2011 20:22:03 +0000 (20:22 +0000)]
Camera tracking integration
===========================

- Selected bundles are now highlighted with outline.
  It looks more Blender-way of highlighting selected items.
- Added option to show bundles names in 3D viewport.
- Bundles now coudl be selected from 3D viewport.

9 years agoMerging r38454 through r38515 from trunk into soc-2011-tomato
Sergey Sharybin [Tue, 19 Jul 2011 19:58:01 +0000 (19:58 +0000)]
Merging r38454 through r38515 from trunk into soc-2011-tomato

9 years agoSpeedup, do only one global matrix grab per obj
Daniel Salazar [Tue, 19 Jul 2011 15:30:19 +0000 (15:30 +0000)]
Speedup, do only one global matrix grab per obj

9 years agoupdate to patch from Andrew Hale - obj.closest_point_ob_mesh() now takes an optional...
Campbell Barton [Tue, 19 Jul 2011 15:21:21 +0000 (15:21 +0000)]
update to patch from Andrew Hale - obj.closest_point_ob_mesh() now takes an optional max_dist argument.

9 years agoObject Align operator: coudn't resist and added a high quality (slower) option to...
Daniel Salazar [Tue, 19 Jul 2011 15:07:29 +0000 (15:07 +0000)]
Object Align operator: coudn't resist and added a high quality (slower) option to get perfect alighment on complex shapes with rotation/scaling :D

sexy example:
http://www.pasteall.org/pic/show.php?id=15171

9 years agoObject Align operator now correctly computes a *global* bounding box for all objects...
Daniel Salazar [Tue, 19 Jul 2011 13:27:05 +0000 (13:27 +0000)]
Object Align operator now correctly computes a *global* bounding box for all objects. This makes rotated or scaled objects work like they should. Now it's still derived from object's bounding box so it will not be completly acurate on complex objects.. to solve this Id need to cycle over all verts. Don't think that's a good idea to do in py

9 years agoCamera tracking integration
Sergey Sharybin [Tue, 19 Jul 2011 13:02:00 +0000 (13:02 +0000)]
Camera tracking integration
===========================

- Do not show bundles in 3d viewport if "Only Render" option is enabled.
- Fixed bug with incorrect track state.

9 years agoCamera tracking integration
Sergey Sharybin [Tue, 19 Jul 2011 12:42:01 +0000 (12:42 +0000)]
Camera tracking integration
===========================

- Fixed smal lbug with mouse selection.
- Added option to show tracks names and their states
  (disabled, keyframed, estimated, tracked).

9 years agoCamera tracking integration
Sergey Sharybin [Tue, 19 Jul 2011 10:40:22 +0000 (10:40 +0000)]
Camera tracking integration
===========================

- Remove set but not used variable in clip buttons.
- Set keyframe when sliding marker with mouse.
- Also set keyframe when sliding from preview widget.

9 years agofix for [#28012] Mat ID messy with shader nodes
Jeroen Bakker [Tue, 19 Jul 2011 08:31:53 +0000 (08:31 +0000)]
fix for [#28012] Mat ID messy with shader nodes

Issue was that the Shader tree execution changed the ShaderInput.
Changes are that the UI is updated that only the main material will have the pass_index this is displayed in the "render pipeline options" panel.
When the material is not a node material the pass_index will be shown at the "options" panel

To test enable nodes on the material
Add a new input material
change the pass_index of the material (render pipeline options)
Enable RenderPass material ID and use the compositor to read out the material pass

Jeroen

9 years agoCamera tracking integration
Sergey Sharybin [Tue, 19 Jul 2011 07:56:01 +0000 (07:56 +0000)]
Camera tracking integration
===========================

Small fix: forgot to initialize track preview height for
new space clip editor.

9 years agofix for bpy.path.abspath(), if a path was passed it would get the last directory...
Campbell Barton [Tue, 19 Jul 2011 05:05:54 +0000 (05:05 +0000)]
fix for bpy.path.abspath(), if a path was passed it would get the last directory cut off, broke copying images on export.

9 years agocleanup of scene->gamedata DNA
Dalai Felinto [Tue, 19 Jul 2011 02:47:43 +0000 (02:47 +0000)]
cleanup of scene->gamedata DNA

xsch and ysch were originally planed to replace the scene->r.xsch/r.ysch
however in blender/3dview we still need to use the r. values. Therefore we can't really run
from using those values even in bplayer. So removed the values in gamedata.

The way it's now, render values (xsch and ysch) are responsible for aspect ratio and gamedata xplay and yplay are responsible for the size of the window.

9 years agobugfix: [#27348] blenderplayer showing a different viewport size in 2.57b
Dalai Felinto [Tue, 19 Jul 2011 01:41:45 +0000 (01:41 +0000)]
bugfix: [#27348] blenderplayer showing a different viewport size in 2.57b
I believe this bug was there since we (me) moved the game settings to scene->gm
Since I was here I added support for x/y non square aspect pixels (i.e. anamorphic)
we were already using it for videotexture so I don't know why we were not here.

Tested in OSX, but it should be working in all OSs.

9 years agofix [#28018] Sequence Swap Data Operator does not work
Campbell Barton [Tue, 19 Jul 2011 01:36:59 +0000 (01:36 +0000)]
fix [#28018] Sequence Swap Data Operator does not work

9 years agopatch: [#27783] "Problem with clock" at 18:39:00 by Daniel Dionne (mrzeon)
Dalai Felinto [Mon, 18 Jul 2011 22:28:42 +0000 (22:28 +0000)]
patch: [#27783] "Problem with clock" at 18:39:00  by Daniel Dionne (mrzeon)
the overflow of the clock was causing crash in the game engine in Linux.
(on June 11 2011, 18:39:00 GMT)

running to the "where is waldo (wally)" bug award of 2011.

9 years agoCamera tracking integration
Sergey Sharybin [Mon, 18 Jul 2011 19:39:02 +0000 (19:39 +0000)]
Camera tracking integration
===========================

- Sliding from preview could now be undone.
- Fixed memory leak caused by NULL-ing used scopes on
  layout restore.
- Fixed possible crash after splitting space clip.

9 years agoCamera tracking integration
Sergey Sharybin [Mon, 18 Jul 2011 19:06:18 +0000 (19:06 +0000)]
Camera tracking integration
===========================

- Enable disabled markers when sliding from preview.
- Refresh space clip when marker is moving from preview.

9 years agoCamera tracking integration
Sergey Sharybin [Mon, 18 Jul 2011 18:57:00 +0000 (18:57 +0000)]
Camera tracking integration
===========================

Disallow changing trasnformation mode to rotation.
It's not supported for markers and it lead to crashes.

9 years agoCamera tracking integration
Sergey Sharybin [Mon, 18 Jul 2011 18:45:05 +0000 (18:45 +0000)]
Camera tracking integration
===========================

Changed behavior of "Follow Track" constraint for tracks.

Now tracking coordinates are mapped to plane which is
parallel to camera view plane.

9 years agoMissing struct keyword in function declaration causes compiler error with cmake/gcc.
Lukas Toenne [Mon, 18 Jul 2011 18:14:22 +0000 (18:14 +0000)]
Missing struct keyword in function declaration causes compiler error with cmake/gcc.

9 years agoCamera tracking integration
Sergey Sharybin [Mon, 18 Jul 2011 14:54:32 +0000 (14:54 +0000)]
Camera tracking integration
===========================

- Track preview widget is now resizeable.
- Marker position could now be adjusted from track
  preview widget.

9 years agoBugfix #27927
Ton Roosendaal [Mon, 18 Jul 2011 14:41:59 +0000 (14:41 +0000)]
Bugfix #27927

This fixes assigning 'tweak' keymap option for border selecting in
Node editor. Thanks Perry Parks for the patch!

9 years agoCamera tracking integration
Sergey Sharybin [Mon, 18 Jul 2011 10:44:23 +0000 (10:44 +0000)]
Camera tracking integration
===========================

Fixed bug with incorrect scale of UV project modifier
when Blender camera uses non-default sensor size.

9 years agoscript to report deprecated functions of text and their age in days.
Campbell Barton [Mon, 18 Jul 2011 09:49:26 +0000 (09:49 +0000)]
script to report deprecated functions of text and their age in days.

9 years agofix [#28003] Unable to delete vgroup
Campbell Barton [Mon, 18 Jul 2011 07:38:44 +0000 (07:38 +0000)]
fix [#28003] Unable to delete vgroup
still need to find how an invalid defgroup index is set, but at least dont show the vertex group as selected when its not.

9 years agofix [#27996] Smart UV Unwrap Still Results in Overlaps
Campbell Barton [Mon, 18 Jul 2011 06:44:41 +0000 (06:44 +0000)]
fix [#27996] Smart UV Unwrap Still Results in Overlaps
real fix this time :S, I thought using old code from 2.4x would fix but quaternion needed to be inverted.

9 years agofix [#28005] Python Add-Ons are constantly reloaded if twice in the path
Campbell Barton [Mon, 18 Jul 2011 05:41:46 +0000 (05:41 +0000)]
fix [#28005] Python Add-Ons are constantly reloaded if twice in the path
Addons are checked for their timestamps and reloaded when it changes but this failed when, 2 addons had the same name since different times caused 2 reloads on every redraw.

Now when duplicate addons are in the path now give a error message in the UI and print path conflict in the console and don't thrash reloading.

9 years agofix [#27971] Blender OBJ export with Z-Up setting produces an error and fails
Campbell Barton [Mon, 18 Jul 2011 05:07:54 +0000 (05:07 +0000)]
fix [#27971] Blender OBJ export with Z-Up setting produces an error and fails
changes to extensions coming up...

9 years agoBug fix: particle cache should only be cleared on the exact first integer frame,...
Janne Karhu [Mon, 18 Jul 2011 02:40:54 +0000 (02:40 +0000)]
Bug fix: particle cache should only be cleared on the exact first integer frame, not in the case of a subframe between the first and second frame.

9 years agoModified behavior when replacing input links: The new target socket for the existing...
Lukas Toenne [Sun, 17 Jul 2011 19:43:14 +0000 (19:43 +0000)]
Modified behavior when replacing input links: The new target socket for the existing link is now chosen from available sockets that match the _target_ type, instead of the source type. This leads to more usable replacements, e.g. for toggling inputs on mix nodes. Still not a great solution to the mute/autoconnect problem, but a bit more intuitive for replacements.

9 years agoChanged the default keys for duplicate-nodes-while-keeping-input-links to ctrl+shift...
Lukas Toenne [Sun, 17 Jul 2011 18:17:35 +0000 (18:17 +0000)]
Changed the default keys for duplicate-nodes-while-keeping-input-links to ctrl+shift+dkey, to avoid conflicts with alt+dkey for linked duplicates.

9 years agoCamera tracking integration
Sergey Sharybin [Sun, 17 Jul 2011 18:16:24 +0000 (18:16 +0000)]
Camera tracking integration
===========================

Click-and-slide behavior for placing marker.

Now "workflow" of adding new marker is following:
- Hit Ctrl+LMB
- Release Ctrl
- Slide mouse to give marker better position using
  preview widged for this.

"Previous" behavior is valid still.

9 years agoLittle modification of the duplicate operator on artist request: The default behavior...
Lukas Toenne [Sun, 17 Jul 2011 18:04:28 +0000 (18:04 +0000)]
Little modification of the duplicate operator on artist request: The default behavior (shift+dkey) is now to copy nodes and internal links, but not the input links from unselected nodes. This feature is available with the alternate duplicate operator (alt+dkey).

9 years agoCamera tracking integration
Sergey Sharybin [Sun, 17 Jul 2011 17:26:32 +0000 (17:26 +0000)]
Camera tracking integration
===========================

Added compositor node "Movie Clip"

There could be some problems due to bug #27997, but
heneral workflow works fine here.

9 years agoMerging r38433 through r38453 from trunk into soc-2011-tomato
Sergey Sharybin [Sun, 17 Jul 2011 17:25:11 +0000 (17:25 +0000)]
Merging r38433 through r38453 from trunk into soc-2011-tomato

9 years agoRemoved the autoconnect call when adding new nodes, this hardly ever gives usable...
Lukas Toenne [Sun, 17 Jul 2011 16:14:52 +0000 (16:14 +0000)]
Removed the autoconnect call when adding new nodes, this hardly ever gives usable results and leads to annoyed artists.

9 years agotemplate for patch exporting objects in a scene.
Campbell Barton [Sun, 17 Jul 2011 13:29:50 +0000 (13:29 +0000)]
template for patch exporting objects in a scene.

9 years agoupdate to cmake checker script to also check if our include paths are ok
Campbell Barton [Sun, 17 Jul 2011 12:42:03 +0000 (12:42 +0000)]
update to cmake checker script to also check if our include paths are ok

9 years agopatch [#28001] Find the nearest point on an object to the given location
Campbell Barton [Sun, 17 Jul 2011 12:40:18 +0000 (12:40 +0000)]
patch [#28001] Find the nearest point on an object to the given location
from Andrew Hale (trumanblending)

9 years ago'bgl' python module.
Campbell Barton [Sun, 17 Jul 2011 12:30:23 +0000 (12:30 +0000)]
'bgl' python module.

- add back slicing for buffers, (was previously in 2.4x but not working in py3):
  buf = bgl.Buffer(...)
  ls = buf[:]

- fix for crash with negative index access not being clamped.

- improve repr() function for multi dimensional buffers.

- add back 'list' attribute, but print deprecation warning.

9 years agoFixed compile error on Fedora 15, when FFMPEG was enabled.
Jiri Hnidek [Sun, 17 Jul 2011 10:28:31 +0000 (10:28 +0000)]
Fixed compile error on Fedora 15, when FFMPEG was enabled.

9 years agocmake: cleanup include paths, some duplicates and going up some unneeded dirs.
Campbell Barton [Sun, 17 Jul 2011 09:11:13 +0000 (09:11 +0000)]
cmake: cleanup include paths, some duplicates and going up some unneeded dirs.

9 years agoAdded notifier listener for node editor.
Sergey Sharybin [Sun, 17 Jul 2011 08:38:04 +0000 (08:38 +0000)]
Added notifier listener for node editor.

Now it behaves right on playback:

- Starting playback "Anim Player" button appears on header.
  It used to appear only on mouse hover before.
- Stopping playback triggers refresh on compositor, so
  actual result would be visible if image sequence/movie
  is used in nodes.

9 years agocmake source definitions:
Campbell Barton [Sat, 16 Jul 2011 23:01:14 +0000 (23:01 +0000)]
cmake source definitions:
  remove missing includes and use more strict formatting.

9 years agoFixed crash of multires baker when baking from sculpt mode.
Sergey Sharybin [Sat, 16 Jul 2011 17:55:46 +0000 (17:55 +0000)]
Fixed crash of multires baker when baking from sculpt mode.

Incorrect low level was used for this case -- it should be
sculpt level, not preview level.

Thanks to Morten Mikkelsen to point on this bug :)

9 years agoCamera tracking integration
Sergey Sharybin [Sat, 16 Jul 2011 10:30:51 +0000 (10:30 +0000)]
Camera tracking integration
===========================

- Silent compilator's warning about possible uninitialized
  variable usage in set floor operator.
- Check tracks cound on both of keyframes before reconstruction.
- Refresh 3d viewport when deleting track with bundle.

9 years agoMerging r38419 through r38432 from trunk into soc-2011-tomato
Sergey Sharybin [Sat, 16 Jul 2011 10:01:00 +0000 (10:01 +0000)]
Merging r38419 through r38432 from trunk into soc-2011-tomato

9 years agoprint an error message if Python.h can't be found for cmake and scons since its such...
Campbell Barton [Sat, 16 Jul 2011 06:55:45 +0000 (06:55 +0000)]
print an error message if Python.h can't be found for cmake and scons since its such a common problem.

9 years agofix for crash with edit armature buttons when no bones were selected (uninitialized...
Campbell Barton [Fri, 15 Jul 2011 23:55:20 +0000 (23:55 +0000)]
fix for crash with edit armature buttons when no bones were selected (uninitialized pointer)

9 years agoCamera tracking integration
Sergey Sharybin [Fri, 15 Jul 2011 20:44:19 +0000 (20:44 +0000)]
Camera tracking integration
===========================

- Bundle re-newed libmv library.
- Update API in libmv-capi to match new library.
- Initial implementaition of feature detection.
- Fixed bug with incorrect user sync when tracking
  for first frame.

9 years agoMerging r38390 through r38418 from trunk into soc-2011-tomato
Sergey Sharybin [Fri, 15 Jul 2011 20:22:01 +0000 (20:22 +0000)]
Merging r38390 through r38418 from trunk into soc-2011-tomato

9 years agoCamera tracking integration
Sergey Sharybin [Fri, 15 Jul 2011 16:50:12 +0000 (16:50 +0000)]
Camera tracking integration
===========================

Fix for camera solver on windows.

There were two problems:
- Static align in Eigen should be also disabled for libmv.
- SSBA doesn't work correct for windows when optimization is
  turned on.

There's no other way rather than disable optimization for
the whole extern/libmv. This leads to 3-4x slowdown, but it's
really the only thing we could do now.

Keir is going to drop SSBA out and replace it with Bundler,
so it shouldn't be a major problem.

9 years agoFix for [#26712] Particle group instance 'Use Count' value gets reset on file-load.
Janne Karhu [Fri, 15 Jul 2011 13:32:02 +0000 (13:32 +0000)]
Fix for [#26712] Particle group instance 'Use Count' value gets reset on file-load.
* New object pointers can't be loaded properly for library linked groups, so the weight groups now store an index to the group objects at save time. This index is used at load time to set the objects without relying on the old pointers.
* If the library linked group is modified the indices can be wrong, but this can't really be avoided easily as there's no way to relate objects in a linked group between loads.

9 years agofix for linking on mingw/scons with recent changes to mathutils
Campbell Barton [Fri, 15 Jul 2011 10:10:25 +0000 (10:10 +0000)]
fix for linking on mingw/scons with recent changes to mathutils

9 years agomove mathutils into its own lib.
Campbell Barton [Fri, 15 Jul 2011 04:01:47 +0000 (04:01 +0000)]
move mathutils into its own lib.

9 years agoFix for [#27307] Blender crashes when loading a new scene while baking fluid dynamics
Janne Karhu [Fri, 15 Jul 2011 00:39:49 +0000 (00:39 +0000)]
Fix for [#27307] Blender crashes when loading a new scene while baking fluid dynamics
* Fluid bakes didn't respect the job stop flag.
* Also made msvc happy with some casts.