blender.git
3 years agoBlender 2.77: Point submodules to an updated hashes v2.77
Sergey Sharybin [Fri, 18 Mar 2016 12:34:06 +0000 (17:34 +0500)]
Blender 2.77: Point submodules to an updated hashes

3 years agoRevert "Fix button display clamping values"
Sergey Sharybin [Fri, 18 Mar 2016 11:45:58 +0000 (16:45 +0500)]
Revert "Fix button display clamping values"

This reverts commit e4e21480d6331903c90ab073746484498441e1ac.

3 years agoBlender 2.77; We are now at release cycle
Sergey Sharybin [Fri, 18 Mar 2016 11:43:43 +0000 (16:43 +0500)]
Blender 2.77; We are now at release cycle

3 years agoSequencer: expose GL preview alpha in scene UI
Campbell Barton [Fri, 18 Mar 2016 09:03:24 +0000 (20:03 +1100)]
Sequencer: expose GL preview alpha in scene UI

While this isn't essential, accessing this setting required navigating to each scene and using render menu.
Expose in sequencer UI for more convenient access.

3 years agoFix T47818: GPencil Sculpt Brush settings update when adjusted using scrollwheel...
Joshua Leung [Wed, 16 Mar 2016 12:12:30 +0000 (01:12 +1300)]
Fix T47818: GPencil Sculpt Brush settings update when adjusted using scrollwheel while sculpting

3 years agoFix T47760: Toggling GPencil's "Selection Mask" via Python does not update UI
Philipp Oeser [Sun, 13 Mar 2016 06:13:50 +0000 (19:13 +1300)]
Fix T47760: Toggling GPencil's "Selection Mask" via Python does not update UI

Add rna updates to greasepencil sculpt properties

D1849 by @lichtwerk, reviewed by @aligorith

3 years agoFix missing 'anim_data' in RNA API of Freestyle's linestyle.
Bastien Montagne [Wed, 16 Mar 2016 19:19:57 +0000 (20:19 +0100)]
Fix missing 'anim_data' in RNA API of Freestyle's linestyle.

Reported by Manuel Rais on ML, thanks.

3 years agoFix T47763: 2.77 RC2 (Fluid) Particle Baking slower compared to 2.67b.
Bastien Montagne [Sat, 12 Mar 2016 08:09:29 +0000 (09:09 +0100)]
Fix T47763: 2.77 RC2 (Fluid) Particle Baking slower compared to 2.67b.

Static schedule was responsible here...

Also, made a minor optimization in case adaptative (auto) subframes are enabled,
gives a few percent of speedup here.

3 years agoFix T47807: Toggle header shortcut doesn't work
Campbell Barton [Wed, 16 Mar 2016 00:33:32 +0000 (11:33 +1100)]
Fix T47807: Toggle header shortcut doesn't work

3 years agoFix T47759: Mesh 'Select less', leaves isolated verts
Campbell Barton [Tue, 15 Mar 2016 03:17:54 +0000 (14:17 +1100)]
Fix T47759: Mesh 'Select less', leaves isolated verts

Select less in mesh edit-mode would leave selected vertices/edges
in edge/face mode which don't support selecting these elements.

3 years agoFix T47784: BMesh.from_object broken keyword args
Campbell Barton [Mon, 14 Mar 2016 13:38:33 +0000 (00:38 +1100)]
Fix T47784: BMesh.from_object broken keyword args

3 years agoFix T47772: Randomize stroke has direction bias
Campbell Barton [Mon, 14 Mar 2016 10:27:56 +0000 (21:27 +1100)]
Fix T47772: Randomize stroke has direction bias

3 years agoFix T47788: Symmetrize flips multi-res data
Campbell Barton [Mon, 14 Mar 2016 03:15:56 +0000 (14:15 +1100)]
Fix T47788: Symmetrize flips multi-res data

Symmetrize was unusable with multi-res data,
add an option for the bmesh operator not to flip the multi-res depth.

3 years agoCorrect UI active state w/ bevel-factor
Campbell Barton [Wed, 9 Mar 2016 08:30:12 +0000 (19:30 +1100)]
Correct UI active state w/ bevel-factor

D1838 by @JacquesLucke

3 years agoFix/workaround T47685: Drag keymap slider fails
Campbell Barton [Wed, 9 Mar 2016 06:33:38 +0000 (17:33 +1100)]
Fix/workaround T47685: Drag keymap slider fails

This is a special case where the UI update function re-creases the keymap we're currently editing.
Making it so dragging values fails.

3 years agoFix crash loading some library blend files
Campbell Barton [Mon, 7 Mar 2016 19:49:37 +0000 (06:49 +1100)]
Fix crash loading some library blend files

Blend files with screen but no scene would crash.

3 years agoFix T47827: Single Channel Preview Error
Campbell Barton [Thu, 17 Mar 2016 12:52:49 +0000 (23:52 +1100)]
Fix T47827: Single Channel Preview Error

Fix by @sergey with own fix for big endian.

3 years agoFix T47787: When performing operation 'Make single user' -> 'obj&data', object could...
Bastien Montagne [Mon, 14 Mar 2016 13:44:11 +0000 (14:44 +0100)]
Fix T47787: When performing operation 'Make single user' -> 'obj&data', object could be removed from group.

Similar cause as in T47482, we used to have poor handling of 'user_one' cases of ID usage,
leading to inconsistent behavior depending on order of operations e.g.

Here, was object used by a group but not linked in any scene - once linked in scene,
their usercount would be 2, leading to 'making single copy', when it's actually not needed.
We now have better control here, so let's use it!

Note that other ID 'make single user' code will likely need similar fix (Images, etc.).

Safe to be backported to 2.77.

3 years agoFix T47785: Rendering Crash, Node Connector Crash, Changing Editors Crash
Sergey Sharybin [Mon, 14 Mar 2016 09:16:04 +0000 (14:16 +0500)]
Fix T47785: Rendering Crash, Node Connector Crash, Changing Editors Crash

Regressions after 2.76, to be backported to 2.77.

3 years agoFix T47773: Particle System with Boids Crash.
Bastien Montagne [Sun, 13 Mar 2016 17:21:30 +0000 (18:21 +0100)]
Fix T47773: Particle System with Boids Crash.

Problem was, during initialization of boids particles in `dynamics_step()`,
psys of target objects was not obtained with generic `psys_get_target_system()`
as later in code, which could lead to some uninitialized `psys->tree` usage...

Think it's safe enough for 2.77, though not a regression.

3 years agoFix bad UI range of convergence distance which was above the hard limit
Sergey Sharybin [Fri, 11 Mar 2016 16:46:40 +0000 (21:46 +0500)]
Fix bad UI range of convergence distance which was above the hard limit

That was rather confusing to slide the value.

Perhaps makesrna can check cases like this?

3 years agoCycles: Do no limit viewport samples to USHRT_MAX when value is at 0.
Thomas Dinges [Fri, 11 Mar 2016 20:33:56 +0000 (21:33 +0100)]
Cycles: Do no limit viewport samples to USHRT_MAX when value is at 0.

We don't limit manually setting higher values, this was probably overlooked here.

Found by @Blendify in IRC.

3 years agoFix crash adding EditNormals modifier to NURBS object (or other types but mesh).
Bastien Montagne [Fri, 11 Mar 2016 14:30:04 +0000 (15:30 +0100)]
Fix crash adding EditNormals modifier to NURBS object (or other types but mesh).

Kinda stupid, but that eModifierTypeFlag_AcceptsCVs could really use a comment alongside
its definition!

Safe to be backported to 2.77.

3 years agoFix T47753: World equirectangular regression
Campbell Barton [Fri, 11 Mar 2016 09:30:26 +0000 (20:30 +1100)]
Fix T47753: World equirectangular regression

D1729 fixed 'View' projection but broke 'Equirectangular'.

This commit also changes equirectangular projection to match Cycles and the viewport.

3 years agoFix T47749: Crash subdividing wire edge w/ mdisps
Campbell Barton [Thu, 10 Mar 2016 23:28:44 +0000 (10:28 +1100)]
Fix T47749: Crash subdividing wire edge w/ mdisps

3 years agoCMake: remove OSX version lookup table
Campbell Barton [Thu, 10 Mar 2016 06:56:07 +0000 (17:56 +1100)]
CMake: remove OSX version lookup table

This assumed the OSX SDK version matched the OSX version, which isn't always true.

Also problematic for maintenance and would make building older Blender versions on OSX fail.

Passing in pre-defined OSX_SYSTEM is also supported,
if you have multiple and want to select one.

3 years agoSkip scopes update for render result during rendering
Sergey Sharybin [Thu, 10 Mar 2016 06:29:45 +0000 (11:29 +0500)]
Skip scopes update for render result during rendering

3 years agoFix T47681: Bump node doesn't work with SSS shader when using OSL
Sergey Sharybin [Mon, 7 Mar 2016 10:31:57 +0000 (15:31 +0500)]
Fix T47681: Bump node doesn't work with SSS shader when using OSL

3 years agoFix T47706: 'CTRL ALT Left Mouse' clicking on the dope sheet summary line crashes...
Julian Eisel [Mon, 7 Mar 2016 10:21:01 +0000 (11:21 +0100)]
Fix T47706: 'CTRL ALT Left Mouse' clicking on the dope sheet summary line crashes Blender

Simple NULL-check seems fine here, working as it should now. Most likely caused by rBc4dc14b079d81.

3 years agoFix T47688: Regression in gl_load
Campbell Barton [Mon, 7 Mar 2016 03:31:45 +0000 (14:31 +1100)]
Fix T47688: Regression in gl_load

Error caused by 771f73b6

3 years agoBMesh: avoid assert dissolving degenerate faces
Campbell Barton [Sun, 6 Mar 2016 06:24:11 +0000 (17:24 +1100)]
BMesh: avoid assert dissolving degenerate faces

For dissolving 2-sided faces, theres no need to check they are valid before removal.

3 years agoBlender 2.77: We are now RC2 v2.77-rc2
Sergey Sharybin [Fri, 4 Mar 2016 17:08:19 +0000 (22:08 +0500)]
Blender 2.77: We are now RC2

3 years agoBlender 2.77: Point translations submodule to updated branch
Sergey Sharybin [Fri, 4 Mar 2016 17:03:16 +0000 (22:03 +0500)]
Blender 2.77: Point translations submodule to updated branch

3 years agoFix typo in 'Vietnamese' language label (must have sneaked in while adding Basque...
Bastien Montagne [Fri, 4 Mar 2016 16:46:39 +0000 (17:46 +0100)]
Fix typo in 'Vietnamese' language label (must have sneaked in while adding Basque one, grr).

3 years agoFix T47683: broken BBox logic when drawing duplis.
Bastien Montagne [Fri, 4 Mar 2016 11:32:35 +0000 (12:32 +0100)]
Fix T47683: broken BBox logic when drawing duplis.

Once a dupli had a valid bbox, that bbox would be used for all following objects
without bbox, instead of skipping clipping check.

Issue unveiled by rB3fa0a1a5bc0ff2, but not related at all (in fact, bug was present before that commit).

3 years agoFix uninitialized memory use lattice-boundbox
Campbell Barton [Fri, 4 Mar 2016 10:50:54 +0000 (21:50 +1100)]
Fix uninitialized memory use lattice-boundbox

Many other places weren't clearing boundbox dirty flag after calculation.

3 years agoCurve/line width change broke outline drawing
Campbell Barton [Fri, 4 Mar 2016 03:43:39 +0000 (14:43 +1100)]
Curve/line width change broke outline drawing

Partially revert e29a5ba6

3 years agoFix T47674: "Change Data/Files" setting incorrect filter
Julian Eisel [Thu, 3 Mar 2016 11:52:53 +0000 (12:52 +0100)]
Fix T47674: "Change Data/Files" setting incorrect filter

Image filter was not set, but only if invoked from toolbar (image strip needs to be selected to see the button).
Caused by rB7fa72b8970, Wasn't aware there's another button for this for image strips.

3 years agoRender Save Buffers: Use proper memory buffer size for a display buffer
Sergey Sharybin [Thu, 3 Mar 2016 08:13:42 +0000 (13:13 +0500)]
Render Save Buffers: Use proper memory buffer size for a display buffer

3 years agoUI: move checkbox for missing add-ons to LHS
Campbell Barton [Thu, 3 Mar 2016 07:50:15 +0000 (18:50 +1100)]
UI: move checkbox for missing add-ons to LHS

3 years agoFix RNA property clamp assigning in Python
Campbell Barton [Thu, 3 Mar 2016 01:33:43 +0000 (12:33 +1100)]
Fix RNA property clamp assigning in Python

On first assignment the value was clamped, but successive assignments weren't.

3 years agoEdit Mesh: Edge tag toggle when no active path is found
Campbell Barton [Tue, 1 Mar 2016 05:33:04 +0000 (16:33 +1100)]
Edit Mesh: Edge tag toggle when no active path is found

User request, this matches 2.6x behavior more closely.

3 years agoPyAPI: correct function name w/ arg parsing
Campbell Barton [Sun, 28 Feb 2016 21:51:27 +0000 (08:51 +1100)]
PyAPI: correct function name w/ arg parsing

3 years agoFix T47676: Broken default values for particle brush strength.
Bastien Montagne [Thu, 3 Mar 2016 14:48:50 +0000 (15:48 +0100)]
Fix T47676: Broken default values for particle brush strength.

Current startup .blend has old (percent?) values for particle brush strength.

Since rBe4e21480d6331903c90ab073746484498441e1ac, UI controls do not clamp automatically values anymore,
which means when you first enable comb (or any other brush) you get a 50 strength, waaaayyyy to powerful.

This commit fixes this in `BLO_update_defaults_startup_blend`, note that it does not fix custom users'
startup files, nothing to do here...

3 years agoFix T47644: crash (use-after-free) regression from rB7a74738914a66e.
Bastien Montagne [Thu, 3 Mar 2016 13:44:05 +0000 (14:44 +0100)]
Fix T47644: crash (use-after-free) regression from rB7a74738914a66e.

Handling `me` data here is not good idea anyway, we override it completly with data
from `tmp` (crash came from freeing already existing bb from me, while pointer still existed in tmp).

(rediscovered it while working on T47676...).

To be backported to 2.77.

3 years agoFix T47564: Unwrapping the same mesh results in different UVs.
Bastien Montagne [Wed, 2 Mar 2016 11:21:53 +0000 (12:21 +0100)]
Fix T47564: Unwrapping the same mesh results in different UVs.

Pointers of faces were passed as face keys during parametrizer's face creation. Since those
addresses were different for every run, the layout of the faces ended up being different
in the internal hash, leading to inconsistent order of their evaluation during LSCM solving,
and slightly different UV maps.

Solved by simply using faces' indices as key instead, which ensures we always get same results
with exact same input data now.

Many thanks to Roman Nagornov (RomanN) for raising the issue, investigating it and finding
the solution! And thanks to Brecht for quick review too.

3 years agoCycles: Fix wrong default value for volume samples
Sergey Sharybin [Wed, 2 Mar 2016 09:53:36 +0000 (14:53 +0500)]
Cycles: Fix wrong default value for volume samples

3 years agoFix assert in UI code
Campbell Barton [Wed, 2 Mar 2016 01:53:55 +0000 (12:53 +1100)]
Fix assert in UI code

Dont attempt to clip empty string

3 years agoFix T47642: Crash baking w/ cycles
Campbell Barton [Wed, 2 Mar 2016 01:32:42 +0000 (12:32 +1100)]
Fix T47642: Crash baking w/ cycles

3 years agoFix T47635: Texture paint performance regression
Campbell Barton [Tue, 1 Mar 2016 19:57:26 +0000 (06:57 +1100)]
Fix T47635: Texture paint performance regression

Flipped bindcode check in D1414 caused projection paint to always do full updates.

3 years agoAdd Basque (Euskara) new language.
Bastien Montagne [Tue, 1 Mar 2016 19:04:49 +0000 (20:04 +0100)]
Add Basque (Euskara) new language.

Nothing critical, but would be nice to backport this to 2.77.

3 years agoFix T47643: Blender crash. Linked speaker issue.
Bastien Montagne [Tue, 1 Mar 2016 17:09:22 +0000 (18:09 +0100)]
Fix T47643: Blender crash. Linked speaker issue.

Speaker's localization func would not make direct-linked its used sound datablock...

3 years agoFix T47638: Bad auto-smooth value for new meshes
Sergey Sharybin [Tue, 1 Mar 2016 11:58:33 +0000 (12:58 +0100)]
Fix T47638: Bad auto-smooth value for new meshes

Code was using degrees as radians.

Still unclear why default cube will have 180 degrees angle, but new meshes 30,
but that's kinda separate topic which is to be addressed separately.

This is a subject for final 2.77 release.

3 years agoFix (unreported) crash when opening a file from splash screen when 'load UI' option...
Bastien Montagne [Tue, 1 Mar 2016 11:40:04 +0000 (12:40 +0100)]
Fix (unreported) crash when opening a file from splash screen when 'load UI' option is disabled.

See rB935e241fa6ea095493 for details of the issue, but first fix caused regression T47632.

So for now handling the issue in a localized way, this is not a real solution (since this could happen
in other cases), but will do for 2.77.

This commit is to be backported to 2.77.

3 years agoFix T47632: Revert "Fix (unreported) crash when opening a file from splash screen...
Bastien Montagne [Tue, 1 Mar 2016 10:47:33 +0000 (11:47 +0100)]
Fix T47632: Revert "Fix (unreported) crash when opening a file from splash screen when 'load UI' option is disabled."

This reverts commit 935e241fa6ea095493ade5d5403c9ac55c18d5ef.

Issue will be fixed in a more localized way for now (not that nice, since this use-after-free can possibly happen
in other places too, but only safe solution for 2.77).

This commit is to be backported in 2.77.

3 years agoFix T47604: Sculpt + Modifier undo gives invalid normals
Campbell Barton [Mon, 29 Feb 2016 09:37:19 +0000 (20:37 +1100)]
Fix T47604: Sculpt + Modifier undo gives invalid normals

3 years agoFix T47615: crash trying to use point density with lamp object.
Brecht Van Lommel [Sun, 28 Feb 2016 21:56:18 +0000 (22:56 +0100)]
Fix T47615: crash trying to use point density with lamp object.

3 years agoCycles: Fix compilation error of certain OpenCL split kernels
Sergey Sharybin [Sun, 28 Feb 2016 15:53:02 +0000 (16:53 +0100)]
Cycles: Fix compilation error of certain OpenCL split kernels

3 years agoFix T47608: Cycles cage baking crash after recent uv derivative fixes.
Brecht Van Lommel [Sat, 27 Feb 2016 22:51:25 +0000 (23:51 +0100)]
Fix T47608: Cycles cage baking crash after recent uv derivative fixes.

3 years agoFix T47605: Elsyiun theme info text hard to read
Campbell Barton [Sat, 27 Feb 2016 20:22:12 +0000 (07:22 +1100)]
Fix T47605: Elsyiun theme info text hard to read

3 years agoFix T47582: Curve handle thickness regression
Campbell Barton [Sat, 27 Feb 2016 19:29:14 +0000 (06:29 +1100)]
Fix T47582: Curve handle thickness regression

3 years agoFix T47586: Nurbs handle thickness regression
Campbell Barton [Sat, 27 Feb 2016 18:57:22 +0000 (05:57 +1100)]
Fix T47586: Nurbs handle thickness regression

3 years agoFix T47583: Mesh wire edge thickness regression
Campbell Barton [Sat, 27 Feb 2016 18:45:46 +0000 (05:45 +1100)]
Fix T47583: Mesh wire edge thickness regression

3 years agoFix T47592: Wrong line width w/ custom-bones
Campbell Barton [Sat, 27 Feb 2016 18:03:49 +0000 (05:03 +1100)]
Fix T47592: Wrong line width w/ custom-bones

3 years agoDocs: early exist build process on error
Campbell Barton [Sat, 27 Feb 2016 17:24:22 +0000 (04:24 +1100)]
Docs: early exist build process on error

Don't attempt to build docs when generation fails.

3 years agoDocs: Add missing context members
Campbell Barton [Sat, 27 Feb 2016 17:23:58 +0000 (04:23 +1100)]
Docs: Add missing context members

3 years agoFix T47596: Bone motion path - confusing UI in 3DView tools.
Bastien Montagne [Sat, 27 Feb 2016 12:17:38 +0000 (13:17 +0100)]
Fix T47596: Bone motion path - confusing UI in 3DView tools.

Now using same UI as in object/armature properties, also save one line in 3DView panesl. ;)

Nothing crucial there, but nice & safe to backport to 2.77 imho.

3 years agoFix T47593: 'Move to layer' will be crash in blender 2.77rc1.
Bastien Montagne [Sat, 27 Feb 2016 10:30:23 +0000 (11:30 +0100)]
Fix T47593: 'Move to layer' will be crash in blender 2.77rc1.

To be backported to 2.77.

3 years agoFix: "Twist" GP Sculpt brush in 2D Editors was unusable... now mostly usable, if... v2.77-rc1
Joshua Leung [Fri, 26 Feb 2016 12:11:37 +0000 (01:11 +1300)]
Fix: "Twist" GP Sculpt brush in 2D Editors was unusable... now mostly usable, if still slightly offset

3 years agoFix: "Twist" GP Sculpt brush didn't work well in 3D View
Joshua Leung [Fri, 26 Feb 2016 11:26:17 +0000 (00:26 +1300)]
Fix: "Twist" GP Sculpt brush didn't work well in 3D View

3 years ago2.77 splash
Campbell Barton [Fri, 26 Feb 2016 11:40:22 +0000 (22:40 +1100)]
2.77 splash

by Pokedstudio

3 years agoBlender 2.77 release: Point submodules to a release branches
Sergey Sharybin [Fri, 26 Feb 2016 11:12:11 +0000 (12:12 +0100)]
Blender 2.77 release: Point submodules to a release branches

3 years agoBlender 2.77 release: Bump subversion and go into RC cycle now
Sergey Sharybin [Fri, 26 Feb 2016 10:15:23 +0000 (11:15 +0100)]
Blender 2.77 release: Bump subversion and go into RC cycle now

Splash and RC1 AHOY are incoming.

3 years agoCode reshuffling to prevent problems like the previous commit happening again
Joshua Leung [Fri, 26 Feb 2016 02:39:02 +0000 (15:39 +1300)]
Code reshuffling to prevent problems like the previous commit happening again

3 years agoFix T47503 - My previous fix for T47472 accidentally reused an unrelated flag
Joshua Leung [Fri, 26 Feb 2016 02:34:32 +0000 (15:34 +1300)]
Fix T47503 - My previous fix for T47472 accidentally reused an unrelated flag

ked->iterflags actually already had an enum defined, but at the time of the previous
fix, I'd forgotten that it was defined. As a result, "f1 needs NLA remap" got given
the same flag as "include handles when doing keyframe selection checks".

3 years agoCode Cleanup - Fix comments
Joshua Leung [Fri, 26 Feb 2016 01:39:50 +0000 (14:39 +1300)]
Code Cleanup - Fix comments

3 years agoRestore ability to clear motionpaths from selected objects/bones only
Joshua Leung [Thu, 25 Feb 2016 12:07:26 +0000 (01:07 +1300)]
Restore ability to clear motionpaths from selected objects/bones only

In response to user feedback, this commit brings back the ability to
limit motionpath clearing to only happening for those on selected
objects/bones.

By default, the "Clear" operator will clear from all objects/bones,
unless the Shift key is held.

3 years agoCMake: show error on missing LIBDIR early on
Campbell Barton [Fri, 26 Feb 2016 02:42:56 +0000 (13:42 +1100)]
CMake: show error on missing LIBDIR early on

Previously CMake would show many messages about missing libs before checking for a missing LIBDIR.
Now show the error immediately and exit.

Also allow for custom LIBDIR on OSX.

3 years agoUI: Add 'Copy Python Command' to menu
Campbell Barton [Fri, 26 Feb 2016 00:57:35 +0000 (11:57 +1100)]
UI: Add 'Copy Python Command' to menu

This feature wasn't exposed anywhere in the interface.

3 years agoUI: improve cursor mapping for int buttons
Campbell Barton [Fri, 26 Feb 2016 00:13:32 +0000 (11:13 +1100)]
UI: improve cursor mapping for int buttons

With continuous grab disabled, non-linear mapping for int buttons
wasn't working usefully with small mouse movements.

Now 2x pixels motion adjusts by at least 1 w/ int buttons.

3 years agoFix T47015: BGE, objects vanish aligning to vector
Campbell Barton [Thu, 25 Feb 2016 22:12:13 +0000 (09:12 +1100)]
Fix T47015: BGE, objects vanish aligning to vector

1811 by @mangostaniko

Fixes regression since moving to floats.

3 years agoFix T47559: Crash when scrubbing in time on a OpenVDB Smoke.
Kévin Dietrich [Thu, 25 Feb 2016 21:44:16 +0000 (22:44 +0100)]
Fix T47559: Crash when scrubbing in time on a OpenVDB Smoke.

Cache reading was not using the right simulation flags (outdated), which
made it lookup non-existent grids, and crash on de-referencing null
pointers.

3 years agoFix for object align not using local view cursor
Campbell Barton [Thu, 25 Feb 2016 21:20:56 +0000 (08:20 +1100)]
Fix for object align not using local view cursor

3 years agoFix T47565: Crash when adding texture node in compositor
Sergey Sharybin [Thu, 25 Feb 2016 19:01:31 +0000 (20:01 +0100)]
Fix T47565: Crash when adding texture node in compositor

3 years ago3D View: correct menu for moving out of local-view
Campbell Barton [Thu, 25 Feb 2016 09:36:06 +0000 (20:36 +1100)]
3D View: correct menu for moving out of local-view

Also name more clearly

3 years agoCleanup: de-duplicate curve menu
Campbell Barton [Thu, 25 Feb 2016 00:54:30 +0000 (11:54 +1100)]
Cleanup: de-duplicate curve menu

3 years agoCleanup: const args for curve handle calculation
Campbell Barton [Thu, 25 Feb 2016 00:02:46 +0000 (11:02 +1100)]
Cleanup: const args for curve handle calculation

3 years agoCleanup: use defines for handles
Campbell Barton [Wed, 24 Feb 2016 23:44:34 +0000 (10:44 +1100)]
Cleanup: use defines for handles

Copied from original function.

3 years agoCorrect comments
Campbell Barton [Wed, 24 Feb 2016 23:37:22 +0000 (10:37 +1100)]
Correct comments

3 years agoCMake: check for minimum MSVC version
Campbell Barton [Wed, 24 Feb 2016 20:31:44 +0000 (07:31 +1100)]
CMake: check for minimum MSVC version

Needed since older versions are unsupported (giving cryptic errors).

3 years agoRemove paste-from-file from menu
Campbell Barton [Wed, 24 Feb 2016 18:47:59 +0000 (05:47 +1100)]
Remove paste-from-file from menu

Operator no longer exists.

3 years agoUI: Use zoom in/out icons for curves
Campbell Barton [Wed, 24 Feb 2016 18:49:25 +0000 (05:49 +1100)]
UI: Use zoom in/out icons for curves

Was confusing since zoom icons were used for add/remove elsewhere (color-ramp & presets).

3 years agoLink windows builds against Blosc when OpenVDB is enabled
Sergey Sharybin [Wed, 24 Feb 2016 14:50:08 +0000 (15:50 +0100)]
Link windows builds against Blosc when OpenVDB is enabled

OpenVDB is compiled with Blosc support, meaning we should pass Blosc to
a linker now.

Unfortunately, the Blosc has compiled-in crt and pthread library, which
still screws up linking.

3 years agoFix race condition in point density texture min/max code
Sergey Sharybin [Wed, 24 Feb 2016 13:28:35 +0000 (14:28 +0100)]
Fix race condition in point density texture min/max code

3 years agoCycles: Fix bug in CMJ pattern when number of samples is 1
Sergey Sharybin [Wed, 24 Feb 2016 13:23:45 +0000 (14:23 +0100)]
Cycles: Fix bug in CMJ pattern when number of samples is 1

It was wrongly considering 1 is a power of 2. While it is a correct thing
(1 == 2^0) it's not what the math in some later formulas expects.

3 years agoFix memory leak in panel category update
Kévin Dietrich [Tue, 23 Feb 2016 18:48:33 +0000 (05:48 +1100)]
Fix memory leak in panel category update

3 years agoUI: expose soft limits to custom-property editor
Campbell Barton [Tue, 23 Feb 2016 15:53:11 +0000 (02:53 +1100)]
UI: expose soft limits to custom-property editor

Internally custom-id-properties used soft-limits, but there was no way to edit these.

3 years agoFix (unreported) crash when opening a file from splash screen when 'load UI' option...
Bastien Montagne [Tue, 23 Feb 2016 15:19:59 +0000 (16:19 +0100)]
Fix (unreported) crash when opening a file from splash screen when 'load UI' option is disabled.

Took me some time to figure out what was going on here... Was again that delayed button
callback stuff (`ui_apply_but_funcs_after()`), first calling button op, and then
its callback func.

Issue was that 'open file' op (through call to `WM_file_read()`) would clear
the splash screen (as more or less the entire 'dynamic' UI), but callback func of that splash
(`wm_block_splash_refreshmenu()`) would still try to access that freed menu's region.

So, root of the issue seems to be that setting context's wm/win/etc. would not clear
context's menu pointer (while clearing all other 'sub' pointers). I could not find
nor imagine any case where this behavior could be desired, so simply added nullification
of that pointer when setting context's wm/win/etc.

Note that crash was due to read-after-free, infuriating debug builds with asan,
but seems like release builds never actually crashed on it.

3 years agoFix T47444: Texture node in compositing nodes does not update
Sergey Sharybin [Tue, 23 Feb 2016 14:26:05 +0000 (15:26 +0100)]
Fix T47444: Texture node in compositing nodes does not update

3 years agobplayer compile fix (c)
Bastien Montagne [Tue, 23 Feb 2016 13:48:27 +0000 (14:48 +0100)]
bplayer compile fix (c)