2 years agoMerge branch 'blender2.8' into transform-manipulators transform-manipulators
Julian Eisel [Tue, 4 Apr 2017 19:39:57 +0000 (21:39 +0200)]
Merge branch 'blender2.8' into transform-manipulators


2 years agoCollada export cleanup
Dalai Felinto [Tue, 4 Apr 2017 18:44:22 +0000 (20:44 +0200)]
Collada export cleanup

2 years agofix: Collada export selected worked only for the very first export (needs further...
Gaia Clary [Tue, 4 Apr 2017 17:17:42 +0000 (19:17 +0200)]
fix: Collada export selected worked only for the very first export (needs further testing and cleanup, see comments)

2 years agoImmediate Mode: handle other cases of glPop/glPushClientAttrib
Dalai Felinto [Tue, 4 Apr 2017 16:38:26 +0000 (18:38 +0200)]
Immediate Mode: handle other cases of glPop/glPushClientAttrib

Those cases were not using ClientAttrib but they should :)
Rather use a OpenGL3.3 alternative anyways.

2 years agoFix collada exporting for Blender 2.8
Dalai Felinto [Wed, 29 Mar 2017 19:55:04 +0000 (21:55 +0200)]
Fix collada exporting for Blender 2.8

Instead of exporting all the scene objects, I'm exporting the scene
layer objects instead.

2 years agoImmediate Mode: removing unecessary comment on gpencil (false positive)
Dalai Felinto [Tue, 4 Apr 2017 15:04:03 +0000 (17:04 +0200)]
Immediate Mode: removing unecessary comment on gpencil (false positive)

2 years agoImage Draw: remove unused code since 2009
Dalai Felinto [Tue, 4 Apr 2017 12:40:28 +0000 (14:40 +0200)]
Image Draw: remove unused code since 2009

(removing false positive deprecated OpenGL calls)

2 years agoMerge branch 'master' into blender2.8
Sergey Sharybin [Tue, 4 Apr 2017 13:47:58 +0000 (15:47 +0200)]
Merge branch 'master' into blender2.8

2 years agoCycles: Tag shaders for update after the threading part is over
Sergey Sharybin [Tue, 4 Apr 2017 11:36:58 +0000 (13:36 +0200)]
Cycles: Tag shaders for update after the threading part is over

This avoids write access happening in non-atomic manner in
Shader::tag_update which modifies the global managers. Even
for 1 byte data types it's quite dangerous.

2 years agoDepsgraph: Use atomic operation to tag the changed ID
Sergey Sharybin [Tue, 4 Apr 2017 11:38:43 +0000 (13:38 +0200)]
Depsgraph: Use atomic operation to tag the changed ID

2 years agoCycles: Fix uninitialized memory access when comparing curve mapping nodes
Sergey Sharybin [Tue, 4 Apr 2017 11:47:18 +0000 (13:47 +0200)]
Cycles: Fix uninitialized memory access when comparing curve mapping nodes

The issue is coming from the fact that float3 is actually 16 bytes aligned
data type and the "padding" was not initialized. This caused memcmp() to
access non-initialized memory.

2 years agoinstall_deps: removed leftover compile_HDF5 command
Sybren A. Stüvel [Tue, 4 Apr 2017 12:50:36 +0000 (14:50 +0200)]
install_deps: removed leftover compile_HDF5 command

It was a leftover from when Alembic with HDF5 was still officially

2 years agoUV editor using new depsgraph for shadow uv
Dalai Felinto [Tue, 4 Apr 2017 11:09:17 +0000 (13:09 +0200)]
UV editor using new depsgraph for shadow uv

2 years agoImmediate Mode / DerivedMesh: Handle UV Shadow
Dalai Felinto [Tue, 4 Apr 2017 10:26:57 +0000 (12:26 +0200)]
Immediate Mode / DerivedMesh: Handle UV Shadow

2 years agoDepsgraph: placeholder function for COW objects query
Dalai Felinto [Tue, 4 Apr 2017 11:08:33 +0000 (13:08 +0200)]
Depsgraph: placeholder function for COW objects query

2 years agoCTX_data_depsgraph(bContext *C);
Dalai Felinto [Tue, 4 Apr 2017 11:07:41 +0000 (13:07 +0200)]
CTX_data_depsgraph(bContext *C);

2 years agoImmediate Mode: glPop/glPushClientAttrib
Dalai Felinto [Tue, 4 Apr 2017 08:45:03 +0000 (10:45 +0200)]
Immediate Mode: glPop/glPushClientAttrib

2 years agoBumped Alembic library version to 1.7.1
Sybren A. Stüvel [Tue, 4 Apr 2017 10:55:38 +0000 (12:55 +0200)]
Bumped Alembic library version to 1.7.1

This provides us with a clearer API (so I don't have to use const_cast<>
in upcoming code). It also allows layering of different Alembic files,
so you can have a base file and load a separate file containing overrides.

Verbally approved by Dr. Sergey.

2 years agoBuildbot: Update master config
Sergey Sharybin [Tue, 4 Apr 2017 10:52:37 +0000 (12:52 +0200)]
Buildbot: Update master config

2 years agoAlembic: force ALEMBIC_LIB_USES_BOOST=ON when not using C++11
Sybren A. Stüvel [Thu, 16 Feb 2017 09:59:19 +0000 (10:59 +0100)]
Alembic: force ALEMBIC_LIB_USES_BOOST=ON when not using C++11

Alembic requires one of ALEMBIC_LIB_USES_BOOST, ALEMBIC_LIB_USES_TR1, or
C++11, and silently defaults to the latter if the former two are OFF.

Before this change, Alembic was only built without C++11 of OpenEXR
was built at the same time. This dependency was both unnecessary and

2 years agoTask: Remove non-atomic pool suspended flag assignment
Sergey Sharybin [Tue, 4 Apr 2017 10:32:15 +0000 (12:32 +0200)]
Task: Remove non-atomic pool suspended flag assignment

This was done some lines above by atomic fetch and and.

2 years agoBuildbot: Update master config
Sergey Sharybin [Tue, 4 Apr 2017 10:15:35 +0000 (12:15 +0200)]
Buildbot: Update master config

2 years agoFix bad level call.
Clément Foucault [Tue, 4 Apr 2017 09:04:00 +0000 (11:04 +0200)]
Fix bad level call.

2 years agoCleanup: avoid long lines (search tools complain!)
Campbell Barton [Tue, 4 Apr 2017 07:38:51 +0000 (17:38 +1000)]
Cleanup: avoid long lines (search tools complain!)

2 years agofix node editor drawing (T51086)
Mike Erwin [Tue, 4 Apr 2017 05:15:35 +0000 (01:15 -0400)]
fix node editor drawing (T51086)

Fixed a few issues
- wrong transform matrices
- assert on node with no sockets
- color of collapsed nodes, some title areas

Also includes minor cleanup.

2 years agoDraw Manager: Fix engine_type not set
Clément Foucault [Mon, 3 Apr 2017 20:30:34 +0000 (22:30 +0200)]
Draw Manager: Fix engine_type not set

2 years agoInfinite Grid: View angle fade
Clément Foucault [Mon, 3 Apr 2017 19:37:40 +0000 (21:37 +0200)]
Infinite Grid: View angle fade

and show Z axis in special persp views

2 years agoDraw Manager: Use engine type pointer instead of engine name.
Clément Foucault [Mon, 3 Apr 2017 17:32:05 +0000 (19:32 +0200)]
Draw Manager: Use engine type pointer instead of engine name.

Faster search

2 years agoObject Engine: Fix multi user lamp data display bug.
Clément Foucault [Mon, 3 Apr 2017 17:01:10 +0000 (19:01 +0200)]
Object Engine: Fix multi user lamp data display bug.

Objects that were using the same lamp data were having the same display matrices.
This is fixed by allowing engine to store a memory block inside the object itself.

2 years agoDraw Manager: Fix Cache timers
Clément Foucault [Mon, 3 Apr 2017 13:50:07 +0000 (15:50 +0200)]
Draw Manager: Fix Cache timers

Also expand the timer average range.

2 years agoGPULamp: Separate GPULamp from GPUMaterial
Clément Foucault [Mon, 3 Apr 2017 13:38:00 +0000 (15:38 +0200)]
GPULamp: Separate GPULamp from GPUMaterial

Since we need GPULamps for draw engines, it makes sense to separate them.

2 years agoDraw Manager: Fix glBlitFramebuffer error
Clément Foucault [Mon, 3 Apr 2017 09:53:09 +0000 (11:53 +0200)]
Draw Manager: Fix glBlitFramebuffer error

2 years agoEevee: LTC area lights
Clément Foucault [Mon, 3 Apr 2017 09:04:42 +0000 (11:04 +0200)]
Eevee: LTC area lights

Using Linear Transform Cosines to compute area lighting. This is far more accurate than other techniques but also slower.

We use rotating quad to mimic sphere area light. For a better approximation, we use a rotating octogon.

2 years agoLayer/Depsgraph: Update depsgraph for new objects
Dalai Felinto [Mon, 3 Apr 2017 16:42:01 +0000 (18:42 +0200)]
Layer/Depsgraph: Update depsgraph for new objects

2 years agoLayer/Depsgraph: Fix selectability issues
Dalai Felinto [Mon, 3 Apr 2017 16:05:06 +0000 (18:05 +0200)]
Layer/Depsgraph: Fix selectability issues

2 years agoLayer: Adding unittest for a problem with selectability evaluation
Dalai Felinto [Mon, 3 Apr 2017 15:45:20 +0000 (17:45 +0200)]
Layer: Adding unittest for a problem with selectability evaluation

This is currently failing (and causing the object_delete test to fail). To be fixed separately

2 years agoLayer: Small refactor on layer_collection_add
Dalai Felinto [Mon, 3 Apr 2017 15:41:30 +0000 (17:41 +0200)]
Layer: Small refactor on layer_collection_add

2 years agoBuildbot: Some more twqeaks to master config
Sergey Sharybin [Mon, 3 Apr 2017 13:51:31 +0000 (15:51 +0200)]
Buildbot: Some more twqeaks to master config

2 years agoBuildbot: Update bundled vetrsion of server configuration
Sergey Sharybin [Mon, 3 Apr 2017 13:36:52 +0000 (15:36 +0200)]
Buildbot: Update bundled vetrsion of server configuration

2 years agoMerge branch 'master' into blender2.8
Sergey Sharybin [Mon, 3 Apr 2017 13:15:56 +0000 (15:15 +0200)]
Merge branch 'master' into blender2.8

2 years agoBuildbot: SPecial branch trickery for linux slaves
Sergey Sharybin [Mon, 3 Apr 2017 13:04:16 +0000 (15:04 +0200)]
Buildbot: SPecial branch trickery for linux slaves

2 years agoPoint all submodules to master branch
Sergey Sharybin [Mon, 3 Apr 2017 12:54:51 +0000 (14:54 +0200)]
Point all submodules to master branch

This way it should be safe to use `git submodule update --remote`.

2 years agoBuildbot: Some special tricks for Blender 2.8 slave
Sergey Sharybin [Mon, 3 Apr 2017 12:49:07 +0000 (14:49 +0200)]
Buildbot: Some special tricks for Blender 2.8 slave

2 years agoCleanup: style
Campbell Barton [Mon, 3 Apr 2017 11:58:53 +0000 (21:58 +1000)]
Cleanup: style

2 years agoRename circle_partial -> disk_partial
Campbell Barton [Mon, 3 Apr 2017 12:08:40 +0000 (22:08 +1000)]
Rename circle_partial -> disk_partial

We may have a 'disk' function (not the partial version).

2 years agoFix blender player
Sergey Sharybin [Mon, 3 Apr 2017 10:31:33 +0000 (12:31 +0200)]
Fix blender player

2 years agoFix T51115: Bump node is broken when the displacement socket is used
Sergey Sharybin [Mon, 3 Apr 2017 08:50:42 +0000 (10:50 +0200)]
Fix T51115: Bump node is broken when the displacement socket is used

2 years agoCollada - add flag to limit precision of exported data, mainly to simplify debugging
Gaia Clary [Mon, 3 Apr 2017 08:48:00 +0000 (10:48 +0200)]
Collada - add flag to limit precision of exported data, mainly to simplify debugging

2 years agofix: collada - do proper conversion from int to bool (as with other nearby parameters)
Gaia Clary [Mon, 3 Apr 2017 08:45:24 +0000 (10:45 +0200)]
fix: collada - do proper conversion from int to bool (as with other nearby parameters)

2 years agoAdd gluPartialDisk replacement (imm_draw_filled_circle_partial)
Campbell Barton [Mon, 3 Apr 2017 05:20:03 +0000 (15:20 +1000)]
Add gluPartialDisk replacement (imm_draw_filled_circle_partial)

Needed for custom-manipulators branch but generally useful.

2 years agofix: T50412 - collada: Replaced precision local limit function by blender's own imple...
Gaia Clary [Sat, 1 Apr 2017 13:29:40 +0000 (15:29 +0200)]
fix: T50412 - collada: Replaced precision local limit function by blender's own implementation

2 years agoCleanup: style
Campbell Barton [Sat, 1 Apr 2017 01:09:17 +0000 (12:09 +1100)]
Cleanup: style

2 years agoBlender 2.8: Hook of layer collections evaluation in DEG
Sergey Sharybin [Fri, 17 Mar 2017 11:47:29 +0000 (12:47 +0100)]
Blender 2.8: Hook of layer collections evaluation in DEG

This moves selectability/visibility flag flush from some hardcoded
places in the code to depsgraph. This way it is possible to simply
tag depsgraph to update those flags and rest it'll do on its own.

Using depsgraph for such flush is an overkill: those flags are fully
static and can not be animated, so it doesn't really make sense to
hook only those to depsgraph.

However, in the future we will have overrides on collections, which
ideally would need to be animatable and drivable and easiest way
to support this is to do this on depsgraph level, so it ensures
proper order of evaluation for animation and drivers. And it seems
logical to do both overrides and flags flush from depsgraph from
this point of view.

This commit also includes the evaluation of IDProperty for collections,
which basically are just another form of override. So once we implement
the other kind of overrides the flushing and collection evaluation won't

Patch by Sergey Sharybin and Dalai Felinto

2 years agoLayers / Depsgraph: Unittesting for selection and visibility evaluation
Dalai Felinto [Mon, 20 Mar 2017 17:06:50 +0000 (18:06 +0100)]
Layers / Depsgraph: Unittesting for selection and visibility evaluation

2 years agoFix crash in draw manager when no object active
Dalai Felinto [Fri, 31 Mar 2017 22:48:51 +0000 (00:48 +0200)]
Fix crash in draw manager when no object active

2 years agoBumping version to 2.80
Dalai Felinto [Fri, 31 Mar 2017 22:04:42 +0000 (00:04 +0200)]
Bumping version to 2.80

This should have been done earlier. But now that we may see more activity in master due to bcon3 merges, it is even more important to stress out the separation between master and 2.8.

Also I needed the version bump for idproperties doversion (they needed
to happen in _after_linking, and we don't have access to
DNA_struct_elem_find there).

Last but not least, every time I posted a video or image from 2.80, I
got someone confused about the version showing in the infobar.

2 years agoLayers: Fix scene copying after IDProperty changes
Dalai Felinto [Fri, 31 Mar 2017 15:26:33 +0000 (17:26 +0200)]
Layers: Fix scene copying after IDProperty changes

(also unittest: split scene copy in 4 tests)

2 years agoLayers unittest: Fix tests breaking since Folded was removed
Dalai Felinto [Fri, 31 Mar 2017 15:13:16 +0000 (17:13 +0200)]
Layers unittest: Fix tests breaking since Folded was removed

2 years agoLayers unittest: Breaking pep8, but getting tests to work again
Dalai Felinto [Fri, 31 Mar 2017 15:09:35 +0000 (17:09 +0200)]
Layers unittest: Breaking pep8, but getting tests to work again

I will investigate this further later.

The big problem is that the way I'm running tests if I have any error
(e.g., ImportError) the pass still pass.

2 years agoDepsgraph: Correction for the previous local view commit
Sergey Sharybin [Fri, 31 Mar 2017 15:07:44 +0000 (17:07 +0200)]
Depsgraph: Correction for the previous local view commit

Need to flush layers from components back to ID node.

2 years agoFix threading conflicts in multitex_ext_safe()
Sergey Sharybin [Fri, 31 Mar 2017 14:09:27 +0000 (16:09 +0200)]
Fix threading conflicts in multitex_ext_safe()

This function was modifying texture datablock, which makes the call
unsafe for call from multiple threads. Now we pass the argument that
we don't need nodes to the underlying functions.

There will be still race condition in noise texture, but that should
at least be free from crashes. Doesn't mean we shouldn't fix it tho.

2 years agoCycles: Solve threading conflict in shader synchronization
Sergey Sharybin [Fri, 31 Mar 2017 13:29:20 +0000 (15:29 +0200)]
Cycles: Solve threading conflict in shader synchronization

Update tag might access links (when checking for attributes) and
the links might be in the middle of rebuild in simplification

2 years agoFix unreported bug in Blender Render: using unnormalized normal in normal map node...
Alexander Romanov [Fri, 31 Mar 2017 14:53:55 +0000 (17:53 +0300)]
Fix unreported bug in Blender Render: using unnormalized normal in normal map node in the same way as in baking

2 years agoFix blenderplayer (tm)
Dalai Felinto [Fri, 31 Mar 2017 13:02:19 +0000 (15:02 +0200)]
Fix blenderplayer (tm)

2 years agoMerge branch 'master' into blender2.8
Campbell Barton [Fri, 31 Mar 2017 12:52:22 +0000 (23:52 +1100)]
Merge branch 'master' into blender2.8

2 years agoWM: Previous commit broke common-case loading new file
Campbell Barton [Fri, 31 Mar 2017 12:42:44 +0000 (23:42 +1100)]
WM: Previous commit broke common-case loading new file

Handle this in the operator

2 years agoKeep current app-template when selecting 'New File'
Campbell Barton [Fri, 31 Mar 2017 11:06:36 +0000 (22:06 +1100)]
Keep current app-template when selecting 'New File'

2 years agoUI cleanup: simplify Icon handling of uiDefAutoButR for PROP_POINTER.
Bastien Montagne [Fri, 31 Mar 2017 10:13:34 +0000 (12:13 +0200)]
UI cleanup: simplify Icon handling of uiDefAutoButR for PROP_POINTER.

Comes from D113, but really not related to the patch's topic!

2 years agoBlender 2.8: Cleanup, no need in escape
Sergey Sharybin [Fri, 31 Mar 2017 08:28:27 +0000 (10:28 +0200)]
Blender 2.8: Cleanup, no need in escape

2 years agoCycles: More fixes after include changes
Mai Lavelle [Fri, 31 Mar 2017 08:12:13 +0000 (10:12 +0200)]
Cycles: More fixes after include changes

2 years agoFix T51072: The reference of a pyobject may be being overwritten in `bm_mesh_remap_cd...
Germano Cavalcante [Fri, 31 Mar 2017 04:01:16 +0000 (01:01 -0300)]
Fix T51072: The reference of a pyobject may be being overwritten in `bm_mesh_remap_cd_update`

In this case the Pyobject gets lost from pybm, and does not invalidate the PyElem.
This will cause the destructor of python to read invalid memory and crash.

The solution is to make a copy of the pyobjects pointers before overwriting.

2 years agoEevee: Codestyle, optimisation and a few fixes
Clément Foucault [Thu, 30 Mar 2017 23:07:30 +0000 (01:07 +0200)]
Eevee: Codestyle, optimisation and a few fixes

Something is very wrong with the energy factor. For now I tweaked them by hand to fit cycles.

2 years agoCorrect string formatting (error in recent change)
Campbell Barton [Thu, 30 Mar 2017 22:45:25 +0000 (09:45 +1100)]
Correct string formatting (error in recent change)

2 years agoCleanup: warnings
Campbell Barton [Thu, 30 Mar 2017 22:48:38 +0000 (09:48 +1100)]
Cleanup: warnings

2 years agoCleanup/fix bad code in IDP_SetIndexArray()
Bastien Montagne [Thu, 30 Mar 2017 20:52:12 +0000 (22:52 +0200)]
Cleanup/fix bad code in IDP_SetIndexArray()

Mainly, using index before checking for its validity...

2 years agoLayer / IDProperty: Prevent previously created demo files from crash
Dalai Felinto [Thu, 30 Mar 2017 16:53:46 +0000 (18:53 +0200)]
Layer / IDProperty: Prevent previously created demo files from crash

2 years agoLayer: remove no longer used settings
Dalai Felinto [Thu, 30 Mar 2017 16:40:31 +0000 (18:40 +0200)]
Layer: remove no longer used settings

2 years agoLayers: use IDProperty and override collection properties system
Dalai Felinto [Thu, 30 Mar 2017 15:01:23 +0000 (17:01 +0200)]
Layers: use IDProperty and override collection properties system

First this replace a custom data struct with IDProperty, and use
IDProperty group merge and copying functions. Which means that a collection
property setting is only created if necessary.

This implements the "Layer Collection settings" override system, as
suggested in the "Override Manifesto" document.

The core is working, with Scene, LayerCollection and Object using a
single IDProperty to store all the render settings data. Next step is to
migrate this to depsgraph.

Note: Clay engine "ssao_samples" was hardcoded to 32 for now. It will come
back as part of "Workspace Settings" later.

Many thanks for Bastien Montagne for the help with the UI template
nightmare ;)

Differential Revision:

2 years agoRedraw parent popup when the child popup is closed
raa [Thu, 30 Mar 2017 13:48:18 +0000 (16:48 +0300)]
Redraw parent popup when the child popup is closed

2 years agoDepsgraph: Fix missing updates when in local view
Sergey Sharybin [Thu, 30 Mar 2017 12:38:25 +0000 (14:38 +0200)]
Depsgraph: Fix missing updates when in local view

This area is a subject of reconsideration, so for now used simplest
way possible -- ensure depsgraph's nodes have proper layer flags
when going in and out of local mode.

2 years agoRemove unused variable (warning since recent Scene/SceneLayer change)
Dalai Felinto [Thu, 30 Mar 2017 12:33:57 +0000 (14:33 +0200)]
Remove unused variable (warning since recent Scene/SceneLayer change)

2 years agoCycles: Fix missing kernel re-compilation after recent changes
Sergey Sharybin [Thu, 30 Mar 2017 09:42:23 +0000 (11:42 +0200)]
Cycles: Fix missing kernel re-compilation after recent changes

Reported by Mai in IRC, thanks!

2 years agoLayers: Scene->basact > SceneLayer->basact (more work)
Dalai Felinto [Thu, 30 Mar 2017 09:41:33 +0000 (11:41 +0200)]
Layers: Scene->basact > SceneLayer->basact (more work)

This brings back adding hooks among other areas

2 years agoFix T51051: Incorrect render on 32bit Linux
Sergey Sharybin [Thu, 30 Mar 2017 09:23:26 +0000 (11:23 +0200)]
Fix T51051: Incorrect render on 32bit Linux

The issue was apparently caused by -fno-finite-math-only added to kernel.cpp
CFLAGS. For now just removed this flag from the kernel (we don't really want
it there at this point, and we don't have it for SSE/AVX optimized kernels).

But surely more investigation is needed here.

2 years agoPrevent crash on weight paint
Dalai Felinto [Thu, 30 Mar 2017 09:18:57 +0000 (11:18 +0200)]
Prevent crash on weight paint

Weight painting is still wrong, but it doesn't crash any more.

2 years agoFix breakage when using radial control (shift f) with weight paint
Dalai Felinto [Thu, 30 Mar 2017 09:19:58 +0000 (11:19 +0200)]
Fix breakage when using radial control (shift f) with weight paint

This was likely introduced on rBf90b480f957f . Basically the BLF routines have their own shaders, so any previous programs must be unbind before it

2 years agoCycles: Cleanup, rename RegularBVH to BinaryBVH
Sergey Sharybin [Tue, 28 Mar 2017 16:58:51 +0000 (18:58 +0200)]
Cycles: Cleanup, rename RegularBVH to BinaryBVH

Makes it more explicit what the structure is from it's name.

2 years agofix screen layout thumbnails (T51078)
Mike Erwin [Thu, 30 Mar 2017 07:01:50 +0000 (03:01 -0400)]
fix screen layout thumbnails (T51078)

GPU_framebuffer no longer handles transform matrices, which this code was relying on. Made screen_preview_draw responsible for its own ModelView matrix.

2 years agofix OpenGL Render to image (T51082)
Mike Erwin [Thu, 30 Mar 2017 06:32:33 +0000 (02:32 -0400)]
fix OpenGL Render to image (T51082)

This restores the feature for legacy viewport only. Modern viewport, Clay, Eevee, etc. will need further work.

Eventually we should rename this something other than "OpenGL".

2 years agofix build on Mac/clang
Mike Erwin [Thu, 30 Mar 2017 05:43:51 +0000 (01:43 -0400)]
fix build on Mac/clang

Not all code paths returned a value, so we can use a safe default (8-bit RGBA) when the input is bogus.

2 years agoMirror Modifier: Add offsets for mirrored UVs
Campbell Barton [Thu, 30 Mar 2017 01:39:51 +0000 (12:39 +1100)]
Mirror Modifier: Add offsets for mirrored UVs

The mirror modifier now has two fields that specify a -1 to 1 offset for
the U and V axes when mirroring their coordinates.

D1844 by @circuitfox

2 years agoEevee: Diffuse Light (2/2) and GGX low quality lights
Clément Foucault [Wed, 29 Mar 2017 21:45:07 +0000 (23:45 +0200)]
Eevee: Diffuse Light (2/2) and GGX low quality lights

GGX is missing sun lamps area.

2 years agoEevee: fix HDR buffer
Clément Foucault [Wed, 29 Mar 2017 21:35:06 +0000 (23:35 +0200)]
Eevee: fix HDR buffer

2 years agoMerge branch 'master' into blender2.8
Julian Eisel [Wed, 29 Mar 2017 21:01:16 +0000 (23:01 +0200)]
Merge branch 'master' into blender2.8

2 years agoRemove BASE_VISIBLE, BASE_SELECTABLE, TESTBASELIB (no longer used)
Dalai Felinto [Wed, 29 Mar 2017 19:13:16 +0000 (21:13 +0200)]

2 years agoBase: update localview, however ...
Dalai Felinto [Wed, 29 Mar 2017 20:13:46 +0000 (22:13 +0200)]
Base: update localview, however ...

Local view will not be supported in 2.8, at least not at first. This updates the code anyways.

2 years agoBase: update createTransObject
Dalai Felinto [Wed, 29 Mar 2017 20:08:51 +0000 (22:08 +0200)]
Base: update createTransObject

I was hoping this would fix the issue of the object not moving after you copy it (right now you need to manually grab the object afterwards). But unfortunatelly it does not

2 years agoBase: update (unused) image_aspect function, copy_attr_menu and its sub-functions
Dalai Felinto [Wed, 29 Mar 2017 19:19:07 +0000 (21:19 +0200)]
Base: update (unused) image_aspect function, copy_attr_menu and its sub-functions

Since this is unused, I didn't test the code. It should be fine though.

2 years agoBase: update select_group
Dalai Felinto [Wed, 29 Mar 2017 19:14:37 +0000 (21:14 +0200)]
Base: update select_group

2 years agoFix fit camera view frame to selected objects
Dalai Felinto [Wed, 29 Mar 2017 20:32:10 +0000 (22:32 +0200)]
Fix fit camera view frame to selected objects