blender.git
2 months agoMerge branch 'blender2.7'
Bastien Montagne [Mon, 25 Mar 2019 09:46:20 +0000 (10:46 +0100)]
Merge branch 'blender2.7'

2 months agoFix T62175: Crash on Undo.
Bastien Montagne [Mon, 4 Mar 2019 15:44:33 +0000 (16:44 +0100)]
Fix T62175: Crash on Undo.

Again nodetree broken code... as usual...

2 months agoRNA: add UILayout.prop_with_menu function
Campbell Barton [Mon, 25 Mar 2019 09:31:06 +0000 (20:31 +1100)]
RNA: add UILayout.prop_with_menu function

Matches prop_with_popover, supporting menu types,
useful if we want to control behavior of enum switching.

2 months agoRNA: rename prop_popover_enum to prop_with_popover
Campbell Barton [Mon, 25 Mar 2019 09:10:32 +0000 (20:10 +1100)]
RNA: rename prop_popover_enum to prop_with_popover

A version for menu's is going to be added next and we already have
UILayout.prop_menu_enum.

This name indicates the popover is added behavior instead of a
different kind of widget.

2 months agoCleanup: UI messages of copy/paste in 3DView.
Bastien Montagne [Mon, 25 Mar 2019 09:19:56 +0000 (10:19 +0100)]
Cleanup: UI messages of copy/paste in 3DView.

Remove references to buffer or temp file, some other minor edits.

2 months agoAdd copy/paste of any IDs in Outliner.
Bastien Montagne [Thu, 21 Mar 2019 13:59:25 +0000 (14:59 +0100)]
Add copy/paste of any IDs in Outliner.

This adds entries to copy/paste (selected) IDs in the Outliner, as well
as usual ctrl-C/ctrl-V shortcuts.

Note that the clipboard is shared with other IDs copying (currently, the
one for objects in 3DView).

Reviewers: brecht, dfelinto, billreynish, pablovazquez

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

2 months agoCopy/Paste: refactor to be able to paste any kind of IDs, by type.
Bastien Montagne [Mon, 25 Mar 2019 08:55:36 +0000 (09:55 +0100)]
Copy/Paste: refactor to be able to paste any kind of IDs, by type.

This commit does not add anything new from user perspective, but make it
possible to paste any kind of IDs, not only objects/collections.

Will be used by new copy/paste in the outliner in next commit.

2 months agoUI: replace popovers with prop_popover_enum
Campbell Barton [Mon, 25 Mar 2019 08:30:59 +0000 (19:30 +1100)]
UI: replace popovers with prop_popover_enum

2 months agoUI: add icon_only option to prop_popover_enum
Campbell Barton [Mon, 25 Mar 2019 08:21:55 +0000 (19:21 +1100)]
UI: add icon_only option to prop_popover_enum

2 months agoError in last commit
Campbell Barton [Mon, 25 Mar 2019 08:08:02 +0000 (19:08 +1100)]
Error in last commit

2 months agoUI: add UILayout.prop_popover_enum function
Campbell Barton [Mon, 25 Mar 2019 07:55:38 +0000 (18:55 +1100)]
UI: add UILayout.prop_popover_enum function

Support for RNA enum buttons that activate popovers when clicked.

This means we get useful tooltips, shortcuts and Ctrl-Wheel cycling
over enum items.

It also avoids inconvenient & slow access of enum values currently done
via RNA type lookups on the type to get the name & icon to use for a
regular popover button.

Resolves T57738

2 months agoCleanup: simplify toggle button logic
Campbell Barton [Mon, 25 Mar 2019 05:17:39 +0000 (16:17 +1100)]
Cleanup: simplify toggle button logic

2 months agoGizmo: use fill select for scale/transform center
Campbell Barton [Mon, 25 Mar 2019 04:41:24 +0000 (15:41 +1100)]
Gizmo: use fill select for scale/transform center

Resolves T58072

2 months agoGizmo: add option to move & dial gizmos to select as filled
Campbell Barton [Mon, 25 Mar 2019 04:40:23 +0000 (15:40 +1100)]
Gizmo: add option to move & dial gizmos to select as filled

Draw as an outline while using solid selection.

2 months agoUI: Material slot selector for the shader editor
Campbell Barton [Mon, 25 Mar 2019 03:44:45 +0000 (14:44 +1100)]
UI: Material slot selector for the shader editor

D4583 by @HooglyBoogly

2 months agoRNA: error on register when classes use invalid identifiers
Campbell Barton [Mon, 25 Mar 2019 03:39:55 +0000 (14:39 +1100)]
RNA: error on register when classes use invalid identifiers

Ensure conventions are met since we're in beta and all instances should
be updated before release.

2 months agoFix T62859: UV circle select options don't work
Campbell Barton [Mon, 25 Mar 2019 03:12:25 +0000 (14:12 +1100)]
Fix T62859: UV circle select options don't work

2 months agoFix T62866: 3D text not filled by default
Alex Strand [Mon, 25 Mar 2019 02:32:24 +0000 (13:32 +1100)]
Fix T62866: 3D text not filled by default

Regression in bc5b0f7a091c395526370

See D4581

2 months agoCleanup: return argument naming
Campbell Barton [Mon, 25 Mar 2019 01:19:55 +0000 (12:19 +1100)]
Cleanup: return argument naming

2 months agoCleanup: style (render module)
Campbell Barton [Mon, 25 Mar 2019 00:55:36 +0000 (11:55 +1100)]
Cleanup: style (render module)

2 months agoCleanup: style
Campbell Barton [Mon, 25 Mar 2019 00:42:28 +0000 (11:42 +1100)]
Cleanup: style

2 months agoCleanup: use braces for interface code
Campbell Barton [Sun, 24 Mar 2019 23:15:20 +0000 (10:15 +1100)]
Cleanup: use braces for interface code

2 months agoCleanup: pass const image data to IMB_ibImageFromMemory
Campbell Barton [Sun, 24 Mar 2019 22:08:29 +0000 (09:08 +1100)]
Cleanup: pass const image data to IMB_ibImageFromMemory

2 months agoCleanup: style, array wrapping
Campbell Barton [Sun, 24 Mar 2019 05:24:29 +0000 (16:24 +1100)]
Cleanup: style, array wrapping

Add trailing comma for clang-format.

2 months agoFix uninitialized variable use for right aligned checkbox
Campbell Barton [Sun, 24 Mar 2019 20:34:06 +0000 (07:34 +1100)]
Fix uninitialized variable use for right aligned checkbox

2 months agoFix T49979: HSV/HSL 'Far' interpolation in colorbands when both stops have same hue.
Bastien Montagne [Tue, 19 Mar 2019 18:50:30 +0000 (19:50 +0100)]
Fix T49979: HSV/HSL 'Far' interpolation in colorbands when both stops have same hue.

When two stops had the exact same color, 'Far' interpolation would
behave like the three others and generate constant colors, instead of
generating expected 'full turn' in Hue space.

Note that this will break the 'constant' color between two stops with
same value in the 'Far' interpolation mode, but think that change is
OK/expected.

This fix also exposed that 'early out' case when we are after last stop
was not working properly, still triggering actual interpolation
computation in all cases, thus the refactor in `BKE_colorband_evaluate()`
itself. We also now avoid computing factors in constant case, and get
out early in all interpolation cases but the 'spline' ones (where color
ramping can start before first stop, and end after last one).

Work initiated by patch from Charlie Jolly (@charlie) in T49979, thanks.

Reviewers: brecht, sergey

Subscribers: charlie

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

2 months agoFix missing version patching from lamp/light and subsurface changes.
Brecht Van Lommel [Sun, 24 Mar 2019 13:48:23 +0000 (14:48 +0100)]
Fix missing version patching from lamp/light and subsurface changes.

2 months agoCleanup: redundant use of string formatting functions
Campbell Barton [Sun, 24 Mar 2019 05:09:46 +0000 (16:09 +1100)]
Cleanup: redundant use of string formatting functions

2 months agoCleanup: redundant NULL initialization
Campbell Barton [Sun, 24 Mar 2019 00:06:18 +0000 (11:06 +1100)]
Cleanup: redundant NULL initialization

2 months agoCleanup: use shader config for worldspace clipping lib
Campbell Barton [Sun, 24 Mar 2019 00:01:28 +0000 (11:01 +1100)]
Cleanup: use shader config for worldspace clipping lib

2 months agoUI: support Ctrl-C copy for popover buttons
Campbell Barton [Sat, 23 Mar 2019 23:50:01 +0000 (10:50 +1100)]
UI: support Ctrl-C copy for popover buttons

Match menu logic that sets the Python expression to call the popover.

2 months agoGPU: State: Replace GL_LINE_SMOOTH by GPU_line_smooth
Clément Foucault [Sat, 23 Mar 2019 22:54:01 +0000 (23:54 +0100)]
GPU: State: Replace GL_LINE_SMOOTH by GPU_line_smooth

2 months agoGPU: State: Disable polygon smooth and line smooth when running --debug-gpu
Clément Foucault [Sat, 23 Mar 2019 22:47:12 +0000 (23:47 +0100)]
GPU: State: Disable polygon smooth and line smooth when running --debug-gpu

This might prove usefull when debugging some driver perf issues.

2 months agoGPU: Replace glEnable/glDisable but GPU_state calls
Clément Foucault [Sat, 23 Mar 2019 22:43:26 +0000 (23:43 +0100)]
GPU: Replace glEnable/glDisable but GPU_state calls

2 months agoGPU: Remove unused and deprecated GPU_line_stipple()
Clément Foucault [Sat, 23 Mar 2019 22:42:30 +0000 (23:42 +0100)]
GPU: Remove unused and deprecated GPU_line_stipple()

2 months agoFix T62884 Missing control point in unselected mask handles
Clément Foucault [Sat, 23 Mar 2019 21:46:15 +0000 (22:46 +0100)]
Fix T62884 Missing control point in unselected mask handles

The fix is a bit dirty. Force alpha 1.0 for these colors by using
immUniformThemeColorShadeAlpha with 255 as alpha_offset.

2 months agoFix T62869 Transparent background not working in Xray Mode / Wireframe
Clément Foucault [Sat, 23 Mar 2019 21:13:57 +0000 (22:13 +0100)]
Fix T62869 Transparent background not working in Xray Mode / Wireframe

This was due to the forward part of the engine not supporting rendered
alpha channel.

2 months agoFix T62873 GPUShader: compile error (when clipping in viewport)
Clément Foucault [Sat, 23 Mar 2019 18:31:20 +0000 (19:31 +0100)]
Fix T62873 GPUShader: compile error (when clipping in viewport)

Props to @matc for the fix

2 months agoFix T62097 Bone transparancy not enabled when Xray enabled
Clément Foucault [Sat, 23 Mar 2019 18:28:13 +0000 (19:28 +0100)]
Fix T62097 Bone transparancy not enabled when Xray enabled

This forces bone transparency / wireframe display when Xray is enabled.
This makes sense as the bone transparency is a kind of Xray and should
be linked to the Xray display.

2 months agoEevee: Opti: Don't consider lights that have no power
Clément Foucault [Sat, 23 Mar 2019 18:18:51 +0000 (19:18 +0100)]
Eevee: Opti: Don't consider lights that have no power

This may be usefull if power is animated ans is to be activated at one
particular point in time.

2 months agoCleanup: Remove printf
Clément Foucault [Sat, 23 Mar 2019 18:16:55 +0000 (19:16 +0100)]
Cleanup: Remove printf

2 months agoFix T62845 VSE preview crash when setting rendered (EEVEE/Workbench)
Clément Foucault [Sat, 23 Mar 2019 18:09:25 +0000 (19:09 +0100)]
Fix T62845 VSE preview crash when setting rendered (EEVEE/Workbench)

2 months agoEdit Mesh: Rework "in front" + "hidden wire" drawing
Clément Foucault [Sat, 23 Mar 2019 17:46:29 +0000 (18:46 +0100)]
Edit Mesh: Rework "in front" + "hidden wire" drawing

Instead of doing some fancy stencil buffer tricks, just clear the depth
buffer before the "in front" meshes.

Fix T58841 Hidden Wire when in Edit Mode disables In Front Option

2 months agoFix workbench object outline ignoring clipping
Campbell Barton [Sat, 23 Mar 2019 03:25:29 +0000 (14:25 +1100)]
Fix workbench object outline ignoring clipping

Workbench forward engine wasn't recompiling shaders when clipping
changed, use GPUShaderConfigData when creating shaders.

2 months agoCleanp: remove redundant clipping uniform
Campbell Barton [Sat, 23 Mar 2019 02:30:02 +0000 (13:30 +1100)]
Cleanp: remove redundant clipping uniform

workbench_material_shgroup_uniform handles this.

2 months agoUI: show camera sensor 'Width' as 'Size' for 'Auto' fit
Campbell Barton [Sat, 23 Mar 2019 01:29:49 +0000 (12:29 +1100)]
UI: show camera sensor 'Width' as 'Size' for 'Auto' fit

2 months agoFix auto sensor size for camera gizmo
Campbell Barton [Sat, 23 Mar 2019 01:29:03 +0000 (12:29 +1100)]
Fix auto sensor size for camera gizmo

2 months agoCleanup: style, use const args where possible
Campbell Barton [Sat, 23 Mar 2019 01:16:38 +0000 (12:16 +1100)]
Cleanup: style, use const args where possible

2 months agoCleanup: add doxy sections to interface_ops.c
Campbell Barton [Sat, 23 Mar 2019 01:07:05 +0000 (12:07 +1100)]
Cleanup: add doxy sections to interface_ops.c

2 months agoCleanup: doxy sections & function name
Campbell Barton [Sat, 23 Mar 2019 00:55:36 +0000 (11:55 +1100)]
Cleanup: doxy sections & function name

2 months agoFix T62815: Camera frame shift issue + stereo frame working
Dalai Felinto [Fri, 22 Mar 2019 21:38:54 +0000 (18:38 -0300)]
Fix T62815: Camera frame shift issue + stereo frame working

While I broke the non-stereo camera frame in rBf1fef41863b I came to
realize after further tests that the stereo camera frame was NEVER
correct.

It is now, regardless of the camera shift, the camera pivot, if you are
looking through the left, right or stereo eyes.

In the end all that was missing was to multiply the shift we needed to
offset the frame, by the frame width.

I also took the opportunity to perform some cleanup/refactor regarding
names. It was too confusing even for me.

Note: Non-uniformally scaled cameras still draw slightly wrong.

2 months agoViewport Refactor: Move camera tracking reconstruction in own function
Dalai Felinto [Fri, 22 Mar 2019 20:30:12 +0000 (17:30 -0300)]
Viewport Refactor: Move camera tracking reconstruction in own function

I'm going through my own messy stereo code, and came to realized that
this should be out in its own function a long time ago (as we have in 2.7x).

2 months agoCleanup: fix compiler warning.
Brecht Van Lommel [Fri, 22 Mar 2019 19:30:24 +0000 (20:30 +0100)]
Cleanup: fix compiler warning.

2 months agoFix COLLADA build after recent changes.
Brecht Van Lommel [Fri, 22 Mar 2019 19:29:44 +0000 (20:29 +0100)]
Fix COLLADA build after recent changes.

2 months agoSilence false positive uninitialized warning
Dalai Felinto [Fri, 22 Mar 2019 19:28:17 +0000 (16:28 -0300)]
Silence false positive uninitialized warning

Techically we would never get to the part where we would use the
uninitialized value due to an assert.

2 months agoMerge branch 'blender2.7'
mano-wii [Fri, 22 Mar 2019 19:23:23 +0000 (16:23 -0300)]
Merge branch 'blender2.7'

 Conflicts:
CMakeLists.txt

2 months agoMSVC: add C4115 and C4189 warnings.
mano-wii [Fri, 22 Mar 2019 19:15:46 +0000 (16:15 -0300)]
MSVC: add C4115 and C4189 warnings.

This matches the warnings of the other compilers commonly used in Blender.

2 months agoFix warning for uninitialized icon_only
Dalai Felinto [Fri, 22 Mar 2019 19:01:25 +0000 (16:01 -0300)]
Fix warning for uninitialized icon_only

Warning/issue introduced on rBcaa357dae70322e.

2 months agoFix: VSE preview not showing stereo drawing (unreported)
Dalai Felinto [Fri, 22 Mar 2019 18:08:22 +0000 (15:08 -0300)]
Fix: VSE preview not showing stereo drawing (unreported)

SpaceSeq main stereo drawing is for ar->regiontype RGN_TYPE_PREVIEW, but
the drawing code was assuming RGN_TYPE_WINDOW was the only one to be
considered for all the regions.

SpaceSeq still needs stereo drawing in RGN_TYPE_WINDOW but only when
backdrop is enabled.

Bug introduced on rBe01cadd657c76267.

2 months agoFix T60969 Eevee: Volumetrics broken with dupli objects
Clément Foucault [Fri, 22 Mar 2019 18:39:56 +0000 (19:39 +0100)]
Fix T60969 Eevee: Volumetrics broken with dupli objects

The volumeObjectMatrix uniform was referencing memory from the temp dupli
object. Create temp storage to store the matrix.

2 months agoGPU: Cleanup: Code Style
Clément Foucault [Fri, 22 Mar 2019 18:38:03 +0000 (19:38 +0100)]
GPU: Cleanup: Code Style

2 months agoFix T57617 Volumetrics doesn't work on the Orthographic Camera
Clément Foucault [Fri, 22 Mar 2019 17:06:24 +0000 (18:06 +0100)]
Fix T57617 Volumetrics doesn't work on the Orthographic Camera

common_data.view_vecs were not updated before use.

2 months agoFix T58392 Texture limit size not working
Clément Foucault [Fri, 22 Mar 2019 14:38:41 +0000 (15:38 +0100)]
Fix T58392 Texture limit size not working

It was removed by inadvertence.

2 months agoFix T59962, T60130: error adding image sequence with node wrangler.
Brecht Van Lommel [Fri, 22 Mar 2019 17:59:40 +0000 (18:59 +0100)]
Fix T59962, T60130: error adding image sequence with node wrangler.

The region should be restored correctly, there is already a similar test for
areas to be preserved.

2 months agoMerge branch 'blender2.7'
Brecht Van Lommel [Fri, 22 Mar 2019 17:18:37 +0000 (18:18 +0100)]
Merge branch 'blender2.7'

2 months agoRevert "Cleanup: remove legacy mesh save support"
Brecht Van Lommel [Fri, 22 Mar 2019 17:16:46 +0000 (18:16 +0100)]
Revert "Cleanup: remove legacy mesh save support"

Fixes T62793. Leave this in the blender2.7 branch for those that still rely
on it, but it will remain removed in master.

2 months agoModifiers: add minimum number of vertices to triangulate modifier.
Ish Bosamiya [Fri, 22 Mar 2019 16:55:51 +0000 (17:55 +0100)]
Modifiers: add minimum number of vertices to triangulate modifier.

This lets you only triangulate n-gons when setting the number to 5 or more.

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

2 months agoFix T62844: Cycles crash with bevel and degenerate geometry.
Brecht Van Lommel [Fri, 22 Mar 2019 16:01:33 +0000 (17:01 +0100)]
Fix T62844: Cycles crash with bevel and degenerate geometry.

2 months agoUI: move stereo panel above output.
Brecht Van Lommel [Fri, 22 Mar 2019 15:01:15 +0000 (16:01 +0100)]
UI: move stereo panel above output.

Otherwise clicking the stereo panel moves it.

2 months agoFix T58517: Multi-view issues with OpenGL render + scene settings
Dalai Felinto [Fri, 22 Mar 2019 16:15:05 +0000 (13:15 -0300)]
Fix T58517: Multi-view issues with OpenGL render + scene settings

Patch by Shinsuke Irie.

* * *

Note from reviewer/committer (dfelinto):

OpenGL render from the VSE preview window is working, while the VSE
preview window itself does not show stereo.

That said the patch is ok, and I was able to test that the VSE preview
OpenGL still works. I will tackle VSE preview itself separately myself.

2 months agoSilence warnings
Dalai Felinto [Fri, 22 Mar 2019 16:20:45 +0000 (13:20 -0300)]
Silence warnings

2 months agoFix overlay being ignored in functions that read the depth buffer.
mano-wii [Fri, 22 Mar 2019 16:04:23 +0000 (13:04 -0300)]
Fix overlay being ignored in functions that read the depth buffer.

This corresponds to the behavior of blender 2.79.

2 months agoDRW Manager: create and use new DRW_framebuffer_depth_read utility.
mano-wii [Fri, 22 Mar 2019 15:53:50 +0000 (12:53 -0300)]
DRW Manager: create and use new DRW_framebuffer_depth_read utility.

2 months agoGPU: Create and use new GPU_texture_read_rect utility.
mano-wii [Fri, 22 Mar 2019 15:52:38 +0000 (12:52 -0300)]
GPU: Create and use new GPU_texture_read_rect utility.

2 months agoNodeEditor: Connect Viewer To Socket Selection
Jeroen Bakker [Fri, 22 Mar 2019 16:03:02 +0000 (17:03 +0100)]
NodeEditor: Connect Viewer To Socket Selection

Request from the Spring team. When compositing the CTRL-Shift Click on a
node cycles the viewnode with an output socket. When you have many
render layers you spend time cycling to the desired socket. This patch
allows the user to CTRL-Shift Click on a socket to connect directly to
that socket.

Reviewed By: brecht

Maniphest Tasks: T62785

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

2 months agoUI: Rename editor "Compositing" to "Compositor"
Adrian Newton [Fri, 22 Mar 2019 15:45:30 +0000 (16:45 +0100)]
UI: Rename editor "Compositing" to "Compositor"

Reviewers: brecht, billreynish

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

2 months agoFix T62348: Cycles - Viewport rendering not update on switching viewlayer
Dalai Felinto [Fri, 22 Mar 2019 15:45:42 +0000 (12:45 -0300)]
Fix T62348: Cycles - Viewport rendering not update on switching viewlayer

It updates only the main window you edit and the non-main window
children of this main one.

Reviewers: sergey, brecht

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

2 months agoDRW: minor optimization accessing the loop between a face and edge
Campbell Barton [Fri, 22 Mar 2019 15:44:22 +0000 (02:44 +1100)]
DRW: minor optimization accessing the loop between a face and edge

2 months agoFix T62841: Hidden collection shortcut should be work in edit mode
Dalai Felinto [Fri, 22 Mar 2019 14:58:44 +0000 (11:58 -0300)]
Fix T62841: Hidden collection shortcut should be work in edit mode

This is a full revert of b6c61945aed51d86dc474df616761f9a25d71d09.

But ammended to include the object.hide_collection() operator to the
pose keymap as well.

While trying to expose the shortcuts to pose mode, I ended up exposing
them for all the modes. It is now only available for object and mode
modes.

2 months agoFix T61816: Crash No Face Index Array Modifier
Jeroen Bakker [Fri, 22 Mar 2019 14:18:07 +0000 (15:18 +0100)]
Fix T61816: Crash No Face Index Array Modifier

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

2 months agoCamera: change how the minimum near clip depth is set
Campbell Barton [Fri, 22 Mar 2019 14:13:04 +0000 (01:13 +1100)]
Camera: change how the minimum near clip depth is set

do_clip wasn't working for its intended purpose,
replace with a simpler method.

2 months agoRNA: Camera.view_frame no longer uses near clip for the camera frame
Campbell Barton [Fri, 22 Mar 2019 14:12:43 +0000 (01:12 +1100)]
RNA: Camera.view_frame no longer uses near clip for the camera frame

Use the same values used for drawing.

2 months agoStyle: describe code using comments instead of preprocessing directives.
mano-wii [Fri, 22 Mar 2019 13:32:57 +0000 (10:32 -0300)]
Style: describe code using comments instead of preprocessing directives.

2 months agoFix T62839 object scale changes normal map output in eevee
Clément Foucault [Fri, 22 Mar 2019 13:30:37 +0000 (14:30 +0100)]
Fix T62839 object scale changes normal map output in eevee

Was using the wrong vector length.

2 months agoFix/workaround some types of black dots in denoising with bright speculars.
Brecht Van Lommel [Fri, 22 Mar 2019 13:05:18 +0000 (14:05 +0100)]
Fix/workaround some types of black dots in denoising with bright speculars.

This is not a real solution and colored dots still remain, just rejecting some
pixels that seem clearly wrong.

2 months agoEEVEE: Memleak Volumetrics Rendering
Jeroen Bakker [Fri, 22 Mar 2019 13:19:54 +0000 (14:19 +0100)]
EEVEE: Memleak Volumetrics Rendering

Volumetric textures were not freed when doing final rendering.

Maniphest Tasks: T62356

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

2 months agoCleanup: minor UI code changes
Campbell Barton [Fri, 22 Mar 2019 13:18:16 +0000 (00:18 +1100)]
Cleanup: minor UI code changes

- Rename ui_but_find_active_in_region -> ui_region_find_active_but
- Remove ui_but_is_active (use ui_region_find_active_but instead)
- Re-order ui_but_* functions take the button as their first arg.

2 months agoFix checkboxes being right aligned when property split is disabled
Campbell Barton [Fri, 22 Mar 2019 13:02:07 +0000 (00:02 +1100)]
Fix checkboxes being right aligned when property split is disabled

2 months agoCleanup: typo in variable name
Campbell Barton [Fri, 22 Mar 2019 13:01:00 +0000 (00:01 +1100)]
Cleanup: typo in variable name

2 months agoUI: refactor queries into interface_query.c
Campbell Barton [Fri, 22 Mar 2019 07:51:04 +0000 (18:51 +1100)]
UI: refactor queries into interface_query.c

interface_handlers.c is quite large (over 10k lines),
move general button utility functions into a separate file.

2 months agoFix incorrect hard limits on motion blur shutter time.
Brecht Van Lommel [Fri, 22 Mar 2019 11:09:02 +0000 (12:09 +0100)]
Fix incorrect hard limits on motion blur shutter time.

2 months agoUI: Move Adjust Strength for Spacing next to the stroke Spacing control
William Reynish [Fri, 22 Mar 2019 10:27:56 +0000 (11:27 +0100)]
UI: Move Adjust Strength for Spacing next to the stroke Spacing control

These items are related.

2 months agoFix T62835: Color picker template value slider does not scale correctly with UI scale
William Reynish [Fri, 22 Mar 2019 09:59:12 +0000 (10:59 +0100)]
Fix T62835: Color picker template value slider does not scale correctly with UI scale

Missing multiplication with UI_DPI_FAC.

2 months agoImplement Stencil Mask Drawing for Texture Painting
Jeroen Bakker [Thu, 21 Mar 2019 15:44:01 +0000 (16:44 +0100)]
Implement Stencil Mask Drawing for Texture Painting

Stencil mask drawing was not implemented yet. This commit will implement this for texture painting.
It brings the state back to how it was for B279.

Reviewed By: fclem

Maniphest Tasks: T58727

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

2 months agoCleanup: move widget enum into source file
Campbell Barton [Fri, 22 Mar 2019 06:56:58 +0000 (17:56 +1100)]
Cleanup: move widget enum into source file

2 months agoFix T62814: Camera frame invisible with large near-clip value
Campbell Barton [Fri, 22 Mar 2019 06:27:39 +0000 (17:27 +1100)]
Fix T62814: Camera frame invisible with large near-clip value

2 months agoUI: use checkbox text for property split layout
Campbell Barton [Fri, 22 Mar 2019 04:29:25 +0000 (15:29 +1100)]
UI: use checkbox text for property split layout

Use right aligned checkboxes when 'use_property_split' is enabled
instead of a separate label.

2 months agoUI: support for showing checkboxes after text
Campbell Barton [Fri, 22 Mar 2019 03:28:06 +0000 (14:28 +1100)]
UI: support for showing checkboxes after text

Needed so the new layouts that show right aligned checkboxes can have
clickable text (as left aligned checkboxes do already).

2 months agoUI: refactor color picker flags out of buttons
Campbell Barton [Fri, 22 Mar 2019 03:01:11 +0000 (14:01 +1100)]
UI: refactor color picker flags out of buttons

These are specialized color picker options which don't need to be
stored in the button (frees of flags for buttons too).

2 months agoDRW: show clipping border for solid mode
Campbell Barton [Fri, 22 Mar 2019 02:23:07 +0000 (13:23 +1100)]
DRW: show clipping border for solid mode

Solid + xray is still not supported.