Brecht Van Lommel
c8fc23fdbe
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.
2019-04-21 11:39:04 +02:00
Campbell Barton
93c19a5a2c
Cleanup: comments (mainly long lines)
...
Comments after code can cause awkward line breaks.
2019-04-21 14:27:35 +10:00
Brecht Van Lommel
9d72efe108
Merge branch 'blender2.7'
2019-04-21 03:08:58 +02:00
Brecht Van Lommel
8982f0cfee
Fix T62408: Cycles viewport adaptive subdivision hangs after updates
...
Backporting fix from the master branch.
2019-04-21 03:05:38 +02:00
Brecht Van Lommel
1de3c81d26
Fix T63431: crash adding driver to a keyframed property with Ctrl+D
2019-04-21 02:35:50 +02:00
Brecht Van Lommel
543614a17d
Fix T63415: no Cycles displacement update when updating OSL code
2019-04-21 02:20:02 +02:00
Brecht Van Lommel
a5d5f152dd
Fix T63681: bad clipping of very long tooltips
2019-04-21 01:25:07 +02:00
Brecht Van Lommel
92d93dd935
Fix T63686: missing data path for 3D cursor location and rotation.
2019-04-21 01:11:12 +02:00
Brecht Van Lommel
b8bb0391d6
Fix T63764: error when using library.users_id() function
...
Fix suggested by Vilem Duha.
2019-04-21 01:03:29 +02:00
Ray Molenkamp
33df4b78d0
make.bat: remove --expand-tabs from "make format" on windows.
...
following the change on linux.
2019-04-20 13:10:30 -06:00
Campbell Barton
d37e530de5
Correct error in last commit
2019-04-21 04:58:52 +10:00
Campbell Barton
9a77fb553c
UI: remove redundant row for header template
...
If it's members need to be aligned the template can handle it.
2019-04-21 04:50:47 +10:00
Campbell Barton
2fb9c8ef12
Cleanup: add missing macros to clang-format
2019-04-21 04:40:16 +10:00
Campbell Barton
6b9ce24338
GNUMakefile: disable tab expansion for 'make format'
...
This was only needed for initial migration.
2019-04-21 04:36:16 +10:00
Pablo Vazquez
d11d5403f0
UI Overlays: Align checkbox with slider for Wireframes, X-Ray, Shadows.
2019-04-20 19:01:46 +02:00
Pablo Vazquez
ae85eeda3e
UI Overlays: One line layout for Mask opacity.
...
Saves one line of space and matches Wireframe, X-Ray, Shadows.
2019-04-20 19:01:03 +02:00
Campbell Barton
40d8a407d7
Fix invalid stack memory use with GPencil drawing
2019-04-20 15:13:40 +02:00
Campbell Barton
b24dfff9b7
Fix error in recent image preference change
2019-04-20 15:13:40 +02:00
Alexander Gavrilov
f22397206f
NLA: check that properties are animatable.
2019-04-20 14:59:52 +03:00
Brecht Van Lommel
7cbb8f20a4
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.
2019-04-20 13:32:36 +02:00
Brecht Van Lommel
ed0c9654dd
Cleanup: remove unused OpenGL functions, rename some for clarity
2019-04-20 13:32:36 +02:00
Campbell Barton
3d26d1938a
UI: correct accidental removal of TOPBAR_PT_name
...
Mistake in 9573bf432c
2019-04-20 13:28:16 +02:00
Campbell Barton
857b63f1d4
Cleanup: re-use test for ELEM & STR_ELEM
...
Avoid having same test running at the end of each macro.
2019-04-20 13:03:49 +02:00
Campbell Barton
83b0e975b9
Cleanup: quiet warning for NULL pointer use
...
Warning was false positive but avoid repeating the same check.
2019-04-20 12:32:47 +02:00
Pablo Dobarro
f2792e91f0
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
2019-04-20 12:03:57 +02:00
Campbell Barton
08f4cdebe4
Cleanup: de-duplicate flag setting macro
2019-04-20 11:39:25 +02:00
Campbell Barton
bbc5c1e36f
Cleanup: quiet extra-semicolon warning
2019-04-20 11:30:19 +02:00
Antonioya
20bc30706b
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.
2019-04-20 10:27:08 +02:00
Campbell Barton
e17e119a31
Cleanup: comment line length (tests)
2019-04-20 10:08:59 +02:00
Campbell Barton
e63eb6ed26
Cleanup: comment line length (windowmanager)
2019-04-20 10:02:28 +02:00
Campbell Barton
44ca116ca2
Cleanup: formatting, unused args
2019-04-20 09:15:06 +02:00
Dalai Felinto
2a39f2595b
Outliner: Simplify logic for parent nesting
2019-04-19 22:27:44 -03:00
Clément Foucault
bc8b884e53
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.
2019-04-19 19:39:44 +02:00
Clément Foucault
3368df4ab6
DRW: Expose VBO garbage collection timings
...
This adds user side options to tweak the behavior
of the vbo garbage collection.
2019-04-19 18:52:38 +02:00
Antonioya
7e4db169f2
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.
2019-04-19 17:08:37 +02:00
mano-wii
8f4ba1c046
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
2019-04-19 11:49:17 -03:00
Sergey Sharybin
b6a9e88aff
Fix T63648: Missing update when changing particle force fields
...
Force fields requires relations update in the dependency graph.
2019-04-19 15:41:32 +02:00
Sergey Sharybin
03c81a4fff
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.
2019-04-19 15:41:31 +02:00
Clément Foucault
4c4adeaa65
Edit Mode: Reduce Selected face alpha
...
This is to be less intrusive when doing UV mapping. They remain enough visible
in every select mode
2019-04-19 15:19:43 +02:00
Clément Foucault
6c83c92862
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.
2019-04-19 15:19:43 +02:00
Clément Foucault
223f7e79f9
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.
2019-04-19 15:19:43 +02:00
Clément Foucault
973e64cf9c
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.
2019-04-19 15:19:43 +02:00
Sergey Sharybin
0ebf43b4d0
Cleanup: Remove image preview code
...
Was commented out for literally 10 years.
2019-04-19 15:16:33 +02:00
Sergey Sharybin
fd05d7bbcb
Cleanup: Remove unneeded compositor update function
...
Similar to previous commit.
Compositing with animation on socket values and image sequences
still works fine.
2019-04-19 15:16:33 +02:00
Sergey Sharybin
81e0973dec
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.
2019-04-19 15:16:33 +02:00
Campbell Barton
d892f1037c
Fix error in recently added STR_ELEM macro
...
Very bad oversight, using pointer comparison instead of strcmp
for all but the first item.
2019-04-19 14:52:58 +02:00
Campbell Barton
9ade9d247d
CMake: fix Cycles linking with OpenCL
2019-04-19 14:00:16 +02:00
Campbell Barton
eb844fc1da
CMake: fix building without smoke enabled
...
Was removed when removing sorted libs however it's needed for stubs.
2019-04-19 13:55:31 +02:00
Campbell Barton
60d733c563
Fix/workaround crash using ED_area_do_msg_notify_tag_redraw
...
Temporary workaround for crash when refreshing the active tool.
Currently ED_region_tag_redraw fails, use notifiers until
this is resolved.
2019-04-19 12:44:28 +02:00
Brecht Van Lommel
98e2713e94
UI: minor layout tweaks to 3D viewport gizmo menu
2019-04-19 12:27:16 +02:00