Jeroen Bakker
fcff2a5751
Fix T61816: Crash No Face Index Array Modifier
...
Differential Revision: https://developer.blender.org/D4576
2019-03-22 15:23:53 +01:00
Campbell Barton
4f9451c044
Camera: change how the minimum near clip depth is set
...
do_clip wasn't working for its intended purpose,
replace with a simpler method.
2019-03-23 01:16:06 +11:00
Campbell Barton
33d322873e
RNA: Camera.view_frame no longer uses near clip for the camera frame
...
Use the same values used for drawing.
2019-03-23 01:16:06 +11:00
mano-wii
6c4b9dd963
Style: describe code using comments instead of preprocessing directives.
2019-03-22 10:35:17 -03:00
Clément Foucault
f6a6770f06
Fix T62839 object scale changes normal map output in eevee
...
Was using the wrong vector length.
2019-03-22 14:30:43 +01:00
Jeroen Bakker
0b98b7ed57
EEVEE: Memleak Volumetrics Rendering
...
Volumetric textures were not freed when doing final rendering.
Maniphest Tasks: T62356
Differential Revision: https://developer.blender.org/D4573
2019-03-22 14:23:25 +01:00
Campbell Barton
be750e2aee
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.
2019-03-23 00:18:16 +11:00
Campbell Barton
8f3ecd08e1
Fix checkboxes being right aligned when property split is disabled
2019-03-23 00:03:48 +11:00
Campbell Barton
caa357dae7
Cleanup: typo in variable name
2019-03-23 00:01:00 +11:00
Campbell Barton
2d60618746
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.
2019-03-22 23:38:24 +11:00
Brecht Van Lommel
c2584c1fad
Fix incorrect hard limits on motion blur shutter time.
2019-03-22 12:09:02 +01:00
William Reynish
3f852e00f9
Fix T62835: Color picker template value slider does not scale correctly with UI scale
...
Missing multiplication with UI_DPI_FAC.
2019-03-22 10:59:12 +01:00
Jeroen Bakker
177623dd40
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
2019-03-22 08:21:12 +01:00
Campbell Barton
5cd3e1b5d1
Cleanup: move widget enum into source file
2019-03-22 17:56:58 +11:00
Campbell Barton
6e7e6832e8
Fix T62814: Camera frame invisible with large near-clip value
2019-03-22 17:28:53 +11:00
Campbell Barton
813694e07b
UI: use checkbox text for property split layout
...
Use right aligned checkboxes when 'use_property_split' is enabled
instead of a separate label.
2019-03-22 15:43:23 +11:00
Campbell Barton
bd2299aae5
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).
2019-03-22 15:43:23 +11:00
Campbell Barton
27da43ba86
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).
2019-03-22 15:43:23 +11:00
Campbell Barton
00f7dcd5be
DRW: show clipping border for solid mode
...
Solid + xray is still not supported.
2019-03-22 15:43:23 +11:00
Campbell Barton
78ce2063d3
Cleanup: use 'use' as prefix for booleans
2019-03-22 15:43:23 +11:00
Clément Foucault
c49a70bcd1
Eevee: Add small optimisation for Curve Mapping nodes
...
This remove the RGB texture lookups if the curve is only used for "Luma"
correction and does not affect individual RGB channels.
2019-03-22 03:53:21 +01:00
Clément Foucault
875b50f94f
UI: Fix curve extention filling on curve widgets
2019-03-22 03:53:21 +01:00
mano-wii
6a65bb4955
GPU Matrix: Increase precision of GPU_matrix_unproject.
2019-03-21 22:23:50 -03:00
mano-wii
2b42b8b779
BLI Math: Add and use new projmat_dimensions utility.
2019-03-21 22:23:49 -03:00
Clément Foucault
1ae6aaad43
Eevee: Cleanup
...
Remove unneeded normalization.
2019-03-22 00:13:18 +01:00
Clément Foucault
8b00712b55
Eevee: Fix tangent vector not normalized before interpolation.
2019-03-22 00:13:18 +01:00
Clément Foucault
27109fd209
Eevee: Normalize Tangents after transform to world space
...
Fix T62621 without breaking everything else.
2019-03-22 00:13:18 +01:00
Clément Foucault
cc1b193ddf
Revert "Fix T62621 object scale changes tangent node output in Eevee"
...
This reverts commit 86646dab7c .
2019-03-22 00:13:18 +01:00
mano-wii
1f1e90a013
Fix T59890: regression of the precision when projecting the cursor.
...
Basically the framebuffer size was different from the glViewport size.
This made the depth read in glReadPixel not corresponding to the center of the pixel.
Another thing that reduced precision compared to blender 2.79 is the `GPU_matrix_unproject` that now computes using `float`s instead of `double`s.
But this may be for another commit.
2019-03-21 17:04:35 -03:00
William Reynish
b6ad98729b
UI: Spelling: fix wrong apostrophe
2019-03-21 16:36:29 +01:00
William Reynish
ad8566db9b
UI: Fix wrong spelling
...
Effect vs Affect
2019-03-21 16:31:46 +01:00
William Reynish
196e3920f7
Use 'show_' prefix convention for composition guides
2019-03-21 16:05:32 +01:00
William Reynish
6f38d2782a
UI: Correct tooltips for composition guides
2019-03-21 15:09:11 +01:00
William Reynish
a0c9095620
UI: Put camera composition guides in standard sub-panel
...
Before we were using a very inconsistent toggle-menu for this. Just use standard UI here instead.
2019-03-21 15:01:07 +01:00
Campbell Barton
e4694c057b
UI: replace button open event with activate on init
...
No user visible change.
2019-03-22 00:55:24 +11:00
Sergey Sharybin
2b21e7ab9a
Fix T62768: Softbody cache still not updated correctly
...
There was missing flush from transform update to the point cache
reset. Caused by the fact that when update happens in the "middle"
of component all the component operations will be tagged for update
(since the intermediate state is not stored), but that will not
flush updates to other operations since that would cause too much
of updates.
This now we tag point cache for reset after evaluation operation
but before final transform and before rigid body world.
2019-03-21 14:41:41 +01:00
Jeroen Bakker
b832f6f915
Fix T62810: AA reversed in workbench
...
Due to recent changes the AA was not rendered in the viewport when not
interacting. When interacting it was. This was due to incorrect
detemination to perform TAA.
2019-03-21 14:35:28 +01:00
Campbell Barton
9a09246dc0
WM: enable activate on init for wmOperatorType.prop
...
This enables popups to edit text when displayed,
use for new collection popup.
2019-03-22 00:32:01 +11:00
Jacques Lucke
75b14db6a9
Fix T62808: Hair shape cut crash
...
Reviewers: sergey
Differential Revision: https://developer.blender.org/D4565
2019-03-21 12:38:07 +01:00
Bastien Montagne
fbceac9708
Cleanup: Outliner: remove warning about no undo of ID deletion.
...
ID deletion is undoable nowadays...
2019-03-21 11:17:21 +01:00
Bastien Montagne
8314c3188c
Fix clipboard copying collections when copying objects from 3DView.
...
This was inherited from 2.7x behavior with groups, but in 2.8
collections are also used as 2.7x layers, which turns to be a problem
when pasting back clipboard content, since it would instantiate
collections instead of objects, quickly leading to tens of new
collections in the viewlayer...
Instead, we only copy selected objects from the 3DView now. On paste
time, those will be added to the active collection.
Last part of fixes related to T61670.
2019-03-21 09:47:50 +01:00
Antonioya
b346a7c0df
Fix T62802: Layer order inverted in Outliner
2019-03-21 09:29:16 +01:00
Campbell Barton
b98fe9e707
Cleanup: move functions into doxy sections
...
Also use const args for queries.
2019-03-21 14:19:45 +11:00
Campbell Barton
9b3818762a
Cleanup: use doxy sections for interface_handlers
2019-03-21 13:53:27 +11:00
Campbell Barton
0bbff8a711
Cleanup: move scroll step into own function
2019-03-21 11:58:03 +11:00
Campbell Barton
06585e0b13
UI: popovers scroll now changes offset directly
...
Mouse wheel on menus changes the selected item item which doesn't work
well for popovers since buttons aren't always stacked vertically.
Resolves T62777
2019-03-21 11:37:44 +11:00
Campbell Barton
83753d1d29
Cleanup: split menu scrolling function
...
The same function scrolled to a location and button (depending on args).
2019-03-21 11:36:51 +11:00
Campbell Barton
9105e1d084
Fix T62782: Edge slide crashes with mirror enabled
2019-03-21 09:53:57 +11:00
Clément Foucault
f71e8617e0
Viewport: Draw loose edges in edit mesh mode if there is a modifier stack
2019-03-20 22:43:30 +01:00
Bastien Montagne
c2f0bd6aed
Fix DEG warning from T52873: Proximity WeightVG modifier can use empty as target too.
...
Only create DEG_OB_COMP_GEOMETRY relation to target object when it has
some, and we use it.
2019-03-20 21:12:34 +01:00