4 years agoCorrection to last fix
Campbell Barton [Wed, 23 Aug 2017 15:05:20 +0000 (01:05 +1000)]
Correction to last fix

4 years agoFix T52490: NDOF orbit doesn't lock in ortho view
Campbell Barton [Wed, 23 Aug 2017 14:47:47 +0000 (00:47 +1000)]
Fix T52490: NDOF orbit doesn't lock in ortho view

Regression in af3f7db caused by own fix for T51324

4 years agoFix bplayer (c)
Bastien Montagne [Wed, 23 Aug 2017 14:43:10 +0000 (16:43 +0200)]
Fix bplayer (c)

4 years agoFix T52396: Crash loading template w/o config dir
Campbell Barton [Wed, 23 Aug 2017 12:06:42 +0000 (22:06 +1000)]
Fix T52396: Crash loading template w/o config dir

4 years agoCycles: Add maximum depth stat to bvh builder
Mai Lavelle [Wed, 23 Aug 2017 04:40:35 +0000 (00:40 -0400)]
Cycles: Add maximum depth stat to bvh builder

4 years agoFix implementation of atomic update max and move to a central location
Mai Lavelle [Wed, 23 Aug 2017 04:40:04 +0000 (00:40 -0400)]
Fix implementation of atomic update max and move to a central location

While unlikely to have had any serious effects because of limited use, the
previous implementation was not actually atomic due to a data race and
incorrectly coded CAS loop. We also had duplicates of this code in a few
places, it's now been moved to a single location with all other atomic

4 years agoFix T51805: Overlapping volumes renders incorrect on AMD GPU
Sergey Sharybin [Wed, 23 Aug 2017 10:32:48 +0000 (12:32 +0200)]
Fix T51805: Overlapping volumes renders incorrect on AMD GPU

We need to make sure we can store all volume closures for all objects in volume
stack. This is a bit tricky to detect what would be the "nestness" level of
volumes so for now use maximum possible stack depth. Might cause some slowdown,
but better to give reliable render output than to fail quickly.

Should be safe for 2.79 after extra eyes.

4 years agoCleanup: mark VA_NARGS_COUNT as public
Campbell Barton [Wed, 23 Aug 2017 10:04:26 +0000 (20:04 +1000)]
Cleanup: mark VA_NARGS_COUNT as public

Was already used in two other headers, remove underscore prefix.

4 years agoCleanup: move variadic defines to their own header
Campbell Barton [Wed, 23 Aug 2017 10:00:48 +0000 (20:00 +1000)]
Cleanup: move variadic defines to their own header

So we can use in headers without pulling in many other defines.

4 years agoFix T52218: Missing update when reconnecting node
Sergey Sharybin [Wed, 23 Aug 2017 09:47:47 +0000 (11:47 +0200)]
Fix T52218: Missing update when reconnecting node

If node was connected to output, we tag tree for update no matter where
the node was re-plugged to.

Should be safe for 2.79.

4 years agoRNA: use string-join to simplify operator register
Campbell Barton [Wed, 23 Aug 2017 08:17:42 +0000 (18:17 +1000)]
RNA: use string-join to simplify operator register

Also sanity check macro-operator ID's.

4 years agoBLI_string_utils: string joining utility functions
Campbell Barton [Wed, 23 Aug 2017 08:16:46 +0000 (18:16 +1000)]
BLI_string_utils: string joining utility functions

Includes a version that takes a separator and macros for convenience.

4 years agoPyAPI: avoid instantiating args twice in macro
Campbell Barton [Wed, 23 Aug 2017 08:44:58 +0000 (18:44 +1000)]
PyAPI: avoid instantiating args twice in macro

Would cause problems if args included function calls.

4 years agoCleanup: remove space from filenames
Campbell Barton [Wed, 23 Aug 2017 05:50:44 +0000 (15:50 +1000)]
Cleanup: remove space from filenames

4 years agoTests: fix incorrect check for hidden dir
Campbell Barton [Wed, 23 Aug 2017 05:36:39 +0000 (15:36 +1000)]
Tests: fix incorrect check for hidden dir

Copy-pasted mistake in tests and tools.

4 years agoRNA: report error on struct naming collision
Campbell Barton [Wed, 23 Aug 2017 04:59:14 +0000 (14:59 +1000)]
RNA: report error on struct naming collision

Fixes T52463, error instead of crash.

4 years agoRNA: keep structs_map valid w/ ID duplicate & free
Campbell Barton [Wed, 23 Aug 2017 04:14:55 +0000 (14:14 +1000)]
RNA: keep structs_map valid w/ ID duplicate & free

4 years agoGHash: BLI_ghash_reinsert_key utility function
Campbell Barton [Wed, 23 Aug 2017 02:43:05 +0000 (12:43 +1000)]
GHash: BLI_ghash_reinsert_key utility function

Useful when ghash keys are reallocated.

4 years agoFix T52466: Silence search for button_context menu type.
Thomas Beck [Tue, 22 Aug 2017 19:33:58 +0000 (21:33 +0200)]
Fix T52466: Silence search for button_context menu type.

We were showing "search for unknown menutype WM_MT_button_context" messages in terminal which were not helpful for users, so now they are disabled.

To be backported to 2.79

4 years agoFix error in PointerProperty argument list
Campbell Barton [Tue, 22 Aug 2017 16:14:33 +0000 (02:14 +1000)]
Fix error in PointerProperty argument list

Regression in a7b3047

4 years agoFix T52483: Fill is incorrect for interpolated strokes
Antonio Vazquez [Tue, 22 Aug 2017 15:42:53 +0000 (17:42 +0200)]
Fix T52483: Fill is incorrect for interpolated strokes

The recalc flag must be enabled for new interpolated strokes.

4 years agoFix T52209: New Depsgraph - animated follow curve constraint sometimes freaks out...
Sergey Sharybin [Tue, 22 Aug 2017 14:27:33 +0000 (16:27 +0200)]
Fix T52209: New Depsgraph - animated follow curve constraint sometimes freaks out when the curve has a parent

4 years agoDepsgraph: Cleanup, make code friendlier to be edited in columns
Sergey Sharybin [Tue, 22 Aug 2017 14:24:58 +0000 (16:24 +0200)]
Depsgraph: Cleanup, make code friendlier to be edited in columns

4 years agoDepsgraph: Remove placeholder for path evaluation
Sergey Sharybin [Tue, 22 Aug 2017 14:10:52 +0000 (16:10 +0200)]
Depsgraph: Remove placeholder for path evaluation

Wasn't used in years, if it really needs to be dedicated operation it needs to
be revisited anyway.

4 years agoFix threading conflict when doing Cycles background render
Sergey Sharybin [Tue, 22 Aug 2017 13:50:05 +0000 (15:50 +0200)]
Fix threading conflict when doing Cycles background render

It is possible to have same image used multiple times at different frames,
which means we can not free it's buffers without any guard. From quick tests
this seems to be doing what it is supposed to.

Need more testing and port this to 2.79.

4 years agoFix T52454: Crash in DEG_graph_on_visible_update when activating scene layer
Sergey Sharybin [Tue, 22 Aug 2017 10:52:28 +0000 (12:52 +0200)]
Fix T52454: Crash in DEG_graph_on_visible_update when activating scene layer

Most likely needs in 2.79 final release.

4 years agoPyAPI: replace PyC_FromArray with typed functions
Campbell Barton [Tue, 22 Aug 2017 08:02:58 +0000 (18:02 +1000)]
PyAPI: replace PyC_FromArray with typed functions

This was meant to be generic but introduced possible type errors
and unnecessary complication.
Replace with typed PyC_Tuple_PackArray_* functions.

Also add PyC_Tuple_Pack_* macro which replaces some uses of
Py_BuildValue, with the advantage of not having to parse a string.

4 years agoFix panorama render crash with split kernel, due to incorrect buffer pointer.
Brecht Van Lommel [Mon, 21 Aug 2017 20:50:24 +0000 (22:50 +0200)]
Fix panorama render crash with split kernel, due to incorrect buffer pointer.

Also some refactoring to clarify variable usage scope.

4 years agoCycles: reorganize Performance panel layout, move viewport BVH type to debug.
Brecht Van Lommel [Mon, 21 Aug 2017 13:09:03 +0000 (15:09 +0200)]
Cycles: reorganize Performance panel layout, move viewport BVH type to debug.

4 years agoFix for recent fix in fc890cd, cstdint is c++11 only so don't use it yet.
Brecht Van Lommel [Mon, 21 Aug 2017 17:03:32 +0000 (19:03 +0200)]
Fix for recent fix in fc890cd, cstdint is c++11 only so don't use it yet.

4 years agoFix T52479: Regression: Motion Tracking no longer works
Sergey Sharybin [Mon, 21 Aug 2017 15:23:42 +0000 (17:23 +0200)]
Fix T52479: Regression: Motion Tracking no longer works

4 years agoCleanup: uneven/double indentation
Campbell Barton [Mon, 21 Aug 2017 05:37:38 +0000 (15:37 +1000)]
Cleanup: uneven/double indentation

4 years agoModify menu from last commit
Campbell Barton [Mon, 21 Aug 2017 05:24:40 +0000 (15:24 +1000)]
Modify menu from last commit

Also correct tool-tip.

4 years agoFix T52434: Restore mesh center of mass calculation
Campbell Barton [Mon, 21 Aug 2017 05:06:07 +0000 (15:06 +1000)]
Fix T52434: Restore mesh center of mass calculation

The new method while improved for solid objects
doesn't work for non-manifold meshes, keep both.

4 years agoCycles: attempt to recover from crashing CUDA/OpenCL drivers on Windows.
Brecht Van Lommel [Sun, 20 Aug 2017 20:44:17 +0000 (22:44 +0200)]
Cycles: attempt to recover from crashing CUDA/OpenCL drivers on Windows.

I don't know if this will actually work, needs testing. Ref T52064.

4 years agoFix Windows build error after recent Python changes in a10a7f42.
Brecht Van Lommel [Sun, 20 Aug 2017 21:12:59 +0000 (23:12 +0200)]
Fix Windows build error after recent Python changes in a10a7f42.

4 years agoFix T52473: blender internal Fresnel and Layer Weight only work with linked normal.
Brecht Van Lommel [Sun, 20 Aug 2017 22:05:07 +0000 (00:05 +0200)]
Fix T52473: blender internal Fresnel and Layer Weight only work with linked normal.

Please backport this to 2.79.

4 years agoRevert "Cycles: remove square samples option."
Brecht Van Lommel [Sun, 20 Aug 2017 21:46:05 +0000 (23:46 +0200)]
Revert "Cycles: remove square samples option."

This reverts commit 757c24b6bceaeeae95f743b72b6a7040880a0ebf.

We'll revisit this when doing deeper sampling changes.

4 years agoFix T52470: cycles OpenCL hair rendering not working after recent changes.
Brecht Van Lommel [Sun, 20 Aug 2017 21:16:25 +0000 (23:16 +0200)]
Fix T52470: cycles OpenCL hair rendering not working after recent changes.

4 years agoCode cleanup: deduplicate some bsdf node methods.
Brecht Van Lommel [Sun, 20 Aug 2017 15:36:16 +0000 (17:36 +0200)]
Code cleanup: deduplicate some bsdf node methods.

4 years agoFix T52439: Crash after adjusting lenght of hair particles.
Bastien Montagne [Sun, 20 Aug 2017 15:16:58 +0000 (17:16 +0200)]
Fix T52439: Crash after adjusting lenght of hair particles.

Regression from rBfed853ea78221, calling this inside thread worker was
not really good idea anyway, and we already have all the code we need in
pre-threading init function, was just disabled for vertex particles

To be backported to 2.79.

4 years agoCycles: support baking normals plugged into BSDFs, averaged with closure weight.
Brecht Van Lommel [Sun, 20 Aug 2017 01:25:13 +0000 (03:25 +0200)]
Cycles: support baking normals plugged into BSDFs, averaged with closure weight.

4 years agoCode cleanup: remove copy of shader graph for bump, no longer needed.
Brecht Van Lommel [Sun, 20 Aug 2017 12:02:16 +0000 (14:02 +0200)]
Code cleanup: remove copy of shader graph for bump, no longer needed.

4 years agoReplace BLI_INLINE w/ Py_LOCAL_INLINE for Python
Campbell Barton [Sun, 20 Aug 2017 11:14:33 +0000 (21:14 +1000)]
Replace BLI_INLINE w/ Py_LOCAL_INLINE for Python

Recent inclusion caused build error with the BGE.

4 years agoFix bpy library load: invalid function signature
Campbell Barton [Sun, 20 Aug 2017 09:04:16 +0000 (19:04 +1000)]
Fix bpy library load: invalid function signature

4 years agoPyAPI: Make use of PyC_LongAs... API
Campbell Barton [Sun, 20 Aug 2017 05:44:54 +0000 (15:44 +1000)]
PyAPI: Make use of PyC_LongAs... API

Avoids setting exceptions inline,
also use Matrix_ParseAny for bmesh.ops.

Some inline exceptions are kept because they show useful details.

4 years agoPyAPI: Integer conversion functions
Campbell Barton [Sun, 20 Aug 2017 05:39:08 +0000 (15:39 +1000)]
PyAPI: Integer conversion functions

Python's C-API doesn't provide functions to get
int's at specific integer sizes.

Leaving the caller to check for overflow,
which ended up being ignored in practice.

Add API functions that convert int/uint 8/16/32/64, also bool.
Raising overflow exception for unsupported ranges.

4 years agoPyAPI: avoid redundant PyLong_AsLong call
Campbell Barton [Sun, 20 Aug 2017 05:28:06 +0000 (15:28 +1000)]
PyAPI: avoid redundant PyLong_AsLong call

Assigning to an RNA array converted from Python to C twice.

4 years ago[windows/make.bat] add option to automatically download libs.
Ray Molenkamp [Sat, 19 Aug 2017 18:00:30 +0000 (12:00 -0600)]
[windows/make.bat] add option to automatically download libs.

The thing that most often still goes wrong for new users building blender on windows is checking out the libraries, some skip over the wiki, some check out to the wrong folder, in an effort to reduce the time i spend on this, I added detection of svn and misisng libs to make.bat .

When the user has svn installed, and the libdir is missing he'll be asked if he wants to download them

if svn is not installed, or the user chooses 'no' the current error message is shown.

Reviewers: Blendify, sergey, juicyfruit

Reviewed By: sergey

Differential Revision:

4 years agoFix T52452: OSL trace broken after shadow catcher recent changes.
Brecht Van Lommel [Sat, 19 Aug 2017 13:42:43 +0000 (15:42 +0200)]
Fix T52452: OSL trace broken after shadow catcher recent changes.

We should only early out with any hit in BVH traversal if the only visibility
bits used are opaque shadow. Not when opaque shadow is one of multiple bits.

4 years agoCycles tests: pass Blender custom arguments from CYCLESTEST_ARGS.
Brecht Van Lommel [Sat, 19 Aug 2017 10:09:28 +0000 (12:09 +0200)]
Cycles tests: pass Blender custom arguments from CYCLESTEST_ARGS.

This is useful for testing with different devices, split kernel, OSL,
impact of integrator settings, etc.

4 years agoCode cleanup: move rng into path state.
Brecht Van Lommel [Sat, 19 Aug 2017 02:11:25 +0000 (04:11 +0200)]
Code cleanup: move rng into path state.

Also pass by value and don't write back now that it is just a hash for seeding
and no longer an LCG state. Together this makes CUDA a tiny bit faster in my
tests, but mainly simplifies code.

4 years agoPyAPI: expose matrix parsing function
Campbell Barton [Sat, 19 Aug 2017 11:36:50 +0000 (21:36 +1000)]
PyAPI: expose matrix parsing function

4 years agoFix T52443: Cycles OpenCL build error after recent mesh lights changes.
Brecht Van Lommel [Fri, 18 Aug 2017 21:50:54 +0000 (23:50 +0200)]
Fix T52443: Cycles OpenCL build error after recent mesh lights changes.

4 years agoCycles tests: add light type tests.
Brecht Van Lommel [Fri, 18 Aug 2017 15:09:12 +0000 (17:09 +0200)]
Cycles tests: add light type tests.

4 years agoCycles tests: make page less wide, use relative URLs for serving through http.
Brecht Van Lommel [Thu, 17 Aug 2017 22:37:45 +0000 (00:37 +0200)]
Cycles tests: make page less wide, use relative URLs for serving through http.

4 years agoPyAPI: Fix memory leak w/ empty, allocated enums
Campbell Barton [Fri, 18 Aug 2017 08:29:27 +0000 (18:29 +1000)]
PyAPI: Fix memory leak w/ empty, allocated enums

4 years agoFix leak in Python BGE filter & image types
Campbell Barton [Thu, 17 Aug 2017 14:52:45 +0000 (00:52 +1000)]
Fix leak in Python BGE filter & image types

4 years agoCycles: Fix for a division by zero that could happen with solid angle triangle light...
Stefan Werner [Thu, 17 Aug 2017 13:05:48 +0000 (15:05 +0200)]
Cycles: Fix for a division by zero that could happen with solid angle triangle light sampling

4 years agoFix T52401: "Export Keying Set" operator generated incorrect ID's for shapekeys
Joshua Leung [Thu, 17 Aug 2017 13:03:28 +0000 (01:03 +1200)]
Fix T52401: "Export Keying Set" operator generated incorrect ID's for shapekeys

To be backported.

4 years agoImproved triangle sampling for mesh lights
Stefan Werner [Thu, 17 Aug 2017 10:44:09 +0000 (12:44 +0200)]
Improved triangle sampling for mesh lights

This implements Arvo's "Stratified sampling of spherical triangles". Similar to how we sample rectangular area lights, this is sampling triangles over their solid angle. It does significantly improve sampling close to the triangle, but doesn't do much for more distant triangles. So I added a simple heuristic to switch between the two methods. Unfortunately, I expect this to add render time in any case, even when it does not make any difference whatsoever. It'll take some benchmarking with various scenes and hardware to estimate how severe the impact is and if it is worth the change.

Reviewers: #cycles, brecht

Reviewed By: #cycles, brecht

Subscribers: Vega-core, brecht, SteffenD

Tags: #cycles

Differential Revision:

4 years agoCycles: Calculate correct remaining time when using a larger pixel size
Lukas Stockner [Wed, 16 Aug 2017 23:58:48 +0000 (01:58 +0200)]
Cycles: Calculate correct remaining time when using a larger pixel size

4 years agoRemove unnecessary #include "ED_transform.h"
mano-wii [Wed, 16 Aug 2017 22:08:52 +0000 (19:08 -0300)]
Remove unnecessary #include "ED_transform.h"

4 years agoTransform: remove unused function
mano-wii [Wed, 16 Aug 2017 21:55:55 +0000 (18:55 -0300)]
Transform: remove unused function

4 years agoTransform: Move enum `SnapSelect` to `ED_transform_snap_object_context`
mano-wii [Wed, 16 Aug 2017 17:16:30 +0000 (14:16 -0300)]
Transform: Move enum `SnapSelect` to `ED_transform_snap_object_context`

4 years agoSupport MSVSC 2017 15.3.0 (compiler 19.11)
Antonioya [Wed, 16 Aug 2017 13:58:09 +0000 (15:58 +0200)]
Support MSVSC 2017 15.3.0 (compiler 19.11)

The compiler version has changed in the last VS2017 update to 1911 and the old 1910 version is not working anymore.

4 years agoFix T52414: Blender 2.79 crash on object duplication via menu.
Bastien Montagne [Wed, 16 Aug 2017 08:49:02 +0000 (10:49 +0200)]
Fix T52414: Blender 2.79 crash on object duplication via menu.

Caused by own recent changes in handling of verts/edges/etc. arrays storage
for raycasting (rBe324172d9ca6690e8).

Issue was actually even weirder - there is absolutely no reason at all to
release DM here, those finaldm are stored in Object or EditMesh structs and
handled by general update system, other code shall never try to release them!

4 years agomacOS build: simplify python install for new 10.9 libraries.
Brecht Van Lommel [Tue, 15 Aug 2017 13:47:48 +0000 (15:47 +0200)]
macOS build: simplify python install for new 10.9 libraries.

We stop using the .zip file and just have all files now in
lib/darwin/python/lib, along with numpy, numpy headers and requests.
This makes it consistent with Linux and simplifies code.

For old libraries the .zip stays, code for that gets removed when we
fully switch to new libraries.

4 years agoFix Cycles presets after recent removal of some settings.
Brecht Van Lommel [Mon, 14 Aug 2017 10:27:10 +0000 (12:27 +0200)]
Fix Cycles presets after recent removal of some settings.

4 years agoAlembic import: report object name in face color index out of bounds error
Sybren A. Stüvel [Tue, 15 Aug 2017 10:43:17 +0000 (12:43 +0200)]
Alembic import: report object name in face color index out of bounds error

4 years agoAlembic import: fix crash when face color index is out of bounds.
Sybren A. Stüvel [Tue, 15 Aug 2017 10:34:40 +0000 (12:34 +0200)]
Alembic import: fix crash when face color index is out of bounds.

This can happen with Alembic files exported from Maya. I'm unsure as to the
root cause, but at least this fixes the crash itself.

Thanks to @looch for reporting this with a test file. The test file has to
remain confidential, though, so it's on my workstation only.

4 years ago[deps_build/macOS] Fix FFMPEG & VPX configure command
Arto Kitula [Tue, 15 Aug 2017 09:26:33 +0000 (12:26 +0300)]
[deps_build/macOS] Fix FFMPEG & VPX configure command

FFMPEG & VPX don't handle target with --build parameter, so we need to make sure use of plain configure command

Reviewed by: Brecht Van Lommel
Differential Revision:

4 years agoCycles/BI: Add a pixel size option for speeding up viewport rendering
Lukas Stockner [Mon, 14 Aug 2017 22:11:52 +0000 (00:11 +0200)]
Cycles/BI: Add a pixel size option for speeding up viewport rendering

This patch adds "Pixel Size" to the performance options, which allows to render
in a smaller resolution, which is especially useful for displays with high DPI.

Reviewers: Severin, dingto, sergey, brecht

Reviewed By: brecht

Subscribers: Severin, venomgfx, eyecandy, brecht

Differential Revision:

4 years ago[build_deps/Windows] Add numpy headers to the python include folder on windows, requi...
Ray Molenkamp [Mon, 14 Aug 2017 21:21:36 +0000 (15:21 -0600)]
[build_deps/Windows] Add numpy headers to the python include folder on windows, required for D2716

4 years ago[depsbuilder] fix outdated python patch on windows.
Ray Molenkamp [Mon, 14 Aug 2017 21:11:44 +0000 (15:11 -0600)]
[depsbuilder] fix outdated python patch on windows.

4 years ago[depsbuilder] Fix broken osl flags on windows.
Ray Molenkamp [Mon, 14 Aug 2017 21:11:05 +0000 (15:11 -0600)]
[depsbuilder] Fix broken osl flags on windows.

4 years agoCycles: Fixed broken camera motion blur when motion was not set to center on frame
Stefan Werner [Sat, 12 Aug 2017 20:04:42 +0000 (22:04 +0200)]
Cycles: Fixed broken camera motion blur when motion was not set to center on frame

Reviewers: #cycles, sergey

Reviewed By: #cycles, sergey

Subscribers: sergey

Differential Revision:

4 years agoFix T52331: Motion blur shutter length not keyable
Sergey Sharybin [Mon, 14 Aug 2017 14:38:50 +0000 (16:38 +0200)]
Fix T52331: Motion blur shutter length not keyable

The only reason shutter time was marked as non-animatable is because Blender
Internal render does not support such animation. But this is something what
users are keeping asking for and now Blender Internal is on it's way out.

Enabled animation of this property, but noted in tooltip that Blender Internal
does not support animation of this property.

4 years agoFix T52391: Crash on duplicating material.
Bastien Montagne [Mon, 14 Aug 2017 13:40:54 +0000 (15:40 +0200)]
Fix T52391: Crash on duplicating material.

Bug in new ID copying code, thanks once again to stupid nodetrees, we
ended up wrongly remapping MA node->id pointers to NodeTree when copying
materials using node trees...

4 years agoCleanup: confusing naming in BKE_node_tree_copy_data().
Bastien Montagne [Mon, 14 Aug 2017 13:40:11 +0000 (15:40 +0200)]
Cleanup: confusing naming in BKE_node_tree_copy_data().

4 years agoNew ID Copying code: fix node_tree_copy_data still potentially increasing usercount...
Bastien Montagne [Mon, 14 Aug 2017 13:15:57 +0000 (15:15 +0200)]
New ID Copying code: fix node_tree_copy_data still potentially increasing usercount of its gpencil pointer.

_copy_data() functions of datablocks shall never handle that, it's done
by generic calling code in library.c.

4 years agoCycles: Guard memcpy to potentially re-allocating memory with lock
Sergey Sharybin [Mon, 14 Aug 2017 12:55:47 +0000 (14:55 +0200)]
Cycles: Guard memcpy to potentially re-allocating memory with lock

Basically, make re-alloc and memcpy from the same lock, otherwise one
thread might be re-allocating thread while another one is trying to
copy data there.

Reported by Mohamed Sakr in IRC, thanks!

4 years agoTracking: Fix missing checks in operator poll functions
Sergey Sharybin [Mon, 14 Aug 2017 09:46:00 +0000 (11:46 +0200)]
Tracking: Fix missing checks in operator poll functions

Reported by Vuk Gardašević (lijenstina) in IRC, thanks!

4 years agoFix T51850: Motion tracking - poor performance with keyframe matching on large video
Sergey Sharybin [Mon, 14 Aug 2017 09:41:12 +0000 (11:41 +0200)]
Fix T51850: Motion tracking - poor performance with keyframe matching on large video

Enabled cache for frame accessor and tweaked policy so we guarantee keyframed
images to be always in the cache. The logic might fail in some real corner case
(for example, when doing multiple tracks at once on a system where we can not
fit 2 clip frames in cache) but things are much better now for regular use.

4 years agoTracking: Make frame accessor cache safe for threading
Sergey Sharybin [Mon, 14 Aug 2017 09:28:58 +0000 (11:28 +0200)]
Tracking: Make frame accessor cache safe for threading

4 years agoTracking: Cleanup, newlines and comments
Sergey Sharybin [Mon, 14 Aug 2017 09:19:06 +0000 (11:19 +0200)]
Tracking: Cleanup, newlines and comments

4 years agoTracking: Cleanup, de-duplicate code
Sergey Sharybin [Mon, 14 Aug 2017 09:16:08 +0000 (11:16 +0200)]
Tracking: Cleanup, de-duplicate code

4 years agoTrackign: Add some basic logging about caching in frame accessor
Sergey Sharybin [Mon, 14 Aug 2017 09:10:45 +0000 (11:10 +0200)]
Trackign: Add some basic logging about caching in frame accessor

4 years agoTracking: Make frame access cache aware of region
Sergey Sharybin [Mon, 14 Aug 2017 09:06:22 +0000 (11:06 +0200)]
Tracking: Make frame access cache aware of region

Cache is still kept disabled, need to think of a policy for cache cleanup.

4 years agoTracking: Correct comparison in cache keys
Sergey Sharybin [Mon, 14 Aug 2017 08:37:36 +0000 (10:37 +0200)]
Tracking: Correct comparison in cache keys

This code wasn't uses, but the key comparison was totally wrong.

4 years agoTracking: Cleanup and some comments
Sergey Sharybin [Mon, 14 Aug 2017 08:23:29 +0000 (10:23 +0200)]
Tracking: Cleanup and some comments

4 years agoMove back master to BCon1 (aka alpha) status.
Bastien Montagne [Mon, 14 Aug 2017 08:44:19 +0000 (10:44 +0200)]
Move back master to BCon1 (aka alpha) status.

Forgot to do that the other week, master is no more 2.79 RC!

4 years ago[build_deps/Windows] Prevent writing of any files into the source tree.
Ray Molenkamp [Sun, 13 Aug 2017 19:02:15 +0000 (13:02 -0600)]
[build_deps/Windows] Prevent writing of any files into the source tree.

4 years agoCode cleanup: make L_transparent part of PathRadiance.
Brecht Van Lommel [Sat, 12 Aug 2017 21:15:58 +0000 (23:15 +0200)]
Code cleanup: make L_transparent part of PathRadiance.

4 years agoCode cleanup: make DebugData part of PathRadiance.
Brecht Van Lommel [Sat, 12 Aug 2017 19:07:55 +0000 (21:07 +0200)]
Code cleanup: make DebugData part of PathRadiance.

4 years agoCode cleanup: make it easier to test only Sobol, CMJ or Pseudorandom.
Brecht Van Lommel [Sat, 12 Aug 2017 21:04:58 +0000 (23:04 +0200)]
Code cleanup: make it easier to test only Sobol, CMJ or Pseudorandom.

4 years agoCycles: optimize CPU split kernel data init.
Brecht Van Lommel [Sun, 6 Aug 2017 15:17:40 +0000 (17:17 +0200)]
Cycles: optimize CPU split kernel data init.

4 years agoCode cleanup: remove unused Cycles random number code.
Brecht Van Lommel [Sun, 6 Aug 2017 19:14:58 +0000 (21:14 +0200)]
Code cleanup: remove unused Cycles random number code.

4 years agoFix T52372: CUDA build error after recent changes.
Brecht Van Lommel [Sat, 12 Aug 2017 18:36:48 +0000 (20:36 +0200)]
Fix T52372: CUDA build error after recent changes.

4 years agoWM: load UI for new file, even when pref disabled
Campbell Barton [Sat, 12 Aug 2017 15:05:10 +0000 (01:05 +1000)]
WM: load UI for new file, even when pref disabled

Loading startup file always loads the UI now.