Commit Graph

75472 Commits

Author SHA1 Message Date
Sergey Sharybin
7e6288cfe6 Fix T58652: Crash editing shape keys weirdness with instances 2018-12-14 11:33:18 +01:00
Dalai Felinto
285cfef695 Fixing crash with cycles baking with is_cage and no cage 2018-12-14 08:31:24 -02:00
Campbell Barton
21523b5c86 Transform: remove incorrect 3D view check 2018-12-14 16:59:26 +11:00
Campbell Barton
9e82499d2d Fix T59347: Crash drawing empty image 2018-12-14 14:13:59 +11:00
Campbell Barton
f13a4b2f12 Fix mesh select path not updating the gizmo 2018-12-14 11:55:29 +11:00
Campbell Barton
9bac172a79 Merge branch 'master' into blender2.8 2018-12-14 11:39:39 +11:00
Campbell Barton
f0a481eebd Fix selection history clearing when selecting all 2018-12-14 11:38:02 +11:00
Campbell Barton
0f7c60c576 Merge branch 'master' into blender2.8 2018-12-14 11:15:24 +11:00
Campbell Barton
11a242dea1 Missed last commit 2018-12-14 11:14:57 +11:00
Campbell Barton
dd4c87cd04 Merge branch 'master' into blender2.8 2018-12-14 11:09:42 +11:00
Campbell Barton
aa3c4b4cb6 Missed last commit 2018-12-14 11:06:34 +11:00
Campbell Barton
6e2d9ef2db Cleanup: naming (mean -> median) see T47811 2018-12-14 10:54:11 +11:00
Campbell Barton
aca13040da Cleanup: naming 2018-12-14 10:34:12 +11:00
Campbell Barton
948256442b Fix T59337: Camera visual aids ignore overlay 2018-12-14 10:18:01 +11:00
Campbell Barton
9ea645862c 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).
2018-12-14 09:54:34 +11:00
Campbell Barton
dfa3e0ae81 Fix compiler error 2018-12-14 09:54:34 +11:00
Antonioya
c7a31bad9f GP: Add Subdivide Smooth option 2018-12-13 23:31:57 +01:00
Campbell Barton
26c8e09cff Fix T59137: Prefs moves header to bottom
Only use a new spaces header alignment when no previous header exists.
2018-12-14 09:09:41 +11:00
Campbell Barton
cb6d018ec9 Fix T57724: Opening file browser flips user-prefs header 2018-12-14 08:43:14 +11:00
Antonioya
7d3b1cdd7d GP: New Smooth operator
Smooth a stroke, in edit mode, similar how mesh operator works with meshes.
2018-12-13 19:49:13 +01:00
Brecht Van Lommel
a7b3d58066 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.
2018-12-13 19:25:47 +01:00
Brecht Van Lommel
f527ce5b2f Color management: add OCIO aware utility functions for transform to/from XYZ. 2018-12-13 19:25:46 +01:00
Brecht Van Lommel
6601a89650 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.
2018-12-13 19:25:45 +01:00
Jacques Lucke
33993c056a 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
2018-12-13 15:31:30 +01:00
Campbell Barton
5b6cb2de9a RNA: revert recent rename 'updated' -> 'dirty'
Partially reverts 45fdf41be8 & 6d38d82437,
added comment why term 'updated' is used in this case.
2018-12-13 23:19:01 +11:00
Campbell Barton
a3375729f8 Cleanup: macro hygiene, style, doxy comments 2018-12-13 23:04:14 +11:00
Campbell Barton
54fa78a048 BLI_edgehash: assert when edges use the same vert
This was removed on the recent upgrade.
2018-12-13 22:46:17 +11:00
Antonioya
a4afbe1153 GP: Cleanup const variables 2018-12-13 12:41:46 +01:00
Campbell Barton
1616c7c538 Fix error in recent key-item filtering
Grouping flags makes it impossible to exclude only modifiers for eg.

Fixes T59303
2018-12-13 22:39:15 +11:00
Sergej Reich
5cc015f0ad Fix force fields not affecting rigid bodies
This fixes part of T58991.
Still need to add proper relations so that point cache is marked as outdated
when effectors are modified.
2018-12-13 12:34:35 +01:00
Dalai Felinto
4d395a34dc Silence warning (const) 2018-12-13 09:18:17 -02:00
Antonioya
0c011fd689 GP: Missing change of texture format in previous commit 2018-12-13 12:19:06 +01:00
Jacques Lucke
ae5f19e32a Fix T59125: Outliner does not show view layer count
Reviewers: brecht

Differential Revision: https://developer.blender.org/D4060
2018-12-13 11:52:27 +01:00
Antonioya
6c39ea27c8 GP: Create Framebuffer textures only if needed
Now, if there aren't grease pencil objects, the textures and framebuffers are not created. This unload GPU Memory when not using GP.
2018-12-13 11:51:41 +01:00
Antonioya
715ab529f1 GP: Changes textures from DEPTH24_STENCIL8 to DEPTH_COMPONENT24
As we are not using stencil info, we don't need this in the texture.
2018-12-13 11:51:41 +01:00
Jacques Lucke
aa63a87d37 BLI: New Edgehash and EdgeSet implementation
The new data structure uses open addressing instead of chaining to resolve collisions in the hash table.

This new structure was never slower than the old implementation in my tests. Code that first inserts all edges and then iterates through all edges (e.g. to remove duplicates) benefits the most, because the `EdgeHashIterator` becomes a simple for loop over a continuous array.

Reviewer: campbellbarton

Differential Revision: D4050
2018-12-13 11:21:31 +01:00
Campbell Barton
cef2a25518 Armature Edit Mode: improve box/lasso select
Mostly rewrite logic which now matches (de)select picking,
share between both operators.

- Support all selection operations (eSelectOp), fixes T59255.

- Add function that selects using 'BONESEL_*' flags & eSelectOp.
  This avoids lasso & box select having to handle selection flushing.

- Fix strange behavior with lasso where selecting a bone in a chain
  would only select the tip (from 2.7x).
2018-12-13 21:11:21 +11:00
Campbell Barton
e79d7747d2 Cleanup: use doxy grouping for view3d select
Easier to navigate, avoid mixing up functionality across the file.
2018-12-13 13:04:25 +11:00
Campbell Barton
7d4d9e9dbd Cleanup: style 2018-12-13 12:30:38 +11:00
Campbell Barton
3b95b521fc Cleanup: replace ifdef w/ stub 2018-12-13 12:21:45 +11:00
Campbell Barton
5d09f5223e Gizmo: multi-object pose-mode gizmo positioning 2018-12-13 11:41:45 +11:00
Campbell Barton
81ea815dcb Gizmo: use general active center calculation
There are some minor differences in center calculation but I don't think
they're important, if so we can update the code.

- Edit-bone uses head (instead of the middle when both are selected).
- Edit-bone flag for restricting components uses the selection instead
  of the active bone.
2018-12-13 10:51:37 +11:00
Campbell Barton
0835c224ba Cleanup: de-duplicate active item center access 2018-12-13 10:41:03 +11:00
Campbell Barton
8c08efd1f7 Fix building w/o bullet 2018-12-13 06:38:55 +11:00
Antonioya
9c5d104224 Fix T59248: Crash in Grease Pencil Edit mode when adding Annotation 2018-12-12 19:48:24 +01:00
Bastien Montagne
80ad2f8cf6 Fix (unreported) Broken rigidbody requirements when adding objects to a RB collection.
We have to ensure objects get expected RB data, when they are added to a
RB collection...
2018-12-12 17:21:37 +01:00
Clément Foucault
10eb92035c Fix T59234: Crash when enter in Edit mode
Edit mode triangles does always need to have access to faces for visibility
and select/active flags.
2018-12-12 15:19:21 +01:00
Clément Foucault
cf92795953 Mesh Batch Cache: Fix crash when using edit mode normal display. 2018-12-12 15:19:21 +01:00
Sergey Sharybin
b60aedc14c Fix T58450: Skin modifier not working if applied after subsurf 2018-12-12 15:07:03 +01:00
Brecht Van Lommel
879e5cde64 Fix transform gizmo showing with active element pivot point and no selection.
It should be possible to use this when the active element is unselected, but
there still needs to be something else selected. Otherwise it is not possible
to deselect all as a way to get the gizmo out of the way.
2018-12-12 15:02:30 +01:00