blender.git
5 years agoCode cleanup: use r_ prefix for return args
Campbell Barton [Sat, 15 Mar 2014 16:24:05 +0000 (03:24 +1100)]
Code cleanup: use r_ prefix for return args

5 years agoCode cleanup: Don't assign time 2x, we only need it for Object Motion here.
Thomas Dinges [Sat, 15 Mar 2014 13:22:41 +0000 (14:22 +0100)]
Code cleanup: Don't assign time 2x, we only need it for Object Motion here.

5 years agoCode cleanup: spelling & style
Campbell Barton [Sat, 15 Mar 2014 09:08:29 +0000 (20:08 +1100)]
Code cleanup: spelling & style

5 years agoFix T39189: Node editor Map Uv requires an scale node to work.
Lukas Tönne [Sat, 15 Mar 2014 09:24:07 +0000 (10:24 +0100)]
Fix T39189: Node editor Map Uv requires an scale node to work.

This is a regression caused by rB67134a7bf689279785e2e40b29cd24243813998b
The UV coordinates read from the UV input must be scaled by the Image
input size instead of the UV input size.

Also now this node uses the UV input resolution instead of the Image
resolution, since this is what determines the available resolution. The
image is EWA-sampled anyway, it's resolution does not have a direct
impact.

5 years agoPatch T36209: Use binary search function for evaluating F-Curves
Joshua Leung [Fri, 14 Mar 2014 22:45:14 +0000 (11:45 +1300)]
Patch T36209: Use binary search function for evaluating F-Curves

This provides a speedup to evaluating long F-Curves in fcurve_eval_keyframes()
by using the pre-existing binarysearch_bezt_index() function (used for keyframe
insertion) to find the relevant BezTriple on the FCurve at the current evaltime.
The current code loops over all BezTriples (sometimes not even breaking from the
loop after cvalue has been evaluated).

Reviewer Notes:
- Unlike in the original patch, we use the old/existing logic instead of
  checking that (exact == true). See comments in code and also on the tracker
  entry for this patch for more details.

Patch By: Josh Wedlake

5 years agoUI Tweak: Add a convenience button for switching to Bone Constraints Tab
Joshua Leung [Mon, 10 Mar 2014 03:56:31 +0000 (16:56 +1300)]
UI Tweak: Add a convenience button for switching to Bone Constraints Tab

To reduce user confusion, we were already presenting users with an error message
when they tried to edit constraints for bones from the Object Constraints tab.
This commit just makes things more convenient by adding a button which takes
users to the right tab when clicked.

5 years agoSpelling fix
Joshua Leung [Sun, 9 Mar 2014 06:30:52 +0000 (19:30 +1300)]
Spelling fix

5 years agoFix T39166: Disappearing text objects
Sergey Sharybin [Fri, 14 Mar 2014 11:49:23 +0000 (17:49 +0600)]
Fix T39166: Disappearing text objects

This is a failure of viewport direct displist creation
caused by existing curve_cache pointer which empty content.

Made it so if the curve isn't evaluated it's curve_cache is NULL.

This is just-another-regression to be ported to the release.

5 years agoFix T38897: Problems moving animation channels up and down in dope sheet/action editor.
Bastien Montagne [Fri, 14 Mar 2014 11:45:22 +0000 (12:45 +0100)]
Fix T38897: Problems moving animation channels up and down in dope sheet/action editor.

Basic idea is to check whether an element is visible or not, and ignore those that are hidden, during move up/down.

Reviewers: aligorith

Reviewed By: aligorith

Differential Revision: https://developer.blender.org/D376

5 years agoFix T39180: Particle with fluid physics unstable.
Lukas Tönne [Fri, 14 Mar 2014 10:03:04 +0000 (11:03 +0100)]
Fix T39180: Particle with fluid physics unstable.

Fluid particles use the particle system's bvhtree structure, which is a
runtime BVH tree. This was not reset properly on copying objects/psys,
which lead to concurrent access in threaded depsgraph updates and memory
corruption.

5 years agoFix T39164: Mask tansform doesn't respect parent for center
Sergey Sharybin [Fri, 14 Mar 2014 06:57:42 +0000 (12:57 +0600)]
Fix T39164: Mask tansform doesn't respect parent for center

A regressions since 2.69, eeeh.

5 years agoCMake: fix for standalone player and remove recast modifier reference
Campbell Barton [Fri, 14 Mar 2014 04:56:35 +0000 (15:56 +1100)]
CMake: fix for standalone player and remove recast modifier reference

5 years agoFix Circle picker not liking linear color properties much. Again, visual
Antony Riakiotakis [Fri, 14 Mar 2014 00:30:27 +0000 (02:30 +0200)]
Fix Circle picker not liking linear color properties much. Again, visual
result for picked color was different from what was displayed on color
wheel under the cursor.

5 years agoDisable color picker template cubic parameter by default.
Antony Riakiotakis [Fri, 14 Mar 2014 00:11:34 +0000 (02:11 +0200)]
Disable color picker template cubic parameter by default.

This is mostly useful for precision in lift/gamma/gain nodes. Display of
those values is done with linear interpolation while saturation is
interpolated cubically. This will lead to color inconsistency between
selected and displayed color on color pickers for instance, which should
be avoided on those use cases.

5 years agoBetter fix for T37545.
Antony Riakiotakis [Thu, 13 Mar 2014 23:37:32 +0000 (01:37 +0200)]
Better fix for T37545.

This was supposed to fix inaccuracies between S-H wheel but it makes the
colors selected through the SV-H color cube wrong (see http://
%28SV-H%29-Inaccurate). Instead of deactivating color management for SV
and H widgets just reenable correction for the Hue wheel. This is wrong
because HSV always refers to display space and we -have- to account for
that when using linear color RNA properties.

5 years agoSome corrections to previous commit. Undo stack could return 0 or return
Antony Riakiotakis [Thu, 13 Mar 2014 21:54:18 +0000 (23:54 +0200)]
Some corrections to previous commit. Undo stack could return 0 or return
global undo even if not set in preferences.

5 years agoFix T39156 part 2: Add support for image paint operations in undo
Antony Riakiotakis [Thu, 13 Mar 2014 20:35:26 +0000 (22:35 +0200)]
Fix T39156 part 2: Add support for image paint operations in undo
history operator (Ctrl + Alt + Z).

This will only show paint operations now while in an image paint mode.
The caveat is that user can delete previous paint operations too (even
on images not on the canvas currently) so it needs some care. This is
consistent with regular undo behaviour though.

Sculpting also suffers from lack of Undo history support, this will be
added in a separate commit.

5 years agoFix cycles texture interpolation mode closest constant offset on some devices
Martijn Berger [Thu, 13 Mar 2014 19:08:10 +0000 (20:08 +0100)]
Fix cycles texture interpolation mode closest constant offset on some devices

5 years agoFix bug 1 of T39156: Deadlock while undoing paint operations on image
Antony Riakiotakis [Thu, 13 Mar 2014 17:55:19 +0000 (19:55 +0200)]
Fix bug 1 of T39156: Deadlock while undoing paint operations on image
sequences.

This commit should be included in 2.70 release

5 years agoTypos in last commit, sorry
Jens Verwiebe [Thu, 13 Mar 2014 17:04:58 +0000 (18:04 +0100)]
Typos in last commit, sorry

5 years agoGHOST: cover now both win and osx case for T39153
Jens Verwiebe [Thu, 13 Mar 2014 17:02:50 +0000 (18:02 +0100)]
GHOST: cover now both win and osx case for T39153

5 years agoFix own bug after HSL picker commit. HSV Cube based pickers missed HSV
Antony Riakiotakis [Thu, 13 Mar 2014 16:43:04 +0000 (18:43 +0200)]
Fix own bug after HSL picker commit. HSV Cube based pickers missed HSV
buttons.

5 years agoFix T39158: Help > Operator Cheat Sheet causes a python recursive loop.
Bastien Montagne [Thu, 13 Mar 2014 16:37:19 +0000 (17:37 +0100)]
Fix T39158: Help > Operator Cheat Sheet causes a python recursive loop.

Core issue exists since ages - the thing you get from bpy.types.YOUR_OT_operator is fuzzy, and may change,
due to the fact that both Operator and OperatorProperties share the same name...
Would be cool to get rid of this issue one day, but for now it's safer to use rna acessor...

This commit is to be backported to 2.70.

5 years agoOSX/GHOST: fix T39153, pls check on win minimized window load
Jens Verwiebe [Thu, 13 Mar 2014 16:08:15 +0000 (17:08 +0100)]
OSX/GHOST: fix T39153, pls check on win minimized window load

5 years agoUI: Show edge draw options for duplis, it applied to their instances
Campbell Barton [Thu, 13 Mar 2014 15:13:31 +0000 (02:13 +1100)]
UI: Show edge draw options for duplis, it applied to their instances

5 years agoFix T39146: recent cycles CUDA regression in fix for T39114.
Brecht Van Lommel [Thu, 13 Mar 2014 13:16:42 +0000 (14:16 +0100)]
Fix T39146: recent cycles CUDA regression in fix for T39114.

This commit is to be backported to the 2.70 release.

5 years agoCode cleanup: cmake
Campbell Barton [Thu, 13 Mar 2014 12:31:06 +0000 (23:31 +1100)]
Code cleanup: cmake

5 years agoFreestyle: Fix for a potential implementation error in the Python wrapper of the...
Tamito Kajiyama [Thu, 13 Mar 2014 12:00:59 +0000 (21:00 +0900)]
Freestyle: Fix for a potential implementation error in the Python wrapper of the Nature class.

5 years agoFix T39152: Blender crash when duplicate mesh with hooks and laplacian deform.
Bastien Montagne [Thu, 13 Mar 2014 11:51:20 +0000 (12:51 +0100)]
Fix T39152: Blender crash when duplicate mesh with hooks and laplacian deform.

We can't simply dupalloc cache_system (LaplacianSystem), it has quite a few allocated data we'd need to dupalloc as well,
not to mention (nl) context... Much safer to just set it to NULL in new copy imho!

This commit is to be backported to 2.70 release!

5 years agoCmake: fix compile problem after own commit
Jens Verwiebe [Thu, 13 Mar 2014 10:06:43 +0000 (11:06 +0100)]
Cmake: fix compile problem after own commit

5 years agoFix T39151: Boolean modifier freeze
Sergey Sharybin [Thu, 13 Mar 2014 09:40:55 +0000 (15:40 +0600)]
Fix T39151: Boolean modifier freeze

This re-applied patch from 25cbd13 which was lost at some point
since missing patchset in series.

This revision is to be back-ported to the final release.

5 years agoFix for compilation error since previous fix for XCode
Sergey Sharybin [Thu, 13 Mar 2014 09:28:45 +0000 (15:28 +0600)]
Fix for compilation error since previous fix for XCode

5 years agoBMesh: minor changes for BM_face_split use
Campbell Barton [Thu, 13 Mar 2014 07:40:16 +0000 (18:40 +1100)]
BMesh: minor changes for BM_face_split use

5 years agoFix for possible (unlikely) uninitialized var use in BM_face_split
Campbell Barton [Thu, 13 Mar 2014 07:35:41 +0000 (18:35 +1100)]
Fix for possible (unlikely) uninitialized var use in BM_face_split

5 years agoFix T39148: Image does not show while rendering
Sergey Sharybin [Thu, 13 Mar 2014 07:25:07 +0000 (13:25 +0600)]
Fix T39148: Image does not show while rendering

Own regression since partial buffer update refactor,
display buffer for exr tiles should happen in image
update callback.

This revision is to be merged to the final release.

5 years agoCode cleanup: quiet warning, 'else' would always crash (& never occurred)
Campbell Barton [Thu, 13 Mar 2014 00:59:11 +0000 (11:59 +1100)]
Code cleanup: quiet warning, 'else' would always crash (& never occurred)

also quiet waning clamping

5 years agoFreestyle: avoid checking PyErr_Occurred and quiet warning
Campbell Barton [Thu, 13 Mar 2014 00:54:59 +0000 (11:54 +1100)]
Freestyle: avoid checking PyErr_Occurred and quiet warning

5 years agoOSX/cmake: set DEBUG_INFORMATION_LEVEL to "line-tables-only" for cycles, clang 3...
Jens Verwiebe [Wed, 12 Mar 2014 21:41:35 +0000 (22:41 +0100)]
OSX/cmake: set DEBUG_INFORMATION_LEVEL to "line-tables-only" for cycles, clang 3.4 (xcode 5.1) would not link with RNA in debug else

5 years agoCode cleanup: de-duplicate switch statement, style edits
Campbell Barton [Wed, 12 Mar 2014 19:18:25 +0000 (06:18 +1100)]
Code cleanup: de-duplicate switch statement, style edits

5 years agoAnticipate future color picker types and don't crash (uiBut could be
Antony Riakiotakis [Wed, 12 Mar 2014 19:06:57 +0000 (21:06 +0200)]
Anticipate future color picker types and don't crash (uiBut could be
NULL in some cases)

5 years agoFollowup for fix T38318: Add back previous fix and fix a glitch.
IRIE Shinsuke [Wed, 12 Mar 2014 17:50:01 +0000 (02:50 +0900)]
Followup for fix T38318: Add back previous fix and fix a glitch.

The previous fix 162d6c73e3d0 has been cancelled because it caused a
problem that mesh deform cages and so on mess up the preview. To avoid
the problem, viewport doesn't show mesh object if its draw type is
bounding box or wireframe.

Reviewers: brecht

Reviewed By: brecht

Differential Revision: https://developer.blender.org/D375

5 years agoFix T39114: cycles lamp ray visibility not working.
Brecht Van Lommel [Wed, 12 Mar 2014 17:20:42 +0000 (18:20 +0100)]
Fix T39114: cycles lamp ray visibility not working.

Thanks to Thomas for finding the cause.

5 years agoFix possible (unlikely) use of uninitialized pointer in RNA resolving
Campbell Barton [Wed, 12 Mar 2014 17:17:07 +0000 (04:17 +1100)]
Fix possible (unlikely) use of uninitialized pointer in RNA resolving

5 years agoCode cleanup (tm): Some code deduplication for HSL
Antony Riakiotakis [Wed, 12 Mar 2014 17:12:39 +0000 (19:12 +0200)]
Code cleanup (tm): Some code deduplication for HSL

5 years agoFix T39111: Boolean assert failure on widows
Sergey Sharybin [Wed, 12 Mar 2014 17:10:24 +0000 (23:10 +0600)]
Fix T39111: Boolean assert failure on widows

In fact we had this change a while ago, not sue what happened.

5 years agoHSL color wheel implementation.
Antony Riakiotakis [Wed, 12 Mar 2014 16:58:50 +0000 (18:58 +0200)]
HSL color wheel implementation.

This is a standard Hue - Saturation - Lightness model
(see for instance entry on wikipedia here: https://en.wikipedia.org/wiki/HSL_and_HSV)
Note though the difference between HSV and HSL saturation, which are not the same.

The advantage of having this color selection scheme is that artists can select
shades and tints of a color easily by using the lightness slider. Also colors
are arranged on (approximated) perceived lightness on the color wheel.

Beware, Old files opened with this preference saved will crash!

Reviewers: sergey, brecht, campbellbarton

Differential Revision: https://developer.blender.org/D385

5 years agoMesh API: rename 'octree' to 'spatial' since internally its using kdtree
Campbell Barton [Wed, 12 Mar 2014 14:46:21 +0000 (01:46 +1100)]
Mesh API: rename 'octree' to 'spatial' since internally its using kdtree

5 years agoMesh API: replace octree mirror with kdtree
Campbell Barton [Wed, 12 Mar 2014 14:36:24 +0000 (01:36 +1100)]
Mesh API: replace octree mirror with kdtree

5 years agoOSX/bullet: i have to use -O0 again, else weird bullet behaviour comes back.
Jens Verwiebe [Wed, 12 Mar 2014 12:04:21 +0000 (13:04 +0100)]
OSX/bullet: i have to use -O0 again, else weird bullet behaviour comes back.
I overlooked in cmake my fix same time changed the optimization level to 0,
so not use optimization is the real fix ( postponed for after 2.70 ).
I appears we should investigate scons anyway: compileflags does not apply to c and c++ same time as expected.

5 years agoUI: allow passing "" for icon only enum buttons and still get an icon
Campbell Barton [Wed, 12 Mar 2014 08:24:47 +0000 (19:24 +1100)]
UI: allow passing "" for icon only enum buttons and still get an icon

Enum icon-only buttons were getting their strings set,
then truncated with blenders string shortening methods, then not drawn
because there was no room (since buttons are icon width).

Modify UI code so icon-only buttons don't get names and passing "" to a
button won't have its text set later on.

5 years agoCode cleanup: UI - de-duplicate menu/row/listrow enum logic
Campbell Barton [Wed, 12 Mar 2014 08:11:09 +0000 (19:11 +1100)]
Code cleanup: UI - de-duplicate menu/row/listrow enum logic

5 years agoFix for particle edit mode using wrong pixel distances.
Lukas Tönne [Wed, 12 Mar 2014 10:52:43 +0000 (11:52 +0100)]
Fix for particle edit mode using wrong pixel distances.

rB57dba739176153e052d77611ff0e554f05984686 unified pixel distance values
but omitted a factor 100 for particle edit.

5 years agoFix T39109: Vertices affected by Hook Modifiers change after "switch Direction" on...
Sergey Sharybin [Wed, 12 Mar 2014 09:46:24 +0000 (15:46 +0600)]
Fix T39109: Vertices affected by Hook Modifiers change after "switch Direction" on Curves

Remapping hooks and vertex parent wasn't implemented for curves.

5 years agoFix T39104: 2 clothes on a collision object cause crash
Sergey Sharybin [Wed, 12 Mar 2014 08:48:47 +0000 (14:48 +0600)]
Fix T39104: 2 clothes on a collision object cause crash

This was caused by static variables used in plNearestPoints().

For now solved by making the solvers allocated in the stack,
seems no noticeable affect on the simulation speed so far.

5 years agoFix T39123: Border select without "extend" does nor clear selection of bezier nodes...
Sergey Sharybin [Wed, 12 Mar 2014 08:07:26 +0000 (14:07 +0600)]
Fix T39123: Border select without "extend" does nor clear selection of bezier nodes in 3D view

This is a regression introduced in fbc7ab30f and caused by the wrong object
being passed to the function.

Not sure passing editnurb as an argument is a good thing to do..

5 years agoFix T39126: Convert To: Mesh from Curve/Meta/Surface does not respect "Keep Original"
Sergey Sharybin [Wed, 12 Mar 2014 07:59:45 +0000 (13:59 +0600)]
Fix T39126: Convert To: Mesh from Curve/Meta/Surface does not respect "Keep Original"

Own regression, didn't consider operator redo would leave scene in a non-evaluated state.

5 years agoBMesh: minor optimization, step over own loop in BM_face_exists
Campbell Barton [Wed, 12 Mar 2014 07:21:27 +0000 (18:21 +1100)]
BMesh: minor optimization, step over own loop in BM_face_exists

5 years agoTransform: minor optimization, use BLI_bitmap for island tagging
Campbell Barton [Wed, 12 Mar 2014 06:59:46 +0000 (17:59 +1100)]
Transform: minor optimization, use BLI_bitmap for island tagging

5 years agoTransform: internal change, simplify view angle checks
Campbell Barton [Wed, 12 Mar 2014 06:52:07 +0000 (17:52 +1100)]
Transform: internal change, simplify view angle checks

5 years agoCode cleanup: redundant normalize in bmbvh ray cast
Campbell Barton [Wed, 12 Mar 2014 04:50:18 +0000 (15:50 +1100)]
Code cleanup: redundant normalize in bmbvh ray cast

5 years agoCycles: Disable Branched Path on sm_30 for now, recent Indirect Multi Light addition...
Thomas Dinges [Tue, 11 Mar 2014 22:04:40 +0000 (23:04 +0100)]
Cycles: Disable Branched Path on sm_30 for now, recent Indirect Multi Light addition makes nvcc fail.

5 years agofix compile error on MinGW32
Antony Riakiotakis [Tue, 11 Mar 2014 19:46:12 +0000 (21:46 +0200)]
fix compile error on MinGW32

5 years agoFix T39060: "Choose by numbers" do not work with Enum-menus, but work with operators...
Bastien Montagne [Tue, 11 Mar 2014 20:06:03 +0000 (21:06 +0100)]
Fix T39060: "Choose by numbers" do not work with Enum-menus, but work with operators-menus

The "layer" exception in handling numbers for menus was a bit too much greedy, eating numbers for all RNA props instead of just for layers ones...

5 years agoFix T39033: Regression, duplicating proxy loses proxy
Campbell Barton [Tue, 11 Mar 2014 18:54:12 +0000 (05:54 +1100)]
Fix T39033: Regression, duplicating proxy loses proxy

fix for bug making duplicates real effected copying scenes and linked duplis.

5 years agoOSX/bullet: add -O2 to bt_cxx_flags, in cmake thats default, in scons CXXFLAGS start...
Jens Verwiebe [Tue, 11 Mar 2014 17:32:22 +0000 (18:32 +0100)]
OSX/bullet: add -O2 to bt_cxx_flags, in cmake thats default, in scons CXXFLAGS start empty also in “Release”

5 years agoCMake: add fastmath for gcc release flags (OSX had already)
Campbell Barton [Tue, 11 Mar 2014 16:33:57 +0000 (03:33 +1100)]
CMake: add fastmath for gcc release flags (OSX had already)

5 years agoNDOF: enable orbit sensitivity menuitem outside 3d view
Campbell Barton [Tue, 11 Mar 2014 12:40:11 +0000 (23:40 +1100)]
NDOF: enable orbit sensitivity menuitem outside 3d view

The color picker uses.

5 years agoOSX/bullet: do a last fix for scons. Now in both buildsystems the used flags are...
Jens Verwiebe [Tue, 11 Mar 2014 16:34:20 +0000 (17:34 +0100)]
OSX/bullet: do a last fix for scons. Now in both buildsystems the used flags are in sync for OSX

5 years agoFix for own rB6919ffbf4b2f (we only consider unit scale when we do use a unit system!).
Bastien Montagne [Tue, 11 Mar 2014 15:58:09 +0000 (16:58 +0100)]
Fix for own rB6919ffbf4b2f (we only consider unit scale when we do use a unit system!).

Noted by Campbell, thanks!

5 years agoFix T39112: increment snap does not work in perspective view at 0.01 scale (for scene...
Bastien Montagne [Tue, 11 Mar 2014 15:37:00 +0000 (16:37 +0100)]
Fix T39112: increment snap does not work in perspective view at 0.01 scale (for scene and grid floor)

In case of "floor" grid (i.e. perspective views), unit_scale correction was not applied...

5 years agoFix for missing 'field-of-view angle' property for a panoramic camera.
Tamito Kajiyama [Mon, 10 Mar 2014 10:42:10 +0000 (19:42 +0900)]
Fix for missing 'field-of-view angle' property for a panoramic camera.

5 years agoOSX/cmake: tentative fix for T38746, conflictting flags somewhere
Jens Verwiebe [Tue, 11 Mar 2014 14:56:34 +0000 (15:56 +0100)]
OSX/cmake: tentative fix for T38746, conflictting flags somewhere

5 years agoFix T39028: Quadview views inaccessible with python except bottom right view.
Bastien Montagne [Tue, 11 Mar 2014 14:07:53 +0000 (15:07 +0100)]
Fix T39028: Quadview views inaccessible with python except bottom right view.

Expose all four quadviews in a collection in RNA API.

Note the region returned by old region_quadview property is now region_quadviews[2].

5 years agoFix T39080: copy-to-selected operator fails for pointer properties.
Lukas Tönne [Tue, 11 Mar 2014 13:57:11 +0000 (14:57 +0100)]
Fix T39080: copy-to-selected operator fails for pointer properties.

The copy-to-selected operator for RNA buttons uses paths for copying
object pointer properties. Copying other ID data blocks is deliberately
disabled:
https://developer.blender.org/diffusion/B/browse/master/source/blender/editors/interface/interface_ops.c$274

However, the RNA_path_resolve_full function is not properly working for
retrieving pointer properties: it always will dereference pointer
properties in anticipation of further path elements.

In fact the return value of RNA_path_resolve_full has a conflicting
double meaning. It returns `false` when
* the RNA path is invalid
* any of the pointer properties is NULL

This means that it is not capable of returning pointer properties at all.
To make this possible, there is now an internal function for path
parsing, which returns false //only// if the the path is invalid.
On top of this there are 4 wrapper functions for retrieving either
actual property values (RNA_path_resolve, RNA_path_resolve_full) and for
retrieving pointer+property pairs (RNA_path_resolve_property,
RNA_path_resolve_property_full). The latter 2 variants will **not**
dereference pointer properties at the end of the path, so callers can
actually get the property itself. The `***_full` variants include an
array index return value.

Differential Revision: https://developer.blender.org/D396

5 years agoFix T39029: Blender Internal: Render tiles do not appear until render is finished...
Sergey Sharybin [Tue, 11 Mar 2014 13:55:22 +0000 (19:55 +0600)]
Fix T39029: Blender Internal: Render tiles do not appear until render is finished if Save Buffers enabled

5 years agoNew Corner Pin node: uses explicit corner values for a plane warp transformation.
Lukas Tönne [Tue, 11 Mar 2014 13:07:49 +0000 (14:07 +0100)]
New Corner Pin node: uses explicit corner values for a plane warp transformation.

This was suggested by Christopher Barrett (terrachild). Corner pin is a common feature in compositing.

The corners for the plane warping can be defined by using vector node inputs to allow using perspective plane transformations without having to go via the MovieClip editor tracking data.
Uses the same math as the PlaneTrack node, but without the link to MovieClip and Object.

{F78199}

The code for PlaneTrack operations has been restructured a bit to share it with the CornerPin node.

* PlaneDistortCommonOperation.h/.cpp: Shared generic code for warping images based on 4 plane corners and a perspective matrix generated from these. Contains operation base classes for both the WarpImage and Mask operations.

* PlaneTrackOperation.h/.cpp: Current plane track node operations, based on the common code above. These add pointers to MovieClip and Object which define the track data from wich to read the corners.

* PlaneCornerPinOperation.h/.cpp: New corner pin variant, using explicit input sockets for the plane corners.

One downside of the current compositor design is that there is no concept of invariables (constants) that don't vary over the image space. This has already been an issue for Blur nodes (size input is usually constant except when "variable size" is enabled) and a few others. For the corner pin node it is necessary that the corner input sockets are also invariant. They have to be evaluated for each tile now, otherwise the data is not available. This in turn makes it necessary to make the operation "complex" and request full input buffers, which adds unnecessary overhead.

5 years agoOSX/bullet: Truely fix T38746 now, compile flags where not propagated right,
Jens Verwiebe [Tue, 11 Mar 2014 12:26:51 +0000 (13:26 +0100)]
OSX/bullet: Truely fix T38746 now, compile flags where not propagated right,
also remove gcc 4.6 workaround, i don’t think its needed any longer.
!!! pls check if this would be right thing todo for othere OS too !!!

5 years agoFix T39078: crash increasing hair emission number
Campbell Barton [Tue, 11 Mar 2014 12:04:59 +0000 (23:04 +1100)]
Fix T39078: crash increasing hair emission number

5 years agoFix T39087: Weight Paint, custom color ranges don't update in viewport
Campbell Barton [Tue, 11 Mar 2014 10:19:59 +0000 (21:19 +1100)]
Fix T39087: Weight Paint, custom color ranges don't update in viewport

5 years agoFix T39070: Custom bone shapes appear only one sided
Sergey Sharybin [Tue, 11 Mar 2014 07:08:43 +0000 (13:08 +0600)]
Fix T39070: Custom bone shapes appear only one sided

The idea is simple -- only enable culling for bones if they're not using
custom shape or if culling is enabled in shading panel.

5 years agoFix T39101: Can not select object on backface by clicking when Matcap is on
Sergey Sharybin [Tue, 11 Mar 2014 06:55:53 +0000 (12:55 +0600)]
Fix T39101: Can not select object on backface by clicking when Matcap is on

5 years agoFix T39081: Crash duplicating objects
Campbell Barton [Tue, 11 Mar 2014 06:46:11 +0000 (17:46 +1100)]
Fix T39081: Crash duplicating objects

5 years ago3D Text: textbox selection while in editmode
Campbell Barton [Tue, 11 Mar 2014 06:12:18 +0000 (17:12 +1100)]
3D Text: textbox selection while in editmode

D395 from Henrik Aarnio with some improvements.

5 years agoView3d: take pixelsize into account for selection distance
Campbell Barton [Tue, 11 Mar 2014 04:34:19 +0000 (15:34 +1100)]
View3d: take pixelsize into account for selection distance

5 years agoFix T39083: speakers were evaluated multiple times when used in sets
Campbell Barton [Tue, 11 Mar 2014 03:44:13 +0000 (14:44 +1100)]
Fix T39083: speakers were evaluated multiple times when used in sets

also skip checking all objects for speakers when no speakers are in the
blend file.

5 years agoOSX: fix another kCGLRendererAppleSWID
Jens Verwiebe [Mon, 10 Mar 2014 21:29:08 +0000 (22:29 +0100)]
OSX: fix another kCGLRendererAppleSWID

5 years agoOSX: change a longterm deprecated kcgl constant, could lead to crashes else
Jens Verwiebe [Mon, 10 Mar 2014 21:27:29 +0000 (22:27 +0100)]
OSX: change a longterm deprecated kcgl constant, could lead to crashes else

5 years agoOSX/clang3.4: tentative fix for T38746, strange bullet behaviour
Jens Verwiebe [Mon, 10 Mar 2014 17:09:42 +0000 (18:09 +0100)]
OSX/clang3.4: tentative fix for T38746, strange bullet behaviour

5 years agoFix T39034 brush always shown even after deactivating the show cursor
Antony Riakiotakis [Mon, 10 Mar 2014 16:42:35 +0000 (18:42 +0200)]
Fix T39034 brush always shown even after deactivating the show cursor
option after reentering a paint mode.

Solution by Bastien with modifications, thanks!
Show Brush flag need not be reenabled always, but make sure it is at
least enabled once on paint initialization.

5 years agoMinor cleanup: use rna_ prefix for path_resolve_* functions for
Lukas Tönne [Mon, 10 Mar 2014 11:45:19 +0000 (12:45 +0100)]
Minor cleanup: use rna_ prefix for path_resolve_* functions for
consistency.

5 years agoFix T37293: trying to fix scrubbing not stopping playback
Jörg Müller [Mon, 10 Mar 2014 11:30:50 +0000 (12:30 +0100)]
Fix T37293: trying to fix scrubbing not stopping playback

5 years agoCleanup for RNA_path_resolve_full.
Lukas Tönne [Mon, 10 Mar 2014 11:22:47 +0000 (12:22 +0100)]
Cleanup for RNA_path_resolve_full.

* Moved collection key parsing and array index parsing into their own
functions, to make the main path loop easier to follow.
* Unified boolean return values.

5 years agoFix for proxy colorspace and prefetching
Sergey Sharybin [Mon, 10 Mar 2014 10:46:05 +0000 (16:46 +0600)]
Fix for proxy colorspace and prefetching

5 years agoRevert changes to submodules
Sergey Sharybin [Mon, 10 Mar 2014 09:17:22 +0000 (15:17 +0600)]
Revert changes to submodules

NEVER use `git commit .` or stage submodules. Leave it to platform maintainers!

See [1] where you'll find few hooks which would help you preventing
accidental commit of submodules.

[1] http://wiki.blender.org/index.php/User:Nazg-gul/DevTools#Git_hooks

5 years agoFix for potential bug in copy-to-selected ui button operator: Return
Lukas Tönne [Mon, 10 Mar 2014 08:51:59 +0000 (09:51 +0100)]
Fix for potential bug in copy-to-selected ui button operator: Return
value was mixing operator result with an int/boolean.

5 years agoCycles: Option to Sample all Lights in the Branched Path integrator for indirect...
Thomas Dinges [Sun, 9 Mar 2014 21:19:27 +0000 (22:19 +0100)]
Cycles: Option to Sample all Lights in the Branched Path integrator for indirect samples

This adds a new option "Sample All Lights" to the Sampling panel in Cycles (Branched Path). When enabled, Cycles will sample all the lights in the scene for the indirect samples, instead of randomly picking one. This is already happening for direct samples, now you can optionally enable it for indirect.

Example file and renders:
Blend file: http://www.pasteall.org/blend/27411
Random: http://www.pasteall.org/pic/show.php?id=68033
All: http://www.pasteall.org/pic/show.php?id=68034

Sampling all lights is a bit slower, but there is less variance, so it should help in situations with many lights.

Patch by myself with some tweaks by Brecht.
Differential Revision: https://developer.blender.org/D391

5 years agoMinor code cleanup.
Tamito Kajiyama [Sun, 9 Mar 2014 13:24:33 +0000 (22:24 +0900)]
Minor code cleanup.

5 years agoCode Cleanup for __HAIR__ defines.
Thomas Dinges [Sun, 9 Mar 2014 11:47:26 +0000 (12:47 +0100)]
Code Cleanup for __HAIR__ defines.

5 years agoFix compile error using MSVC2008 + cmake
Daniel Genrich [Sun, 9 Mar 2014 08:55:49 +0000 (09:55 +0100)]
Fix compile error using MSVC2008 + cmake

5 years agoFix T39018: Duplicate entries for material/shader in AnimEditors
Joshua Leung [Sun, 9 Mar 2014 06:23:32 +0000 (19:23 +1300)]
Fix T39018: Duplicate entries for material/shader in AnimEditors

In many BI shader setups, the material which owns the nodetree is often itself
included as a node in that nodetree (i.e. to provide the base colour for that
mesh). This would often result in the material (and its subtree) getting included
in the dopesheet results twice.