3 years agoMerge branch 'master' into blender2.8
Campbell Barton [Tue, 15 May 2018 15:31:26 +0000 (17:31 +0200)]
Merge branch 'master' into blender2.8

3 years agoFix assert using '//' on an unsaved file
Campbell Barton [Tue, 15 May 2018 15:27:36 +0000 (17:27 +0200)]
Fix assert using '//' on an unsaved file

Annoying for debug builds.

3 years agoParticle edit: Fix generation of KD tree for emitters
Sergey Sharybin [Tue, 15 May 2018 14:15:13 +0000 (16:15 +0200)]
Particle edit: Fix generation of KD tree for emitters

Fixes crahs using puff brush with copy-on-write.

3 years agoparticle edit: Fix crash when using without copy-on-write
Sergey Sharybin [Tue, 15 May 2018 14:00:08 +0000 (16:00 +0200)]
particle edit: Fix crash when using without copy-on-write

3 years agoParticles: Fix uninitialized child orco passed to modifiers
Sergey Sharybin [Tue, 15 May 2018 13:56:40 +0000 (15:56 +0200)]
Particles: Fix uninitialized child orco passed to modifiers

Wrong cleanup done in 51b796ff152.

3 years agoParticle edit: Need to check DONE flag from evaluated psys
Sergey Sharybin [Tue, 15 May 2018 12:50:24 +0000 (14:50 +0200)]
Particle edit: Need to check DONE flag from evaluated psys

3 years agoParticle edit: Support children particles display with copy on write
Sergey Sharybin [Tue, 15 May 2018 12:38:02 +0000 (14:38 +0200)]
Particle edit: Support children particles display with copy on write

3 years agoDepsgraph: Forbid flush across scene->geometry operations
Sergey Sharybin [Tue, 15 May 2018 12:35:24 +0000 (14:35 +0200)]
Depsgraph: Forbid flush across scene->geometry operations

This relations is only to force geometry evaluation to happen
after scene's CoW is done. it was never meant to update geometry
when scene is being tagged.

3 years agoDepsgraph: Keep track of original particle system
Sergey Sharybin [Tue, 15 May 2018 11:08:06 +0000 (13:08 +0200)]
Depsgraph: Keep track of original particle system

Allows to have quicker lookup in particle edit mode.

3 years agoParticle edit: Add missing looking tag in cut brush
Sergey Sharybin [Tue, 15 May 2018 10:52:54 +0000 (12:52 +0200)]
Particle edit: Add missing looking tag in cut brush

3 years agoParticle edit: Allow children to be visible in edit mode
Sergey Sharybin [Tue, 15 May 2018 10:46:33 +0000 (12:46 +0200)]
Particle edit: Allow children to be visible in edit mode

Follows tool settings, tested without copy-on-write.

Enabling copy-on-write still needs verification and likely some fixing.

3 years agoParticle edit: Move cache update to particle batch cache implementation
Sergey Sharybin [Tue, 15 May 2018 10:44:55 +0000 (12:44 +0200)]
Particle edit: Move cache update to particle batch cache implementation

The idea is to allow "regular" strands to update edit cache and hence
get the final update strands.

3 years agoDraw manager: Pass object to hair batch cache
Sergey Sharybin [Tue, 15 May 2018 10:38:49 +0000 (12:38 +0200)]
Draw manager: Pass object to hair batch cache

Currently unused, but is required for an upcoming work.

3 years agoParticle edit: Make check to work within copy-on-write concept
Sergey Sharybin [Tue, 15 May 2018 10:34:18 +0000 (12:34 +0200)]
Particle edit: Make check to work within copy-on-write concept

Not fully optimal, we can probably store pointer to original psys
similar to ID's orig_id.

3 years agoParticle edit: Edit path invalidate should trigger particle system path re-cache
Sergey Sharybin [Tue, 15 May 2018 10:32:01 +0000 (12:32 +0200)]
Particle edit: Edit path invalidate should trigger particle system path re-cache

Don't try to bend existing design, just follow it. It's not nice, but is
working. Just bring it back, then repeal and replace system as a whole,
making sure every bit is working according to a design.

Such quick patches only trying to make local sense of a system, defeating
it's design.

3 years agoParticle edit: Restore weird-looking conditions in evaluation
Sergey Sharybin [Tue, 15 May 2018 09:48:33 +0000 (11:48 +0200)]
Particle edit: Restore weird-looking conditions in evaluation

They might be looking weird, but they match conditions when children particles
are to be re-calculated for particle edit.

3 years agoParticle edit: Re-cache edit path if it's NULL
Sergey Sharybin [Tue, 15 May 2018 09:41:30 +0000 (11:41 +0200)]
Particle edit: Re-cache edit path if it's NULL

This is what old particle drawing code was doing.

3 years agoParticle edit: Decouple caches for regular and edit strands
Sergey Sharybin [Tue, 15 May 2018 09:39:14 +0000 (11:39 +0200)]
Particle edit: Decouple caches for regular and edit strands

Makes it possible to have children strands to be visible during combing.
Actual implementation still needs work though.

3 years agoParticle edit: Make visibility check to be per-particle system
Sergey Sharybin [Tue, 15 May 2018 09:35:39 +0000 (11:35 +0200)]
Particle edit: Make visibility check to be per-particle system

This way we can see other particle systems while combing another one.

3 years agoParticle edit: Use proper batch cache flag
Sergey Sharybin [Tue, 15 May 2018 09:23:27 +0000 (11:23 +0200)]
Particle edit: Use proper batch cache flag

Also tag batch for invalidation when using cut brush.

3 years agoParticle edit: Tag for updates when changing tool settings related on edit mode
Sergey Sharybin [Tue, 15 May 2018 09:22:20 +0000 (11:22 +0200)]
Particle edit: Tag for updates when changing tool settings related on edit mode

3 years agoParticle edit: Fix missing hair edit after toggling edit mode
Sergey Sharybin [Mon, 14 May 2018 13:37:54 +0000 (15:37 +0200)]
Particle edit: Fix missing hair edit after toggling edit mode

3 years agoFix hair edit mode after recent fix for DEG sued from draw code
Sergey Sharybin [Mon, 14 May 2018 13:34:41 +0000 (15:34 +0200)]
Fix hair edit mode after recent fix for DEG sued from draw code

3 years agoModifiers on Lattices now work
Sybren A. Stüvel [Tue, 15 May 2018 15:16:20 +0000 (17:16 +0200)]
Modifiers on Lattices now work

Tested with Hook and Armature modifiers. Requires CoW to be enabled.

3 years agoWorkbench: Renamed Overlap to Outline
Jeroen Bakker [Tue, 15 May 2018 15:03:59 +0000 (17:03 +0200)]
Workbench: Renamed Overlap to Outline

Outline is reserved for the Overlap Overlay

3 years agoFix broken PoseMode editing when CoW is enabled.
Bastien Montagne [Tue, 15 May 2018 14:29:19 +0000 (16:29 +0200)]
Fix broken PoseMode editing when CoW is enabled.

We need to get data from evaluated object/posechannel too, then...

3 years agoFix T55078: Assert statement
Jeroen Bakker [Tue, 15 May 2018 14:18:30 +0000 (16:18 +0200)]
Fix T55078: Assert statement

3 years agoChange startup defaults
Campbell Barton [Tue, 15 May 2018 12:40:01 +0000 (14:40 +0200)]
Change startup defaults

- Default Lamp increased strength (10x stronger)
- 3D View & Camera Lens = 50mm
- Camera film size = 36x24mm Full Frame
- Render Size Percentage = 100%
- Render Display = New Window
- Scene Units = Metric
- Color Management View = Filmic
- Workbench Object Overlap = ON
- Headers on top for all editors, except the Timeline at the bottom
- Default Properties tab = Object Properties
- Generate UV's = ON

See T47064

3 years agoWorkbench: Cleaner Shadow edges own shadow
Jeroen Bakker [Tue, 15 May 2018 13:19:57 +0000 (15:19 +0200)]
Workbench: Cleaner Shadow edges own shadow

3 years agoChange preference defaults
Campbell Barton [Tue, 15 May 2018 12:24:44 +0000 (14:24 +0200)]
Change preference defaults

- Python tooltips: OFF
- Auto Perspective: ON
- Navigation Manipulator: ON
- Region Overlap: ON

See T47064

3 years agoAdd icon placeholders for all the armature ops that got recently added in the toolbar
Joshua Leung [Tue, 15 May 2018 11:49:44 +0000 (13:49 +0200)]
Add icon placeholders for all the armature ops that got recently added in the toolbar

The icon designers still need to create these, but it's better to have placeholders
so they remember to do it.

3 years agoFix crash linking/appending from old files in some cases.
Brecht Van Lommel [Tue, 15 May 2018 11:23:01 +0000 (13:23 +0200)]
Fix crash linking/appending from old files in some cases.

Temporary main would not have a lock, which caused crashing when adding

3 years agoFix random crashes in the outliner, especially with bigger scenes.
Brecht Van Lommel [Tue, 15 May 2018 10:49:38 +0000 (12:49 +0200)]
Fix random crashes in the outliner, especially with bigger scenes.

The outliner can redraw quicker without rebuilding the tree, for example when
just moving the mouse and highlighting different items. The way this worked is
that the outliner would be tagged to avoid rebuilding, however if another
operation that does require rebuilding happens in the meantime we could go out
of sync and crash.

3 years agoPose Toolbar: Added Breakdowner/Push/Relax as separate tools
Joshua Leung [Tue, 15 May 2018 10:40:50 +0000 (12:40 +0200)]
Pose Toolbar: Added Breakdowner/Push/Relax as separate tools

Currently all are stacked together, but perhaps if we don't get any other
tools in the meantime, it would make sense to have them separate.

* No icons for now...
* There are some 2.8 bugs with the underlying operators (notably multi object)

3 years agoEdit Armature Toolbar: Added some tools for "Shrink Fatten" (Alt-S) type bone transfo...
Joshua Leung [Tue, 15 May 2018 08:24:26 +0000 (10:24 +0200)]
Edit Armature Toolbar: Added some tools for "Shrink Fatten" (Alt-S) type bone transform tools

For fun, I tried adding some more edit armature tools to the toolbar to
check how this is all working. Icons are missing currently, but it's a
nice test.

3 years agoFix bone-size crash
Campbell Barton [Tue, 15 May 2018 09:36:39 +0000 (11:36 +0200)]
Fix bone-size crash

Own regression from multi-object transform.

3 years agoMerge branch 'master' into blender2.8
Campbell Barton [Tue, 15 May 2018 09:14:33 +0000 (11:14 +0200)]
Merge branch 'master' into blender2.8

3 years agoCleanup: last spacetype enum name
Campbell Barton [Tue, 15 May 2018 09:12:49 +0000 (11:12 +0200)]
Cleanup: last spacetype enum name

3 years agoMerge branch 'master' into blender2.8
Campbell Barton [Tue, 15 May 2018 08:25:49 +0000 (10:25 +0200)]
Merge branch 'master' into blender2.8

3 years agoUndo System: remove nested edit-mode undo calls
Campbell Barton [Tue, 15 May 2018 08:02:01 +0000 (10:02 +0200)]
Undo System: remove nested edit-mode undo calls

Regression in recent undo system changes,
This caused T55048.

When each mode had its own undo stack it was important
to initialize it when entering edit-mode.

3 years agoFix texture space transform crash
Campbell Barton [Tue, 15 May 2018 07:24:14 +0000 (09:24 +0200)]
Fix texture space transform crash

Own regression from multi-object transform.

3 years agoFix T55061: Shadows were not updated during sclupting.
Jeroen Bakker [Tue, 15 May 2018 07:12:42 +0000 (09:12 +0200)]
Fix T55061: Shadows were not updated during sclupting.

3 years agoMerge branch 'master' into blender2.8
Campbell Barton [Tue, 15 May 2018 07:08:48 +0000 (09:08 +0200)]
Merge branch 'master' into blender2.8

3 years agoFix BMesh bisect not flagging dirty indices
Campbell Barton [Tue, 15 May 2018 07:04:12 +0000 (09:04 +0200)]
Fix BMesh bisect not flagging dirty indices

3 years agoWorkbench: Enable Textures in Edit Mesh Mode
Jeroen Bakker [Tue, 15 May 2018 06:56:45 +0000 (08:56 +0200)]
Workbench: Enable Textures in Edit Mesh Mode

Constructed UV out of BMesh data layers.

3 years agoCleanup: Use switch statement to test the object type in snap functions.
Germano [Mon, 14 May 2018 21:43:03 +0000 (18:43 -0300)]
Cleanup: Use switch statement to test the object type in snap functions.

3 years agoEditMesh: updated extrude manipulator
Campbell Barton [Mon, 14 May 2018 21:21:59 +0000 (23:21 +0200)]
EditMesh: updated extrude manipulator

Now plus icons are used to add,
arrows are used to adjust existing extrusions.

3 years agoManipulator: outline & helpline options for button
Campbell Barton [Mon, 14 May 2018 21:18:36 +0000 (23:18 +0200)]
Manipulator: outline & helpline options for button

3 years agoManipulator: utility to get matrix w/o offset
Campbell Barton [Mon, 14 May 2018 21:15:15 +0000 (23:15 +0200)]
Manipulator: utility to get matrix w/o offset

3 years agoCleanup: compiler warnings, use const
Campbell Barton [Mon, 14 May 2018 21:12:51 +0000 (23:12 +0200)]
Cleanup: compiler warnings, use const

3 years agoTransform: Use the new BLI_bvhtree_find_nearest_projected function to snap.
Germano [Mon, 14 May 2018 19:08:17 +0000 (16:08 -0300)]
Transform: Use the new BLI_bvhtree_find_nearest_projected function to snap.

3 years agoNew function for BLI_kdopbvh: `BLI_bvhtree_find_nearest_projected`.
Germano [Mon, 14 May 2018 19:00:13 +0000 (16:00 -0300)]
New function for BLI_kdopbvh: `BLI_bvhtree_find_nearest_projected`.

This patch does not make any difference for a user's POV. But it is a step for adding the occlusion test for snapping functions.
This new function finds the node(aabb) whose projection is closest to a screen coordinate.

Reviewers: campbellbarton

Reviewed By: campbellbarton

Tags: #bf_blender_2.8

Differential Revision:

3 years agoFix crash opening - DL_INDEX3 displist have a single normal...
Bastien Montagne [Mon, 14 May 2018 15:39:41 +0000 (17:39 +0200)]
Fix crash opening - DL_INDEX3 displist have a single normal, not one per vertex!

3 years agoView 3D: Use Z Key for "geometry occlusion" toggle
Dalai Felinto [Mon, 14 May 2018 15:17:02 +0000 (17:17 +0200)]
View 3D: Use Z Key for "geometry occlusion" toggle

Note: The header doesn't update until you mouse hover it.

3 years agoFix error in MESH_OT_edge_face_add changes
Campbell Barton [Mon, 14 May 2018 14:31:44 +0000 (16:31 +0200)]
Fix error in MESH_OT_edge_face_add changes

Context sensitive create also needs to check selected vertices.

Also correct indentation.

3 years agoFix error moving pivot
Campbell Barton [Mon, 14 May 2018 14:25:16 +0000 (16:25 +0200)]
Fix error moving pivot

Missed updating keymap RNA paths.

3 years agoFix UI failing for vertex paint
Dalai Felinto [Mon, 14 May 2018 14:11:05 +0000 (16:11 +0200)]
Fix UI failing for vertex paint

3 years agoMulti-Objects: MESH_OT_vert_connect_path by Falk David
Dalai Felinto [Mon, 14 May 2018 13:55:14 +0000 (15:55 +0200)]
Multi-Objects: MESH_OT_vert_connect_path by Falk David

With a few changes:
* Use space after if.
* Skip for loop when no selected vertices.

Maniphest Tasks: T54643
Differential Revision:

3 years agoMulti-Objects: MESH_OT_edge_face_add by Guy Boicey
Dalai Felinto [Mon, 14 May 2018 13:39:58 +0000 (15:39 +0200)]
Multi-Objects: MESH_OT_edge_face_add by Guy Boicey

With changes by Dalai Felinto:
* Indentation
* Skip for loop when no vert/edge are selected

Maniphest Tasks: T54643
Differential Revision:

3 years agoCOW Fix: The "layers used" display for armatures did not update after bones were...
Joshua Leung [Mon, 14 May 2018 13:42:49 +0000 (15:42 +0200)]
COW Fix: The "layers used" display for armatures did not update after bones were moved between layers

Previously, the "layers_used" value was getting updated by the drawing code.
However, when using copy on write, the drawing code gets evaluated copies of
the armature data instead of the original data, so any updates here fail to
get flushed to the original data, hence the lack of updates in the UI.

Fixed by moving the calculation to RNA when setting bone layers, as it should
have been done originally. (The one downside to this is if we set individual
layer memberships one by one - this could be slower as the recalc would have to
happen each time this changes).

3 years agoFix: With no bones selected, move bones to layer operator would display garbage layer set
Joshua Leung [Mon, 14 May 2018 12:37:14 +0000 (14:37 +0200)]
Fix: With no bones selected, move bones to layer operator would display garbage layer set

Was using uninitialised memory

3 years agoFix: POSE_OT_select_constraint_target now works with copy on write
Joshua Leung [Mon, 14 May 2018 11:54:45 +0000 (13:54 +0200)]
Fix: POSE_OT_select_constraint_target now works with copy on write

3 years agoMESH_OT_select_mirror: Only report when something to report
Dalai Felinto [Mon, 14 May 2018 13:26:29 +0000 (15:26 +0200)]
MESH_OT_select_mirror: Only report when something to report

Inspired by D3299.

3 years agoMulti- Objects: MESH_OT_select_face_by_sides by Rainer Trummer
Dalai Felinto [Mon, 14 May 2018 13:21:06 +0000 (15:21 +0200)]
Multi- Objects: MESH_OT_select_face_by_sides by Rainer Trummer

Maniphest Tasks: T54643
Differential Revision:

3 years agoMulti-Object: MESH_OT_vert_connect_concave by Guy Boicey
Dalai Felinto [Mon, 14 May 2018 12:56:00 +0000 (14:56 +0200)]
Multi-Object: MESH_OT_vert_connect_concave by Guy Boicey

Maniphest Tasks: T54643
Differential Revision:

3 years agoManipulator: fix 2D icon buttons in the 3D view
Campbell Barton [Mon, 14 May 2018 12:46:37 +0000 (14:46 +0200)]
Manipulator: fix 2D icon buttons in the 3D view

3 years agoSome cleanup in modifiers' mesh copying.
Bastien Montagne [Mon, 14 May 2018 12:34:00 +0000 (14:34 +0200)]
Some cleanup in modifiers' mesh copying.

3 years agoFix T55031: add explicit copy flag to force deep-copying shapekey datablock with...
Bastien Montagne [Mon, 14 May 2018 12:23:11 +0000 (14:23 +0200)]
Fix T55031: add explicit copy flag to force deep-copying shapekey datablock with 'parent' one.

Chose to change defaut behavior (0-flag one) here, for sake of
consistency. Default behavior of simple BKE_id_copy() remains unchanged

3 years agoT54643-Multi-Object EditMesh: MESH_OT_select_nth
Luc Revardel [Mon, 14 May 2018 11:57:17 +0000 (13:57 +0200)]
T54643-Multi-Object EditMesh: MESH_OT_select_nth

With changes by Dalai Felinto:
* Move WM_operator.* outside for loop.
* Update error message to handle Mesh and Meshes.
* Skip main functionality when no vert/edge/face is selected.

Maniphest Tasks: T54643
Differential Revision:

3 years agoUI Tweaks in 3D View
Pablo Vazquez [Mon, 14 May 2018 12:00:29 +0000 (14:00 +0200)]
UI Tweaks in 3D View

* Move Shading modes out of the popover
* Move Show Overlays out of the popover
* Test moving the Mode to the topbar again
* Move submode (select vertex, edge, face) to the topbar
* Remove icon from show_manipulator toggle

3 years agoMulti-Object: MESH_OT_select_mirror
Dalai Felinto [Mon, 14 May 2018 11:43:20 +0000 (13:43 +0200)]
Multi-Object: MESH_OT_select_mirror

3 years agoFix extrude adjustment on normal axis
Campbell Barton [Mon, 14 May 2018 11:45:13 +0000 (13:45 +0200)]
Fix extrude adjustment on normal axis

3 years agoFix: Skip missing COW tagging on changing armature layers via RNA
Joshua Leung [Mon, 14 May 2018 11:42:23 +0000 (13:42 +0200)]
Fix: Skip missing COW tagging on changing armature layers via RNA

Was causing problems on Spring rig while trying to show/hide armature layers

3 years agoFix incorrect matrix stack push/pop
Campbell Barton [Mon, 14 May 2018 11:03:04 +0000 (13:03 +0200)]
Fix incorrect matrix stack push/pop

3 years agoMulti-Object: MESH_OT_vert_connect_nonplanar by Aeden McClain
Dalai Felinto [Mon, 14 May 2018 11:02:00 +0000 (13:02 +0200)]
Multi-Object: MESH_OT_vert_connect_nonplanar by Aeden McClain

With indentation fixes by Dalai Felinto.

Maniphest Tasks: T54643
Differential Revision:

3 years agoMulti-Objects: VIEW3D_OT_snap_selected_to_gri by Leon Eckardtd
Dalai Felinto [Mon, 14 May 2018 10:51:55 +0000 (12:51 +0200)]
Multi-Objects: VIEW3D_OT_snap_selected_to_gri by Leon Eckardtd

With changes by Dalai Felinto (skip for loop when no vert/edgeface selected).

Maniphest Tasks: T54643
Differential Revision:

3 years agoMerge branch 'blender2.8' of into blender2.8
Jeroen Bakker [Mon, 14 May 2018 10:44:05 +0000 (12:44 +0200)]
Merge branch 'blender2.8' of into blender2.8

3 years agoFix extrude manipulator update w/ view orientation
Campbell Barton [Mon, 14 May 2018 10:24:44 +0000 (12:24 +0200)]
Fix extrude manipulator update w/ view orientation

3 years agoMulti-Object: MESH_OT_convex_hull by Lucas Boutrot
Dalai Felinto [Mon, 14 May 2018 10:18:42 +0000 (12:18 +0200)]
Multi-Object: MESH_OT_convex_hull by Lucas Boutrot

Maniphest Tasks: T54643
Differential Revision:

3 years agoWorkbench: Named background rendering
Jeroen Bakker [Mon, 14 May 2018 10:07:58 +0000 (12:07 +0200)]
Workbench: Named background rendering

3 years agoWorkbench: Render studio hdr name in selection
Jeroen Bakker [Mon, 14 May 2018 08:32:28 +0000 (10:32 +0200)]
Workbench: Render studio hdr name in selection

3 years agoParticle edit: Avoid depsgraph tag from draw code
Sergey Sharybin [Mon, 14 May 2018 08:15:54 +0000 (10:15 +0200)]
Particle edit: Avoid depsgraph tag from draw code

Some of the function was intended to be used form drawing as well,
for until that is changed in design we can not use dependency graph
tags form it.

3 years agoRevert "Tag update when using particle edit brushes"
Sergey Sharybin [Fri, 11 May 2018 15:19:15 +0000 (17:19 +0200)]
Revert "Tag update when using particle edit brushes"

This reverts commit 5dba0b68f8ba9e9d700c75be6595fb09e6d5c5ea.

Old code was supposed to use this function from draw, and we must never
poke depsgraph from drawing.

3 years agoWorkbench: Studio light better diffuse sampling
Jeroen Bakker [Mon, 14 May 2018 08:04:34 +0000 (10:04 +0200)]
Workbench: Studio light better diffuse sampling

Increased steps of diffuse sampling for narrow hightlights

3 years agoWorkbench: Support HDR files as HDRI studio lighting
Jeroen Bakker [Mon, 14 May 2018 07:55:23 +0000 (09:55 +0200)]
Workbench: Support HDR files as HDRI studio lighting

support Radiance HDR files for studio lighting.
Fix crash when studiolight folder does not exist.

3 years agoUV: multi-object project bounds
Campbell Barton [Mon, 14 May 2018 07:15:43 +0000 (09:15 +0200)]
UV: multi-object project bounds

D3368 by @Al with own edits.

3 years agoMerge branch 'master' into blender2.8
Campbell Barton [Mon, 14 May 2018 07:01:07 +0000 (09:01 +0200)]
Merge branch 'master' into blender2.8

3 years agoCleanup: quiet GCC -Wtype-limits
Campbell Barton [Mon, 14 May 2018 06:58:09 +0000 (08:58 +0200)]
Cleanup: quiet GCC -Wtype-limits

While the warning can normally be disabled, we don't have have as much
control of warnings when macros are used.

3 years agoMerge branch 'master' into blender2.8
Campbell Barton [Mon, 14 May 2018 06:41:15 +0000 (08:41 +0200)]
Merge branch 'master' into blender2.8

3 years agoBLI_utildefines: re-ordering array delete macro
Campbell Barton [Mon, 14 May 2018 05:37:17 +0000 (07:37 +0200)]
BLI_utildefines: re-ordering array delete macro

3 years agoEevee: Hair: Disable SSR for hairs.
Clément Foucault [Sun, 13 May 2018 22:18:00 +0000 (00:18 +0200)]
Eevee: Hair: Disable SSR for hairs.

SSR does not work with hair strands. Basically, the rays are too much
random to ever converge properly and just result in a soup of self
inter reflections.

So forcing it to not produce any SSR. Could potentially save some bandwidth
by not rendering hair to the SSR buffers.

3 years agoEevee: Hair: Fix normal distribution of previous commit.
Clément Foucault [Sun, 13 May 2018 21:12:45 +0000 (23:12 +0200)]
Eevee: Hair: Fix normal distribution of previous commit.

Now it starts to look correct!

3 years agoEevee: Hair: Remove old hack and replace by new hack.
Clément Foucault [Sun, 13 May 2018 20:20:44 +0000 (22:20 +0200)]
Eevee: Hair: Remove old hack and replace by new hack.

This is a hack to properly shade wire hairs. Use stochastic sampling and
let TAA solve the noise.

At least it's way more correct than the previous hack.

3 years agoGPUTexture: Add Texture Buffer support.
Clément Foucault [Sun, 13 May 2018 20:12:32 +0000 (22:12 +0200)]
GPUTexture: Add Texture Buffer support.

This is needed by opensubdiv and can be helpfull in a lot of other cases.

3 years agoEditMesh: Use tweak for extrude tool
Campbell Barton [Sun, 13 May 2018 19:19:22 +0000 (21:19 +0200)]
EditMesh: Use tweak for extrude tool

Could too easily click to extrude without any offset.

3 years agoEditMesh: show XYZ axis for extrude
Campbell Barton [Sun, 13 May 2018 15:53:31 +0000 (17:53 +0200)]
EditMesh: show XYZ axis for extrude

Always show normal axis since this is the most used,
even when another orientation is selected.

3 years agoEevee: Fix lamp defaulting to no specular.
Clément Foucault [Sun, 13 May 2018 19:07:25 +0000 (21:07 +0200)]
Eevee: Fix lamp defaulting to no specular.

Was missing a default value.

3 years agoFix missing path callback for new Object.display struct.
Bastien Montagne [Sun, 13 May 2018 17:06:37 +0000 (19:06 +0200)]
Fix missing path callback for new Object.display struct.

3 years agoFix issue w/ recent tool name use
Campbell Barton [Sun, 13 May 2018 16:39:15 +0000 (18:39 +0200)]
Fix issue w/ recent tool name use

Use the context space type, not the workspace.
Broke setting tools for the first time.

3 years agoIcons: updated transform icons
Campbell Barton [Sun, 13 May 2018 16:33:01 +0000 (18:33 +0200)]
Icons: updated transform icons