2 years agoOpenGL immediate mode: space_graph.c
Luca Rood [Thu, 2 Feb 2017 01:00:39 +0000 (23:00 -0200)]
OpenGL immediate mode: space_graph.c

Part of T49043

2 years don't use backticks
Sybren A. Stüvel [Thu, 2 Feb 2017 15:04:49 +0000 (16:04 +0100)] don't use backticks

The script complained that it could not find the executable "--build-all".

2 years agoOpenGL immediate mode: view3d_ruler.c
Luca Rood [Fri, 27 Jan 2017 04:36:29 +0000 (02:36 -0200)]
OpenGL immediate mode: view3d_ruler.c

Differential Revision:

Part of T49043

2 years agofix build: BLF Theme color
Mike Erwin [Thu, 2 Feb 2017 00:00:30 +0000 (19:00 -0500)]
fix build: BLF Theme color

blenderplayer uses BLF but not Editor UI, so we got a link error for the missing UI_GetThemeColor function.

Moved the new function from BLF to UI.

@Blendify reported problem in IRC

2 years agoOpenGL immediate mode: drawanimviz.c
Luca Rood [Wed, 1 Feb 2017 22:46:33 +0000 (20:46 -0200)]
OpenGL immediate mode: drawanimviz.c

Differential Revision:

Part of T49043

2 years agoAdd GetThemeColorBlendShade3ubv function
Luca Rood [Wed, 1 Feb 2017 22:40:49 +0000 (20:40 -0200)]
Add GetThemeColorBlendShade3ubv function

Differential Revision:

Used by part of T49043

2 years agoBLF can use Theme colors
Mike Erwin [Wed, 1 Feb 2017 21:44:00 +0000 (16:44 -0500)]
BLF can use Theme colors

For anything fancier than regular Theme colors (shading, alpha, etc.) do this:

unsigned char color[4]
UI_GetThemeColor[Fancy]4ubv(... color)
BLF_color4ubv(fontid, color)

That way the BLF color API stays simple.

2 years agoset default color for BLF fonts
Mike Erwin [Wed, 1 Feb 2017 21:20:40 +0000 (16:20 -0500)]
set default color for BLF fonts

Set to an annoying bright color so we can see where to add BLF_color calls.

2 years agoadd BLF_color functions
Mike Erwin [Wed, 1 Feb 2017 21:01:25 +0000 (16:01 -0500)]
add BLF_color functions

Needed a way to pass main font color to BLF without using obsolete glColor. Could not use immUniform since BLF binds its shader internally.

2 years agoOpenGL immediate mode: editmesh_knife.c
Luca Rood [Thu, 26 Jan 2017 00:14:13 +0000 (22:14 -0200)]
OpenGL immediate mode: editmesh_knife.c

Differential Revision:

Part of T49043

2 years agoOpenGL immediate mode: transform_constraints.c
Luca Rood [Thu, 26 Jan 2017 14:39:36 +0000 (12:39 -0200)]
OpenGL immediate mode: transform_constraints.c

Differential Revision:

Part of T49043

2 years agoOpenGL immediate mode: transform_generics.c
Luca Rood [Thu, 26 Jan 2017 14:13:50 +0000 (12:13 -0200)]
OpenGL immediate mode: transform_generics.c

Differential Revision:

Part of T49043

2 years agoOpenGL: use new matrix API for Loop Cut
Mike Erwin [Tue, 31 Jan 2017 22:06:36 +0000 (17:06 -0500)]
OpenGL: use new matrix API for Loop Cut

Follow-up to rB85174329d9f5
Part of T49450

2 years agoOpenGL: fix MultMatrix order
Mike Erwin [Tue, 31 Jan 2017 22:03:07 +0000 (17:03 -0500)]
OpenGL: fix MultMatrix order

Partial revert of rB06d4aca87956

Problem found while converting old GL matrix calls to new API (T49450)

2 years agoMerge branch 'master' into blender2.8
Bastien Montagne [Tue, 31 Jan 2017 09:47:43 +0000 (10:47 +0100)]
Merge branch 'master' into blender2.8


2 years agoCleanup: use 'cb_flag', not 'cd_flag' for library_query callbacks.
Bastien Montagne [Tue, 31 Jan 2017 09:41:25 +0000 (10:41 +0100)]
Cleanup: use 'cb_flag', not 'cd_flag' for library_query callbacks.

`cd_flag` tends to be used for CustomData flags in mesh area, while for
library_query those are rather callback flags...

2 years agoCleanup: Rename callback flags from library_query to `IDWALK_CB_...`
Bastien Montagne [Tue, 31 Jan 2017 08:47:59 +0000 (09:47 +0100)]
Cleanup: Rename callback flags from library_query to `IDWALK_CB_...`

Better to have clear way to tell whether flag is parameter for
BKE_library_foreach_ID_link(), parameter for its callback function, or
return value from this callback function.

2 years agoblender 2.8: OpenGL immediate mode: editmesh_loopcut.c
Mike Erwin [Tue, 31 Jan 2017 07:57:24 +0000 (02:57 -0500)]
blender 2.8: OpenGL immediate mode: editmesh_loopcut.c

Reviewers: merwin

Reviewed By: merwin

Subscribers: dfelinto

Tags: #bf_blender_2.8

Maniphest Tasks: T49043

Differential Revision:

2 years agoOpenGL: remove NPOT texture rescaling logic
Mike Erwin [Tue, 31 Jan 2017 07:52:43 +0000 (02:52 -0500)]
OpenGL: remove NPOT texture rescaling logic

This code was already disabled.

We might be able to simplify GPU_check_scaled_image even further. Maybe even delete it? Just removing the obvious stuff now.

Keeping is_power_of_2_resolution function since it is still used in DXT logic.

2 years agoFix compilation error: too few arguments to function call.
Kévin Dietrich [Tue, 31 Jan 2017 05:59:11 +0000 (06:59 +0100)]
Fix compilation error: too few arguments to function call.

D2492 by @tomjpsun.

2 years agoFix bug not reported: Ruler/Protractor: Snap to vertices and edges was not considerin...
Germano Cavalcante [Tue, 31 Jan 2017 02:49:09 +0000 (23:49 -0300)]
Fix bug not reported: Ruler/Protractor: Snap to vertices and edges was not considering the depth variation

Taking advantage of the area, the depth is decreased 0.01 BU to each loop to give priority to elements in order: Vertice > Edge > Face. This increases the threshold and improves the snap to multiple elements

2 years agoSnap System: Return depth by snapping to edges and vertices, because the Ruler only...
Germano Cavalcante [Tue, 31 Jan 2017 01:49:44 +0000 (22:49 -0300)]
Snap System: Return depth by snapping to edges and vertices, because the Ruler only works right this way

The Ruler snaps to the element with the lowest depth.

2 years agoUse the same solution to test the pixel distance to the AABB, with BoundBox
Germano Cavalcante [Tue, 31 Jan 2017 01:27:38 +0000 (22:27 -0300)]
Use the same solution to test the pixel distance to the AABB, with BoundBox

The previous solution took arbitrary values to determine if the mouse was near or not to the Bound Box (it simply scaled the Bound Box).

Now the same function that detected the distance from the BVHTree nodes to the mouse is used in the Bound Box

2 years agoFreestyle: Use of the Fill Range by Selection operator in the mesh edit mode.
Tamito Kajiyama [Tue, 31 Jan 2017 00:04:05 +0000 (09:04 +0900)]
Freestyle: Use of the Fill Range by Selection operator in the mesh edit mode.

This revision extends the functionality of the "Fill Range by Selection" button in
the "Distance from Camera/Object" modifiers so that only selected mesh vertices
in the edit mode are taken into account  (instead of considering all vertices when
in the object mode) to compute the min & max distances from the reference.
This will give users much finer control on the range values.

2 years agoMake 'make local' twice quicker.
Bastien Montagne [Mon, 30 Jan 2017 20:47:48 +0000 (21:47 +0100)]
Make 'make local' twice quicker.

Use new Main->relations ID usages mapping in BKE_library_make_local().

This allows a noticeable simplification in code, and can be up to twice
quicker as previous code (Make Local: All from 2 to 1 minute e.g. in a
huge production file with thousands of linked data-blocks).

Note that new code has been successfuly tested with several complex cases
(production files from Agent327), as well as some testcases from recent
bug reports related to that function. But as always, nothing beats real
usage by real users, so please check this before we release 2.79. ;)

Main areas that would be affected: Make Local operations (L shortcut in
3DView), and append from libraries.

2 years agoOptimization: pass Main to BKE_library_foreach_ID_link() and use its relations.
Bastien Montagne [Mon, 30 Jan 2017 20:41:44 +0000 (21:41 +0100)]
Optimization: pass Main to BKE_library_foreach_ID_link() and use its relations.

Use Main->relations in BKE_library_foreach_ID_link(), when possible
(i.e. IDWALK_READONLY is set), and if the data is available of course.

This is quite minor optimization, no sensible improvements are expected,
but does not hurt either to avoid potentially tens of looping over e.g.
objects constraints and modifiers, or heap of drivers...

2 years agoFix missing non-ID nodetrees in ID relationships built from library_query.c
Bastien Montagne [Mon, 30 Jan 2017 20:34:23 +0000 (21:34 +0100)]
Fix missing non-ID nodetrees in ID relationships built from library_query.c

This shall fix both existing code (bpy mapping, and local/lib usages
checks), and new Main->relations generation.

2 years agoAdd optional, free-after-use usages mapping of IDs to Main.
Bastien Montagne [Mon, 30 Jan 2017 20:00:07 +0000 (21:00 +0100)]
Add optional, free-after-use usages mapping of IDs to Main.

The new MainIDRelations stores two mappings, one from ID users to ID
used, the other vice-versa.

That data is assumed to be short-living runtime, code creating it is
responsible to clear it asap. It will be much useful in places where we
handle relations between IDs for a lot of them at once.

Note: This commit is not fully functional, that is, the infamous, ugly,
PoS non-ID nodetrees will not be handled correctly when building relations.
Fix needed here is a bit noisy, so will be done in next own commit.

2 years agoFix T49632: Grease pencil in "Edit Strokes" mode: Snap tool did not snap points to...
Germano Cavalcante [Mon, 30 Jan 2017 21:30:19 +0000 (18:30 -0300)]
Fix T49632: Grease pencil in "Edit Strokes" mode: Snap tool did not snap points to active object
A simple confusion between enums: ~SNAP_NOT_ACTIVE~

2 years agoAlembic/CacheFile: fix crash de-referencing NULL pointer.
Kévin Dietrich [Mon, 30 Jan 2017 09:46:24 +0000 (10:46 +0100)]
Alembic/CacheFile: fix crash de-referencing NULL pointer.

2 years agoCleanup: Unused function and and variables in snap code
Sergey Sharybin [Mon, 30 Jan 2017 08:25:21 +0000 (09:25 +0100)]
Cleanup: Unused function and and variables in snap code

Please doublecheck ED_transform_snap_object_project_ray_ex() is really
valid, it's weird to have extra arguments here unused.

2 years agoSnap System: BVH: ignore AABBs behind ray
Germano Cavalcante [Mon, 30 Jan 2017 05:49:41 +0000 (02:49 -0300)]
Snap System: BVH: ignore AABBs behind ray

This provides a slight improvement in performance in specific cases, such as when the observer is inside a high poly object and executes snap to edge or vertex

2 years agoFix unreported bug: parameter ray_start repeated
Germano Cavalcante [Mon, 30 Jan 2017 05:26:00 +0000 (02:26 -0300)]
Fix unreported bug: parameter ray_start repeated

The bug would only be seen in terms of performance

2 years agoSolve compilation error: Field has incomplete type 'enum eViewProj'
Germano Cavalcante [Mon, 30 Jan 2017 05:19:18 +0000 (02:19 -0300)]
Solve compilation error: Field has incomplete type 'enum eViewProj'

Error reported by @tomjpsun
Patch D2491

2 years agoFreestyle: Fix (unreported) wrong distance calculation in the Fill Range by Selection...
Tamito Kajiyama [Mon, 30 Jan 2017 03:18:39 +0000 (12:18 +0900)]
Freestyle: Fix (unreported) wrong distance calculation in the Fill Range by Selection operator.

Distance calculation performed by the "Fill Range by Selection" button of the
"Distance from Camera" color, alpha and thickness modifiers was incorrect,
limiting the usefulness of the functionality.

The problem was that the distance between the camera and individual vertex
locations was calculated in the world space, which was inconsistent with the
distance calculation done by the modifiers in the camera space.

2 years agoRemove `BKE_boundbox_ray_hit_check`
Germano Cavalcante [Sun, 29 Jan 2017 17:19:58 +0000 (14:19 -0300)]
Remove `BKE_boundbox_ray_hit_check`

Remove `BKE_boundbox_ray_hit_check` since it is no longer being used and can be easily replaced by `isect_ray_aabb_v3_simple`

2 years ago[msvc] Set proper OpenSubdiv flags when not using find_package to find opensubdiv...
lazydodo [Sun, 29 Jan 2017 17:00:11 +0000 (10:00 -0700)]
[msvc] Set proper OpenSubdiv flags when not using find_package to find opensubdiv. Fixes T50548

2 years agoNew math_geom function `isect_ray_aabb_v3_simple`
Germano Cavalcante [Sun, 29 Jan 2017 16:56:58 +0000 (13:56 -0300)]
New math_geom function `isect_ray_aabb_v3_simple`

The new `isect_ray_aabb_v3_simple` function replaces the `BKE_boundbox_ray_hit_check` and can be used in BVHTree Root (first AABB). So it is much more efficient.

2 years agoRename func `set_SnapData` to `snap_data_set`
Germano Cavalcante [Sun, 29 Jan 2017 16:13:14 +0000 (13:13 -0300)]
Rename func `set_SnapData` to `snap_data_set`

Don't use CamelCase in functions and try to keep area affected first, and action last, in names

2 years agofix T50486: Don't always do the `ray_start_correction` in the ortho view
Germano Cavalcante [Sun, 29 Jan 2017 15:26:15 +0000 (12:26 -0300)]
fix T50486: Don't always do the `ray_start_correction` in the ortho view

You need to make sure that ray_start is really far away, because even in the Orthografic view, in some cases, the ray can start inside the object

2 years agoRemove struct `PreDefProject` and store all immutable parameters within the new struc...
Germano Cavalcante [Sun, 29 Jan 2017 15:07:14 +0000 (12:07 -0300)]
Remove struct `PreDefProject` and store all immutable parameters within the new struct `SnapData`

In order to simplify the reading of these functions, the parameters: `snap_to`, `mval`, `ray_start`, `ray_dir`, `view_proj` and `depth_range` are now stored in the struct `SnapData`

2 years agoFix T50550: GPUShader: compile error - Background image not showing in
Kévin Dietrich [Sun, 29 Jan 2017 15:00:14 +0000 (16:00 +0100)]
Fix T50550: GPUShader: compile error - Background image not showing in

Caused by rBd6cf28c5e15739f864fbf04614c2a50708b4b152, which forgot to
update the GLSL code for the "Light Path" node.

2 years agoFix blurry icons
raa [Sun, 29 Jan 2017 14:21:42 +0000 (17:21 +0300)]
Fix blurry icons

2 years agofix D2489: Collada exporter broke edit data when exporting Armature while in Armature...
Gaia Clary [Sat, 28 Jan 2017 20:51:18 +0000 (21:51 +0100)]
fix D2489: Collada exporter broke edit data when exporting Armature while in Armature edit mode

2 years agofix D2489: Collada exporter broke edit data when exporting Armature while in Armature...
Gaia Clary [Sat, 28 Jan 2017 20:51:18 +0000 (21:51 +0100)]
fix D2489: Collada exporter broke edit data when exporting Armature while in Armature edit mode

2 years agoFix (IRC reported) DataTransfer modifier affecting base mesh in some cases.
Bastien Montagne [Fri, 27 Jan 2017 18:27:07 +0000 (19:27 +0100)]
Fix (IRC reported) DataTransfer modifier affecting base mesh in some cases.

Checking only whether mverts is same as base mesh one is not enough in
all cases, some modifiers (deform ones) can only generate new mvert
data, while keeping others from original mesh.

Now checking both mvert or medge, hopefully this will be enough to catch
all problematic cases this time.

Thanks @gaia for finding that problem. :)

2 years agoFix T50534, Part II: warn user when DataTransfer mod affects custom normals.
Bastien Montagne [Fri, 27 Jan 2017 18:06:10 +0000 (19:06 +0100)]
Fix T50534, Part II: warn user when DataTransfer mod affects custom normals.

Custom normals need Autosmooth setting to be enabled, always!

2 years agoFix T50534: Part I, cleanup loop normals generated during modifier stack evaluation.
Bastien Montagne [Fri, 27 Jan 2017 17:47:11 +0000 (18:47 +0100)]
Fix T50534: Part I, cleanup loop normals generated during modifier stack evaluation.

Those could stay around, and be displayed in 3DView even when autosmooth
was disabled (but would not be 'active').

2 years agoUI: Move Scene Game Properties to the Scene Tab (was in world)
Aaron Carlisle [Fri, 27 Jan 2017 16:35:19 +0000 (11:35 -0500)]
UI: Move Scene Game Properties to the Scene Tab (was in world)

2 years agoSnap Functions: Remove the use of the function 'BLI_bvhtree_find_nearest_to_ray'...
Germano Cavalcante [Fri, 27 Jan 2017 16:02:05 +0000 (13:02 -0300)]
Snap Functions: Remove the use of the function 'BLI_bvhtree_find_nearest_to_ray' in transform_snap_object
Although the "BLI_bvhtree_find_nearest_to_ray" function is more practical than the generic "BLI_bvhtree_walk_dfs", it does not work to snap in perspective view. This makes it necessary to add "ifs" and functions that make the code difficult to understand

patch: D2474

2 years agoMesh batch caches should not be stored in file
Dalai Felinto [Fri, 27 Jan 2017 14:21:14 +0000 (15:21 +0100)]
Mesh batch caches should not be stored in file

2 years agoCycles: Add option to replace GI with AO approximation after certain amount of bounces
Sergey Sharybin [Fri, 25 Nov 2016 17:59:43 +0000 (18:59 +0100)]
Cycles: Add option to replace GI with AO approximation after certain amount of bounces

This is a speed up option which is mainly useful for viewport. Gives nice speedup in
the barbershop scene of 2x when replacing GI with AO after 2nd bounce without loosing
too much details.

Reviewers: brecht

Subscribers: eyecandy, venomgfx

Differential Revision:

2 years agoFixup for rBac58a7fa (HSV doversion)
Dalai Felinto [Fri, 27 Jan 2017 10:24:23 +0000 (11:24 +0100)]
Fixup for rBac58a7fa (HSV doversion)

We are not bumping file version, but we cannot have the doversion code running twice.
In this particular case it was crashing files, since we were setting node->storage to NULL, and later on accessing it.

2 years agoCMake: Fix typo
Sergej Reich [Fri, 27 Jan 2017 04:24:58 +0000 (05:24 +0100)]
CMake: Fix typo

2 years agoMesh batch caches update from depsgraph
Dalai Felinto [Thu, 26 Jan 2017 18:08:27 +0000 (19:08 +0100)]
Mesh batch caches update from depsgraph

We no longer need to rely on Derived mesh flag since the mesh is
properly flushed from the depsgraph

2 years agoDepsgraph: mesh cache depends needs updates when geometry changes (patch by Sergey...
Dalai Felinto [Thu, 26 Jan 2017 18:06:17 +0000 (19:06 +0100)]
Depsgraph: mesh cache depends needs updates when geometry changes (patch by Sergey Sharybin)

2 years agoUse the ultimate depsgraph callback function
Dalai Felinto [Thu, 26 Jan 2017 17:56:52 +0000 (18:56 +0100)]
Use the ultimate depsgraph callback function

Note: when in edit mode this depsgraph update is not being called. We are using DerivedMesh in those cases, so it is fine. I would like to investigate this though

2 years agoDepsgraph: Add placeholder function to handle objects update
Sergey Sharybin [Thu, 26 Jan 2017 16:24:57 +0000 (17:24 +0100)]
Depsgraph: Add placeholder function to handle objects update

This way @dfelinto can do some special trickery in there.

2 years agoMerge branch 'master' into blender2.8
Sergey Sharybin [Thu, 26 Jan 2017 16:23:33 +0000 (17:23 +0100)]
Merge branch 'master' into blender2.8

2 years agoDepsgraph: Fix typo in assert
Sergey Sharybin [Thu, 26 Jan 2017 16:22:54 +0000 (17:22 +0100)]
Depsgraph: Fix typo in assert

2 years agoBlender 2.8: Apparently auto-merge worked incorrect in the merge commit
Sergey Sharybin [Thu, 26 Jan 2017 16:04:25 +0000 (17:04 +0100)]
Blender 2.8: Apparently auto-merge worked incorrect in the merge commit

2 years agoMerge branch 'master' into blender2.8
Sergey Sharybin [Thu, 26 Jan 2017 16:02:28 +0000 (17:02 +0100)]
Merge branch 'master' into blender2.8

2 years agoDepsgraph: Link from material to object shading
Sergey Sharybin [Thu, 26 Jan 2017 16:01:37 +0000 (17:01 +0100)]
Depsgraph: Link from material to object shading

This is a ground work for the upcoming changes in Blender 2.8 branch
where we need to do special actions to reconstruct shaders when
material changes.

2 years agoDepsgraph: Add relation from node tree to material it's coming from
Sergey Sharybin [Thu, 26 Jan 2017 15:49:24 +0000 (16:49 +0100)]
Depsgraph: Add relation from node tree to material it's coming from

2 years agoDepsgraph: Remove owner argument from relations builder as well
Sergey Sharybin [Thu, 26 Jan 2017 15:35:23 +0000 (16:35 +0100)]
Depsgraph: Remove owner argument from relations builder as well

The idea was to link something to a parent, but the point is:
we must not pass owner deep and then have any parent-type-related
logic implemented in the "children".

2 years agoFix (unreported) crash when file browser attempts to show preview of some defective...
IRIE Shinsuke [Thu, 26 Jan 2017 15:15:49 +0000 (00:15 +0900)]
Fix (unreported) crash when file browser attempts to show preview of some defective font

Confirmed with the Wine's bundled fonts.

2 years agoDepsgraph: Remove owner node argument which was simply passed around
Sergey Sharybin [Thu, 26 Jan 2017 15:29:09 +0000 (16:29 +0100)]
Depsgraph: Remove owner node argument which was simply passed around

2 years agoCompositor: Make HSV node inputs a real sockets
Sergey Sharybin [Wed, 7 Dec 2016 12:52:12 +0000 (13:52 +0100)]
Compositor: Make HSV node inputs a real sockets

This is much more flexible solution which will allow doing some
more procedural features.

Reviewers: brecht, dfelinto, mont29

Reviewed By: mont29

Subscribers: Severin

Differential Revision:

2 years agoFix unfreed memory after cleaning render layers
Dalai Felinto [Thu, 26 Jan 2017 10:58:47 +0000 (11:58 +0100)]
Fix unfreed memory after cleaning render layers

The freestyle data was never freed when removing a renderlayer.

blender -b --factory-startup --debug-memory --python-expr "import bpy;bpy.ops.scene.render_layer_add();bpy.context.scene.render.layers.active_index=0;bpy.ops.scene.render_layer_remove()"

2 years agoFix T50530: Crash on Info Editor "console"
Dalai Felinto [Thu, 26 Jan 2017 08:41:40 +0000 (09:41 +0100)]
Fix T50530: Crash on Info Editor "console"

Introduced on rB2de882e8 - the original size of the array was neglected

2 years agoAlembic: fix compile error on Linux.
Kévin Dietrich [Thu, 26 Jan 2017 05:18:07 +0000 (06:18 +0100)]
Alembic: fix compile error on Linux.

2 years agoFix T50287: Blender crashes when open a blend that contains an alembic
Kévin Dietrich [Thu, 26 Jan 2017 05:16:33 +0000 (06:16 +0100)]
Fix T50287: Blender crashes when open a blend that contains an alembic

Missed in rB62a2ed97b.

2 years ago[Cycles/MSVC/Testing] Fix broken test code.
lazydodo [Wed, 25 Jan 2017 16:36:41 +0000 (09:36 -0700)]
[Cycles/MSVC/Testing] Fix broken test code.

Currently the tests don't run on windows for the following reasons

1) render_graph_finalize has an linking issue due missing a bunch of libraries (not sure why this is not an issue for linux)
2) This one is more interesting, in test/python/cmakelists.txt ${TEST_BLENDER_EXE_BARE} and ${TEST_BLENDER_EXE} are flat out wrong, but for some reason this doesn't matter for most tests, cause ctest will actually go out and look for the executable and fix the path for you *BUT* only for the command, if you use them in any of the parameters it'll happily pass on the wrong path.
3) on linux you can just run a .py file, windows is not as awesome and needs to be told to run it with pyton.
4) had to use the NAME/COMMAND long form of add_test otherwise $<TARGET_FILE:blender> doesn't get expanded, why? beats me.
5) missing idiff.exe for msvc2015/x64 in the libs folder.

This patch addresses 1-4 , but given I have no working Linux build environment, I'm unsure if it'll break anything there

5 has been fixed in rBL61751

Reviewers: juicyfruit, brecht, sergey

Reviewed By: sergey

Subscribers: Blendify

Tags: #cycles, #automated_testing

Differential Revision:

2 years agoFix T50115: stereoscopic video file memory leak
Dalai Felinto [Wed, 25 Jan 2017 14:15:37 +0000 (15:15 +0100)]
Fix T50115: stereoscopic video file memory leak

2 years agoFix T50032: Wrong render result when same image is used with and without alpha
Sergey Sharybin [Wed, 25 Jan 2017 13:02:59 +0000 (14:02 +0100)]
Fix T50032: Wrong render result when same image is used with and without alpha

2 years agoFix T50512: Linked Backround scene with animation not updating with new depsgraph
Sergey Sharybin [Wed, 25 Jan 2017 11:30:29 +0000 (12:30 +0100)]
Fix T50512: Linked Backround scene with animation not updating with new depsgraph

Was missing relations for the set scenes.

Perhaps not ideal solution, but should be good enough for now.

2 years agoDepsgraph: Do ID tag outside of build_scene
Sergey Sharybin [Wed, 25 Jan 2017 11:28:27 +0000 (12:28 +0100)]
Depsgraph: Do ID tag outside of build_scene

Otherwise it was possible to get ID tags cleared in the middle
of DEG construction when there are set scenes used.

2 years agoFix T50517: Rendering expecting time is negative
Sergey Sharybin [Wed, 25 Jan 2017 10:18:12 +0000 (11:18 +0100)]
Fix T50517: Rendering expecting time is negative

2 years agoConvert MBC_ API to Mesh (instead of derived mesh) and move it to mesh_render
Dalai Felinto [Wed, 25 Jan 2017 08:16:29 +0000 (09:16 +0100)]
Convert MBC_ API to Mesh (instead of derived mesh) and move it to mesh_render

This includes a few fixes in the MBC_ api.

The idea here is for this to be the only interface the render engines
will deal with for the meshes.

If we need to expose special options for sculpting engine we refactor
this accordingly. But for now we are shaping this in a per-case base.

* We still need to hook up to the depsgraph to force clear/update of
batch_cache when mesh changes

(I'm waiting for Sergey Sharybin's depsgraph update for this though)

* Also ideally we could/should use BMesh directly instead of
DerivedMesh, but this will do for now.

Note 2:
In the end I renamed the `BKE_mesh_render` functions to `static
mesh_render`. We can re-expose them as BKE_* later once we need it.

Reviewers: merwin

Subscribers: fclem

Differential Revision:

2 years agoRevert "UI: Add missing menu item"
Aaron Carlisle [Wed, 25 Jan 2017 06:33:10 +0000 (01:33 -0500)]
Revert "UI: Add missing menu item"

This reverts commit 1ad842d432ccacd1f822d7f2b8ff3c542d25e976.

2 years agoUI: Add missing menu item
Aaron Carlisle [Wed, 25 Jan 2017 05:59:10 +0000 (00:59 -0500)]
UI: Add missing menu item

2 years agoFix T49405: Crash when baking with adaptive subdivision
Mai Lavelle [Wed, 25 Jan 2017 05:35:20 +0000 (00:35 -0500)]
Fix T49405: Crash when baking with adaptive subdivision

Blenders baking system currently doesn't support the topology used by
adaptive subdivision and primitive ids will be wrong or out of range
leading to crashes. Updating the baking system to support other
topologies would be a bit involved, so for now we simply disable
subdivision while baking to avoid crashes.

2 years agoRemove commented code
Aaron [Tue, 24 Jan 2017 20:58:52 +0000 (15:58 -0500)]
Remove commented code

2 years agoFix T50386: Crash when spawning pie menus
Julian Eisel [Tue, 24 Jan 2017 20:35:38 +0000 (21:35 +0100)]
Fix T50386: Crash when spawning pie menus

D2455 by @raa, thanks!

2 years agoDepsgraph: Fix duplicated operation node when two objects are sharing same armature
Sergey Sharybin [Tue, 24 Jan 2017 16:15:39 +0000 (17:15 +0100)]
Depsgraph: Fix duplicated operation node when two objects are sharing same armature

2 years agoCycles: Don't rely on indirectly included algorithm
Sergey Sharybin [Tue, 24 Jan 2017 15:39:16 +0000 (16:39 +0100)]
Cycles: Don't rely on indirectly included algorithm

2 years agoMerge branch 'master' into blender2.8
Sergey Sharybin [Tue, 24 Jan 2017 13:56:56 +0000 (14:56 +0100)]
Merge branch 'master' into blender2.8

2 years agoFix typo in comment
Sergey Sharybin [Tue, 24 Jan 2017 13:56:35 +0000 (14:56 +0100)]
Fix typo in comment

2 years agoDepsgraph: Make it more clear and explicit compile fail when required features are...
Sergey Sharybin [Tue, 24 Jan 2017 11:57:33 +0000 (12:57 +0100)]
Depsgraph: Make it more clear and explicit compile fail when required features are not found

2 years agoDepsgraph: Remove legacy code from new depsgraph
Sergey Sharybin [Tue, 24 Jan 2017 11:55:08 +0000 (12:55 +0100)]
Depsgraph: Remove legacy code from new depsgraph

Now we have no remaining WITH_LEGACY_DEPSGRAPH in the code.

2 years agoDepsgraph: Remove command line argument to use new depsgraph
Sergey Sharybin [Tue, 24 Jan 2017 11:54:21 +0000 (12:54 +0100)]
Depsgraph: Remove command line argument to use new depsgraph

2 years agoDepsgraph: Remove more legacy code from viewport
Sergey Sharybin [Tue, 24 Jan 2017 11:52:05 +0000 (12:52 +0100)]
Depsgraph: Remove more legacy code from viewport

2 years agoDepsgraph: Remove legacy updateDepgraph callbacks from modifiers
Sergey Sharybin [Tue, 24 Jan 2017 11:49:23 +0000 (12:49 +0100)]
Depsgraph: Remove legacy updateDepgraph callbacks from modifiers

2 years agoDepsgraph: Remove legacy implementation of depsgraph
Sergey Sharybin [Tue, 24 Jan 2017 11:46:56 +0000 (12:46 +0100)]
Depsgraph: Remove legacy implementation of depsgraph

2 years agoDepsgraph: Remove legacy calls from scene update routines
Sergey Sharybin [Tue, 24 Jan 2017 11:42:56 +0000 (12:42 +0100)]
Depsgraph: Remove legacy calls from scene update routines

2 years agoDepsgraph: Remove special exception in update logging
Sergey Sharybin [Tue, 24 Jan 2017 11:33:05 +0000 (12:33 +0100)]
Depsgraph: Remove special exception in update logging

2 years agoDepsgraph: Remove special version of pose builder
Sergey Sharybin [Tue, 24 Jan 2017 11:29:46 +0000 (12:29 +0100)]
Depsgraph: Remove special version of pose builder

2 years agoDepsgraph: Remove legacy depsgraph code from viewport
Sergey Sharybin [Tue, 24 Jan 2017 11:25:58 +0000 (12:25 +0100)]
Depsgraph: Remove legacy depsgraph code from viewport

2 years agoDepsgraph: Remove legacy depsgraph code from transform
Sergey Sharybin [Tue, 24 Jan 2017 11:23:57 +0000 (12:23 +0100)]
Depsgraph: Remove legacy depsgraph code from transform

2 years agoInstall deps: Bump OpenSubdiv version to 3.1.1
Sergey Sharybin [Tue, 24 Jan 2017 10:49:45 +0000 (11:49 +0100)]
Install deps: Bump OpenSubdiv version to 3.1.1

Required to have some crash fixes.