18 months agoMerge branch 'master' into blender2.8
Philipp Oeser [Tue, 18 Dec 2018 14:10:35 +0000 (15:10 +0100)]
Merge branch 'master' into blender2.8

18 months agoFix T59564: Huion pen pressure not working on Linux, after recent changes.
Brecht Van Lommel [Tue, 18 Dec 2018 13:30:00 +0000 (14:30 +0100)]
Fix T59564: Huion pen pressure not working on Linux, after recent changes.

18 months agoFix T59009: UV unwrapp correct aspect fails on some shapes.
Daniel [Tue, 18 Dec 2018 12:52:39 +0000 (13:52 +0100)]
Fix T59009: UV unwrapp correct aspect fails on some shapes.

Differential Revision:

18 months agoFix T55105: Smoke Emission from particles was ignoring lattice deformer
Philipp Oeser [Tue, 22 May 2018 07:25:23 +0000 (09:25 +0200)]
Fix T55105: Smoke Emission from particles was ignoring lattice deformer
on the particles

18 months agoFix crash with armature custom bone in wireframe mode
Clément Foucault [Tue, 18 Dec 2018 13:50:50 +0000 (14:50 +0100)]
Fix crash with armature custom bone in wireframe mode

18 months agoFix T59484: Particles Lattice deform fails
Philipp Oeser [Tue, 18 Dec 2018 12:48:25 +0000 (13:48 +0100)]
Fix T59484: Particles Lattice deform fails

this was working for object/collection display/render but lattice was
not taken into account for non object/collection display/render types
(halo, axis, cross, circle, ...)

Reviewers: sergey, brecht

Maniphest Tasks: T59484

Differential Revision:

18 months agoFix T59529: Auto smooth not working
Clément Foucault [Tue, 18 Dec 2018 13:27:04 +0000 (14:27 +0100)]
Fix T59529: Auto smooth not working

18 months agoFix T59478: Information Bar Missing Data when in Sculpt Mode
Sergey Sharybin [Tue, 18 Dec 2018 13:19:55 +0000 (14:19 +0100)]
Fix T59478: Information Bar Missing Data when in Sculpt Mode

Display statistics from CCG structure.

This makes values to be different from what is shown in object
mode, since CCG is operating on individual grids, and object
mode will stitch those grids. But on another, those values from
CCG is what sculpt mode is actually "sees" or "uses".

The number of faces should be the same in both sculpt and object

18 months agoCorrect own error in changes to pose gizmo center
Campbell Barton [Tue, 18 Dec 2018 12:01:38 +0000 (23:01 +1100)]
Correct own error in changes to pose gizmo center

Multi-pose gizmo center calculation from
5d09f5223e63 now works as expected.

18 months agoDRW: Instance: Makes it possible to have instances of a non-init batch
Clément Foucault [Tue, 18 Dec 2018 12:08:08 +0000 (13:08 +0100)]
DRW: Instance: Makes it possible to have instances of a non-init batch

18 months agoArmature: temp workaround for crash caused by custom bone drawing
Clément Foucault [Tue, 18 Dec 2018 12:07:33 +0000 (13:07 +0100)]
Armature: temp workaround for crash caused by custom bone drawing

18 months agoCleanup: Typo in comment
Sergey Sharybin [Tue, 18 Dec 2018 11:55:13 +0000 (12:55 +0100)]
Cleanup: Typo in comment

18 months agoUse proper buffer size for statistics
Sergey Sharybin [Tue, 18 Dec 2018 11:54:34 +0000 (12:54 +0100)]
Use proper buffer size for statistics

18 months agoCleanup: Reduce indentation level
Sergey Sharybin [Tue, 18 Dec 2018 11:46:03 +0000 (12:46 +0100)]
Cleanup: Reduce indentation level

18 months agoTransform: calculate initial depth for axis-target
Campbell Barton [Tue, 18 Dec 2018 11:30:21 +0000 (22:30 +1100)]
Transform: calculate initial depth for axis-target

While the operator needs a depth to work as intended,
it feels buggy if the initial drag does nothing until a depth is found.

If the cursor isn't over any geometry calculate an initial depth.

18 months agoPy Docs: documentation for draw_handler_add/remove
Jacques Lucke [Tue, 18 Dec 2018 11:31:30 +0000 (12:31 +0100)]
Py Docs: documentation for draw_handler_add/remove

18 months agoFix T59496: Movie Clip Editor does not display metadata
Sergey Sharybin [Tue, 18 Dec 2018 11:27:46 +0000 (12:27 +0100)]
Fix T59496: Movie Clip Editor does not display metadata

18 months agoTransform: when snap affect is off for a transform mode, ignore snap settings entirely.
Brecht Van Lommel [Tue, 18 Dec 2018 10:54:02 +0000 (11:54 +0100)]
Transform: when snap affect is off for a transform mode, ignore snap settings entirely.

Ref D4022.

18 months agoFix crash showing footage information for non-animation movie clips
Sergey Sharybin [Tue, 18 Dec 2018 11:06:16 +0000 (12:06 +0100)]
Fix crash showing footage information for non-animation movie clips

18 months agoFix edit-mode wire color being used for other objects
Campbell Barton [Tue, 18 Dec 2018 10:20:04 +0000 (21:20 +1100)]
Fix edit-mode wire color being used for other objects

18 months agoFix T59548: Grease Pencil Primitives ignore the 'draw below' option
Antonioya [Tue, 18 Dec 2018 09:44:13 +0000 (10:44 +0100)]
Fix T59548: Grease Pencil Primitives ignore the 'draw below' option

18 months agoGizmo: exclude overlays from origin-set depth
Campbell Barton [Tue, 18 Dec 2018 09:33:16 +0000 (20:33 +1100)]
Gizmo: exclude overlays from origin-set depth

Setting the light orientation would read depth from the light wireframe.

18 months agoFix 3D view depth buffer ignoring overlay option
Campbell Barton [Tue, 18 Dec 2018 09:23:49 +0000 (20:23 +1100)]
Fix 3D view depth buffer ignoring overlay option

The depth buffer would include lamps, cameras.. etc
event overlays turned off.

18 months agoFix T59519: Grease Pencil stroke with noise modifier crashes blender
Antonioya [Tue, 18 Dec 2018 09:24:21 +0000 (10:24 +0100)]
Fix T59519: Grease Pencil stroke with noise modifier crashes blender

The first point index was wrong calculated.

18 months agoTheme: too low contrast blender_light edit-edge
Campbell Barton [Tue, 18 Dec 2018 07:22:42 +0000 (18:22 +1100)]
Theme: too low contrast blender_light edit-edge

We tried this already for the default theme, but grey edges often don't
stand out against matcaps/solid shading.

18 months agoFix T59535: Select linked delimit doesn't refresh
Campbell Barton [Tue, 18 Dec 2018 06:22:11 +0000 (17:22 +1100)]
Fix T59535: Select linked delimit doesn't refresh

18 months agoMissed when renaming tool settings
Campbell Barton [Tue, 18 Dec 2018 05:40:48 +0000 (16:40 +1100)]
Missed when renaming tool settings

18 months agoFix paste/append w/ local-view
Campbell Barton [Tue, 18 Dec 2018 05:23:38 +0000 (16:23 +1100)]
Fix paste/append w/ local-view

Paste in local-view wasn't setting local-view bits.

18 months agoCleanup: python quotes
Campbell Barton [Tue, 18 Dec 2018 04:01:03 +0000 (15:01 +1100)]
Cleanup: python quotes

18 months agoFix T53544: Crash drawing scene w/o world
Campbell Barton [Tue, 18 Dec 2018 02:56:26 +0000 (13:56 +1100)]
Fix T53544: Crash drawing scene w/o world

18 months agoCorrect missing NULL check in recent commit
Campbell Barton [Tue, 18 Dec 2018 02:49:09 +0000 (13:49 +1100)]
Correct missing NULL check in recent commit

18 months agoFix T59461: Follow active quad asserts
Campbell Barton [Tue, 18 Dec 2018 02:35:43 +0000 (13:35 +1100)]
Fix T59461: Follow active quad asserts

18 months agoGPencil: Cancel w/ RMB click
Campbell Barton [Tue, 18 Dec 2018 02:03:34 +0000 (13:03 +1100)]
GPencil: Cancel w/ RMB click

RMB is used to cancel almost everywhere in blender, not confirm.

18 months agoFix T59366: gpencil eraser shows w/ shape tool
Campbell Barton [Tue, 18 Dec 2018 01:58:02 +0000 (12:58 +1100)]
Fix T59366: gpencil eraser shows w/ shape tool

18 months agoMesh Batch Cache: Port vertex paint surface to batch request
Clément Foucault [Tue, 18 Dec 2018 01:18:55 +0000 (02:18 +0100)]
Mesh Batch Cache: Port vertex paint surface to batch request

18 months agoMesh Batch Cache: Port weight paint surface to batch request
Clément Foucault [Mon, 17 Dec 2018 22:00:05 +0000 (23:00 +0100)]
Mesh Batch Cache: Port weight paint surface to batch request

18 months agoDRW: Polygon Offset: Also offset lines and points
Clément Foucault [Mon, 17 Dec 2018 20:25:05 +0000 (21:25 +0100)]
DRW: Polygon Offset: Also offset lines and points

18 months agoWeight Paint Overlay: Refactor wire drawing
Clément Foucault [Mon, 17 Dec 2018 20:24:43 +0000 (21:24 +0100)]
Weight Paint Overlay: Refactor wire drawing

This reduce the number of batch/data needed. Stores a select/visiblee
flag inside the vert/loop normals.

18 months agoFix gizmos showing for non-visible objects
Campbell Barton [Tue, 18 Dec 2018 00:57:12 +0000 (11:57 +1100)]
Fix gizmos showing for non-visible objects

Active object gizmos were showing even when the object wasn't visible
(local view or with their object type disabled).

18 months agoFix multi-object state on load
Campbell Barton [Mon, 17 Dec 2018 23:22:42 +0000 (10:22 +1100)]
Fix multi-object state on load

D4091 by @zazizizou

18 months agoTransform: option to use incremental snapping
Campbell Barton [Mon, 17 Dec 2018 23:03:50 +0000 (10:03 +1100)]
Transform: option to use incremental snapping

This resolves this issue where users would enable a snapping mode
besides incremental (vertex for eg), then notice strange behavior w/
rotate and scale.
While this ability can be useful, it's quite an obscure use case.

Now changing snap-modes keeps rotate and scale using incremental snap,
with the option for these modes to be affected by other snapping modes.

D4022 by @kioku w/ own minor edits.

18 months agoUI: use icons for text edit copy/paste
William Reynish [Mon, 17 Dec 2018 21:40:29 +0000 (08:40 +1100)]
UI: use icons for text edit copy/paste

18 months agoUI: Extend context menu to check current selection
William Reynish [Mon, 17 Dec 2018 20:54:32 +0000 (07:54 +1100)]
UI: Extend context menu to check current selection

- This extends context menus, checking the selection in some cases
  to conditionally show operators.

- When nothing is selected, add, paste .. etc are added to the menu.

- Use columns when mixed mesh modes are used (vert/edge/face).

- Move armature naming operators into sub-menu.

See D4043

18 months agoRNA: Add Mesh.count_selected_items()
Campbell Barton [Mon, 17 Dec 2018 07:15:41 +0000 (18:15 +1100)]
RNA: Add Mesh.count_selected_items()

Needed for context menu checks.

18 months agoFix T59424: color wheel snaps to center, losing hue when value is zero.
Sebastian Parborg [Mon, 17 Dec 2018 18:13:30 +0000 (19:13 +0100)]
Fix T59424: color wheel snaps to center, losing hue when value is zero.

Differential Revision:

18 months agoFix error when Blender starts - variable not initializated
Antonioya [Mon, 17 Dec 2018 18:09:27 +0000 (19:09 +0100)]
Fix error when Blender starts - variable not initializated

18 months agoGP: Change order of primitive buttons
Antonioya [Mon, 17 Dec 2018 18:03:46 +0000 (19:03 +0100)]
GP: Change order of primitive buttons

Group them in a more logic way.

18 months agoDRW: Fix vertex paint using original object for batch cache
Clément Foucault [Mon, 17 Dec 2018 16:01:54 +0000 (17:01 +0100)]
DRW: Fix vertex paint using original object for batch cache

18 months agoMesh Batch Cache: Port Texture paint wires to new batch request
Clément Foucault [Mon, 17 Dec 2018 16:01:06 +0000 (17:01 +0100)]
Mesh Batch Cache: Port Texture paint wires to new batch request

18 months agoMesh Batch Cache: Port Texture paint batches to new batch request
Clément Foucault [Mon, 17 Dec 2018 10:37:27 +0000 (11:37 +0100)]
Mesh Batch Cache: Port Texture paint batches to new batch request

18 months agoCurve Batch Cache: Fix issue with cd_used
Clément Foucault [Sun, 16 Dec 2018 14:46:14 +0000 (15:46 +0100)]
Curve Batch Cache: Fix issue with cd_used

cd_used needs to be the combination of generated data.

18 months agoMesh Batch Cache: Optimization & Refactor shaded surface support
Clément Foucault [Sun, 16 Dec 2018 14:17:31 +0000 (15:17 +0100)]
Mesh Batch Cache: Optimization & Refactor shaded surface support

This now only upload data per loops to the GPU, making use of index buffer
to draw polygon. This make use of the vertex cache, speed up renders
and saves a lot of vram.

Update performance is also slightly faster and can even be improved further
by updating only uvs or vcol independently.

This commits breaks texture paint batches. It will be added back in another

18 months agoFix T59373: Background Colors don't match in Workbench renderer
Clément Foucault [Fri, 14 Dec 2018 19:03:18 +0000 (20:03 +0100)]
Fix T59373: Background Colors don't match in Workbench renderer

18 months agoWorkbench: Fix srgb texture not being color managed in texture color mode
Clément Foucault [Fri, 14 Dec 2018 18:16:35 +0000 (19:16 +0100)]
Workbench: Fix srgb texture not being color managed in texture color mode

18 months agoCleanup: Fix typo in comment
Sergey Sharybin [Mon, 17 Dec 2018 15:33:49 +0000 (16:33 +0100)]
Cleanup: Fix typo in comment

18 months agoGP: Change Primitive manipulator to secondary Gizmo color
Antonioya [Mon, 17 Dec 2018 15:25:58 +0000 (16:25 +0100)]
GP: Change Primitive manipulator to secondary Gizmo color

18 months agoFix T59112: bone pinning error
Philipp Oeser [Mon, 10 Dec 2018 10:26:37 +0000 (11:26 +0100)]
Fix T59112: bone pinning error

Reviewers: angavrilov, brecht

Maniphest Tasks: T59112

Differential Revision:

18 months agoFix T59493: view selected in GP edit mode does not take obmat into account
Jacques Lucke [Mon, 17 Dec 2018 14:01:50 +0000 (15:01 +0100)]
Fix T59493: view selected in GP edit mode does not take obmat into account

18 months agoGP: Change Primitive manipulator color
Antonioya [Mon, 17 Dec 2018 13:47:58 +0000 (14:47 +0100)]
GP: Change Primitive manipulator color

18 months agoFix T59490: wrong curve handle lines
Jacques Lucke [Mon, 17 Dec 2018 13:34:27 +0000 (14:34 +0100)]
Fix T59490: wrong curve handle lines

18 months agoFix T59404: Mistake in recent EdgeHash refactor broke edge generations in mesh valida...
Bastien Montagne [Mon, 17 Dec 2018 13:28:29 +0000 (14:28 +0100)]
Fix T59404: Mistake in recent EdgeHash refactor broke edge generations in mesh validate code.

18 months agoCorrect modifier stack validation
Sergey Sharybin [Mon, 17 Dec 2018 11:44:35 +0000 (12:44 +0100)]
Correct modifier stack validation

18 months agoFix T59172: Blender 2.7x keymap error when setting pivot point
Philipp Oeser [Mon, 17 Dec 2018 11:26:14 +0000 (12:26 +0100)]
Fix T59172: Blender 2.7x keymap error when setting pivot point

- only call pivot/orientation pies in non-legacy mode (had duplicate
- space_data.pivot_point > tool_settings.transform_pivot_point

Reviewers: brecht

Maniphest Tasks: T59172

Differential Revision:

18 months agoFix T58652: Crash editing shape keys weirdness with instances
Sergey Sharybin [Mon, 17 Dec 2018 11:28:16 +0000 (12:28 +0100)]
Fix T58652: Crash editing shape keys weirdness with instances

This is a second attempt to get the crash fixed. The original fix
worked, but it was reverted by d3e0d7f0825.

Now the logic goes as:

- All pointers which we can not have shared (the ones which are
  owned by the runtime) are cleared.
- The rest of runtime stays untouched.

This seems to be enough to keep particles happy.

18 months agoRemove some files restored in Game Engine
Sergey Sharybin [Mon, 17 Dec 2018 10:53:54 +0000 (11:53 +0100)]
Remove some files restored in Game Engine

Most likely was caused by bad resolution of recent merge conflict.

18 months agoFix T59483: Grease Pencil Additive Drawing mode doesn't work with shapes
Antonioya [Mon, 17 Dec 2018 10:34:33 +0000 (11:34 +0100)]
Fix T59483: Grease Pencil Additive Drawing mode doesn't work with shapes

18 months agoEevee: Change Bent normal calculation
Clément Foucault [Mon, 17 Dec 2018 08:54:24 +0000 (09:54 +0100)]
Eevee: Change Bent normal calculation

This changes the bent normal effect to be a bit more subtle.
I also tuned down the bent normal blending factor so mesh faceted look may
appear more in occluded regions. this is to increase the fidelity of the
indirect lighting. This blending might be a parameter in the future.

Based the calculation on "Bent Normals and Cones in Screen-space"
by O. Klehm, T. Ritschel, E. Eisemann, H.-P. Seidel

18 months agoGPU: Add Intel HD Graphics 530 to the list of buggy intel gpus
Clément Foucault [Mon, 17 Dec 2018 07:56:38 +0000 (08:56 +0100)]
GPU: Add Intel HD Graphics 530 to the list of buggy intel gpus

18 months agoWorkbench: Use int to fix compilation issues on certain platform
Clément Foucault [Mon, 17 Dec 2018 07:47:37 +0000 (08:47 +0100)]
Workbench: Use int to fix compilation issues on certain platform

18 months agoContext: add objects_in_mode(_unique_data)
Campbell Barton [Mon, 17 Dec 2018 06:55:18 +0000 (17:55 +1100)]
Context: add objects_in_mode(_unique_data)

Needed for Python to easily support multi-object edit/pose modes.

18 months agoMerge branch 'master' into blender2.8
Campbell Barton [Mon, 17 Dec 2018 06:26:47 +0000 (17:26 +1100)]
Merge branch 'master' into blender2.8

18 months agoCleanup: use 'tool_settings' name everywhere in UI scripts
Campbell Barton [Mon, 17 Dec 2018 06:20:24 +0000 (17:20 +1100)]
Cleanup: use 'tool_settings' name everywhere in UI scripts

18 months agoContext: remove active_gpencil_brush
Campbell Barton [Mon, 17 Dec 2018 06:17:43 +0000 (17:17 +1100)]
Context: remove active_gpencil_brush

We don't have this for other painting modes,
no need for a special case here.

18 months agoTheme: use grey for blender_light inactive menu text
Campbell Barton [Mon, 17 Dec 2018 05:52:06 +0000 (16:52 +1100)]
Theme: use grey for blender_light inactive menu text

There wasn't enough difference between labels and menu item text which
could be selected.

18 months agoTheme: use black for blender_light view-overlay
Campbell Barton [Mon, 17 Dec 2018 03:55:19 +0000 (14:55 +1100)]
Theme: use black for blender_light view-overlay

Cursor axes & transform guide contrasting w/ background was too low.

18 months ago3D View: empty image option to show front/back
Campbell Barton [Mon, 17 Dec 2018 03:49:16 +0000 (14:49 +1100)]
3D View: empty image option to show front/back

Only back was possible.

18 months agoCorrect error in last commit
Campbell Barton [Mon, 17 Dec 2018 03:46:18 +0000 (14:46 +1100)]
Correct error in last commit

18 months agoDNA: clear / remove deprecated flags
Campbell Barton [Mon, 17 Dec 2018 02:21:49 +0000 (13:21 +1100)]
DNA: clear / remove deprecated flags

- Clear deprecated flags for ID's:
  Scene, Sequence, World, Object & Mesh.
- Clear deprecated flags for Spaces: outliner, 3D view & image.
- Remove unused `Mesh.drawflag`
- Remove `V3D_SOLID_TEX` & `V3D_ZBUF_SELECT` - used in a few areas.
- Flip `Object.empty_image_visibility_flag`
  (avoids do-version on each new flag)
- Rename 'Backside' -> 'Back' in context of drawing - showing 'Back'
  makes sense.

18 months agoMerge branch 'master' into blende2.8
Campbell Barton [Sun, 16 Dec 2018 23:25:40 +0000 (10:25 +1100)]
Merge branch 'master' into blende2.8

18 months agoCleanup: use bit-shifted flag definitions in DNA
Campbell Barton [Sun, 16 Dec 2018 22:55:02 +0000 (09:55 +1100)]
Cleanup: use bit-shifted flag definitions in DNA

18 months agoFix T59446: Grease pencil mirror modifier wrong
Antonioya [Sun, 16 Dec 2018 18:53:40 +0000 (19:53 +0100)]
Fix T59446: Grease pencil mirror modifier wrong

The mirror was working different to mesh mirror and the result was not the expected.

18 months agoGP: Add option to occlude eraser
Antonioya [Sun, 16 Dec 2018 17:24:52 +0000 (18:24 +0100)]
GP: Add option to occlude eraser

This adds the functionality requested in T59417 adding a new button near of pressure button of the brush to enable/disable occlude effect for eraser.

18 months agoGP: Primitive: Add curve tool icon
Charlie Jolly [Sun, 16 Dec 2018 14:15:36 +0000 (14:15 +0000)]
GP: Primitive: Add curve tool icon

Thanks @billrey

18 months agoUI: initialize Overridable Static checkbox for custom properties.
Alexander Gavrilov [Sat, 15 Dec 2018 15:50:44 +0000 (18:50 +0300)]
UI: initialize Overridable Static checkbox for custom properties.

18 months agoGP: Fix Onion Skin slow performance
Antonioya [Sun, 16 Dec 2018 11:19:20 +0000 (12:19 +0100)]
GP: Fix Onion Skin slow performance

The number of vertex for VBO was not calculated for onion skin and made the realloc of memory very slow.

18 months agoTheme: blender_light text editing colors were too similar
Campbell Barton [Sun, 16 Dec 2018 00:27:01 +0000 (11:27 +1100)]
Theme: blender_light text editing colors were too similar

Make the background of text editing fields dark to contrast with
selection and the cursor, similar to T59219.

18 months agoCleanup: theme right shift
Campbell Barton [Sun, 16 Dec 2018 00:20:56 +0000 (11:20 +1100)]
Cleanup: theme right shift

18 months agoTheme: include new colors
Campbell Barton [Sun, 16 Dec 2018 00:18:21 +0000 (11:18 +1100)]
Theme: include new colors

No visible changes.

18 months agoFix T58975: "@=" operator silently fails
Campbell Barton [Sat, 15 Dec 2018 22:46:34 +0000 (09:46 +1100)]
Fix T58975: "@=" operator silently fails

D4083 by @artfunkel

18 months agoCleanup: style
Campbell Barton [Sat, 15 Dec 2018 22:29:04 +0000 (09:29 +1100)]
Cleanup: style

18 months agoFix string formatting, fall through attr
Campbell Barton [Sat, 15 Dec 2018 22:23:07 +0000 (09:23 +1100)]
Fix string formatting, fall through attr

18 months agoGP: New Curve primitive and other primitive improvements
Antonioya [Sat, 15 Dec 2018 16:21:47 +0000 (17:21 +0100)]
GP: New Curve primitive and other primitive improvements

This commit adds support for new curve tool and adds more functionalities to the existing primitives, including new handles, editing, stroke thickness curve, noise, preview of the real stroke, etc.

Thanks to @charlie for his great contribution to this improvement.

18 months agoFix T59396 Grease pencil brush crash
Antonioya [Sat, 15 Dec 2018 08:54:31 +0000 (09:54 +0100)]
Fix T59396 Grease pencil brush crash

The problem was the brush was not initializated because some code was missing (marked as ToDo)

18 months agoGP: Add NULL checking for object
Antonioya [Sat, 15 Dec 2018 08:36:08 +0000 (09:36 +0100)]
GP: Add NULL checking for object

18 months agoFix T56185, T59351: bypass GL_PROXY_TEXTURE.. test on AMD GPU + windows
mano-wii [Fri, 14 Dec 2018 23:30:50 +0000 (21:30 -0200)]
Fix T56185, T59351: bypass GL_PROXY_TEXTURE.. test on AMD GPU + windows

This replaces the test of consistency and capacity made with `GL_PROXY_TEXTURE_..` on AMD GPUs with one that checks only if the texture fits the limits of size and layer.

Differential Revision:

18 months agoFix T59388: Blender crash upon F3 command search in VSE
Dalai Felinto [Fri, 14 Dec 2018 22:35:55 +0000 (20:35 -0200)]
Fix T59388: Blender crash upon F3 command search in VSE

We may not have an active object depending on where the operator is called from
or well if we simply don't have an active object :)

18 months agoUV pin: Use ID_RECALC_COPY_ON_WRITE instead of the almighty 0
Dalai Felinto [Fri, 14 Dec 2018 22:33:29 +0000 (20:33 -0200)]
UV pin: Use ID_RECALC_COPY_ON_WRITE instead of the almighty 0

I suppose the cow tag is more correct for those generic/non-specific
tags. Thank you Sergey.

18 months agoFix T59381: UV editor - Pinned vertex missing update
Dalai Felinto [Fri, 14 Dec 2018 21:47:46 +0000 (19:47 -0200)]
Fix T59381: UV editor - Pinned vertex missing update

Pinning doesn't really change the geometry, so we don't really have a
tag for this. Using '0' for now (same we use for Mark Seam).

I will check with Sergey Sharybin which flag to use instead.
We could use ID_RECALC_GEOMETRY to match the notifier, but even the
simpler ID_RECALC_SELECT would do it.

18 months agoFix UV editor missing/typo circle_select
Dalai Felinto [Fri, 14 Dec 2018 21:24:14 +0000 (19:24 -0200)]
Fix UV editor missing/typo circle_select

18 months agoNLA: insert keyframes correctly for strips with non-Replace mode.
Alexander Gavrilov [Mon, 12 Nov 2018 16:41:53 +0000 (19:41 +0300)]
NLA: insert keyframes correctly for strips with non-Replace mode.

NLA strips support using the keyframe values in a variety of ways:
adding, subtracting, multiplying, linearly mixing with the result
of strips located below in the stack. This is intended for layering
tweaks on top of a base animation.

However, when inserting keyframes into such strips, it simply inserts
the final value of the property, irrespective of these settings. This
in fact makes the feature nearly useless.

To fix this it is necessary to evaluate the NLA stack below the
edited strip and correctly compute the raw key that would produce
the intended final value, according to the mode and influence.

Differential Revision: