blender.git
7 weeks agoFix action zones getting out of sync with panel size
Campbell Barton [Tue, 23 Apr 2019 20:10:50 +0000 (06:10 +1000)]
Fix action zones getting out of sync with panel size

Change to recent fix for T61554

7 weeks agoCleanup: correct rst string literals
Campbell Barton [Tue, 23 Apr 2019 18:09:56 +0000 (04:09 +1000)]
Cleanup: correct rst string literals

7 weeks agoFix building with asan option and OSL.
Bastien Montagne [Tue, 23 Apr 2019 18:59:10 +0000 (20:59 +0200)]
Fix building with asan option and OSL.

When OSL is enabled, Cycles disables RTTI in some of its modules, which
then breaks vptr sanitizer (part of the 'undefined' sanitizer).

thanks to @brecht for helping tracking down the issue.

7 weeks agoFix T63178 Eevee animation render crash
Clément Foucault [Tue, 23 Apr 2019 18:34:26 +0000 (20:34 +0200)]
Fix T63178 Eevee animation render crash

If image buffer is not loaded and blender attempts to reload it (during
`BKE_image_acquire_ibuf`) over and over for each frame rendered.
When attempting this reload, image_load_image_file is calling
`BKE_image_free_buffers` and tag the Image to the (GPU) image_free_queue
(because this run on the rendering thread).

If the main thread decide to redraw the UI and go through `GPU_free_unused_buffers` they all get deleted and if that happens before the rendering thread use them ... segfault.

If I replace the environment textures with correct ones (the file does not seems to contain them), there is no crash when rendering.

I used a list of GPUTexture from blender Image to increase and decrease the
reference counter correctly.

This add very little memory and computation overhead.

7 weeks agoGPUBuffers: Fix wrong assert
Clément Foucault [Tue, 23 Apr 2019 12:30:52 +0000 (14:30 +0200)]
GPUBuffers: Fix wrong assert

For good this time...

forgot to commit it in the previous commit rBedde48f57844.

7 weeks agoFix T63813: crash saving images on Windows
Brecht Van Lommel [Tue, 23 Apr 2019 16:59:24 +0000 (18:59 +0200)]
Fix T63813: crash saving images on Windows

The danger of void pointers...

7 weeks agoMerge branch 'blender2.7'
Brecht Van Lommel [Tue, 23 Apr 2019 16:54:50 +0000 (18:54 +0200)]
Merge branch 'blender2.7'

7 weeks agoFix T63796: Cycles OSL shader with closure not working in final render.
Brecht Van Lommel [Tue, 16 Apr 2019 01:03:24 +0000 (03:03 +0200)]
Fix T63796: Cycles OSL shader with closure not working in final render.

7 weeks agoOutliner draw: Fix using wrong flag to tag object on visibility change
Dalai Felinto [Tue, 23 Apr 2019 15:54:19 +0000 (12:54 -0300)]
Outliner draw: Fix using wrong flag to tag object on visibility change

Note: This doesn't fix any bug we know of, but it is the correct flag to
tag in this case.

7 weeks agoDepsgraph: make the dependency cycle report more readable.
Alexander Gavrilov [Tue, 23 Apr 2019 15:29:36 +0000 (18:29 +0300)]
Depsgraph: make the dependency cycle report more readable.

Since it is a continuous cycle, there's no need to repeat the
name of the previous bone. Also, dot is a common symbol in object
and bone names, so use '/' instead for node nesting.

7 weeks agoGPencil: Add support for gradient to Box strokes
Antonioya [Tue, 23 Apr 2019 15:25:37 +0000 (17:25 +0200)]
GPencil: Add support for gradient to Box strokes

Before this options was only available to Dots mode.

7 weeks agoSpace_node: Add draw backdrop callback.
Ray Molenkamp [Tue, 23 Apr 2019 15:15:45 +0000 (09:15 -0600)]
Space_node: Add draw backdrop callback.

Add a callback to allow custom node editors to draw their own
backdrop.

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

Reviewed by: JacquesLucke

7 weeks agoDepsgraph: fix standard IK target dependencies.
Alexander Gavrilov [Tue, 23 Apr 2019 14:47:11 +0000 (17:47 +0300)]
Depsgraph: fix standard IK target dependencies.

Targeting a different object always requires its transform,
and normally dependencies should go to the solver node.

ITASC is quite broken so special case it until fixed.

7 weeks agoFix T63816: Crash opening file with multiple view layers
Sergey Sharybin [Tue, 23 Apr 2019 12:31:21 +0000 (14:31 +0200)]
Fix T63816: Crash opening file with multiple view layers

Dependency graph will not be crated for view layers which were never visible.

7 weeks agoB-Bones: remove hard limits on curve/roll/scale/ease properties.
Alexander Gavrilov [Tue, 23 Apr 2019 10:27:27 +0000 (13:27 +0300)]
B-Bones: remove hard limits on curve/roll/scale/ease properties.

I don't see any reasons why soft limits wouldn't be enough here.

7 weeks agoCleanup: rename the curveInX etc bbone DNA fields to curve_in_x etc.
Alexander Gavrilov [Tue, 23 Apr 2019 10:15:30 +0000 (13:15 +0300)]
Cleanup: rename the curveInX etc bbone DNA fields to curve_in_x etc.

7 weeks agoB-Bones: split the Scale In/Out properties into X and Y values.
Alexander Gavrilov [Sat, 20 Apr 2019 15:06:31 +0000 (18:06 +0300)]
B-Bones: split the Scale In/Out properties into X and Y values.

As far as I can tell, there is no technical reason why the B-Bone
segment thickness scaling can't be separated into two axes. The
only downside is the increase in complexity of the B-Bone settings,
but this is inevitable due to the increase in flexibility.

Updating the file is somewhat complicated though, because F-Curves
and drivers have to be duplicated and updated to the new names.

Reviewers: campbellbarton

Subscribers: icappiello, jpbouza

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

7 weeks agoFix T63233: Set default blur kernel radius to 2.
Jacques Lucke [Tue, 23 Apr 2019 10:31:37 +0000 (12:31 +0200)]
Fix T63233: Set default blur kernel radius to 2.

Reviewers: jbakker

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

7 weeks agoCleanup: Fix comment for ImBuf->encodedbuffer
Jacques Lucke [Tue, 23 Apr 2019 10:24:55 +0000 (12:24 +0200)]
Cleanup: Fix comment for ImBuf->encodedbuffer

7 weeks agoWorkbench: Support Active Vertex Color
Jeroen Bakker [Tue, 16 Apr 2019 12:00:16 +0000 (14:00 +0200)]
Workbench: Support Active Vertex Color

Currently it is not possible to view the vertex colors of an object. To
optimize the workflow, workbench will need to support Vertex Colors.

The Vertex Colors is a new option in `shading->color_type`. When objects
do not have vertex color, the objects will be rendered with the
`V3D_SHADING_OBJECT_COLOR`.

In order to support vertex colors in workbench the current texture/solid
shading structure is migrated to a primary shaders and fallback shaders.

Fix: T57000

Reviewers: brecht, fclem

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

7 weeks agoFix T63649: Action group expand setting for graph editor missing
Jacques Lucke [Tue, 23 Apr 2019 09:24:55 +0000 (11:24 +0200)]
Fix T63649: Action group expand setting for graph editor missing

I did not rename the other property to `show_expanded_dopesheet`
yet (as suggested in the report), because:
* Would break compatibility (haven't found any addon using it though).
* I'm not sure if this really only affects the dopesheet.

7 weeks agoCleanup: minor changes to scrollbar checks
Campbell Barton [Tue, 23 Apr 2019 07:12:09 +0000 (17:12 +1000)]
Cleanup: minor changes to scrollbar checks

Remove some redundant comments & declare vars in for loops.

7 weeks agoUI: ignore events in empty region overlap areas
Campbell Barton [Tue, 23 Apr 2019 06:43:50 +0000 (16:43 +1000)]
UI: ignore events in empty region overlap areas

- Resizable areas use 2D view bounds.
- Header uses the button bounds.
- A margin is added to avoid clicking between buttons.
- Region resize edges clamp to the 2D view bounds.

Resovles T61554

7 weeks agoUI: add ui_window_to_block_rctf, ui_window_to_region_rcti
Campbell Barton [Tue, 23 Apr 2019 06:39:14 +0000 (16:39 +1000)]
UI: add ui_window_to_block_rctf, ui_window_to_region_rcti

7 weeks agoUI: move auto_open clearing out of ui_region_contains_point_px
Campbell Barton [Tue, 23 Apr 2019 05:44:31 +0000 (15:44 +1000)]
UI: move auto_open clearing out of ui_region_contains_point_px

Prefer explicit call for menu buttons since it's confusing if only some
queries clear auto open.
Also queries shouldn't modify data.

7 weeks agoCleanup: style, use braces for compositor
Campbell Barton [Tue, 23 Apr 2019 01:21:22 +0000 (11:21 +1000)]
Cleanup: style, use braces for compositor

7 weeks agoCleanup: style, use braces for imbuf
Campbell Barton [Tue, 23 Apr 2019 01:01:30 +0000 (11:01 +1000)]
Cleanup: style, use braces for imbuf

7 weeks agoFix T63772: Movie clip toggle toolbar fails
Campbell Barton [Tue, 23 Apr 2019 00:00:48 +0000 (10:00 +1000)]
Fix T63772: Movie clip toggle toolbar fails

D4718 by @Gvgeo

7 weeks agoApp Template: match screen names to workspaces
Campbell Barton [Mon, 22 Apr 2019 22:49:10 +0000 (08:49 +1000)]
App Template: match screen names to workspaces

Doing this makes versioning workspace screens simpler.

This was already done for the default startup file.

7 weeks agoCorrect braces with ifdef's
Campbell Barton [Mon, 22 Apr 2019 22:36:57 +0000 (08:36 +1000)]
Correct braces with ifdef's

7 weeks agoRename: Separate: By loose parts > By Loose Parts
Dalai Felinto [Mon, 22 Apr 2019 13:10:19 +0000 (10:10 -0300)]
Rename: Separate: By loose parts > By Loose Parts

7 weeks agoCleanup: style, use braces
Campbell Barton [Mon, 22 Apr 2019 02:20:14 +0000 (12:20 +1000)]
Cleanup: style, use braces

Add braces for modules already using braces almost everywhere.

7 weeks agoCleanup: style, use braces for nodes
Campbell Barton [Mon, 22 Apr 2019 03:31:31 +0000 (13:31 +1000)]
Cleanup: style, use braces for nodes

7 weeks agoCleanup: style, use braces for blenkernel
Campbell Barton [Sun, 21 Apr 2019 23:39:35 +0000 (09:39 +1000)]
Cleanup: style, use braces for blenkernel

7 weeks agoCleanup: style, use braces for gpu
Campbell Barton [Sun, 21 Apr 2019 23:32:37 +0000 (09:32 +1000)]
Cleanup: style, use braces for gpu

7 weeks agoCleanup: style, use braces for editors
Campbell Barton [Sun, 21 Apr 2019 23:19:45 +0000 (09:19 +1000)]
Cleanup: style, use braces for editors

7 weeks agoCleanup: style, use braces for gpencil modifiers
Campbell Barton [Sun, 21 Apr 2019 23:16:44 +0000 (09:16 +1000)]
Cleanup: style, use braces for gpencil modifiers

7 weeks agoCleanup: style, use braces for makesdna, makesrna
Campbell Barton [Sun, 21 Apr 2019 23:16:18 +0000 (09:16 +1000)]
Cleanup: style, use braces for makesdna, makesrna

7 weeks agoCleanup: style, use braces for modifiers
Campbell Barton [Sun, 21 Apr 2019 23:15:10 +0000 (09:15 +1000)]
Cleanup: style, use braces for modifiers

7 weeks agoCleanup: style, use braces for blenloader
Campbell Barton [Sun, 21 Apr 2019 23:13:00 +0000 (09:13 +1000)]
Cleanup: style, use braces for blenloader

7 weeks agoCleanup: style, use braces for avi
Campbell Barton [Sun, 21 Apr 2019 23:10:05 +0000 (09:10 +1000)]
Cleanup: style, use braces for avi

7 weeks agoCleanup: style, use braces for blenfont
Campbell Barton [Sun, 21 Apr 2019 23:09:06 +0000 (09:09 +1000)]
Cleanup: style, use braces for blenfont

7 weeks agoCleanup: style, use braces for render
Campbell Barton [Sun, 21 Apr 2019 23:08:06 +0000 (09:08 +1000)]
Cleanup: style, use braces for render

7 weeks agoCleanup: comments (long lines) in render
Campbell Barton [Sun, 21 Apr 2019 17:05:53 +0000 (03:05 +1000)]
Cleanup: comments (long lines) in render

7 weeks agoCleanup: comments (long lines) in avi, blf & blt
Campbell Barton [Sun, 21 Apr 2019 15:50:49 +0000 (01:50 +1000)]
Cleanup: comments (long lines) in avi, blf & blt

7 weeks agoCleanup: comments (long lines) in gpu
Campbell Barton [Sun, 21 Apr 2019 15:45:43 +0000 (01:45 +1000)]
Cleanup: comments (long lines) in gpu

7 weeks agoCleanup: comments (long lines) in makesrna
Campbell Barton [Sun, 21 Apr 2019 16:48:05 +0000 (02:48 +1000)]
Cleanup: comments (long lines) in makesrna

7 weeks agoCleanup: comments (long lines) in makesdna
Campbell Barton [Sun, 21 Apr 2019 15:42:45 +0000 (01:42 +1000)]
Cleanup: comments (long lines) in makesdna

7 weeks agoCleanup: comments (long lines) in imbuf
Campbell Barton [Sun, 21 Apr 2019 15:18:55 +0000 (01:18 +1000)]
Cleanup: comments (long lines) in imbuf

7 weeks agoCleanup: comments (long lines) in blenloader
Campbell Barton [Sun, 21 Apr 2019 15:10:29 +0000 (01:10 +1000)]
Cleanup: comments (long lines) in blenloader

7 weeks agoCleanup: comments (long lines) in blenlib
Campbell Barton [Sun, 21 Apr 2019 14:54:27 +0000 (00:54 +1000)]
Cleanup: comments (long lines) in blenlib

7 weeks agoCleanup: comments (long lines) in editors
Campbell Barton [Sun, 21 Apr 2019 14:18:34 +0000 (00:18 +1000)]
Cleanup: comments (long lines) in editors

7 weeks agoFix error renaming Lamp to Light
Campbell Barton [Sun, 21 Apr 2019 20:21:49 +0000 (06:21 +1000)]
Fix error renaming Lamp to Light

Introduced in batch rename 3051e2f4ae8fd3e72a4.

7 weeks agoFix T63698: Eevee crash after recent clang-format changes
Brecht Van Lommel [Sun, 21 Apr 2019 09:32:48 +0000 (11:32 +0200)]
Fix T63698: Eevee crash after recent clang-format changes

Some GLSL compilers seem to not have problems with \ to break preprocessor
directives. I couldn't find other places with similar code, but fixing this
case by case is not ideal and the same issue may come up again.

8 weeks agoCleanup: comments (mainly long lines)
Campbell Barton [Sun, 21 Apr 2019 03:44:06 +0000 (13:44 +1000)]
Cleanup: comments (mainly long lines)

Comments after code can cause awkward line breaks.

8 weeks agoMerge branch 'blender2.7'
Brecht Van Lommel [Sun, 21 Apr 2019 01:08:58 +0000 (03:08 +0200)]
Merge branch 'blender2.7'

8 weeks agoFix T62408: Cycles viewport adaptive subdivision hangs after updates
Brecht Van Lommel [Thu, 4 Apr 2019 18:06:22 +0000 (20:06 +0200)]
Fix T62408: Cycles viewport adaptive subdivision hangs after updates

Backporting fix from the master branch.

8 weeks agoFix T63431: crash adding driver to a keyframed property with Ctrl+D
Brecht Van Lommel [Sun, 21 Apr 2019 00:34:26 +0000 (02:34 +0200)]
Fix T63431: crash adding driver to a keyframed property with Ctrl+D

8 weeks agoFix T63415: no Cycles displacement update when updating OSL code
Brecht Van Lommel [Sun, 21 Apr 2019 00:18:19 +0000 (02:18 +0200)]
Fix T63415: no Cycles displacement update when updating OSL code

8 weeks agoFix T63681: bad clipping of very long tooltips
Brecht Van Lommel [Sat, 20 Apr 2019 23:22:07 +0000 (01:22 +0200)]
Fix T63681: bad clipping of very long tooltips

8 weeks agoFix T63686: missing data path for 3D cursor location and rotation.
Brecht Van Lommel [Sat, 20 Apr 2019 23:11:12 +0000 (01:11 +0200)]
Fix T63686: missing data path for 3D cursor location and rotation.

8 weeks agoFix T63764: error when using library.users_id() function
Brecht Van Lommel [Sat, 20 Apr 2019 22:58:38 +0000 (00:58 +0200)]
Fix T63764: error when using library.users_id() function

Fix suggested by Vilem Duha.

8 weeks agomake.bat: remove --expand-tabs from "make format" on windows.
Ray Molenkamp [Sat, 20 Apr 2019 19:10:30 +0000 (13:10 -0600)]
make.bat: remove --expand-tabs from "make format" on windows.

following the change on linux.

8 weeks agoCorrect error in last commit
Campbell Barton [Sat, 20 Apr 2019 18:58:52 +0000 (04:58 +1000)]
Correct error in last commit

8 weeks agoUI: remove redundant row for header template
Campbell Barton [Sat, 20 Apr 2019 18:49:19 +0000 (04:49 +1000)]
UI: remove redundant row for header template

If it's members need to be aligned the template can handle it.

8 weeks agoCleanup: add missing macros to clang-format
Campbell Barton [Sat, 20 Apr 2019 18:40:16 +0000 (04:40 +1000)]
Cleanup: add missing macros to clang-format

8 weeks agoGNUMakefile: disable tab expansion for 'make format'
Campbell Barton [Sat, 20 Apr 2019 18:36:16 +0000 (04:36 +1000)]
GNUMakefile: disable tab expansion for 'make format'

This was only needed for initial migration.

8 weeks agoUI Overlays: Align checkbox with slider for Wireframes, X-Ray, Shadows.
Pablo Vazquez [Sat, 20 Apr 2019 17:01:46 +0000 (19:01 +0200)]
UI Overlays: Align checkbox with slider for Wireframes, X-Ray, Shadows.

8 weeks agoUI Overlays: One line layout for Mask opacity.
Pablo Vazquez [Sat, 20 Apr 2019 17:01:03 +0000 (19:01 +0200)]
UI Overlays: One line layout for Mask opacity.

Saves one line of space and matches Wireframe, X-Ray, Shadows.

8 weeks agoFix invalid stack memory use with GPencil drawing
Campbell Barton [Sat, 20 Apr 2019 11:35:14 +0000 (13:35 +0200)]
Fix invalid stack memory use with GPencil drawing

8 weeks agoFix error in recent image preference change
Campbell Barton [Sat, 20 Apr 2019 13:13:04 +0000 (15:13 +0200)]
Fix error in recent image preference change

8 weeks agoNLA: check that properties are animatable.
Alexander Gavrilov [Sat, 20 Apr 2019 11:15:30 +0000 (14:15 +0300)]
NLA: check that properties are animatable.

8 weeks agoGPU: automatically draw images with GLSL shader depending on resolution
Brecht Van Lommel [Sat, 20 Apr 2019 10:47:06 +0000 (12:47 +0200)]
GPU: automatically draw images with GLSL shader depending on resolution

This adds a new "Automatic" image display method which uses GLSL shaders for
most images. It only does CPU side color management for higher res images
where sending big float buffers to the GPU is likely to be a bottleneck or
cause memory usage problem.

Automatic is the default now, previously it was 2D Texture.

8 weeks agoCleanup: remove unused OpenGL functions, rename some for clarity
Brecht Van Lommel [Sat, 20 Apr 2019 10:56:29 +0000 (12:56 +0200)]
Cleanup: remove unused OpenGL functions, rename some for clarity

8 weeks agoUI: correct accidental removal of TOPBAR_PT_name
Campbell Barton [Sat, 20 Apr 2019 11:28:16 +0000 (13:28 +0200)]
UI: correct accidental removal of TOPBAR_PT_name

Mistake in 9573bf432c4b0

8 weeks agoCleanup: re-use test for ELEM & STR_ELEM
Campbell Barton [Sat, 20 Apr 2019 11:02:20 +0000 (13:02 +0200)]
Cleanup: re-use test for ELEM & STR_ELEM

Avoid having same test running at the end of each macro.

8 weeks agoCleanup: quiet warning for NULL pointer use
Campbell Barton [Sat, 20 Apr 2019 10:31:22 +0000 (12:31 +0200)]
Cleanup: quiet warning for NULL pointer use

Warning was false positive but avoid repeating the same check.

8 weeks ago3D View: add opacity for sculpt mask display
Pablo Dobarro [Sat, 20 Apr 2019 09:58:44 +0000 (11:58 +0200)]
3D View: add opacity for sculpt mask display

This matches vertex/texture paint opacity options.

Useful because 0.75 is sometimes too dark to see the surface shading.

Resolves T63746

8 weeks agoCleanup: de-duplicate flag setting macro
Campbell Barton [Sat, 20 Apr 2019 09:39:25 +0000 (11:39 +0200)]
Cleanup: de-duplicate flag setting macro

8 weeks agoCleanup: quiet extra-semicolon warning
Campbell Barton [Sat, 20 Apr 2019 09:28:21 +0000 (11:28 +0200)]
Cleanup: quiet extra-semicolon warning

8 weeks agoFix T63732: GPencil Onion now working with multiwindows
Antonioya [Sat, 20 Apr 2019 08:26:15 +0000 (10:26 +0200)]
Fix T63732: GPencil Onion now working with multiwindows

If you had several windows or, after last changes in topbar, several areas, the swith of overlays or Onion Skin was not working by area, but as whole switch, so it was impossible to have different status by window.

8 weeks agoCleanup: comment line length (tests)
Campbell Barton [Sat, 20 Apr 2019 08:06:01 +0000 (10:06 +0200)]
Cleanup: comment line length (tests)

8 weeks agoCleanup: comment line length (windowmanager)
Campbell Barton [Sat, 20 Apr 2019 08:02:28 +0000 (10:02 +0200)]
Cleanup: comment line length (windowmanager)

8 weeks agoCleanup: formatting, unused args
Campbell Barton [Sat, 20 Apr 2019 07:15:06 +0000 (09:15 +0200)]
Cleanup: formatting, unused args

8 weeks agoOutliner: Simplify logic for parent nesting
Dalai Felinto [Fri, 19 Apr 2019 22:02:05 +0000 (19:02 -0300)]
Outliner: Simplify logic for parent nesting

8 weeks agoEdit Mode: Make edit edges black by default
Clément Foucault [Fri, 19 Apr 2019 17:39:44 +0000 (19:39 +0200)]
Edit Mode: Make edit edges black by default

This is in order to have better contrast now that
the edges are half transparent if not
in edge selection.

8 weeks agoDRW: Expose VBO garbage collection timings
Clément Foucault [Fri, 19 Apr 2019 16:52:38 +0000 (18:52 +0200)]
DRW: Expose VBO garbage collection timings

This adds user side options to tweak the behavior
of the vbo garbage collection.

8 weeks agoT63644: Editing while parented is not rotating correctly
Antonioya [Fri, 19 Apr 2019 15:07:45 +0000 (17:07 +0200)]
T63644:  Editing while parented is not rotating correctly

This commit tries to fix the rotation problem when the parent is at layer level.

The problem was the object location was not used, so all object not in origin got weird transformations.

8 weeks agoFix T63669: Particle editing bypassing occlusion.
mano-wii [Fri, 19 Apr 2019 14:49:17 +0000 (11:49 -0300)]
Fix T63669: Particle editing bypassing occlusion.

The problem occurs because status changes between BackBuffer and Offscreen.

Reviewers: fclem

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

8 weeks agoFix T63648: Missing update when changing particle force fields
Sergey Sharybin [Fri, 19 Apr 2019 13:38:45 +0000 (15:38 +0200)]
Fix T63648: Missing update when changing particle force fields

Force fields requires relations update in the dependency graph.

8 weeks agoCleanup: Remove dead code
Sergey Sharybin [Fri, 19 Apr 2019 13:36:18 +0000 (15:36 +0200)]
Cleanup: Remove dead code

There is no more sorting happening, so the comment is out of date
by manu reasons. If something extra is needed there it would need
to be done differently anyway.

8 weeks agoEdit Mode: Reduce Selected face alpha
Clément Foucault [Fri, 19 Apr 2019 13:18:45 +0000 (15:18 +0200)]
Edit Mode: Reduce Selected face alpha

This is to be less intrusive when doing UV mapping. They remain enough visible
in every select mode

8 weeks agoEdit Mode: Change face mode edges display
Clément Foucault [Fri, 19 Apr 2019 13:08:46 +0000 (15:08 +0200)]
Edit Mode: Change face mode edges display

This improve visibility in edit face select mode by using the face select color
instead of the edge select color (which is in default theme a bit more red). Also
makes the selected edges in this mode a bit more opaque (0.75 instead of  0.4).
Full opacity is still reserved for edge select mode.

8 weeks agoDRW: Add batch garbage collection
Clément Foucault [Fri, 19 Apr 2019 00:22:22 +0000 (02:22 +0200)]
DRW: Add batch garbage collection

This is only working for shading batches for the moment and only if some Custom data layer are not needed anymore.

The collection rate is hardcoded at 60 sec but could be exposed to the user.

This system can be extended and discard most unused batches in the future.

This commit is in prevision of removing BKE_MESH_BATCH_DIRTY_SHADING when changing shader parameters.

8 weeks agoDRW: Make shaded batch validation more correct
Clément Foucault [Thu, 18 Apr 2019 15:25:04 +0000 (17:25 +0200)]
DRW: Make shaded batch validation more correct

This is in order to support garbage collection of unused Custom data layer uploaded to the GPU.

Actual Garbage Collection is not added by this commit.

8 weeks agoCleanup: Remove image preview code
Sergey Sharybin [Fri, 19 Apr 2019 10:05:51 +0000 (12:05 +0200)]
Cleanup: Remove image preview code

Was commented out for literally 10 years.

8 weeks agoCleanup: Remove unneeded compositor update function
Sergey Sharybin [Fri, 19 Apr 2019 09:53:00 +0000 (11:53 +0200)]
Cleanup: Remove unneeded compositor update function

Similar to previous commit.

Compositing with animation on socket values and image sequences
still works fine.

8 weeks agoCleanup: Remove unneeded texture nodes update function
Sergey Sharybin [Fri, 19 Apr 2019 09:11:27 +0000 (11:11 +0200)]
Cleanup: Remove unneeded texture nodes update function

The function was calling update() on the time curve, but there
is no update callback on that node. So, effectively the function
was doing nothing.

8 weeks agoFix error in recently added STR_ELEM macro
Campbell Barton [Fri, 19 Apr 2019 12:49:57 +0000 (14:49 +0200)]
Fix error in recently added STR_ELEM macro

Very bad oversight, using pointer comparison instead of strcmp
for all but the first item.

8 weeks agoCMake: fix Cycles linking with OpenCL
Campbell Barton [Fri, 19 Apr 2019 12:00:16 +0000 (14:00 +0200)]
CMake: fix Cycles linking with OpenCL