blender.git
2 years agoGizmo: use simple unclipped win_to_ray function
Campbell Barton [Thu, 20 Sep 2018 02:13:11 +0000 (12:13 +1000)]
Gizmo: use simple unclipped win_to_ray function

When projecting the cursor onto a plane, clipping isn't important.

2 years agoMerge branch 'master' into blender2.8
Campbell Barton [Thu, 20 Sep 2018 02:06:53 +0000 (12:06 +1000)]
Merge branch 'master' into blender2.8

2 years agoCleanup: renaming missed from merge
Campbell Barton [Thu, 20 Sep 2018 02:04:18 +0000 (12:04 +1000)]
Cleanup: renaming missed from merge

2 years ago3D View: add a simple un-clipped win_to_ray
Campbell Barton [Thu, 20 Sep 2018 02:00:02 +0000 (12:00 +1000)]
3D View: add a simple un-clipped win_to_ray

2 years agoMerge branch 'master' into blender2.8
Campbell Barton [Thu, 20 Sep 2018 01:51:01 +0000 (11:51 +1000)]
Merge branch 'master' into blender2.8

2 years agoCleanup: rename 3D view ray calculation functions
Campbell Barton [Thu, 20 Sep 2018 01:47:17 +0000 (11:47 +1000)]
Cleanup: rename 3D view ray calculation functions

Using near far and optionally clipping planes is
involved and not needed in many cases.

Rename so a simpler version of this function can be added.

2 years agoGizmo: use ED_view3d_win_to_3d_on_plane
Campbell Barton [Thu, 20 Sep 2018 01:38:11 +0000 (11:38 +1000)]
Gizmo: use ED_view3d_win_to_3d_on_plane

2 years agoMerge branch 'master' into blender2.8
Campbell Barton [Thu, 20 Sep 2018 01:26:31 +0000 (11:26 +1000)]
Merge branch 'master' into blender2.8

2 years ago3D View: point-on-plane from screen location utility
Campbell Barton [Thu, 20 Sep 2018 01:21:34 +0000 (11:21 +1000)]
3D View: point-on-plane from screen location utility

2 years agoFix spin/rotate gizmo not updating view orientation
Campbell Barton [Thu, 20 Sep 2018 00:19:10 +0000 (10:19 +1000)]
Fix spin/rotate gizmo not updating view orientation

Check for navigation didn't refresh when navigation was completed.

2 years agoMerge branch 'master' into blender2.8
Campbell Barton [Thu, 20 Sep 2018 00:11:01 +0000 (10:11 +1000)]
Merge branch 'master' into blender2.8

2 years agoCleanup: style
Campbell Barton [Thu, 20 Sep 2018 00:06:59 +0000 (10:06 +1000)]
Cleanup: style

2 years agoGPUTexture: Fix HDRI being clamped on OSX
Clément Foucault [Wed, 19 Sep 2018 21:59:00 +0000 (23:59 +0200)]
GPUTexture: Fix HDRI being clamped on OSX

Seems like GLEW_ARB_texture_float is not defined in core profile on OSX
even if float textures are part of the 3.3 core spec.

So removing uneeded backup cases.

2 years agoGP: Rename eraser brushes
Antonioya [Wed, 19 Sep 2018 21:24:35 +0000 (23:24 +0200)]
GP: Rename eraser brushes

2 years agoCleanup: style
Campbell Barton [Wed, 19 Sep 2018 21:11:01 +0000 (07:11 +1000)]
Cleanup: style

2 years agoFix T53745: Alembic exported with vertex colors not readable by other software.
Wybren van Keulen [Wed, 19 Sep 2018 08:55:49 +0000 (10:55 +0200)]
Fix T53745: Alembic exported with vertex colors not readable by other software.

Most other software expects to read indexed vertex colors, so write indices
along with the colors as we already do for UVs.

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

2 years agoDRW: Fix crash when new shader requires 0 customdata layers
Clément Foucault [Wed, 19 Sep 2018 18:02:03 +0000 (20:02 +0200)]
DRW: Fix crash when new shader requires 0 customdata layers

It was using last cache->auto_layer_len which led to a buffer overflow.

2 years agoDRW: Only trash UV and tangent data when using BKE_MESH_BATCH_DIRTY_SHADING
Clément Foucault [Wed, 19 Sep 2018 17:36:25 +0000 (19:36 +0200)]
DRW: Only trash UV and tangent data when using BKE_MESH_BATCH_DIRTY_SHADING

This improves the problem encountered when animating materials on static
meshes but does not fix the core issue. See T55326.

2 years agoCleanup: Remove "_new" from GPU_generate_pass_new
Clément Foucault [Wed, 19 Sep 2018 17:34:00 +0000 (19:34 +0200)]
Cleanup: Remove "_new" from GPU_generate_pass_new

Not needed anymore since old one has been deleted.

2 years agoFix T55059: EEVEE UV not available until you go in and out of edit mode
Clément Foucault [Wed, 19 Sep 2018 17:33:08 +0000 (19:33 +0200)]
Fix T55059: EEVEE UV not available until you go in and out of edit mode

This is a dirty hack that should become irrelevant when depsgraph will
support CD masks.

2 years agoMerge branch 'master' into blender2.8
Sergey Sharybin [Wed, 19 Sep 2018 16:42:17 +0000 (18:42 +0200)]
Merge branch 'master' into blender2.8

2 years agoCycles: Cleanup, double semicolon
Sergey Sharybin [Wed, 19 Sep 2018 16:41:43 +0000 (18:41 +0200)]
Cycles: Cleanup, double semicolon

2 years agoMerge branch 'master' into blender2.8
Brecht Van Lommel [Wed, 19 Sep 2018 16:19:49 +0000 (18:19 +0200)]
Merge branch 'master' into blender2.8

2 years agoSpelling fixes in comments and descriptions, patch by luzpaz.
Brecht Van Lommel [Wed, 19 Sep 2018 15:48:11 +0000 (17:48 +0200)]
Spelling fixes in comments and descriptions, patch by luzpaz.

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

2 years agomake.bat: fix build error when there are spaces in the path to svn/git/cmake
Ray Molenkamp [Wed, 19 Sep 2018 16:16:46 +0000 (10:16 -0600)]
make.bat: fix build error when there are spaces in the path to svn/git/cmake

2 years agoDepsgraph: Another followup to the previous commit
Sergey Sharybin [Wed, 19 Sep 2018 16:03:15 +0000 (18:03 +0200)]
Depsgraph: Another followup to the previous commit

Apparently, only mesh objects has SHADING component.

2 years agoFix wrong pointer used in modifier stack
Sergey Sharybin [Wed, 19 Sep 2018 15:51:14 +0000 (17:51 +0200)]
Fix wrong pointer used in modifier stack

Was passing pointer to a pointer of context.

2 years agoDepsgraph: Correction for the previous commit
Sergey Sharybin [Wed, 19 Sep 2018 15:49:08 +0000 (17:49 +0200)]
Depsgraph: Correction for the previous commit

2 years agoCleanup: Remove some DerivedMesh wrappers for modifiers
Jacques Lucke [Wed, 19 Sep 2018 14:59:05 +0000 (16:59 +0200)]
Cleanup: Remove some DerivedMesh wrappers for modifiers

Specifically the deformVerts_DM, deformMatrices_DM, deformVertsEM_DM and deformMatricesEM_DM functions are not used anymore.

Reviewer: brecht

2 years agoGP: Verify weight data is correct before assigning
Antonioya [Wed, 19 Sep 2018 15:26:09 +0000 (17:26 +0200)]
GP: Verify weight data is correct before assigning

2 years agoGP: Fix crash when select vertex group in modifiers
Antonioya [Wed, 19 Sep 2018 15:20:39 +0000 (17:20 +0200)]
GP: Fix crash when select vertex group in modifiers

2 years agoDepsgraph: Ensure shading update order
Sergey Sharybin [Wed, 19 Sep 2018 15:14:27 +0000 (17:14 +0200)]
Depsgraph: Ensure shading update order

Previously it was possible to have geometry component to
tag batch for DIRTY_ALL and shading to tag with SHADING_UPDATE.

Now there is a relation between uber eval and shading, which
solves this issue.

2 years agoGP: Fix copy frame error in dopesheet
Antonioya [Wed, 19 Sep 2018 14:46:56 +0000 (16:46 +0200)]
GP: Fix copy frame error in dopesheet

2 years agoDepsgraph: Always assume scene camera is visible
Sergey Sharybin [Wed, 19 Sep 2018 14:43:59 +0000 (16:43 +0200)]
Depsgraph: Always assume scene camera is visible

Allows to disable camera collection to make objects to go out of
the way, but still be able to animate.

2 years agoFix wrong CUDA version warning in cmake.
Brecht Van Lommel [Wed, 19 Sep 2018 14:04:11 +0000 (16:04 +0200)]
Fix wrong CUDA version warning in cmake.

Fix suggested by Dalai.

2 years agoFix T56697: missing viewport update after keyframe edits in animation editors.
Brecht Van Lommel [Wed, 19 Sep 2018 14:17:24 +0000 (16:17 +0200)]
Fix T56697: missing viewport update after keyframe edits in animation editors.

It was updating during transform, but not a final time after keyframes get
reordered or merged.

2 years agoUI: make new icon consistent with other places.
Brecht Van Lommel [Wed, 19 Sep 2018 08:19:45 +0000 (10:19 +0200)]
UI: make new icon consistent with other places.

2 years agoFix own mistake in previous commit.
Bastien Montagne [Wed, 19 Sep 2018 14:09:52 +0000 (16:09 +0200)]
Fix own mistake in previous commit.

2 years agoDepsgraph: Make visible update to operate on per-component level
Sergey Sharybin [Wed, 19 Sep 2018 13:46:03 +0000 (15:46 +0200)]
Depsgraph: Make visible update to operate on per-component level

2 years agoDespgraph: Keep track of per-component visibility
Sergey Sharybin [Wed, 19 Sep 2018 13:21:51 +0000 (15:21 +0200)]
Despgraph: Keep track of per-component visibility

The idea of those flags is to avoid evaluation of operations
which are not needed to bring visible objects to an up to date
state.

Previously, dependency graph attempted to do combine those
into an ID level flag. In practice it proved to be rather
tricky, since there could be dependency cycles on ID level
which will not exist on component level.

2 years agoDepsgraph: Connect duplicating geometry to duplicator
Sergey Sharybin [Wed, 19 Sep 2018 13:09:55 +0000 (15:09 +0200)]
Depsgraph: Connect duplicating geometry to duplicator

This allows to force duplicated object to be fully evaluated for
display/draw.

Previously only transform component of duplicated object was
forced to become evaluated.

2 years agoDepsgraph: Make geoemtry to tag function more reusable
Sergey Sharybin [Wed, 19 Sep 2018 13:06:18 +0000 (15:06 +0200)]
Depsgraph: Make geoemtry to tag function more reusable

2 years agoDepsgraph: Correct early output in collections
Sergey Sharybin [Wed, 19 Sep 2018 10:12:02 +0000 (12:12 +0200)]
Depsgraph: Correct early output in collections

Need to ensure objects from collection which was built but
is became visible in the new "context" are poked for re-built.

This should be rather cheap, since this only will update
their visibility flag.

Can not rely on visibility flush here, since there is no
relations between collection and its objects.

2 years agoDepsgraph: Handle text datablock in ID builder
Sergey Sharybin [Wed, 19 Sep 2018 08:30:41 +0000 (10:30 +0200)]
Depsgraph: Handle text datablock in ID builder

Just silence the assert/print, we do not add text data blocks
to dependency graph.

2 years agoAddon Utils: Green light the uv layout addon
Dalai Felinto [Wed, 19 Sep 2018 13:57:37 +0000 (13:57 +0000)]
Addon Utils: Green light the uv layout addon

2 years agoDepsgraph/RNA: Fix broken 'dupliobject' RNA interface.
Bastien Montagne [Wed, 19 Sep 2018 13:44:10 +0000 (15:44 +0200)]
Depsgraph/RNA: Fix broken 'dupliobject' RNA interface.

Previous code would crash on whole lot of accessors in case current item
was not a real dupli instance.

And code was missing access to crucial dupli (world) matrix! Pretty
useless without that.

Also reordered a bit members in here, let's try to keep a bit of logic...

2 years agoFix possible misuse of `BLI_strncpy`.
mano-wii [Wed, 19 Sep 2018 12:04:55 +0000 (09:04 -0300)]
Fix possible misuse of `BLI_strncpy`.

Same issue as rB39f7c8256d58.

2 years agoGP: Fix stupid mistake
Antonioya [Wed, 19 Sep 2018 10:15:53 +0000 (12:15 +0200)]
GP: Fix stupid mistake

2 years agoGP: Remove unneeded flag
Antonioya [Wed, 19 Sep 2018 10:15:05 +0000 (12:15 +0200)]
GP: Remove unneeded flag

2 years agoFix T56756: Pivot Point update issue(minor issue).
Bastien Montagne [Wed, 19 Sep 2018 09:41:16 +0000 (11:41 +0200)]
Fix T56756: Pivot Point update issue(minor issue).

2 years agoMerge branch 'master' into blender2.8
Bastien Montagne [Wed, 19 Sep 2018 09:12:45 +0000 (11:12 +0200)]
Merge branch 'master' into blender2.8

2 years agoFix unused var in case Alembic is not enabled, in own previous commit.
Bastien Montagne [Wed, 19 Sep 2018 09:11:39 +0000 (11:11 +0200)]
Fix unused var in case Alembic is not enabled, in own previous commit.

Sorry for the noise...

2 years agoMesh Sequence Cash: do not *always* report as depending on time!
Bastien Montagne [Wed, 19 Sep 2018 09:08:27 +0000 (11:08 +0200)]
Mesh Sequence Cash: do not *always* report as depending on time!

2 years agoFix T56838: Quick smoke failing with Python error.
Bastien Montagne [Wed, 19 Sep 2018 08:32:58 +0000 (10:32 +0200)]
Fix T56838: Quick smoke failing with Python error.

Again the change to @ operator for matrix multiplication...

2 years agoCleanup: Unused variable in release build
Sergey Sharybin [Wed, 19 Sep 2018 07:48:32 +0000 (09:48 +0200)]
Cleanup: Unused variable in release build

2 years agoSubdiv: CCG, remove redundant call
Sergey Sharybin [Wed, 19 Sep 2018 07:48:07 +0000 (09:48 +0200)]
Subdiv: CCG, remove redundant call

2 years agoEditMesh: show the spin arc as a thin ribbon
Campbell Barton [Wed, 19 Sep 2018 07:50:31 +0000 (17:50 +1000)]
EditMesh: show the spin arc as a thin ribbon

Closer to the design from T54661

2 years agoGizmo: tweaks to dial drawing
Campbell Barton [Wed, 19 Sep 2018 07:47:15 +0000 (17:47 +1000)]
Gizmo: tweaks to dial drawing

- Add Arc-Inner-Factor, to increase the inner arc radius from 0
  (show as a disk).
- When showing an angle value, show the angle-end line thicker
  (since thats whats being adjusted).
- Remove offset used by arc drawing which caused aliasing artifacts.

2 years agoGizmo: exclude arc from selection
Campbell Barton [Wed, 19 Sep 2018 06:46:29 +0000 (16:46 +1000)]
Gizmo: exclude arc from selection

Also disable polygon smooth before drawing arc.

2 years agoEditMesh: orient spin arc to follow the cursor
Campbell Barton [Wed, 19 Sep 2018 06:40:39 +0000 (16:40 +1000)]
EditMesh: orient spin arc to follow the cursor

2 years agoGizmo: remove matrix rotation for the dial gizmo
Campbell Barton [Wed, 19 Sep 2018 06:22:01 +0000 (16:22 +1000)]
Gizmo: remove matrix rotation for the dial gizmo

This makes it impossible to rotate the gizmo using the matrix Y axis.

Testing without this and I can't find any cases it breaks.

2 years agoCorrect polygon_smooth being left enabled
Campbell Barton [Wed, 19 Sep 2018 05:31:53 +0000 (15:31 +1000)]
Correct polygon_smooth being left enabled

2 years agoCleanup: comments
Campbell Barton [Wed, 19 Sep 2018 03:41:52 +0000 (13:41 +1000)]
Cleanup: comments

2 years agoGizmo: dial3d option to show the final angle
Campbell Barton [Wed, 19 Sep 2018 03:35:15 +0000 (13:35 +1000)]
Gizmo: dial3d option to show the final angle

Was showing modal-delta-angle, which isn't useful for the spin tool.

2 years agoMerge branch 'master' into blender2.8
Campbell Barton [Wed, 19 Sep 2018 03:33:01 +0000 (13:33 +1000)]
Merge branch 'master' into blender2.8

2 years agoFix unreported: Undo of texts pasted in the Text Editor misses one character.
mano-wii [Wed, 19 Sep 2018 02:11:59 +0000 (23:11 -0300)]
Fix unreported: Undo of texts pasted in the Text Editor misses one character.

Caused by commit rB28c34ae7e2d6
Unlike `strncpy`, `BLI_strncpy` ensures the last character is '\0'.

2 years agoBLI_utildefines: rename pointer conversion macros
Campbell Barton [Wed, 19 Sep 2018 02:05:58 +0000 (12:05 +1000)]
BLI_utildefines: rename pointer conversion macros

Terms get/set don't make much sense when casting values.

Name macros so the conversion is obvious,
use common prefix for easier completion.

- GET_INT_FROM_POINTER  -> POINTER_AS_INT
- SET_INT_IN_POINTER    -> POINTER_FROM_INT
- GET_UINT_FROM_POINTER -> POINTER_AS_UINT
- SET_UINT_IN_POINTER   -> POINTER_FROM_UINT

2 years agoFix unreported: Undo of texts pasted in the Text Editor misses one character.
mano-wii [Wed, 19 Sep 2018 02:11:59 +0000 (23:11 -0300)]
Fix unreported: Undo of texts pasted in the Text Editor misses one character.

Caused by commit rB28c34ae7e2d6
Unlike `strncpy`, `BLI_strncpy` ensures the last character is '\0'.

2 years agoCleanup: replace pointer/int casts with macros
Campbell Barton [Wed, 19 Sep 2018 02:22:23 +0000 (12:22 +1000)]
Cleanup: replace pointer/int casts with macros

2 years agoMerge branch 'master' into blender2.8
Campbell Barton [Wed, 19 Sep 2018 02:14:36 +0000 (12:14 +1000)]
Merge branch 'master' into blender2.8

2 years agoMerge branch 'master' into blender2.8
Campbell Barton [Wed, 19 Sep 2018 02:05:08 +0000 (12:05 +1000)]
Merge branch 'master' into blender2.8

2 years agoCleanup: trailing space
Campbell Barton [Wed, 19 Sep 2018 02:04:34 +0000 (12:04 +1000)]
Cleanup: trailing space

2 years agoCleanup: missed when using doxy groups
Campbell Barton [Wed, 19 Sep 2018 01:55:41 +0000 (11:55 +1000)]
Cleanup: missed when using doxy groups

2 years agoMulti-Objects: Initial select similar support
Dalai Felinto [Tue, 18 Sep 2018 22:21:10 +0000 (19:21 -0300)]
Multi-Objects: Initial select similar support

Note: I had to add an epsilon on top of the threshould for SIMVERT_NORMAL.
Otherwise I was getting differences such as 0.000000something when comparing
supposed-to-be-identical normals.

The way I see it, the Threshold option is a user feature, where users can
control more or less what they want selected. While the epsilon is a
non-negotiable requirement for our float comparison here.

This includes support for:
* SIMVERT_NORMAL
* SIMVERT_FACE
* SIMVERT_EDGE

Not included and currently not supported/disabled:
* SIMVERT_VGROUP
* SIMEDGE_*
* SIMFACE_*

While we are working on this, we prevent users from using the non-ported modes.
Note: the bmo_similar.c file is still around, to be removed in the near future.

Everyone: Please fell free to jump in and help tackling the missing modes.

For details on the implementation discussion:
https://developer.blender.org/D3674

2 years agoMove select similar to its own file
Dalai Felinto [Tue, 18 Sep 2018 22:20:49 +0000 (19:20 -0300)]
Move select similar to its own file

2 years agoCleanup: replace comment headings w/ doxy groups
Campbell Barton [Wed, 19 Sep 2018 01:50:35 +0000 (11:50 +1000)]
Cleanup: replace comment headings w/ doxy groups

Also minor changes:

- Remove unused headers.
- rename SimpleExprParseState -> ExprParseState
- rename max_ops -> ops_count_alloc

  Was misleading since maximums are often limits which can't be exceeded.

2 years agoCleanup: BLI_expr_pylike argument ordering
Campbell Barton [Wed, 19 Sep 2018 01:40:40 +0000 (11:40 +1000)]
Cleanup: BLI_expr_pylike argument ordering

- Order array length after the array.
- Put return argument last.

2 years agoCleanup: rename BLI_simple_expr -> BLI_expr_pylike_eval
Campbell Barton [Wed, 19 Sep 2018 00:40:35 +0000 (10:40 +1000)]
Cleanup: rename BLI_simple_expr -> BLI_expr_pylike_eval

Simple isn't a good prefix for library names since
lots of unrelated modules could be called 'simple'.

Include 'py' in module name since this is a subset of Python,
one of the main motivations for this is to be Python like/compatible.

2 years agoCleanup: style
Campbell Barton [Wed, 19 Sep 2018 00:29:57 +0000 (10:29 +1000)]
Cleanup: style

2 years agoCorrect invalid enum default
Campbell Barton [Wed, 19 Sep 2018 00:14:37 +0000 (10:14 +1000)]
Correct invalid enum default

2 years agoCleanup: remove dummy tooltips
Campbell Barton [Tue, 18 Sep 2018 22:34:41 +0000 (08:34 +1000)]
Cleanup: remove dummy tooltips

2 years agoUV Snap: minor uv-nearest optimizations
Campbell Barton [Tue, 18 Sep 2018 23:54:36 +0000 (09:54 +1000)]
UV Snap: minor uv-nearest optimizations

- Pass in the snap distance
  (to avoid comparisons in the multi-object version).
- Loop directly over BMLoop's (without using the iterator).
- Use squared distance instead of manhattan.

2 years agoFix T56827: Crash when enable onion skin in multiwindow
Antonioya [Tue, 18 Sep 2018 21:18:48 +0000 (23:18 +0200)]
Fix T56827: Crash when enable onion skin in multiwindow

The problem was the cache was not set as dirty if one of the window had the overlay disabled.

2 years agoGP: Remove vertex transformation when mode is not EDIT mode
Antonioya [Tue, 18 Sep 2018 20:36:39 +0000 (22:36 +0200)]
GP: Remove vertex transformation when mode is not EDIT mode

2 years agoGP: Change Frames title for Onion panel
Antonioya [Tue, 18 Sep 2018 20:15:04 +0000 (22:15 +0200)]
GP: Change Frames title for Onion panel

2 years agoGP: change hide icon in materials
Antonioya [Tue, 18 Sep 2018 20:10:43 +0000 (22:10 +0200)]
GP: change hide icon in materials

2 years agoLookDev: Use theme background instead of world color
Clément Foucault [Tue, 18 Sep 2018 20:18:49 +0000 (22:18 +0200)]
LookDev: Use theme background instead of world color

This is much less confusing than relying on an hidden parameter (the world
color) that you can only see if you disable the world node tree.

2 years agoEevee: Rename "Trace Quality" into "Trace Precision"
Clément Foucault [Tue, 18 Sep 2018 19:39:15 +0000 (21:39 +0200)]
Eevee: Rename "Trace Quality" into "Trace Precision"

The thing is that the quality is something a bit subjective regarding this
option value.

A more precise trace will have more noise so quality is also diminished in
a way. I believe that using "Precision" is more correct than "Quality" in
this case.

2 years agoLookDev: Use black background color if world is not present
Clément Foucault [Tue, 18 Sep 2018 14:05:10 +0000 (16:05 +0200)]
LookDev: Use black background color if world is not present

2 years agoStudioLight: Fix crash when closing blender
Clément Foucault [Tue, 18 Sep 2018 13:35:51 +0000 (15:35 +0200)]
StudioLight: Fix crash when closing blender

The studiolight was being free after the window manager and was attempting
to stop the job again.

2 years agoFix T54685: EditMesh UV's transform snapping only checks active object
Alan [Tue, 18 Sep 2018 19:20:14 +0000 (16:20 -0300)]
Fix T54685: EditMesh UV's transform snapping only checks active object

Reviewers: dfelinto
https://developer.blender.org/D3653

2 years agoUV_OT_align: Cleanup (use enum instead of chars for modes enum
Dalai Felinto [Tue, 18 Sep 2018 18:54:41 +0000 (15:54 -0300)]
UV_OT_align: Cleanup (use enum instead of chars for modes enum

Also tested the straighten option and it is working-ish.

That said, I think straighten should take all the meshes vertices to determine
the line you want to use as reference. However we would need a different way to
determine the first and last uvs to use as reference for the line.

2 years agoUI: hide "Active Tool" panel header.
William Reynish [Tue, 18 Sep 2018 17:24:16 +0000 (19:24 +0200)]
UI: hide "Active Tool" panel header.

2 years agoSplash: add first time setup and templates to splash screen.
Brecht Van Lommel [Tue, 18 Sep 2018 15:44:14 +0000 (17:44 +0200)]
Splash: add first time setup and templates to splash screen.

The first time setup screen only has the interaction preset currently, some
more work is needed to be able to set e.g. the language or compute device
here as in the mockups.

The splash screen stayed the same for now, to make room for the templates
most of the links are now in the Help menu. If there are no recent files yet
the links still show.

The splash screen buttons implementation was fully moved to Python, in the
WM_MT_splash menu.

2 years agoWorkspaces: move 2D Animation, VFX and Video workspaces into own templates.
Brecht Van Lommel [Wed, 12 Sep 2018 09:28:49 +0000 (11:28 +0200)]
Workspaces: move 2D Animation, VFX and Video workspaces into own templates.

These can now be acessed from the File > New, Ctrl+N, or the splash screen.
Since these are application templates, users can save a separate startup.blend
for each. User preferences are shared between these templates though.

This also fixes some issues in the default startup.blend (triangulated cube..).

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

2 years agoApplication Templates: make templates more prominent in the UI.
Brecht Van Lommel [Tue, 28 Aug 2018 13:12:14 +0000 (15:12 +0200)]
Application Templates: make templates more prominent in the UI.

The goal here is to make app templates usable for default templates
that we can ship with Blender. These only have a custom startup.blend
currently and so are quite limited compared to app templates that fully
customize Blender.

But still it seems like the same kind of concept where we should be
sharing the code and UI. It is useful to be able to save a startup.blend
per template, and I can imagine some scripting being useful in the future
as well.

Changes made:

* File > New and Ctrl+N now list the templates, replacing a separate
  Application Templates menu that was not as easy to discover.
* File menu now shows name of active template above Save Startup File
  and Load Factory Settings to indicate these are saved/loaded per
  template.
* The "Default" template was renamed to "General".
* Workspaces can now be added from any of the template startup.blend
  files when clicking the (+) button in the topbar.

* User preferences are now fully shared between app templates, unless
  the template includes a custom userpref.blend. I think this will be
  useful in general, not all app templates need their own keymaps for
  example.
* Previously Save User Preferences would save the current app template
  and then Blender would start using that template by default. I've
  disabled this, to me it seems it was unintentional, or at least not
  clear at all that saving user preferences also makes the current

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

2 years agoUI: don't show Redo Unsupported, just hide buttons in that case.
Brecht Van Lommel [Tue, 18 Sep 2018 15:55:39 +0000 (17:55 +0200)]
UI: don't show Redo Unsupported, just hide buttons in that case.

2 years agoGP: Change isolate layer icon
Antonioya [Tue, 18 Sep 2018 17:01:05 +0000 (19:01 +0200)]
GP: Change isolate layer icon

2 years agoSubdiv: CCG, implement stitching of given faces
Sergey Sharybin [Tue, 18 Sep 2018 15:46:00 +0000 (17:46 +0200)]
Subdiv: CCG, implement stitching of given faces

Will speed up (or rather bring speed back to what it is supposed to be)
for brushes like smooth.

2 years agoSubdiv: CCG, make inner face grids averaging more reusable
Sergey Sharybin [Tue, 18 Sep 2018 15:35:59 +0000 (17:35 +0200)]
Subdiv: CCG, make inner face grids averaging more reusable