blender.git
2 years agoMerge branch 'master' into blender2.8
Campbell Barton [Sun, 3 Jun 2018 09:24:57 +0000 (11:24 +0200)]
Merge branch 'master' into blender2.8

2 years agoCleanup: remove blockscale & handler
Campbell Barton [Sun, 3 Jun 2018 08:59:48 +0000 (10:59 +0200)]
Cleanup: remove blockscale & handler

Replace with link_flag, currently unused,
needed for dynamic space types which is planned.

2 years agoEdit menu: add Repeat Last and Repeat History
Pablo Vazquez [Sat, 2 Jun 2018 21:13:03 +0000 (23:13 +0200)]
Edit menu: add Repeat Last and Repeat History

2 years agobuild_environment: support for msvc2017 and newer cmake.
Ray Molenkamp [Sat, 2 Jun 2018 19:59:56 +0000 (13:59 -0600)]
build_environment: support for msvc2017 and newer cmake.

-expanded build_deps.cmd with 2017 support, it can't locate msvc2017 so needs to be run from developer prompt.
-Newer cmake was unhappy with openal's cmakelists.txt
-collada has warning as error on and errored out on new msvc2017 warnings.

2 years agoUI: use single column layout for particles
Campbell Barton [Sat, 2 Jun 2018 19:40:33 +0000 (21:40 +0200)]
UI: use single column layout for particles

Also minor changes to other panels.

Patch by @billreynish

2 years agoCleanup: -Wswitch warning
Campbell Barton [Sat, 2 Jun 2018 19:38:31 +0000 (21:38 +0200)]
Cleanup: -Wswitch warning

2 years agobuild_environment: fix paths in osl.diff
Ray Molenkamp [Sat, 2 Jun 2018 19:12:42 +0000 (13:12 -0600)]
build_environment: fix paths in osl.diff

2 years agoGPU: Fix texture being freed in threads without ogl context bound.
Clément Foucault [Sat, 2 Jun 2018 19:16:23 +0000 (21:16 +0200)]
GPU: Fix texture being freed in threads without ogl context bound.

This is a dirty fix. A bit more cleaner approach would be to check if a
context is bound and delay the deletion only in this case.
Also we may want to do this orphan deletion at some other places than
wm_window_swap_buffers.

2 years agoDRW: Add uniform name recording in debug mode.
Clément Foucault [Sat, 2 Jun 2018 18:46:04 +0000 (20:46 +0200)]
DRW: Add uniform name recording in debug mode.

2 years agoDRW: Make the Procedural hair update part of the drawmanager.
Clément Foucault [Sat, 2 Jun 2018 18:45:03 +0000 (20:45 +0200)]
DRW: Make the Procedural hair update part of the drawmanager.

Instead of relying on the engine integration which is redundant.

2 years agoEevee: Hair: Make SSR works with hairs.
Clément Foucault [Sat, 2 Jun 2018 11:02:13 +0000 (13:02 +0200)]
Eevee: Hair: Make SSR works with hairs.

2 years agoEevee: Cleanup unused Ghash
Clément Foucault [Sat, 2 Jun 2018 10:07:32 +0000 (12:07 +0200)]
Eevee: Cleanup unused Ghash

2 years agoEevee: Add shadow support for hairs.
Clément Foucault [Sat, 2 Jun 2018 10:07:08 +0000 (12:07 +0200)]
Eevee: Add shadow support for hairs.

2 years agoEevee: Hair: Make hairs visible even if the show emitter option is disabled.
Clément Foucault [Sat, 2 Jun 2018 10:06:24 +0000 (12:06 +0200)]
Eevee: Hair: Make hairs visible even if the show emitter option is disabled.

2 years agoEevee: Add support for hair random property.
Clément Foucault [Sat, 2 Jun 2018 07:25:23 +0000 (09:25 +0200)]
Eevee: Add support for hair random property.

Do note that it does not match cycles implementation.

Also we could precompute the hash per strand before rendering but that would
suggest it's not per engine specific.

If we make the random value internal to blender then it won't be a matter
because other renderers will have access to the same value.

2 years agoEevee: CodeStyle: Fix naming and confusion about the hairs vectors.
Clément Foucault [Fri, 1 Jun 2018 21:10:23 +0000 (23:10 +0200)]
Eevee: CodeStyle: Fix naming and confusion about the hairs vectors.

2 years agoMerge remote-tracking branch 'origin/master' into blender2.8
Dalai Felinto [Sat, 2 Jun 2018 18:34:25 +0000 (20:34 +0200)]
Merge remote-tracking branch 'origin/master' into blender2.8

2 years ago--debug-gpu-shader: Dump GLSL shaders to disk
Dalai Felinto [Wed, 27 Sep 2017 16:03:00 +0000 (18:03 +0200)]
--debug-gpu-shader: Dump GLSL shaders to disk

This is really convenient for development. Either for profiling the
generated shaders or to check if the generated code is correct.

It writes the shaders to the temporary blender session folder.

(ported over from blender2.8)

2 years agotransform_snap_object: Do not use occlusion test when X-Ray is enabled.
Germano [Sat, 2 Jun 2018 16:11:51 +0000 (13:11 -0300)]
transform_snap_object: Do not use occlusion test when X-Ray is enabled.

2 years agoFix inaccuracy of SCREEN_OT_area_split when snap to midpoint and adjacent.
Germano [Sat, 2 Jun 2018 06:17:51 +0000 (03:17 -0300)]
Fix inaccuracy of SCREEN_OT_area_split when snap to midpoint and adjacent.

By default when moving a edge of the screen it always snaps to an invisible grid with unit of 4 pixels.
This was also affecting the snap to the midpoint and adjacent.
The solution was to make the snap to areagrid optional and use values of `origmin` and `origsize` that match the transformations in screen_edit.c.

2 years agoFix crash running in background mode
Campbell Barton [Sat, 2 Jun 2018 12:53:07 +0000 (14:53 +0200)]
Fix crash running in background mode

2 years agoCleanup: quiet warnings w/o Python
Campbell Barton [Sat, 2 Jun 2018 11:06:06 +0000 (13:06 +0200)]
Cleanup: quiet warnings w/o Python

2 years agoFix crash if no tool is set
Campbell Barton [Sat, 2 Jun 2018 10:02:55 +0000 (12:02 +0200)]
Fix crash if no tool is set

2 years agoMerge branch 'master' into blender2.8
Campbell Barton [Sat, 2 Jun 2018 11:09:12 +0000 (13:09 +0200)]
Merge branch 'master' into blender2.8

2 years agoCleanup: warning
Campbell Barton [Sat, 2 Jun 2018 09:58:01 +0000 (11:58 +0200)]
Cleanup: warning

2 years agoFix UI for camera data
Dalai Felinto [Sat, 2 Jun 2018 09:22:41 +0000 (11:22 +0200)]
Fix UI for camera data

The fix bit is the split.

But since we are using col.separator() left and right we need this as well.
I still don't think the separators are the way to go, yet may as well be
consistent with the current design in place, thus the extra separator here too.

2 years agoUI: re-order navigate manipulator
Campbell Barton [Fri, 1 Jun 2018 20:37:27 +0000 (22:37 +0200)]
UI: re-order navigate manipulator

Looked as if size applied to navigation too.

2 years agoUI: use single column properties for object data
Campbell Barton [Fri, 1 Jun 2018 16:44:06 +0000 (18:44 +0200)]
UI: use single column properties for object data

patch by @billreynish w/ minor edits

2 years agoMerge branch 'master' into blender2.8
Campbell Barton [Fri, 1 Jun 2018 16:26:42 +0000 (18:26 +0200)]
Merge branch 'master' into blender2.8

2 years agoCleanup: trailing whitespace (comment blocks)
Campbell Barton [Fri, 1 Jun 2018 16:19:39 +0000 (18:19 +0200)]
Cleanup: trailing whitespace (comment blocks)

Strip unindented comment blocks - mainly headers to avoid conflicts.

2 years agoCleanup: whitespace
Campbell Barton [Fri, 1 Jun 2018 16:10:43 +0000 (18:10 +0200)]
Cleanup: whitespace

2 years agoModifiers: ported applying modifier from DerivedMesh → Mesh
Sybren A. Stüvel [Fri, 1 Jun 2018 15:05:21 +0000 (17:05 +0200)]
Modifiers: ported applying modifier from DerivedMesh → Mesh

2 years agoBoolean modifier: fixed crash when applying the modifier
Sybren A. Stüvel [Fri, 1 Jun 2018 15:23:46 +0000 (17:23 +0200)]
Boolean modifier: fixed crash when applying the modifier

2 years agoMerge branch 'master' into blender2.8
Bastien Montagne [Fri, 1 Jun 2018 15:26:36 +0000 (17:26 +0200)]
Merge branch 'master' into blender2.8

 Conflicts:
source/blender/editors/io/io_collada.c
source/blender/editors/object/object_bake.c
source/blender/editors/object/object_edit.c
source/blender/editors/render/render_internal.c
source/blender/makesrna/intern/rna_object_api.c
source/blenderplayer/bad_level_call_stubs/stubs.c

2 years agoX-Ray: Added a slider for the alpha
Jeroen Bakker [Fri, 1 Jun 2018 15:06:25 +0000 (17:06 +0200)]
X-Ray: Added a slider for the alpha

- will not render when set to 0.0 for speed reasons. so when user sets
transparency to hide everything the bigger passes will be skipped.

2 years agoWorkbench: Updated the internal light to have a bit of back lighting
Jeroen Bakker [Fri, 1 Jun 2018 12:14:28 +0000 (14:14 +0200)]
Workbench: Updated the internal light to have a bit of back lighting

2 years agoFix wrong colors for workbench World Background option.
Brecht Van Lommel [Fri, 1 Jun 2018 15:13:28 +0000 (17:13 +0200)]
Fix wrong colors for workbench World Background option.

2 years agoUI: tweaks to viewport shading and overlay panel layouts.
William Reynish [Fri, 1 Jun 2018 14:58:42 +0000 (16:58 +0200)]
UI: tweaks to viewport shading and overlay panel layouts.

2 years agoUI: use same "Viewport Display" name for scene/object/material panels.
Brecht Van Lommel [Fri, 1 Jun 2018 14:07:25 +0000 (16:07 +0200)]
UI: use same "Viewport Display" name for scene/object/material panels.

2 years agoFix broken set collection offset from cursor operator.
Brecht Van Lommel [Fri, 1 Jun 2018 14:10:48 +0000 (16:10 +0200)]
Fix broken set collection offset from cursor operator.

2 years agoCleanup: some more G.main removal from editor code.
Bastien Montagne [Fri, 1 Jun 2018 15:08:38 +0000 (17:08 +0200)]
Cleanup: some more G.main removal from editor code.

2 years agoMesh Batch Cache: Fix memory leak.
Clément Foucault [Fri, 1 Jun 2018 15:07:00 +0000 (17:07 +0200)]
Mesh Batch Cache: Fix memory leak.

2 years agoT54991: Restore support for Motion Path drawing in 2.8
Joshua Leung [Fri, 1 Jun 2018 14:38:21 +0000 (16:38 +0200)]
T54991: Restore support for Motion Path drawing in 2.8

This commit restores support for Motion Path drawing in 2.8 (as it wasn't ported over
to the new draw engines earlier, and the existing space_view3d/drawanimviz.c code was
removed during the Blender Internal removal).

Notes:
* Motion Paths are now implemented as an overlay (enabled by default).
  Therefore, you can turn all of them on/off from the "Overlays" popover

* By and large, we have kept the same draw style as was used in 2.7
  Further changes can happen later following further design work.

* One change from 2.7 is that thicker lines are used by default (2px vs 1px)

Todo's:
* There are some bad-level calls introduced here (i.e. the actgroup_to_keylist() stuff).
  These were introduced to optimise drawing performance (by avoiding full keyframes -> keylist
  conversion step on each drawcall). Instead, this has been moved to the calculation step
  (in blenkernel).  Soon, there will be some cleanups/improvements with those functions,
  so until then, we'll keep the bad level calls.

Credits:
* Clément Foucault (fclem) - Draw Engine magic + Shader Conversion/Optimisation
* Joshua Leung (Aligorith) - COW fixes, UI integration, etc.

Revision History:
See "tmp-b28-motionpath_drawing" branch (rBa12ab5b2ef49ccacae091ccb54d72de0d63f990d)

2 years agoCleanup: fix incorrect contributor information.
Brecht Van Lommel [Fri, 1 Jun 2018 13:42:11 +0000 (15:42 +0200)]
Cleanup: fix incorrect contributor information.

2 years agoFix for fix, indentation was accidental
Campbell Barton [Fri, 1 Jun 2018 13:42:00 +0000 (15:42 +0200)]
Fix for fix, indentation was accidental

2 years agoFix missing braces
Campbell Barton [Fri, 1 Jun 2018 13:37:53 +0000 (15:37 +0200)]
Fix missing braces

2 years agoUpdate Flatty themes with the new pulldown background and minor tweaks.
Pablo Vazquez [Fri, 1 Jun 2018 13:32:36 +0000 (15:32 +0200)]
Update Flatty themes with the new pulldown background and minor tweaks.

2 years agoFix Add menu issue when there are no collections to instance
Vuk Gardašević [Fri, 1 Jun 2018 13:07:32 +0000 (15:07 +0200)]
Fix Add menu issue when there are no collections to instance

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

2 years agoDraw background on pulldown widgets if the header is transparent.
Brecht Van Lommel [Fri, 1 Jun 2018 13:04:51 +0000 (15:04 +0200)]
Draw background on pulldown widgets if the header is transparent.

Since the viewport header now supports transparency, text on pulldowns
can be hard to read if their color matches the viewport content.

Background is drawn using the 'inner' theme color, that was unused until now.

2 years agoFix broken logic in make static override operators for Collections.
Bastien Montagne [Fri, 1 Jun 2018 12:30:26 +0000 (14:30 +0200)]
Fix broken logic in make static override operators for Collections.

Was pretty sure I already fixed that some weeks ago... but look like it
was not committed or somehow lost...

2 years agoMesh: Replace DM for mesh w/ wpaint vertex picking
Campbell Barton [Fri, 1 Jun 2018 12:29:22 +0000 (14:29 +0200)]
Mesh: Replace DM for mesh w/ wpaint vertex picking

2 years agoUI: don't show XYZ text w/ direction buttons
Campbell Barton [Fri, 1 Jun 2018 12:10:43 +0000 (14:10 +0200)]
UI: don't show XYZ text w/ direction buttons

2 years agoCleanup: rename vars
Campbell Barton [Fri, 1 Jun 2018 11:58:28 +0000 (13:58 +0200)]
Cleanup: rename vars

2 years agoMesh: Replace DM for mesh -> curve conversion
Campbell Barton [Fri, 1 Jun 2018 11:48:39 +0000 (13:48 +0200)]
Mesh: Replace DM for mesh -> curve conversion

2 years agoMesh versions of DerivedMesh access API calls
Campbell Barton [Fri, 1 Jun 2018 10:34:50 +0000 (12:34 +0200)]
Mesh versions of DerivedMesh access API calls

Add mesh_get_eval_final & mesh_get_eval_deform

Note: these will eventually need to be renamed & moved into BKE.

2 years agoCleanup: quiet warning, don't set unused alpha
Campbell Barton [Fri, 1 Jun 2018 11:56:39 +0000 (13:56 +0200)]
Cleanup: quiet warning, don't set unused alpha

2 years agoLookDev: make sure lookdev balls are still visible after 'N'
Jeroen Bakker [Fri, 1 Jun 2018 10:51:29 +0000 (12:51 +0200)]
LookDev: make sure lookdev balls are still visible after 'N'

2 years agoEdit Mode: Fix Edit Object renderability with multi objects edit.
Clément Foucault [Fri, 1 Jun 2018 10:28:05 +0000 (12:28 +0200)]
Edit Mode: Fix Edit Object renderability with multi objects edit.

2 years agoFix: raytrace_mirror does not exist anymore
Jeroen Bakker [Fri, 1 Jun 2018 10:14:08 +0000 (12:14 +0200)]
Fix: raytrace_mirror does not exist anymore

Eevee default material settings were not showing.

2 years agoFix error
Jeroen Bakker [Fri, 1 Jun 2018 10:04:24 +0000 (12:04 +0200)]
Fix error

2 years agoCode cleanup: Compiler warning
Jeroen Bakker [Fri, 1 Jun 2018 10:00:33 +0000 (12:00 +0200)]
Code cleanup: Compiler warning

2 years agoMath: optimizations for 4x4x matrix inverse, multiplications.
Brecht Van Lommel [Thu, 31 May 2018 14:36:20 +0000 (16:36 +0200)]
Math: optimizations for 4x4x matrix inverse, multiplications.

In some heavy rigs matrix inverse can be 10% of computation time. This
reduces it to 2% by using Eigen's optimized 4x4 matrix inverse and SSE
matrix multiplication.

2 years agoModifiers: tiny optimizations for mesh deform, lattice, kdop.
Brecht Van Lommel [Fri, 1 Jun 2018 09:02:54 +0000 (11:02 +0200)]
Modifiers: tiny optimizations for mesh deform, lattice, kdop.

2 years agoFix missing animation updates when the proxy object is not visible.
Brecht Van Lommel [Thu, 31 May 2018 18:51:29 +0000 (20:51 +0200)]
Fix missing animation updates when the proxy object is not visible.

The relation was inverted here, for a long time already. The reason is
unclear and in principle it should work fine in the right direction.

2 years agoFix use of uninitialized value in depsgraph.
Brecht Van Lommel [Thu, 31 May 2018 12:15:25 +0000 (14:15 +0200)]
Fix use of uninitialized value in depsgraph.

2 years agoCleanup: long lines
Campbell Barton [Fri, 1 Jun 2018 09:59:15 +0000 (11:59 +0200)]
Cleanup: long lines

2 years agoFix building for workbench in windows (BLI_INLINE)
Dalai Felinto [Fri, 1 Jun 2018 09:55:02 +0000 (11:55 +0200)]
Fix building for workbench in windows (BLI_INLINE)

2 years agoFix T55282: Modifiers: Removed unnecessary object evaluation
Sybren A. Stüvel [Fri, 1 Jun 2018 09:49:24 +0000 (11:49 +0200)]
Fix T55282: Modifiers: Removed unnecessary object evaluation

2 years agoRemoved old mention of CDDerivedMesh
Sybren A. Stüvel [Fri, 1 Jun 2018 08:40:30 +0000 (10:40 +0200)]
Removed old mention of CDDerivedMesh

2 years agoFix/Workaround T55272: Sculpt/VPaint removes mesh
Campbell Barton [Fri, 1 Jun 2018 09:44:50 +0000 (11:44 +0200)]
Fix/Workaround T55272: Sculpt/VPaint removes mesh

2 years agoCleanup: quiet warnings
Campbell Barton [Fri, 1 Jun 2018 09:48:53 +0000 (11:48 +0200)]
Cleanup: quiet warnings

2 years agoObject Mode: Display loose edges if overlays are enables.
Clément Foucault [Fri, 1 Jun 2018 09:35:51 +0000 (11:35 +0200)]
Object Mode: Display loose edges if overlays are enables.

This fix T55280 Loose edges not visible in object mode

2 years agoFix: overlays are reset when selection is being performed
Jeroen Bakker [Fri, 1 Jun 2018 09:31:30 +0000 (11:31 +0200)]
Fix: overlays are reset when selection is being performed

/me hits myself in the head. In selection code the flags were not tested
but set directly.

2 years agoWorkbench: Material specific settings for the specular
Jeroen Bakker [Thu, 31 May 2018 11:32:53 +0000 (13:32 +0200)]
Workbench: Material specific settings for the specular

- Uses the roughness setting of the basic eevee material
- renamed gloss_mir to roughness
- set default of roughness to 0.25
- renamed ray_mirror to metallic
- cleaned up material rna (BI mirror struct)
- use BLINN phong model
- normalize incoming/outgoing specular light
- when using camera oriented studiolight, the SolidLight will be used
for specular highlights
- EXPERIMENT: when in world oriented studiolight only the shadow direction will be used.
- change the settings of the internal light to make scenes more
readable

2 years agoFix crash switching sculpt/vpaint -> edit mode
Campbell Barton [Fri, 1 Jun 2018 08:33:20 +0000 (10:33 +0200)]
Fix crash switching sculpt/vpaint -> edit mode

2 years agoFix broken 'make single user' operator UI.
Bastien Montagne [Fri, 1 Jun 2018 08:26:42 +0000 (10:26 +0200)]
Fix broken 'make single user' operator UI.

Texture option was removed, since BI engine removal...

2 years ago3D View: hide orbit navigation in camera view
Campbell Barton [Fri, 1 Jun 2018 08:16:01 +0000 (10:16 +0200)]
3D View: hide orbit navigation in camera view

Typically for camera views it's nicer not to overlay large widgets,
only include the button to exit camera view.

2 years agoModifiers: ported Soft Body DerivedMesh → Mesh
Sybren A. Stüvel [Thu, 31 May 2018 12:57:04 +0000 (14:57 +0200)]
Modifiers: ported Soft Body DerivedMesh → Mesh

The simulation doesn't seem to update properly yet.

2 years agoPartial Revert of COW/Camera manipulator changes
Campbell Barton [Fri, 1 Jun 2018 07:48:40 +0000 (09:48 +0200)]
Partial Revert of COW/Camera manipulator changes

d64fbe94568e5 3e26b84397fcb

2 years agoRevert "COW Fix: Lamp manipulators"
Campbell Barton [Fri, 1 Jun 2018 07:24:17 +0000 (09:24 +0200)]
Revert "COW Fix: Lamp manipulators"

This reverts commit 33e45658ebc2a79acda259f7be748ad64780e982.

No longer needed.

2 years ago3D View: respect text option for edit-mode info
Campbell Barton [Fri, 1 Jun 2018 07:22:08 +0000 (09:22 +0200)]
3D View: respect text option for edit-mode info

2 years agoError in last commit
Campbell Barton [Fri, 1 Jun 2018 06:31:32 +0000 (08:31 +0200)]
Error in last commit

2 years ago3D View: make text overlay optional
Campbell Barton [Fri, 1 Jun 2018 06:26:55 +0000 (08:26 +0200)]
3D View: make text overlay optional

2 years ago3D View: support world background color
Campbell Barton [Fri, 1 Jun 2018 06:15:50 +0000 (08:15 +0200)]
3D View: support world background color

2 years agoAdd 'Toggle Header' to header context menu.
Pablo Vazquez [Fri, 1 Jun 2018 00:55:16 +0000 (02:55 +0200)]
Add 'Toggle Header' to header context menu.

Also disable collapsing the header by dragging it up/down. This prevents
accidentally hiding the header when resizing areas.

2 years agoCycles UI: Show pause button only when in rendered mode
Dalai Felinto [Thu, 31 May 2018 21:55:10 +0000 (23:55 +0200)]
Cycles UI: Show pause button only when in rendered mode

2 years agoFix render engine info region when overlap and header on bottom
Dalai Felinto [Thu, 31 May 2018 21:48:50 +0000 (23:48 +0200)]
Fix render engine info region when overlap and header on bottom

Note there is some talk about changing the position of this (which would be strange in the image editor by the way,
since there we use the bottom for the result of the current pixel when dragging the mouse).

However first I wanted to fix this regardless.

2 years agoUI: new tool properties space type
Campbell Barton [Thu, 31 May 2018 19:45:26 +0000 (21:45 +0200)]
UI: new tool properties space type

This currently shows panels that were in the 2.79 3D view toolbar
which are now popovers.

In some cases it's useful for these to stay open.
This commit adds a space type to do this.

Note this is currently empty in object mode.

2 years agoUI: support drawing panels from multiple contexts
Campbell Barton [Thu, 31 May 2018 19:39:48 +0000 (21:39 +0200)]
UI: support drawing panels from multiple contexts

2 years agoAdd Asan support for clang on windows.
Ray Molenkamp [Thu, 31 May 2018 17:50:30 +0000 (11:50 -0600)]
Add Asan support for clang on windows.

This will currently only work for the RelWithDebInfo configuration since asan
does not support the debug crt. for source line information in the reports,
you need a copy of llvm-symbolizer in the blender folder or set the
ASAN_SYMBOLIZER_PATH environment variable to point to it. Currently (as of
6.0.0) llvm-symbolizer does not ship with the binary clang/llvm distribution.

Reviewers: campbellbarton

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

2 years agoCleanup: Fix indentation
Dalai Felinto [Thu, 31 May 2018 17:19:27 +0000 (19:19 +0200)]
Cleanup: Fix indentation

2 years agoOverlay: Add Wireframe overlay.
Clément Foucault [Thu, 31 May 2018 17:01:22 +0000 (19:01 +0200)]
Overlay: Add Wireframe overlay.

This overlay is showing mesh topology. It is usable with transparency
even if the mesh order can mess up with the expected result (some object
more prominent than others).

Edge thickness and alpha values are hardcoded for now but can easily be
added to theme or object settings.

2 years agoDRW: Add wireframe buffer texture generation for wireframe drawing.
Clément Foucault [Thu, 31 May 2018 16:43:19 +0000 (18:43 +0200)]
DRW: Add wireframe buffer texture generation for wireframe drawing.

Only OB_MESH is supported for now.

Creates a simple index buffer with negative indices if the edges is not a
real edge.

Also create the buffer texture representation of this buffer along with the
pos_in_order buffer texture.

2 years agoDRW: Fix DRW_shgroup_call_procedural_* vertex count.
Clément Foucault [Thu, 31 May 2018 16:34:56 +0000 (18:34 +0200)]
DRW: Fix DRW_shgroup_call_procedural_* vertex count.

2 years agoGPUTexture: Expose GPU_texture_create_buffer and add GL_R32I support.
Clément Foucault [Thu, 31 May 2018 16:34:17 +0000 (18:34 +0200)]
GPUTexture: Expose GPU_texture_create_buffer and add GL_R32I support.

2 years agoLoopTri: Fix example code.
Clément Foucault [Thu, 31 May 2018 10:40:37 +0000 (12:40 +0200)]
LoopTri: Fix example code.

For real guys! Test your example code!

2 years agoDRW: Fix stick bones memory leak.
Clément Foucault [Wed, 30 May 2018 13:01:43 +0000 (15:01 +0200)]
DRW: Fix stick bones memory leak.

2 years agoFix Collada building...
Bastien Montagne [Thu, 31 May 2018 16:37:33 +0000 (18:37 +0200)]
Fix Collada building...

2 years agoMerge branch 'master' into blender2.8
Bastien Montagne [Thu, 31 May 2018 16:35:14 +0000 (18:35 +0200)]
Merge branch 'master' into blender2.8

Conflicts:
source/blender/editors/sculpt_paint/paint_image.c
source/blender/editors/space_image/image_edit.c
source/blender/editors/space_image/image_ops.c
source/blender/makesrna/intern/rna_material.c
source/blender/makesrna/intern/rna_sculpt_paint.c
source/blender/makesrna/intern/rna_space.c
source/blenderplayer/bad_level_call_stubs/stubs.c

2 years agoCleanup: Remove G.main from some editor files.
Bastien Montagne [Thu, 31 May 2018 16:23:20 +0000 (18:23 +0200)]
Cleanup: Remove G.main from some editor files.