blender.git
9 months agoGPU: Add Intel HD Graphics 530 to the list of buggy intel gpus
Clément Foucault [Mon, 17 Dec 2018 07:56:38 +0000 (08:56 +0100)]
GPU: Add Intel HD Graphics 530 to the list of buggy intel gpus

9 months agoWorkbench: Use int to fix compilation issues on certain platform
Clément Foucault [Mon, 17 Dec 2018 07:47:37 +0000 (08:47 +0100)]
Workbench: Use int to fix compilation issues on certain platform

9 months agoContext: add objects_in_mode(_unique_data)
Campbell Barton [Mon, 17 Dec 2018 06:55:18 +0000 (17:55 +1100)]
Context: add objects_in_mode(_unique_data)

Needed for Python to easily support multi-object edit/pose modes.

9 months agoMerge branch 'master' into blender2.8
Campbell Barton [Mon, 17 Dec 2018 06:26:47 +0000 (17:26 +1100)]
Merge branch 'master' into blender2.8

9 months agoCleanup: use 'tool_settings' name everywhere in UI scripts
Campbell Barton [Mon, 17 Dec 2018 06:20:24 +0000 (17:20 +1100)]
Cleanup: use 'tool_settings' name everywhere in UI scripts

9 months agoContext: remove active_gpencil_brush
Campbell Barton [Mon, 17 Dec 2018 06:17:43 +0000 (17:17 +1100)]
Context: remove active_gpencil_brush

We don't have this for other painting modes,
no need for a special case here.

9 months agoTheme: use grey for blender_light inactive menu text
Campbell Barton [Mon, 17 Dec 2018 05:52:06 +0000 (16:52 +1100)]
Theme: use grey for blender_light inactive menu text

There wasn't enough difference between labels and menu item text which
could be selected.

9 months agoTheme: use black for blender_light view-overlay
Campbell Barton [Mon, 17 Dec 2018 03:55:19 +0000 (14:55 +1100)]
Theme: use black for blender_light view-overlay

Cursor axes & transform guide contrasting w/ background was too low.

9 months ago3D View: empty image option to show front/back
Campbell Barton [Mon, 17 Dec 2018 03:49:16 +0000 (14:49 +1100)]
3D View: empty image option to show front/back

Only back was possible.

9 months agoCorrect error in last commit
Campbell Barton [Mon, 17 Dec 2018 03:46:18 +0000 (14:46 +1100)]
Correct error in last commit

9 months agoDNA: clear / remove deprecated flags
Campbell Barton [Mon, 17 Dec 2018 02:21:49 +0000 (13:21 +1100)]
DNA: clear / remove deprecated flags

- Clear deprecated flags for ID's:
  Scene, Sequence, World, Object & Mesh.
- Clear deprecated flags for Spaces: outliner, 3D view & image.
- Remove unused `Mesh.drawflag`
- Remove unused `USER_ALLWINCODECS`, `USER_MMB_PASTE`.
- Remove `V3D_SOLID_TEX` & `V3D_ZBUF_SELECT` - used in a few areas.
- Flip `Object.empty_image_visibility_flag`
  (avoids do-version on each new flag)
- Rename 'Backside' -> 'Back' in context of drawing - showing 'Back'
  makes sense.

9 months agoMerge branch 'master' into blende2.8
Campbell Barton [Sun, 16 Dec 2018 23:25:40 +0000 (10:25 +1100)]
Merge branch 'master' into blende2.8

9 months agoCleanup: use bit-shifted flag definitions in DNA
Campbell Barton [Sun, 16 Dec 2018 22:55:02 +0000 (09:55 +1100)]
Cleanup: use bit-shifted flag definitions in DNA

9 months agoFix T59446: Grease pencil mirror modifier wrong
Antonioya [Sun, 16 Dec 2018 18:53:40 +0000 (19:53 +0100)]
Fix T59446: Grease pencil mirror modifier wrong

The mirror was working different to mesh mirror and the result was not the expected.

9 months agoGP: Add option to occlude eraser
Antonioya [Sun, 16 Dec 2018 17:24:52 +0000 (18:24 +0100)]
GP: Add option to occlude eraser

This adds the functionality requested in T59417 adding a new button near of pressure button of the brush to enable/disable occlude effect for eraser.

9 months agoGP: Primitive: Add curve tool icon
Charlie Jolly [Sun, 16 Dec 2018 14:15:36 +0000 (14:15 +0000)]
GP: Primitive: Add curve tool icon

Thanks @billrey

9 months agoUI: initialize Overridable Static checkbox for custom properties.
Alexander Gavrilov [Sat, 15 Dec 2018 15:50:44 +0000 (18:50 +0300)]
UI: initialize Overridable Static checkbox for custom properties.

9 months agoGP: Fix Onion Skin slow performance
Antonioya [Sun, 16 Dec 2018 11:19:20 +0000 (12:19 +0100)]
GP: Fix Onion Skin slow performance

The number of vertex for VBO was not calculated for onion skin and made the realloc of memory very slow.

9 months agoTheme: blender_light text editing colors were too similar
Campbell Barton [Sun, 16 Dec 2018 00:27:01 +0000 (11:27 +1100)]
Theme: blender_light text editing colors were too similar

Make the background of text editing fields dark to contrast with
selection and the cursor, similar to T59219.

9 months agoCleanup: theme right shift
Campbell Barton [Sun, 16 Dec 2018 00:20:56 +0000 (11:20 +1100)]
Cleanup: theme right shift

9 months agoTheme: include new colors
Campbell Barton [Sun, 16 Dec 2018 00:18:21 +0000 (11:18 +1100)]
Theme: include new colors

No visible changes.

9 months agoFix T58975: "@=" operator silently fails
Campbell Barton [Sat, 15 Dec 2018 22:46:34 +0000 (09:46 +1100)]
Fix T58975: "@=" operator silently fails

D4083 by @artfunkel

9 months agoCleanup: style
Campbell Barton [Sat, 15 Dec 2018 22:29:04 +0000 (09:29 +1100)]
Cleanup: style

9 months agoFix string formatting, fall through attr
Campbell Barton [Sat, 15 Dec 2018 22:23:07 +0000 (09:23 +1100)]
Fix string formatting, fall through attr

9 months agoGP: New Curve primitive and other primitive improvements
Antonioya [Sat, 15 Dec 2018 16:21:47 +0000 (17:21 +0100)]
GP: New Curve primitive and other primitive improvements

This commit adds support for new curve tool and adds more functionalities to the existing primitives, including new handles, editing, stroke thickness curve, noise, preview of the real stroke, etc.

Thanks to @charlie for his great contribution to this improvement.

9 months agoFix T59396 Grease pencil brush crash
Antonioya [Sat, 15 Dec 2018 08:54:31 +0000 (09:54 +0100)]
Fix T59396 Grease pencil brush crash

The problem was the brush was not initializated because some code was missing (marked as ToDo)

9 months agoGP: Add NULL checking for object
Antonioya [Sat, 15 Dec 2018 08:36:08 +0000 (09:36 +0100)]
GP: Add NULL checking for object

9 months agoFix T56185, T59351: bypass GL_PROXY_TEXTURE.. test on AMD GPU + windows
mano-wii [Fri, 14 Dec 2018 23:30:50 +0000 (21:30 -0200)]
Fix T56185, T59351: bypass GL_PROXY_TEXTURE.. test on AMD GPU + windows

This replaces the test of consistency and capacity made with `GL_PROXY_TEXTURE_..` on AMD GPUs with one that checks only if the texture fits the limits of size and layer.

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

9 months agoFix T59388: Blender crash upon F3 command search in VSE
Dalai Felinto [Fri, 14 Dec 2018 22:35:55 +0000 (20:35 -0200)]
Fix T59388: Blender crash upon F3 command search in VSE

We may not have an active object depending on where the operator is called from
or well if we simply don't have an active object :)

9 months agoUV pin: Use ID_RECALC_COPY_ON_WRITE instead of the almighty 0
Dalai Felinto [Fri, 14 Dec 2018 22:33:29 +0000 (20:33 -0200)]
UV pin: Use ID_RECALC_COPY_ON_WRITE instead of the almighty 0

I suppose the cow tag is more correct for those generic/non-specific
tags. Thank you Sergey.

9 months agoFix T59381: UV editor - Pinned vertex missing update
Dalai Felinto [Fri, 14 Dec 2018 21:47:46 +0000 (19:47 -0200)]
Fix T59381: UV editor - Pinned vertex missing update

Pinning doesn't really change the geometry, so we don't really have a
tag for this. Using '0' for now (same we use for Mark Seam).

I will check with Sergey Sharybin which flag to use instead.
We could use ID_RECALC_GEOMETRY to match the notifier, but even the
simpler ID_RECALC_SELECT would do it.

9 months agoFix UV editor missing/typo circle_select
Dalai Felinto [Fri, 14 Dec 2018 21:24:14 +0000 (19:24 -0200)]
Fix UV editor missing/typo circle_select

9 months agoNLA: insert keyframes correctly for strips with non-Replace mode.
Alexander Gavrilov [Mon, 12 Nov 2018 16:41:53 +0000 (19:41 +0300)]
NLA: insert keyframes correctly for strips with non-Replace mode.

NLA strips support using the keyframe values in a variety of ways:
adding, subtracting, multiplying, linearly mixing with the result
of strips located below in the stack. This is intended for layering
tweaks on top of a base animation.

However, when inserting keyframes into such strips, it simply inserts
the final value of the property, irrespective of these settings. This
in fact makes the feature nearly useless.

To fix this it is necessary to evaluate the NLA stack below the
edited strip and correctly compute the raw key that would produce
the intended final value, according to the mode and influence.

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

9 months agoFix T59322: View Layer - Search not working
Dalai Felinto [Fri, 14 Dec 2018 19:03:47 +0000 (17:03 -0200)]
Fix T59322: View Layer - Search not working

Basically uiRNACollectionSearch->but_changed was always NULL for the
search templates. So skip_filter would always be true, and we would
never filter.

An alternative fix would be to add the following to the begin of
`template_search_add_button_searchmenu`:
```
static bool always_true = true;
template_search->search_data.but_changed = &always_true;
```

9 months agoGP: Added keymaps for Sculpt select
Antonioya [Fri, 14 Dec 2018 18:13:53 +0000 (19:13 +0100)]
GP: Added keymaps for Sculpt select

Still T58986 not fixed.

9 months agoGP: Fix missing changes after rename CTX
Antonioya [Fri, 14 Dec 2018 18:07:11 +0000 (19:07 +0100)]
GP: Fix missing changes after rename CTX

Thanks to Charlie Jolly for find the bug.

9 months agofix shader editor errors when showing world shader tree
Philipp Oeser [Fri, 14 Dec 2018 16:58:12 +0000 (17:58 +0100)]
fix shader editor errors when showing world shader tree

probably an oversight in rBd40bffa17f6d

Reviewers: brecht

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

9 months agoMerge branch 'master' into blender2.8
Sergey Sharybin [Fri, 14 Dec 2018 16:40:27 +0000 (17:40 +0100)]
Merge branch 'master' into blender2.8

9 months agoDependencies builder: Don't rely on system-wide PugiXML
Sergey Sharybin [Fri, 14 Dec 2018 16:39:38 +0000 (17:39 +0100)]
Dependencies builder: Don't rely on system-wide PugiXML

10 months agoFix broken particle distribution after recent fix
Sergey Sharybin [Fri, 14 Dec 2018 16:33:36 +0000 (17:33 +0100)]
Fix broken particle distribution after recent fix

10 months agoFix wrong color in center of HSV circle picker, after recent changes.
Brecht Van Lommel [Fri, 14 Dec 2018 16:29:41 +0000 (17:29 +0100)]
Fix wrong color in center of HSV circle picker, after recent changes.

10 months agoFix T59358: Wrong status bar keymap for release confirms and right click select.
Sebastian Parborg [Fri, 14 Dec 2018 13:54:05 +0000 (14:54 +0100)]
Fix T59358: Wrong status bar keymap for release confirms and right click select.

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

10 months agoFix T59182: Blender 2.8 win64 crashes on start
Clément Foucault [Fri, 14 Dec 2018 15:53:32 +0000 (16:53 +0100)]
Fix T59182: Blender 2.8 win64 crashes on start

10 months agoGP: Rename CTX and OB modes
Antonioya [Fri, 14 Dec 2018 15:45:57 +0000 (16:45 +0100)]
GP: Rename CTX and OB modes

Part of T59335.

10 months agoEdit Curve: Add Normal size in overlay popover and change default range
Clément Foucault [Fri, 14 Dec 2018 15:35:51 +0000 (16:35 +0100)]
Edit Curve: Add Normal size in overlay popover and change default range

Change default range to 0..2 to improve the slider behavior.

10 months agoCurve Batch Cache: Add support for loose edges and curve/surf modifier
Clément Foucault [Fri, 14 Dec 2018 14:23:13 +0000 (15:23 +0100)]
Curve Batch Cache: Add support for loose edges and curve/surf modifier

Fixes T58298 Nurbs circle and curve dont draw in objectmode
Fixes T58107 Modified curves/surfaces/fonts do not show their eval mesh

10 months agoWireframe: Fix wireframe color in edit mode for surfaces
Clément Foucault [Fri, 14 Dec 2018 14:20:28 +0000 (15:20 +0100)]
Wireframe: Fix wireframe color in edit mode for surfaces

10 months agoDRW Batch Cache: Fix hack being a bit too much hacky
Clément Foucault [Fri, 14 Dec 2018 01:54:39 +0000 (02:54 +0100)]
DRW Batch Cache: Fix hack being a bit too much hacky

10 months agoDisplist: Reuse tesselated pos and nor for wireframes
Clément Foucault [Fri, 14 Dec 2018 01:52:50 +0000 (02:52 +0100)]
Displist: Reuse tesselated pos and nor for wireframes

This lower the memory usage and also fix a bug with metaballs normals/tris
winding being reversed.

10 months agoCurve Batch Cache: Add back support for shaded geometry
Clément Foucault [Thu, 13 Dec 2018 23:42:16 +0000 (00:42 +0100)]
Curve Batch Cache: Add back support for shaded geometry

This changes a bit the batches data structure. Instead of using one
vbo per material we use one for all material and use index buffers for
selecting the correct triangles.

This is less optimized than before but has potential to become more
optimized by merging the wireframe data vbo into the shading one.

Also the index buffers are not strictly necessary and could be just
ranges inside the buffer. But this needs more adding things inside
GPUIndexBuf.

10 months agoGPUBatch: Add GPU_batch_clear to clear batches without freeing
Clément Foucault [Thu, 13 Dec 2018 23:07:59 +0000 (00:07 +0100)]
GPUBatch: Add GPU_batch_clear to clear batches without freeing

10 months agoWireframe: Fix Object Viewport display "all edges" options not working
Clément Foucault [Thu, 13 Dec 2018 02:33:53 +0000 (03:33 +0100)]
Wireframe: Fix Object Viewport display "all edges" options not working

10 months agoCurve Batch Cache: Rework Implementation to use new batch request
Clément Foucault [Thu, 13 Dec 2018 00:26:07 +0000 (01:26 +0100)]
Curve Batch Cache: Rework Implementation to use new batch request

Shaded triangles are not yet implemented (request from gpumaterials).

This also changes the mechanism to draw curve normals to make it not
dependant on normal size display. This way different viewport can
reuse the same batch.

10 months agoDRW: Simplify text edit drawing
Clément Foucault [Wed, 12 Dec 2018 19:42:30 +0000 (20:42 +0100)]
DRW: Simplify text edit drawing

This is to simplify the curve batch cache.

10 months agoGPUBuffers: Fix uninitialized memory use causing undefined conditional jump
Clément Foucault [Wed, 12 Dec 2018 15:53:41 +0000 (16:53 +0100)]
GPUBuffers: Fix uninitialized memory use causing undefined conditional jump

10 months agoFix T59334: Crash initializing crazyspace on object with subsurf and displacement
Sergey Sharybin [Fri, 14 Dec 2018 15:07:29 +0000 (16:07 +0100)]
Fix T59334: Crash initializing crazyspace on object with subsurf and displacement

10 months agoUI: show frame rate in movie clip editor
Jacques Lucke [Fri, 14 Dec 2018 14:34:44 +0000 (15:34 +0100)]
UI: show frame rate in movie clip editor

Feature Request from Hjialti.

10 months agoAttempt to sanitize node tree deletion
Sergey Sharybin [Fri, 14 Dec 2018 14:20:33 +0000 (15:20 +0100)]
Attempt to sanitize node tree deletion

Make it explicit when freeing node tree which is owned by other
ID or when freeing node tree which is outside of a bmain.

10 months agoFix T59220: Deleting object causes blender 2.8 to crash
Sergey Sharybin [Fri, 14 Dec 2018 13:53:29 +0000 (14:53 +0100)]
Fix T59220: Deleting object causes blender 2.8 to crash

The issue was caused by a special code in node tree freeing function
which will free extra fields in the case when tree is not in bmain.
This is how old code was dealing with "nested" trees, but is now
making behavior different from other datablocks. This is exactly
what was confusing copy-on-write logic.

Ideally, ntreeFreeTree() need to behave same as all other datablocks,
ad freeing of data of nested trees should be up to the owner of the
tree (this way it's all explicit and does not depend on check of
some special flag.

10 months agoMerge branch 'master' into blender2.8
Sergey Sharybin [Fri, 14 Dec 2018 13:50:47 +0000 (14:50 +0100)]
Merge branch 'master' into blender2.8

10 months agoCMake: Fixes for OpenGL library preferences
Sergey Sharybin [Fri, 14 Dec 2018 13:48:05 +0000 (14:48 +0100)]
CMake: Fixes for OpenGL library preferences

Prefer legacy OpenGL library, for the compatibility and portability
reasons.

Also use proper OpenGL libraries to be linked against, so we can
change preference to GLVND.

10 months agoFix T59365: Blender crashes when I try to open a .blend file.
Bastien Montagne [Fri, 14 Dec 2018 13:44:20 +0000 (14:44 +0100)]
Fix T59365: Blender crashes when I try to open a .blend file.

Broken logic in check for a valid vgroup storage pointer...

10 months agofix relationship line always drawing from the parents origin
Philipp Oeser [Fri, 14 Dec 2018 10:59:22 +0000 (11:59 +0100)]
fix relationship line always drawing from the parents origin

this can be different though (e.g. vertex parenting) and correct location
is already stored in ob->orig

spotted while looking into T59332

Reviewers: fclem, brecht

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

10 months agoFix T58351: Make Single User crashes
Dalai Felinto [Fri, 14 Dec 2018 11:20:56 +0000 (09:20 -0200)]
Fix T58351: Make Single User crashes

10 months agoNew object API function : BKE_object_eval_reset()
Dalai Felinto [Fri, 14 Dec 2018 10:40:33 +0000 (08:40 -0200)]
New object API function : BKE_object_eval_reset()

This restores the object->data to a non-modifier evaluated state.

So this allow us to change evaluated object modifier stack directly and
get BKE_mesh_new_from_object() for the evalauted object.

10 months agoBuild fixup for previous commit
Dalai Felinto [Fri, 14 Dec 2018 10:38:30 +0000 (08:38 -0200)]
Build fixup for previous commit

Build error introduced on: 285cfef695e18a63eba81a385f9fd82bcbccdabc.

10 months agoFix T58652: Crash editing shape keys weirdness with instances
Sergey Sharybin [Fri, 14 Dec 2018 10:32:07 +0000 (11:32 +0100)]
Fix T58652: Crash editing shape keys weirdness with instances

10 months agoFixing crash with cycles baking with is_cage and no cage
Dalai Felinto [Fri, 14 Dec 2018 10:27:37 +0000 (08:27 -0200)]
Fixing crash with cycles baking with is_cage and no cage

10 months agoTransform: remove incorrect 3D view check
Campbell Barton [Fri, 14 Dec 2018 05:59:26 +0000 (16:59 +1100)]
Transform: remove incorrect 3D view check

10 months agoUI: tweak text editing fields for higher contrast
Campbell Barton [Fri, 14 Dec 2018 04:04:49 +0000 (15:04 +1100)]
UI: tweak text editing fields for higher contrast

By default the text button background color was a similar brightness
to the cursor, making it hard to see at times.

Button types number/slider/text background brightness when editing
varied quite a lot too.

- Change the background while editing to match the number button.
- Darken the selection for greater contrast.

Resolves T59219

10 months agoFix T59347: Crash drawing empty image
Campbell Barton [Fri, 14 Dec 2018 03:07:56 +0000 (14:07 +1100)]
Fix T59347: Crash drawing empty image

10 months agoCorrect error in last commit
Campbell Barton [Fri, 14 Dec 2018 02:21:13 +0000 (13:21 +1100)]
Correct error in last commit

10 months agoKeymap: correct keymap names
Campbell Barton [Fri, 14 Dec 2018 01:17:00 +0000 (12:17 +1100)]
Keymap: correct keymap names

Generated names include the current context mode
which is irrelevant for generic 3D view tools.

10 months agoKeymap: only use double-click MMB w/ LMB select
Campbell Barton [Fri, 14 Dec 2018 01:01:27 +0000 (12:01 +1100)]
Keymap: only use double-click MMB w/ LMB select

10 months agoFix mesh select path not updating the gizmo
Campbell Barton [Fri, 14 Dec 2018 00:55:29 +0000 (11:55 +1100)]
Fix mesh select path not updating the gizmo

10 months agoMerge branch 'master' into blender2.8
Campbell Barton [Fri, 14 Dec 2018 00:39:39 +0000 (11:39 +1100)]
Merge branch 'master' into blender2.8

10 months agoFix selection history clearing when selecting all
Campbell Barton [Fri, 14 Dec 2018 00:38:02 +0000 (11:38 +1100)]
Fix selection history clearing when selecting all

10 months agoMerge branch 'master' into blender2.8
Campbell Barton [Fri, 14 Dec 2018 00:15:24 +0000 (11:15 +1100)]
Merge branch 'master' into blender2.8

10 months agoMissed last commit
Campbell Barton [Fri, 14 Dec 2018 00:14:57 +0000 (11:14 +1100)]
Missed last commit

10 months agoMerge branch 'master' into blender2.8
Campbell Barton [Fri, 14 Dec 2018 00:09:42 +0000 (11:09 +1100)]
Merge branch 'master' into blender2.8

10 months agoMissed last commit
Campbell Barton [Fri, 14 Dec 2018 00:01:01 +0000 (11:01 +1100)]
Missed last commit

10 months agoCleanup: naming (mean -> median) see T47811
Campbell Barton [Thu, 13 Dec 2018 23:54:11 +0000 (10:54 +1100)]
Cleanup: naming (mean -> median) see T47811

10 months agoCleanup: naming
Campbell Barton [Thu, 13 Dec 2018 23:30:06 +0000 (10:30 +1100)]
Cleanup: naming

10 months agoFix T59337: Camera visual aids ignore overlay
Campbell Barton [Thu, 13 Dec 2018 23:18:01 +0000 (10:18 +1100)]
Fix T59337: Camera visual aids ignore overlay

10 months agoPreferences: add option for header position
Campbell Barton [Thu, 13 Dec 2018 22:47:10 +0000 (09:47 +1100)]
Preferences: add option for header position

Sets the header position for newly created windows with few exceptions
(preferences is always bottom, file-selector is always top).

10 months agoFix compiler error
Campbell Barton [Thu, 13 Dec 2018 22:54:18 +0000 (09:54 +1100)]
Fix compiler error

10 months agoGP: Add Subdivide Smooth option
Antonioya [Thu, 13 Dec 2018 22:30:29 +0000 (23:30 +0100)]
GP: Add Subdivide Smooth option

10 months agoFix T59137: Prefs moves header to bottom
Campbell Barton [Thu, 13 Dec 2018 22:07:22 +0000 (09:07 +1100)]
Fix T59137: Prefs moves header to bottom

Only use a new spaces header alignment when no previous header exists.

10 months agoFix T57724: Opening file browser flips user-prefs header
Campbell Barton [Thu, 13 Dec 2018 21:43:14 +0000 (08:43 +1100)]
Fix T57724: Opening file browser flips user-prefs header

10 months agoMerge branch 'master' into blender2.8
Campbell Barton [Thu, 13 Dec 2018 21:14:52 +0000 (08:14 +1100)]
Merge branch 'master' into blender2.8

10 months agoFix typo in context docs.
Campbell Barton [Thu, 13 Dec 2018 21:13:55 +0000 (08:13 +1100)]
Fix typo in context docs.

10 months agoUI: show workspace cycling key bindings in menu
Campbell Barton [Thu, 13 Dec 2018 20:55:12 +0000 (07:55 +1100)]
UI: show workspace cycling key bindings in menu

10 months agoGP: New Smooth operator
Antonioya [Thu, 13 Dec 2018 18:49:13 +0000 (19:49 +0100)]
GP: New Smooth operator

Smooth a stroke, in edit mode, similar how mesh operator works with meshes.

10 months agoFix T58014, T58650: issues with hex color and Filmic view transform.
Brecht Van Lommel [Thu, 13 Dec 2018 17:28:41 +0000 (18:28 +0100)]
Fix T58014, T58650: issues with hex color and Filmic view transform.

Hex color values are now always in sRGB space, as would be expected by
most other applications. Previously they were in display space and using
the view transform.

10 months agoColor management: add OCIO aware utility functions for transform to/from XYZ.
Brecht Van Lommel [Fri, 12 Oct 2018 14:42:34 +0000 (16:42 +0200)]
Color management: add OCIO aware utility functions for transform to/from XYZ.

10 months agoFix T58549, T56741: HSV color picker issues with Filmic view transform.
Brecht Van Lommel [Thu, 13 Dec 2018 14:59:58 +0000 (15:59 +0100)]
Fix T58549, T56741: HSV color picker issues with Filmic view transform.

In 2d655d3 the color picker was changed to use display space HSV values.
This works ok for a simple sRGB EOTF, but fails with view transforms like
Filmic where display space V 1.0 maps to RGB 16.292.

Instead we now use the color_picking role from the OCIO config when
converting from RGB to HSV in the color picker. This role is set to sRGB
in the default OCIO config.

This color space fits the following requirements:

* It is approximately perceptually linear, so that the HSV numbers and
  the HSV cube/circle have an intuitive distribution.
* It has the same gamut as the scene linear color space.
* Color picking values 0..1 map to scene linear values in the 0..1 range,
  so that picked albedo values are energy conserving.

10 months agoSpeedup: new OldNewMap implementation for file loading
Jacques Lucke [Thu, 13 Dec 2018 14:29:54 +0000 (15:29 +0100)]
Speedup: new OldNewMap implementation for file loading

In production files that use a lot of linking I measured loading speedups between 5% and 18%. In files that use less linking the speedup might not be noticeable at all, but it should not be slower.

Reviewer: brecht

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

10 months agoMerge remote-tracking branch 'origin/master' into blender2.8
Ray Molenkamp [Thu, 13 Dec 2018 14:01:00 +0000 (07:01 -0700)]
Merge remote-tracking branch 'origin/master' into blender2.8

10 months agodeps: add missing sqlite dll to windows build.
Ray Molenkamp [Thu, 13 Dec 2018 13:59:37 +0000 (06:59 -0700)]
deps: add missing sqlite dll to windows build.

10 months agoMerge branch 'master' into blender2.8
Sergey Sharybin [Thu, 13 Dec 2018 13:32:32 +0000 (14:32 +0100)]
Merge branch 'master' into blender2.8