Commit Graph

84473 Commits

Author SHA1 Message Date
29877fb1a4 Workbench: Fix srgb texture not being color managed in texture color mode 2018-12-17 17:05:57 +01:00
0d511e05d3 Cleanup: Fix typo in comment 2018-12-17 16:34:08 +01:00
4f220cd1cd GP: Change Primitive manipulator to secondary Gizmo color 2018-12-17 16:26:25 +01:00
37d09827c6 Fix T59112: bone pinning error
Reviewers: angavrilov, brecht

Maniphest Tasks: T59112

Differential Revision: https://developer.blender.org/D4057
2018-12-17 15:13:29 +01:00
6dcf788d12 Fix T59493: view selected in GP edit mode does not take obmat into account 2018-12-17 15:03:20 +01:00
9b80c70fc5 GP: Change Primitive manipulator color 2018-12-17 14:48:10 +01:00
bb58354232 Fix T59490: wrong curve handle lines 2018-12-17 14:34:32 +01:00
ce3d00b9b7 Fix T59404: Mistake in recent EdgeHash refactor broke edge generations in mesh validate code. 2018-12-17 14:28:29 +01:00
60a5559b6c Correct modifier stack validation 2018-12-17 12:44:48 +01:00
86e6901662 Fix T59172: Blender 2.7x keymap error when setting pivot point
- only call pivot/orientation pies in non-legacy mode (had duplicate
entries)
- space_data.pivot_point > tool_settings.transform_pivot_point

Reviewers: brecht

Maniphest Tasks: T59172

Differential Revision: https://developer.blender.org/D4088
2018-12-17 12:42:47 +01:00
a84c823b89 Fix T58652: Crash editing shape keys weirdness with instances
This is a second attempt to get the crash fixed. The original fix
worked, but it was reverted by d3e0d7f082.

Now the logic goes as:

- All pointers which we can not have shared (the ones which are
  owned by the runtime) are cleared.
- The rest of runtime stays untouched.

This seems to be enough to keep particles happy.
2018-12-17 12:33:37 +01:00
dcc11360c6 Remove some files restored in Game Engine
Most likely was caused by bad resolution of recent merge conflict.
2018-12-17 11:53:54 +01:00
7d36a2a775 Fix T59483: Grease Pencil Additive Drawing mode doesn't work with shapes 2018-12-17 11:34:50 +01:00
b253fe4d1b Eevee: Change Bent normal calculation
This changes the bent normal effect to be a bit more subtle.
I also tuned down the bent normal blending factor so mesh faceted look may
appear more in occluded regions. this is to increase the fidelity of the
indirect lighting. This blending might be a parameter in the future.

Based the calculation on "Bent Normals and Cones in Screen-space"
by O. Klehm, T. Ritschel, E. Eisemann, H.-P. Seidel
2018-12-17 09:54:24 +01:00
99457dd981 GPU: Add Intel HD Graphics 530 to the list of buggy intel gpus 2018-12-17 08:56:38 +01:00
30a0f1a2bf Workbench: Use int to fix compilation issues on certain platform 2018-12-17 08:47:37 +01:00
b322ce0847 Context: add objects_in_mode(_unique_data)
Needed for Python to easily support multi-object edit/pose modes.
2018-12-17 17:55:18 +11:00
8ec7429a70 Merge branch 'master' into blender2.8 2018-12-17 17:32:42 +11:00
42b9df5907 Cleanup: use 'tool_settings' name everywhere in UI scripts 2018-12-17 17:22:50 +11:00
7fac1bfc20 Context: remove active_gpencil_brush
We don't have this for other painting modes,
no need for a special case here.
2018-12-17 17:17:43 +11:00
c73958a100 Theme: use grey for blender_light inactive menu text
There wasn't enough difference between labels and menu item text which
could be selected.
2018-12-17 16:52:06 +11:00
a2a39bada2 Theme: use black for blender_light view-overlay
Cursor axes & transform guide contrasting w/ background was too low.
2018-12-17 14:55:19 +11:00
21c1c3c59c 3D View: empty image option to show front/back
Only back was possible.
2018-12-17 14:49:16 +11:00
365ef09815 Correct error in last commit 2018-12-17 14:46:18 +11:00
d72d2d4133 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.
2018-12-17 13:55:06 +11:00
9149e89421 Merge branch 'master' into blende2.8 2018-12-17 10:25:40 +11:00
98f43ba3e4 Cleanup: use bit-shifted flag definitions in DNA 2018-12-17 09:55:47 +11:00
ea33b90a1b Fix T59446: Grease pencil mirror modifier wrong
The mirror was working different to mesh mirror and the result was not the expected.
2018-12-16 19:53:40 +01:00
fbed69866e 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.
2018-12-16 18:25:55 +01:00
c733062d27 GP: Primitive: Add curve tool icon
Thanks @billrey
2018-12-16 14:20:05 +00:00
cfa46ddf6c UI: initialize Overridable Static checkbox for custom properties. 2018-12-16 17:09:32 +03:00
1578ce46c5 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.
2018-12-16 12:19:20 +01:00
4488056f3d 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.
2018-12-16 11:27:01 +11:00
e01755033a Cleanup: theme right shift 2018-12-16 11:21:32 +11:00
41a3634f80 Theme: include new colors
No visible changes.
2018-12-16 11:19:26 +11:00
4b545d1bbf Fix T58975: "@=" operator silently fails
D4083 by @artfunkel
2018-12-16 09:49:00 +11:00
3e311fdcd1 Cleanup: style 2018-12-16 09:30:05 +11:00
73dd9c4d34 Fix string formatting, fall through attr 2018-12-16 09:23:07 +11:00
351f537fa8 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.
2018-12-15 17:21:47 +01:00
f9917a8d43 Fix T59396 Grease pencil brush crash
The problem was the brush was not initializated because some code was missing (marked as ToDo)
2018-12-15 09:54:31 +01:00
b73529fafd GP: Add NULL checking for object 2018-12-15 09:36:08 +01:00
ba1f178c1c 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
2018-12-14 21:33:31 -02:00
Dalai Felinto
9fbada4a3b 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 :)
2018-12-14 20:35:57 -02:00
Dalai Felinto
fa41350c72 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.
2018-12-14 20:33:31 -02:00
Dalai Felinto
a63209e175 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.
2018-12-14 19:53:07 -02:00
Dalai Felinto
2b7e56964a Fix UV editor missing/typo circle_select 2018-12-14 19:24:35 -02:00
de662e7cd3 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
2018-12-14 22:19:18 +03:00
Dalai Felinto
fc74903f27 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;
```
2018-12-14 17:09:29 -02:00
f6f46accfe GP: Added keymaps for Sculpt select
Still T58986 not fixed.
2018-12-14 19:13:53 +01:00
7bf6a9ee94 GP: Fix missing changes after rename CTX
Thanks to Charlie Jolly for find the bug.
2018-12-14 19:07:30 +01:00