Campbell Barton
2ed3fbf106
Fix T62859: UV circle select options don't work
2019-03-25 14:13:09 +11:00
Alex Strand
7bfd3130fb
Fix T62866: 3D text not filled by default
...
Regression in bc5b0f7a09
See D4581
2019-03-25 13:33:13 +11:00
Campbell Barton
6dbe96757b
Cleanup: return argument naming
2019-03-25 12:19:55 +11:00
Campbell Barton
07f6be87a9
Cleanup: style (render module)
2019-03-25 11:55:36 +11:00
Campbell Barton
abd18f6ec0
Cleanup: style
2019-03-25 11:42:28 +11:00
Campbell Barton
e86e0aad55
Cleanup: use braces for interface code
2019-03-25 11:16:46 +11:00
Campbell Barton
72ede30d0f
Cleanup: pass const image data to IMB_ibImageFromMemory
2019-03-25 09:08:29 +11:00
Campbell Barton
a38313c3bd
Cleanup: style, array wrapping
...
Add trailing comma for clang-format.
2019-03-25 09:02:04 +11:00
Campbell Barton
ff8c32fa6b
Fix uninitialized variable use for right aligned checkbox
2019-03-25 07:34:06 +11:00
Bastien Montagne
2691dd28e7
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
2019-03-24 18:20:25 +01:00
Brecht Van Lommel
b48e6799f1
Fix missing version patching from lamp/light and subsurface changes.
2019-03-24 14:49:49 +01:00
Campbell Barton
16694ed408
Cleanup: redundant use of string formatting functions
2019-03-24 16:09:46 +11:00
Campbell Barton
79f67acccb
Cleanup: redundant NULL initialization
2019-03-24 11:06:18 +11:00
Campbell Barton
106551b9ad
Cleanup: use shader config for worldspace clipping lib
2019-03-24 11:01:28 +11:00
Campbell Barton
809101e69e
UI: support Ctrl-C copy for popover buttons
...
Match menu logic that sets the Python expression to call the popover.
2019-03-24 10:52:23 +11:00
Clément Foucault
72c323d50c
GPU: State: Replace GL_LINE_SMOOTH by GPU_line_smooth
2019-03-23 23:54:01 +01:00
Clément Foucault
53cd37d510
GPU: State: Disable polygon smooth and line smooth when running --debug-gpu
...
This might prove usefull when debugging some driver perf issues.
2019-03-23 23:47:12 +01:00
Clément Foucault
ed9af18c76
GPU: Replace glEnable/glDisable but GPU_state calls
2019-03-23 23:43:26 +01:00
Clément Foucault
ee5e7a006e
GPU: Remove unused and deprecated GPU_line_stipple()
2019-03-23 23:42:30 +01:00
Clément Foucault
0f8da4f014
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.
2019-03-23 22:46:15 +01:00
Clément Foucault
e77dc3e7ff
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.
2019-03-23 22:13:57 +01:00
Clément Foucault
13832988ad
Fix T62873 GPUShader: compile error (when clipping in viewport)
...
Props to @matc for the fix
2019-03-23 19:31:20 +01:00
Clément Foucault
16087eb911
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.
2019-03-23 19:28:13 +01:00
Clément Foucault
839fe4e01c
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.
2019-03-23 19:18:51 +01:00
Clément Foucault
b40aa83910
Cleanup: Remove printf
2019-03-23 19:16:55 +01:00
Clément Foucault
0a89c3954f
Fix T62845 VSE preview crash when setting rendered (EEVEE/Workbench)
2019-03-23 19:09:25 +01:00
Clément Foucault
d057dea7ae
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
2019-03-23 18:46:45 +01:00
Campbell Barton
7454fa927b
Fix workbench object outline ignoring clipping
...
Workbench forward engine wasn't recompiling shaders when clipping
changed, use GPUShaderConfigData when creating shaders.
2019-03-23 14:30:38 +11:00
Campbell Barton
0093ad643a
Cleanp: remove redundant clipping uniform
...
workbench_material_shgroup_uniform handles this.
2019-03-23 14:26:33 +11:00
Campbell Barton
045a615f9a
UI: show camera sensor 'Width' as 'Size' for 'Auto' fit
2019-03-23 12:29:49 +11:00
Campbell Barton
f7ec9a5d3a
Fix auto sensor size for camera gizmo
2019-03-23 12:29:03 +11:00
Campbell Barton
23a76491eb
Cleanup: style, use const args where possible
2019-03-23 12:16:38 +11:00
Campbell Barton
ce658d2485
Cleanup: add doxy sections to interface_ops.c
2019-03-23 12:10:23 +11:00
Campbell Barton
4dc6259cfe
Cleanup: doxy sections & function name
2019-03-23 12:10:23 +11:00
Dalai Felinto
faecac0b5e
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.
2019-03-22 18:47:24 -03:00
Dalai Felinto
4015d162df
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).
2019-03-22 17:31:50 -03:00
Brecht Van Lommel
967364dc3e
Cleanup: fix compiler warning.
2019-03-22 20:36:30 +01:00
Brecht Van Lommel
ac643aa881
Fix COLLADA build after recent changes.
2019-03-22 20:36:29 +01:00
Dalai Felinto
820be185bc
Silence false positive uninitialized warning
...
Techically we would never get to the part where we would use the
uninitialized value due to an assert.
2019-03-22 16:31:23 -03:00
Germano Cavalcante
c2b2f9baa8
Merge branch 'blender2.7'
...
Conflicts:
CMakeLists.txt
2019-03-22 16:23:23 -03:00
Germano Cavalcante
edcb5415a2
MSVC: add C4115 and C4189 warnings.
...
This matches the warnings of the other compilers commonly used in Blender.
2019-03-22 16:15:46 -03:00
Dalai Felinto
243a9254ea
Fix warning for uninitialized icon_only
...
Warning/issue introduced on rBcaa357dae70322e.
2019-03-22 16:03:38 -03:00
Dalai Felinto
74b47e4181
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.
2019-03-22 15:55:32 -03:00
Clément Foucault
dcbc46dacb
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.
2019-03-22 19:43:08 +01:00
Clément Foucault
3a516f7555
GPU: Cleanup: Code Style
2019-03-22 19:43:08 +01:00
Clément Foucault
7b3e114975
Fix T57617 Volumetrics doesn't work on the Orthographic Camera
...
common_data.view_vecs were not updated before use.
2019-03-22 19:43:08 +01:00
Clément Foucault
6c0bd89047
Fix T58392 Texture limit size not working
...
It was removed by inadvertence.
2019-03-22 19:43:08 +01:00
Brecht Van Lommel
8b4e0eb88e
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.
2019-03-22 18:59:40 +01:00
Brecht Van Lommel
9c5c91cc7c
Merge branch 'blender2.7'
2019-03-22 18:18:37 +01:00
Brecht Van Lommel
9e3e92a908
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.
2019-03-22 18:16:46 +01:00