9 years agofix for crash drawing grease pencil attached to a tracking marker.
Campbell Barton [Mon, 11 Jun 2012 20:50:57 +0000 (20:50 +0000)]
fix for crash drawing grease pencil attached to a tracking marker.
also fix for use of uninitialized variable for ED_clip_point_undistorted_pos().

9 years agosafety check when making a node local- make sure its already in the node tree.
Campbell Barton [Mon, 11 Jun 2012 19:12:45 +0000 (19:12 +0000)]
safety check when making a node local- make sure its already in the node tree.

9 years agoFixing first part of [#31760] Assignments not working properly for Object.dimensions
Bastien Montagne [Mon, 11 Jun 2012 18:58:34 +0000 (18:58 +0000)]
Fixing first part of [#31760] Assignments not working properly for Object.dimensions

Problem was in fact that non-linear-contiguous axis assignement was broken (i.e. location.xy would work as expected, but location.xz would only affect .x part)... Now all possibilities should work fine.

Did not try to fix the problem specific to obj.dimension (when assigning multiple times to this array, only the last one is taken into account - in fact, a simple print() shows that assigning to dimension is not taken into account immediately), not sure whether this is normal behavior, or if we need a specific "update" of some kind for this prop?

9 years agorna read/write access to ...
Campbell Barton [Mon, 11 Jun 2012 18:43:48 +0000 (18:43 +0000)]
rna read/write access to ...

9 years agominor changes to jpeg2k saving based on reading v1.5 source examples.
Campbell Barton [Mon, 11 Jun 2012 18:43:16 +0000 (18:43 +0000)]
minor changes to jpeg2k saving based on reading v1.5 source examples.

9 years agoadd missing node RNA booleans.
Campbell Barton [Mon, 11 Jun 2012 18:16:26 +0000 (18:16 +0000)]
add missing node RNA booleans.

9 years agoAdd user preference "GPU Mipmap Generation" under the System/OpenGL
Antony Riakiotakis [Mon, 11 Jun 2012 16:23:10 +0000 (16:23 +0000)]
Add user preference "GPU Mipmap Generation" under the System/OpenGL
subpanel to calculate image mipmapping on the GPU, saving upload and
calculation time. Default is off just in case.

9 years agoFix for node 'make group' operator in combination with frame nodes. When a selected...
Lukas Toenne [Mon, 11 Jun 2012 15:28:45 +0000 (15:28 +0000)]
Fix for node 'make group' operator in combination with frame nodes. When a selected node is attached to an unselected frame, the parent pointer would end up pointing to a different ID data block.

9 years agoFix compilation of new tracker for MinGW/MinGW64
Antony Riakiotakis [Mon, 11 Jun 2012 13:00:35 +0000 (13:00 +0000)]
Fix compilation of new tracker for MinGW/MinGW64

9 years agominor fixes
Campbell Barton [Mon, 11 Jun 2012 12:13:41 +0000 (12:13 +0000)]
minor fixes
- new compositor could use uninitialized var
- profile conversion could use uninitialized var
- set better warnings for clang+cmake.
- remove picky warnings from sphinx doc gen shell script.

9 years agoDraw grease pencil after masks
Sergey Sharybin [Mon, 11 Jun 2012 11:54:16 +0000 (11:54 +0000)]
Draw grease pencil after masks

Looks like drawing grease pencil before masks was affecting projection matrix
somehow which made masks invisible

Anyway, drawing GP actually shall happen after masks to match how it works
in other areas.

9 years agoScale search area when doing planar tracking
Sergey Sharybin [Mon, 11 Jun 2012 11:40:54 +0000 (11:40 +0000)]
Scale search area when doing planar tracking

Helps keeping features tracked when there's large scale happens
without need to manually re-adjust search area.

Currently using factor of pattern's boundbox scale, but probably
could be done in more accurate way?

9 years agoFixed issue with disappearing Clip/Track menu from GP panel in Clip Editor
Sergey Sharybin [Mon, 11 Jun 2012 11:40:36 +0000 (11:40 +0000)]
Fixed issue with disappearing Clip/Track menu from GP panel in Clip Editor
caused by switching to Track GP without having active track.

9 years agoCosmetic fixes
Joshua Leung [Mon, 11 Jun 2012 11:11:11 +0000 (11:11 +0000)]
Cosmetic fixes
* PoseBone struct didn't have an icon
* Comment fixes (stil referenced IPO's)

9 years agoFix invalid array index in armature_deform_verts().
Nicholas Bishop [Mon, 11 Jun 2012 11:00:58 +0000 (11:00 +0000)]
Fix invalid array index in armature_deform_verts().

Check that the def_nr is non-negative before using as index.

Fixes bug [#31700] Crash when opening .blend file on 64bit environment

9 years agoAdd missing/incorrect selection flushes.
Nicholas Bishop [Mon, 11 Jun 2012 10:14:46 +0000 (10:14 +0000)]
Add missing/incorrect selection flushes.

Added selection flush after loop cut, changed select_linked_pick's
flush to use the em selection flag.

Fixes bug [#31715] Cases where verts and edges are selected but not
relevant faces

9 years agotemplate for python node operators
Campbell Barton [Mon, 11 Jun 2012 10:11:31 +0000 (10:11 +0000)]
template for python node operators

9 years agoFix incorrectly deleted elements in array modifier caps.
Nicholas Bishop [Mon, 11 Jun 2012 09:41:08 +0000 (09:41 +0000)]
Fix incorrectly deleted elements in array modifier caps.

Add check for merging vertices into vertices that are themselves
marked for merge, was already done for array eleements but not end

Fixes bug [#31695] Array Modifier: End Cap fails if all vertices are merged

Also corrected some reversed assert arguments.

9 years agoupdates to context docs and add missing member to node context 'node_context_dir'.
Campbell Barton [Mon, 11 Jun 2012 09:24:25 +0000 (09:24 +0000)]
updates to context docs and add missing member to node context 'node_context_dir'.

9 years agoUI messages fixes...
Bastien Montagne [Mon, 11 Jun 2012 09:05:17 +0000 (09:05 +0000)]
UI messages fixes...

9 years agoFix applying object transform to multires objects.
Nicholas Bishop [Mon, 11 Jun 2012 08:37:35 +0000 (08:37 +0000)]
Fix applying object transform to multires objects.

Bug [#31785] Applying a transform to an object with multires weird result

Was reading interleaved coord/mask data incorrectly since paint mask
merge. Fixed by using two separate CCGKeys.

Some additional code cleanup: deduplicate multires tangent matrix

9 years ago * Blur node had some irregularities at the edge of the screen
Jeroen Bakker [Mon, 11 Jun 2012 08:28:04 +0000 (08:28 +0000)]
 * Blur node had some irregularities at the edge of the screen
 only visible when doing large size blurs.
 also solved the catcom/mitch filter that didn't work at low/medium quality

 PS never use BokehBlur Gausian filter as it is 99%+ identicat as non bokeh <= top for sergey- :)

9 years agofix for crashes in smooth-curves and clean-curves fcurve operators - missing NULL...
Campbell Barton [Mon, 11 Jun 2012 08:15:37 +0000 (08:15 +0000)]
fix for crashes in smooth-curves and clean-curves fcurve operators - missing NULL checks.

9 years agoMove all marker placement into a single omp critical section
Sergey Sharybin [Mon, 11 Jun 2012 08:06:42 +0000 (08:06 +0000)]
Move all marker placement into a single omp critical section
Could give small speadup.

9 years agoquiet 'unused' warning.
Campbell Barton [Mon, 11 Jun 2012 06:51:01 +0000 (06:51 +0000)]
quiet 'unused' warning.

9 years agoBugfix [#27886] Transform constraint maps wrongly with negative scale
Joshua Leung [Mon, 11 Jun 2012 05:05:05 +0000 (05:05 +0000)]
Bugfix [#27886] Transform constraint maps wrongly with negative scale

AFAIK, it is impossible to determine exactly which axes may have negative
scaling values from a 4x4 matrix (which is the underlying cause of this bug).
However, we can figure out if there is some negative scaling going on in that
matrix (i.e. one of the axes has negative scale). So, the fix here is to
negatively scale everything if we detect this happening.

WARNING: do not rely on being able to accurately detecting positive/negative
values for more than a single axis per bone controller. Weird results may occur.
You have been warned.

9 years agoBugfix [#31766] Mouseover Label reads 'Alt Left Arrow' when over the right
Joshua Leung [Mon, 11 Jun 2012 04:34:59 +0000 (04:34 +0000)]
Bugfix [#31766] Mouseover Label reads 'Alt Left Arrow' when over the right

Patch by Philipp Oeser

9 years agoBugfix [#28962] Changing actions via undo/delete all keyframes lacks UI refresh
Joshua Leung [Mon, 11 Jun 2012 04:13:39 +0000 (04:13 +0000)]
Bugfix [#28962] Changing actions via undo/delete all keyframes lacks UI refresh

Slightly hacky fix to get updates working for Action Editor header when there
are changes of the active action (via undo and/or deleting all keyframes at
once). Since the action referenced by the editor only gets updated when anim
channel filtering (e.g. as a result of the channel syncing operation) is
invoked. Added comments noting where these updates actually occur

9 years agoBugfix: Crash in Sequencer when trying to undo after using Grease Pencil
Joshua Leung [Mon, 11 Jun 2012 03:03:36 +0000 (03:03 +0000)]
Bugfix: Crash in Sequencer when trying to undo after using Grease Pencil

Grease Pencil data was not getting correctly relinked after file reload (for

9 years agoSVN maintenance.
Guillermo S. Romero [Mon, 11 Jun 2012 02:29:25 +0000 (02:29 +0000)]
SVN maintenance.

9 years agoCommented out expand_bones(), as this wasn't actually doing anything other than
Joshua Leung [Mon, 11 Jun 2012 02:23:26 +0000 (02:23 +0000)]
Commented out expand_bones(), as this wasn't actually doing anything other than
wasting time traversing the list of bones in the Armature

9 years agoBuild-system fix (for r.47710)
Joshua Leung [Mon, 11 Jun 2012 02:01:48 +0000 (02:01 +0000)]
Build-system fix (for r.47710)

Need add blenfont to list of include directories for sequence editor buildfiles.
Was causing build errors on OSX. Thanks Zavigny (IRC report)

9 years agoGrease Pencil Eraser - Numpad +/- and Scrollwheel Up/Down to change radius of
Joshua Leung [Mon, 11 Jun 2012 01:27:56 +0000 (01:27 +0000)]
Grease Pencil Eraser - Numpad +/- and Scrollwheel Up/Down to change radius of
brush while erasing

This makes it easier to change the size of the brush without having to jump out
to the User Preferences and back

9 years agoGrease Pencil - Eraser is drawn with the circle/brush indicator again
Joshua Leung [Mon, 11 Jun 2012 01:09:25 +0000 (01:09 +0000)]
Grease Pencil - Eraser is drawn with the circle/brush indicator again

9 years agoCode cleanup - Removing/commenting out various bits of legacy cruft related to
Joshua Leung [Mon, 11 Jun 2012 00:46:22 +0000 (00:46 +0000)]
Code cleanup - Removing/commenting out various bits of legacy cruft related to
old Grease Pencil stuff

9 years agoGrease Pencil - Support for Grease Pencil in the Sequence Editor preview/image
Joshua Leung [Mon, 11 Jun 2012 00:21:50 +0000 (00:21 +0000)]
Grease Pencil - Support for Grease Pencil in the Sequence Editor preview/image
space works again

This commit restores the support for using Grease Pencil in the Sequence Editor
image preview region, making it possible to scribble on footage for review
purposes again. Due to internal changes in how the Sequencer handles the image
drawing for this stuff (i.e. it is now fully based on View2D instead of trying
to implement its own little crazy offset+zoom stuff), a lot of the old code for
handling those offsets is no longer needed. Instead, one of the "standard" cases
is now used, and works quite well.

* View-space Grease Pencil drawing was done in wrong place (before view2d
* Grease Pencil entry in RNA had wrong/missing type

* DingTo - initial patch/attempt at restoring support
* Aligorith - solved the "offset problems"

9 years agoOUTLINER_OT_material_drop -- Drag & Drop materials onto objects in the outliner
Dan Eicher [Sun, 10 Jun 2012 22:22:26 +0000 (22:22 +0000)]
OUTLINER_OT_material_drop -- Drag & Drop materials onto objects in the outliner

Adds the material at materials + 1 unlike the DnD view3d one which replaces the first one

9 years agostyle cleanup
Campbell Barton [Sun, 10 Jun 2012 22:13:17 +0000 (22:13 +0000)]
style cleanup

9 years agofix [#31712] User prefs Input: Filter searches for names starting with entered phrase...
Campbell Barton [Sun, 10 Jun 2012 21:38:24 +0000 (21:38 +0000)]
fix [#31712] User prefs Input: Filter searches for names starting with entered phrase only

9 years agocorrect float vector sizes
Campbell Barton [Sun, 10 Jun 2012 20:31:01 +0000 (20:31 +0000)]
correct float vector sizes

9 years agoquiet warning
Campbell Barton [Sun, 10 Jun 2012 20:20:37 +0000 (20:20 +0000)]
quiet warning

9 years agocorrect freeing C++ arrays.
Campbell Barton [Sun, 10 Jun 2012 20:14:15 +0000 (20:14 +0000)]
correct freeing C++ arrays.

9 years agostyle cleanup
Campbell Barton [Sun, 10 Jun 2012 19:59:02 +0000 (19:59 +0000)]
style cleanup

9 years agoCommitting patch [#31704] "Patch to fix keyboard sensor from blocking quit game key...
Mitchell Stokes [Sun, 10 Jun 2012 19:32:57 +0000 (19:32 +0000)]
Committing patch [#31704] "Patch to fix keyboard sensor from blocking quit game key binding" by Jay Parker. This patch fixes [#31671] "Keyboard Sensor blocks Quit Game Key Binding"

9 years agoAlso fix cache line in clip editor which didn't take start frame into account.
Sergey Sharybin [Sun, 10 Jun 2012 17:24:05 +0000 (17:24 +0000)]
Also fix cache line in clip editor which didn't take start frame into account.

9 years agoFixed curves and dopeseet views of motion tracking data not taking clip's
Sergey Sharybin [Sun, 10 Jun 2012 17:09:35 +0000 (17:09 +0000)]
Fixed curves and dopeseet views of motion tracking data not taking clip's
start frame into account.

9 years agoForce multires update when changing subdivision type.
Nicholas Bishop [Sun, 10 Jun 2012 17:06:26 +0000 (17:06 +0000)]
Force multires update when changing subdivision type.

Fixes bug [#31050] Changing multires subdivision algorithm can ruin mesh

9 years agoCode cleanups for the PBVH, no functional changes.
Nicholas Bishop [Sun, 10 Jun 2012 16:37:22 +0000 (16:37 +0000)]
Code cleanups for the PBVH, no functional changes.

* Use the PBVHType consistently in pbvh_update_draw_buffers().

* Split the raycast function up, mesh and grid raycast get their own
  functions now.

* Replace duplicated code in BLI_pbvh_node_add_proxy() with call to

9 years agoBugfix for autosmooth in sculpt mode.
Nicholas Bishop [Sun, 10 Jun 2012 16:22:58 +0000 (16:22 +0000)]
Bugfix for autosmooth in sculpt mode.

This option was broken for non-multires meshes (not sure for how
long), as the pmap was not getting calculated.

Added a more general check for whether the pmap is needed, also added
an assert to warn about this in future.

9 years agoFix compilation without libmv
Sergey Sharybin [Sun, 10 Jun 2012 16:16:02 +0000 (16:16 +0000)]
Fix compilation without libmv

9 years agoBump subversion so iteration through all markers would happen
Sergey Sharybin [Sun, 10 Jun 2012 15:28:37 +0000 (15:28 +0000)]
Bump subversion so iteration through all markers would happen
only for old files which actually needs to be ported to 4 corners

9 years agoCommit patch from Stephan Kassemeyer sent to ML
Sergey Sharybin [Sun, 10 Jun 2012 15:28:29 +0000 (15:28 +0000)]
Commit patch from Stephan Kassemeyer sent to ML

This patch aims to solve unaligned operation assert
happens in Eigen library.

This is short-term solution which in fact shall be reverted
as soon as real solution would be added to Ceres. Meanwhile
this should be acceptable to have for a while.

9 years agoPlanar tracking support for motion tracking
Sergey Sharybin [Sun, 10 Jun 2012 15:28:19 +0000 (15:28 +0000)]
Planar tracking support for motion tracking

Major list of changes done in tomato branch:

- Add a planar tracking implementation to libmv
  This adds a new planar tracking implementation to libmv. The
  tracker is based on Ceres[1], the new nonlinear minimizer that
  myself and Sameer released from Google as open source. Since
  the motion model is more involved, the interface is
  different than the RegionTracker interface used previously
  in Blender.

  The start of a C API in libmv-capi.{cpp,h} is also included.

- Migrate from pat_{min,max} for markers to 4 corners representation

  Convert markers in the movie clip editor / 2D tracker from using
  pat_min and pat_max notation to using the a more general, 4-corner

  There is still considerable porting work to do; in particular
  sliding from preview widget does not work correct for rotated

  All other areas should be ported to new representation:

  * Added support of sliding individual corners. LMB slide + Ctrl
    would scale the whole pattern
  * S would scale the whole marker, S-S would scale pattern only
  * Added support of marker's rotation which is currently rotates
    only patterns around their centers or all markers around median,

    Rotation or other non-translation/scaling transformation of search
    area doesn't make sense.

  * Track Preview widget would display transformed pattern which
    libmv actually operates with.

- "Efficient Second-order Minimization" for the planar tracker

  This implements the "Efficient Second-order Minimization"
  scheme, as supported by the existing translation tracker.
  This increases the amount of per-iteration work, but
  decreases the number of iterations required to converge and
  also increases the size of the basin of attraction for the

- Remove the use of the legacy RegionTracker API from Blender,
  and replaces it with the new TrackRegion API. This also
  adds several features to the planar tracker in libmv:

  * Do a brute-force initialization of tracking similar to "Hybrid"
    mode in the stable release, but using all floats. This is slower
    but more accurate. It is still necessary to evaluate if the
    performance loss is worth it. In particular, this change is
    necessary to support high bit depth imagery.

  * Add support for masks over the search window. This is a step
    towards supporting user-defined tracker masks. The tracker masks
    will make it easy for users to make a mask for e.g. a ball.

    Not exposed into interface yet/

  * Add Pearson product moment correlation coefficient checking (aka
    "Correlation" in the UI. This causes tracking failure if the
    tracked patch is not linearly related to the template.

  * Add support for warping a few points in addition to the supplied
    points. This is useful because the tracking code deliberately
    does not expose the underlying warp representation. Instead,
    warps are specified in an aparametric way via the correspondences.

- Replace the old style tracker configuration panel with the
  new planar tracking panel. From a users perspective, this means:

  * The old "tracking algorithm" picker is gone. There is only 1
    algorithm now. We may revisit this later, but I would much
    prefer to have only 1 algorithm. So far no optimization work
    has been done so the speed is not there yet.

  * There is now a dropdown to select the motion model. Choices:

        * Translation
        * Translation, rotation
        * Translation, scale
        * Translation, rotation, scale
        * Affine
        * Perspective

  * The old "Hybrid" mode is gone; instead there is a toggle to
    enable or disable translation-only tracker initialization. This
    is the equivalent of the hyrbid mode before, but rewritten to work
    with the new planar tracking modes.

  * The pyramid levels setting is gone. At a future date, the planar
    tracker will decide to use pyramids or not automatically. The
    pyramid setting was ultimately a mistake; with the brute force
    initialization it is unnecessary.

- Add light-normalized tracking

  Added the ability to normalize patterns by their average value while
  tracking, to make them invariant to global illumination changes.

Additional details could be found at wiki page [2]


9 years agoInitial Ceres integration into Blender
Sergey Sharybin [Sun, 10 Jun 2012 15:27:41 +0000 (15:27 +0000)]
Initial Ceres integration into Blender

Currently only put sources of Ceres library into extern/libmv/third_party and
setup CMake and SCons building systems.

Integration details:

- Even CMake build files are not re-used from Ceres's trunk: they're using some
  automatic stuff detection like glog, pthreads, protobuf and so and it's not
  so clear how to re-use that files without modifications.
  And IMO it's easier if build files are getting re-generated automatically to
  match Blender-specific setup rather than keeping changes made locally in
  Blender in sync when re-bundling Ceres library. Especially in case when it's
  already needed to support SCons build system.
- Integrated only actual sources, all tests were stripped. Probably it'll be nice
  to have them, but they'll need clear integration with current module test stuff
  in Blender.
- Suitesparse was disabled. It'll help a lot having it, but there are some difficulties
  making cholmod working fine on windows. Would be added in future
- was also stripped. It's not used by Ceres's upstream and
  it gives compilation error (undefined uint32 -- looks like namespace issue).
- Currently all schur eliminators are included. Not sure if it makes sense,
  also not sure if it makes sense having them switchable on and off -- IMO better
  to have single configuration which works and does not require special tweaks
  after everything was set up.

To bundle updated version of Ceres:
- Go to extern/libmv/third_party/ceres folder
- Run ./

This will checkout fresh Ceres snapshot of Windows branch (which is currently
most interesting from integration into Blender POV), apply all patches listed
in patches/series and copy needed files into Blender's working copy. This will
also re-generate CMake/SCons build rules.

If you'll need extra files from Ceres repository which are not present in
Blender, you'll need to copy them manually and then run ./ from
extern/libmv/third_party/ceres folder which will update list of files used
by Blender.

Thanks to Leir Mierle and Sameer Agarwal (and all others who helped developing
Ceres) this library and thanks to Keir Mierle with help integrating it into Blender!

9 years agoSupport for per-track Grease Pencil datablocks for motion tracking
Sergey Sharybin [Sun, 10 Jun 2012 15:26:50 +0000 (15:26 +0000)]
Support for per-track Grease Pencil datablocks for motion tracking

Originally was needed to reach easy way of defining masks used for tracking
(do eliminate textures which doesn't belong to feature when tracking.

Implemented as alternative to GP datablock for clip and added switch between
per-clip and per-track GP datablocks -- internal limitations of GP doesn't
allow to display all GP datablocks easily.  So either you see.edit GP associated
with clip or with track.

GP strokes associated with track are relative to track's position, following
tracks during tracking and could be shared between several tracks.

Masking code presents in libmv and there's rasterizer of GP datablocks for
masks in blender's tracking module, but they still need to be glued together.

Some documentation cound be found at this page:

9 years agostyle cleanup: use capital camel case names for typedef's
Campbell Barton [Sun, 10 Jun 2012 15:20:10 +0000 (15:20 +0000)]
style cleanup: use capital camel case names for typedef's

9 years agoFix #31778. BKE_image_user_frame_calc can be called with iuser==NULL in some circumst...
Lukas Toenne [Sun, 10 Jun 2012 15:07:08 +0000 (15:07 +0000)]
Fix #31778. BKE_image_user_frame_calc can be called with iuser==NULL in some circumstances now, so needs to check that.

9 years agochange RNA_struct_find_function to accept a type rather then a PointerRNA, add a...
Campbell Barton [Sun, 10 Jun 2012 13:34:59 +0000 (13:34 +0000)]
change RNA_struct_find_function to accept a type rather then a PointerRNA, add a check duplicate functions are not defined.

9 years agomango request - add alpha to histogram & sample line.
Campbell Barton [Sun, 10 Jun 2012 12:33:27 +0000 (12:33 +0000)]
mango request - add alpha to histogram & sample line.

9 years agoSynchronize changes with tomato branch
Sergey Sharybin [Sun, 10 Jun 2012 12:30:47 +0000 (12:30 +0000)]
Synchronize changes with tomato branch

9 years agoApplied and completed a compositor patch by Brecht to use signalling and waiting...
Lukas Toenne [Sun, 10 Jun 2012 12:26:33 +0000 (12:26 +0000)]
Applied and completed a compositor patch by Brecht to use signalling and waiting in scheduling and worker threads instead of continuous loops with sleep times. This should help reduce unnecessary wait times in Tile.

9 years agomango request
Campbell Barton [Sun, 10 Jun 2012 12:09:25 +0000 (12:09 +0000)]
mango request
- optionally display the histogram as lines (not filled areas).
- expand the enum for faster access.
- keep the sample line displayed after doing the line sample (running again clears).

9 years agocode cleanup: rename flag --> dflag (draw flag), since this is overly generic name...
Campbell Barton [Sun, 10 Jun 2012 10:15:49 +0000 (10:15 +0000)]
code cleanup: rename flag --> dflag (draw flag), since this is overly generic name and was passed about to many functions.

9 years agoFix for Tile group nodes with internally unconnected outputs, this was crashing due...
Lukas Toenne [Sun, 10 Jun 2012 09:30:31 +0000 (09:30 +0000)]
Fix for Tile group nodes with internally unconnected outputs, this was crashing due to missing constant value operations for such outputs. The SocketProxyNode now checks connection of the input socket on conversion, so this also simplifies usage of proxy nodes quite a bit.

9 years agofix for un-initialized memory use for modal inset/bevel.
Campbell Barton [Sun, 10 Jun 2012 09:05:49 +0000 (09:05 +0000)]
fix for un-initialized memory use for modal inset/bevel.

9 years agoMissed NULL-pointer checks in poll some functions
Sergey Sharybin [Sun, 10 Jun 2012 09:04:49 +0000 (09:04 +0000)]
Missed NULL-pointer checks in poll some functions

9 years agoFix for compositor image node draw function. The image user pointer needs to be const...
Lukas Toenne [Sun, 10 Jun 2012 07:51:57 +0000 (07:51 +0000)]
Fix for compositor image node draw function. The image user pointer needs to be constructed explicitly from the node storage pointer.

9 years agoFix #31747, broken image sequence loading after r47432.
Lukas Toenne [Sun, 10 Jun 2012 07:35:45 +0000 (07:35 +0000)]
Fix #31747, broken image sequence loading after r47432.

The image file name function was updating the iuser->framenr using a supposed cfra parameter. However, the actual cfra is unknown when loading movies or sequences, so the iuser->framenr value itself was passed in its place, leading to incremental addition of the iuser frame offset. Removed the cfra parameter altogether from the image path function. This should instead be done separately if necessary, it's not an inherent part of constructing the image file name.

9 years agoremove duplicate import
Campbell Barton [Sun, 10 Jun 2012 00:22:18 +0000 (00:22 +0000)]
remove duplicate import

9 years agoOBJECT_OT_drop_named_material -- missing notifier for material panel UI update
Dan Eicher [Sat, 9 Jun 2012 21:43:22 +0000 (21:43 +0000)]
OBJECT_OT_drop_named_material -- missing notifier for material panel UI update

9 years agocode cleanup: reduce float/double promotion
Campbell Barton [Sat, 9 Jun 2012 19:57:14 +0000 (19:57 +0000)]
code cleanup: reduce float/double promotion

9 years agostyle cleanup: assignment & indentation.
Campbell Barton [Sat, 9 Jun 2012 18:56:12 +0000 (18:56 +0000)]
style cleanup: assignment & indentation.

9 years agocode cleanup: removed/renamed shadow & duplicate variable definitions.
Campbell Barton [Sat, 9 Jun 2012 18:20:40 +0000 (18:20 +0000)]
code cleanup: removed/renamed shadow & duplicate variable definitions.

9 years agocode cleanup: quiet all warnings about double promotion (either by changing the type...
Campbell Barton [Sat, 9 Jun 2012 17:45:22 +0000 (17:45 +0000)]
code cleanup: quiet all warnings about double promotion (either by changing the type or explicitly casting).

9 years agostyle cleanup: block comments
Campbell Barton [Sat, 9 Jun 2012 17:22:52 +0000 (17:22 +0000)]
style cleanup: block comments

9 years agofix for un-handled exception when entering in multiple values to a button, floats...
Campbell Barton [Sat, 9 Jun 2012 16:45:42 +0000 (16:45 +0000)]
fix for un-handled exception when entering in multiple values to a button, floats were not correctly checked for.

9 years agocode cleanup: doxy comment filename corrections
Campbell Barton [Fri, 8 Jun 2012 23:43:11 +0000 (23:43 +0000)]
code cleanup: doxy comment filename corrections

9 years agoadd a utility function to get an exact match for a grease pencil frame.
Campbell Barton [Fri, 8 Jun 2012 22:07:57 +0000 (22:07 +0000)]
add a utility function to get an exact match for a grease pencil frame.

9 years agorna_SequenceElements_pop --> use memcpy instead of strcpy
Dan Eicher [Fri, 8 Jun 2012 22:05:26 +0000 (22:05 +0000)]
rna_SequenceElements_pop --> use memcpy instead of strcpy

9 years agocode cleanup: name mask and grease pencil dope sheet editor functions more consistantly
Campbell Barton [Fri, 8 Jun 2012 21:48:04 +0000 (21:48 +0000)]
code cleanup: name mask and grease pencil dope sheet editor functions more consistantly

9 years agoconstraints names are not matching (rna and constraint.c). doing rna->constraint.c
Dalai Felinto [Fri, 8 Jun 2012 21:04:48 +0000 (21:04 +0000)]
constraints names are not matching (rna and constraint.c). doing rna->constraint.c

9 years agoCycles / Cleanup:
Thomas Dinges [Fri, 8 Jun 2012 20:17:02 +0000 (20:17 +0000)]
Cycles / Cleanup:
* All references to old textures should now be finally removed.

9 years agoFixing a BGE bug where textures could get loaded into VRAM twice.
Mitchell Stokes [Fri, 8 Jun 2012 19:57:28 +0000 (19:57 +0000)]
Fixing a BGE bug where textures could get loaded into VRAM twice.

9 years agoCycles / Textures:
Thomas Dinges [Fri, 8 Jun 2012 19:57:25 +0000 (19:57 +0000)]
Cycles / Textures:
* Some code cleanup, removed old enums, which are not used anymore.
* Some renaming for consistency and to match new texture names.

9 years agoCycles / Code Cleanup:
Thomas Dinges [Fri, 8 Jun 2012 19:21:12 +0000 (19:21 +0000)]
Cycles / Code Cleanup:
* Removed a workaround for the NodeType enum, uses consecutive values now.

I could not find issues with CUDA, when compiling with Toolkit 4.2 (all sm kernels) and regression files rendered fine on my GPU with sm_21.

9 years agoFixed issue with missed reconstruction error in clip editor header
Sergey Sharybin [Fri, 8 Jun 2012 18:16:20 +0000 (18:16 +0000)]
Fixed issue with missed reconstruction error in clip editor header

Actually was causes by error in RNA bindings which lead to empty reconstruction
returned for cameraObject.reconstruction.

9 years agoFixed issue with non-updating frame in clip editor when toggling undistorted render...
Sergey Sharybin [Fri, 8 Jun 2012 17:16:32 +0000 (17:16 +0000)]
Fixed issue with non-updating frame in clip editor when toggling undistorted render while frame is grayscaled.

Also corrected some typos in movieclip.

9 years agoAdded a default case in switch to avoid paranoid compiler warnings.
Lukas Toenne [Fri, 8 Jun 2012 17:02:02 +0000 (17:02 +0000)]
Added a default case in switch to avoid paranoid compiler warnings.

9 years agoSelecting track channel in tracking dopesheet would make track active,
Sergey Sharybin [Fri, 8 Jun 2012 16:51:38 +0000 (16:51 +0000)]
Selecting track channel in tracking dopesheet would make track active,
just as it happens with curve view.

9 years agoAdded sorting by average reprojection error to motion tracking dopesheet.
Sergey Sharybin [Fri, 8 Jun 2012 16:42:24 +0000 (16:42 +0000)]
Added sorting by average reprojection error to motion tracking dopesheet.

9 years agoParticle Info node for Cycles. This can be used to access particle information in...
Lukas Toenne [Fri, 8 Jun 2012 16:17:57 +0000 (16:17 +0000)]
Particle Info node for Cycles. This can be used to access particle information in material shaders for dupli objects. For now only the particle Age and individual Lifetime (in frames) are supported, more attributes can be added when needed.

The particle data is stored in a separate texture if any of the dupli objects uses particle info nodes in shaders. To map dupli objects onto particles the store an additional particle_index value, which is different from the simple dupli object index (only visible particles, also works for particle dupli groups mode).

Some simple use cases on the blog:

9 years agoUpdate Bullet to version 2.80 (bullet svn revision 2537)
Sergej Reich [Fri, 8 Jun 2012 16:13:01 +0000 (16:13 +0000)]
Update Bullet to version 2.80 (bullet svn revision 2537)

Remove Jamfiles and other unused files that stuck around during previous updates.

Add patches for local changes to the patches directory.

Update readme.txt, it had outdated infromation.

9 years agoDon't show physics properties in game engine conext
Sergej Reich [Fri, 8 Jun 2012 15:24:28 +0000 (15:24 +0000)]
Don't show physics properties in game engine conext

Also rename fluid panels to be more consistent with other simulations

9 years agoFix #31752: Select All By Layer seems not to work when object belongs to several...
Sergey Sharybin [Fri, 8 Jun 2012 15:14:45 +0000 (15:14 +0000)]
Fix #31752: Select All By Layer seems not to work when object belongs to several layers

Added option which changes match policy from exact match and shared layers when
selecting objects by layer.

9 years agoadd listener in action space for mask changes so dopesheet redraws + other minor...
Campbell Barton [Fri, 8 Jun 2012 14:46:17 +0000 (14:46 +0000)]
add listener in action space for mask changes so dopesheet redraws + other minor changes.

9 years agomask animation keys now editable in the dope sheet (duplicate, transform, delete...
Campbell Barton [Fri, 8 Jun 2012 14:31:38 +0000 (14:31 +0000)]
mask animation keys now editable in the dope sheet (duplicate, transform, delete, select- etc).

9 years agoIndex: source/blender/gpu/intern/gpu_draw.c
Antony Riakiotakis [Fri, 8 Jun 2012 13:06:06 +0000 (13:06 +0000)]
Index: source/blender/gpu/intern/gpu_draw.c
--- source/blender/gpu/intern/gpu_draw.c (revision 47568)
+++ source/blender/gpu/intern/gpu_draw.c (working copy)
@@ -230,11 +230,12 @@
  Image *ima, *curima;

  int domipmap, linearmipmap;
+ int texpaint; /* store this so that new images created while texture painting won't be set to mipmapped */

  int alphablend;
  float anisotropic;
  MTFace *lasttface;
-} GTS = {0, 0, 0, 0, 0, 0, 0, 0, NULL, NULL, 1, 0, -1, 1.f, NULL};
+} GTS = {0, 0, 0, 0, 0, 0, 0, 0, NULL, NULL, 1, 0, 0, -1, 1.f, NULL};

 /* Mipmap settings */

@@ -256,7 +257,7 @@

 static int gpu_get_mipmap(void)
- return GTS.domipmap;
+ return GTS.domipmap && !GTS.texpaint;

 static GLenum gpu_get_mipmap_filter(int mag)
@@ -730,6 +731,8 @@
  if (!GTS.domipmap)

+ GTS.texpaint = !mipmap;
  if (mipmap) {
  for (ima=G.main->image.first; ima; ima=ima-> {
  if (ima->bindcode) {

9 years agofix for bug in point slide using freed memory when auto-keying.
Campbell Barton [Fri, 8 Jun 2012 09:57:23 +0000 (09:57 +0000)]
fix for bug in point slide using freed memory when auto-keying.

9 years agosupport for subframe animation evaluation for masks.
Campbell Barton [Fri, 8 Jun 2012 09:35:51 +0000 (09:35 +0000)]
support for subframe animation evaluation for masks.

9 years agofix for own bug - evaluating past the last frame of a mask didnt work at all.
Campbell Barton [Fri, 8 Jun 2012 09:27:40 +0000 (09:27 +0000)]
fix for own bug - evaluating past the last frame of a mask didnt  work at all.