20 months agoMerge branch 'blender2.7'
Brecht Van Lommel [Mon, 14 Jan 2019 11:43:34 +0000 (12:43 +0100)]
Merge branch 'blender2.7'

20 months agoFix T55589: drawing strokes with Microsoft surface pen misses first part.
Christopher Peerman [Mon, 14 Jan 2019 11:15:59 +0000 (12:15 +0100)]
Fix T55589: drawing strokes with Microsoft surface pen misses first part.

This disables touch gesture recognition in Blender, avoiding any initial delay
when drawing with grease pencil, texture paint, etc.

Differential Revision:

20 months agoMerge branch 'blender2.7'
Brecht Van Lommel [Mon, 14 Jan 2019 11:13:10 +0000 (12:13 +0100)]
Merge branch 'blender2.7'

20 months agoFix T60450: Cycles broken GPU denoising after recent changes.
Brecht Van Lommel [Mon, 14 Jan 2019 10:42:38 +0000 (11:42 +0100)]
Fix T60450: Cycles broken GPU denoising after recent changes.

20 months agoFix toolbar accelerator w/ user defined keyconfig
Campbell Barton [Mon, 14 Jan 2019 07:59:26 +0000 (18:59 +1100)]
Fix toolbar accelerator w/ user defined keyconfig

20 months ago3D View: don't override animation template view color
Campbell Barton [Mon, 14 Jan 2019 07:09:52 +0000 (18:09 +1100)]
3D View: don't override animation template view color

D4198 by @charlie w/ edits.

20 months agoCleanup: unused function
Campbell Barton [Mon, 14 Jan 2019 07:04:10 +0000 (18:04 +1100)]
Cleanup: unused function

20 months agoAdd font selection to VSE text strips
Richard Antalik [Mon, 14 Jan 2019 05:28:07 +0000 (21:28 -0800)]
Add font selection to VSE text strips

Allows users to select a font for text strips in the video sequence editor.

Related: 3610f1fc43d0 Sequencer: refactor clipboard copy to no longer increase user count.

Reviewed by: Brecht

Differential Revision:

20 months agoFix crash on scene unlink
Richard Antalik [Mon, 14 Jan 2019 05:25:29 +0000 (21:25 -0800)]
Fix crash on scene unlink

Reviewed by: Brecht

Differential Revision:

20 months agoFix drawing metadata
Richard Antalik [Mon, 14 Jan 2019 05:23:32 +0000 (21:23 -0800)]
Fix drawing metadata

ImBuf was freed prior to drawing metadata.

Reviewed by: Brecht

Differential Revision:

20 months agoFix FPS meter not showing properly with no input
Richard Antalik [Mon, 14 Jan 2019 05:21:57 +0000 (21:21 -0800)]
Fix FPS meter not showing properly with no input

Reviewed by: Brecht

Differential revision:

20 months agoCleanup: move comments above definitions
Campbell Barton [Mon, 14 Jan 2019 05:30:43 +0000 (16:30 +1100)]
Cleanup: move comments above definitions

For clang-format not to wrap definitions.

20 months agoCleanup: move comments above definitions
Campbell Barton [Mon, 14 Jan 2019 05:15:33 +0000 (16:15 +1100)]
Cleanup: move comments above definitions

For clang-format not to wrap definitions.

20 months agoCleanup: move comments above definitions, use enum
Campbell Barton [Mon, 14 Jan 2019 04:58:40 +0000 (15:58 +1100)]
Cleanup: move comments above definitions, use enum

For clang-format not to wrap definitions.

20 months agoFix T60248: Crash duplicating collections
Campbell Barton [Mon, 14 Jan 2019 04:36:12 +0000 (15:36 +1100)]
Fix T60248: Crash duplicating collections

20 months agoFix T57852: Mesh X Mirror option not working
Campbell Barton [Mon, 14 Jan 2019 03:59:18 +0000 (14:59 +1100)]
Fix T57852: Mesh X Mirror option not working

D3869 by @lichtwerk w/ own edits

20 months agoFix T60388: Warning entering text edit mode
Campbell Barton [Mon, 14 Jan 2019 03:16:08 +0000 (14:16 +1100)]
Fix T60388: Warning entering text edit mode

20 months agoFix message bus ID remapping
Campbell Barton [Mon, 14 Jan 2019 03:08:01 +0000 (14:08 +1100)]
Fix message bus ID remapping

20 months agoFix T60267: Assert manipulating a collection
Campbell Barton [Mon, 14 Jan 2019 02:58:38 +0000 (13:58 +1100)]
Fix T60267: Assert manipulating a collection

20 months agoCleanup: move comments above definitions
Campbell Barton [Mon, 14 Jan 2019 01:41:01 +0000 (12:41 +1100)]
Cleanup: move comments above definitions

For clang-format not to wrap definitions.

20 months agoCleanup: compiler warnings
Campbell Barton [Mon, 14 Jan 2019 00:42:28 +0000 (11:42 +1100)]
Cleanup: compiler warnings

20 months agoNLA: ignore time range when evaluating a raw action.
Alexander Gavrilov [Sat, 12 Jan 2019 11:10:09 +0000 (14:10 +0300)]
NLA: ignore time range when evaluating a raw action.

When editing an action without a strip, or tweaking a strip without
time mapping enabled or supported, the extents of the virtual strip
can't be controlled and are purely derived from keys in the action.

Thus, cutting off evaluation of the action at these arbitrary points
gets in the way of observing the natural extrapolation of the F-Curves
and thus appears to be a mis-feature.

With this change non-mapped actions are evaluated with infinite
range, exactly like they are handled without NLA, unless extend
mode is set to Nothing.

20 months agoGP: Cleanup missing brackets
Antonioya [Sat, 12 Jan 2019 07:36:00 +0000 (08:36 +0100)]
GP: Cleanup missing brackets

20 months agoViewport: Stereoscopy drawing is back
Dalai Felinto [Fri, 11 Jan 2019 15:38:18 +0000 (13:38 -0200)]
Viewport: Stereoscopy drawing is back

The viewport stereoscopy support helpers are finally ported to 2.80.

We now can scale the camera and the "stereo cameras" will scale
in the viewport as well (unlike 2.7x).

At the moment I disabled the drawing of the camera frame when
stereo is selected and you are looking through the camera.

It is to be fixed later, but for now it draws the border wrong.
In 2.79 this was not a problem because the camera frame was drawn
afterwards as a hack.

Viewport > Stereoscopy:
* Cameras
* Convergence plane
* Convergence plane alpha
* Stereoscopy volume
* Stereoscopy volume alpha

20 months agoBKE_camera_multiview_model_matrix: Add _scaled version
Dalai Felinto [Fri, 11 Jan 2019 20:58:09 +0000 (18:58 -0200)]
BKE_camera_multiview_model_matrix: Add _scaled version

For drawing it is useful to have the non-normalized version of the matrix.
So we can scale up the cameras drawing accordingly.

20 months agoDrawing API: shgroup_instance and shgroup_instance_alpha clarification
Dalai Felinto [Fri, 11 Jan 2019 19:50:45 +0000 (17:50 -0200)]
Drawing API: shgroup_instance and shgroup_instance_alpha clarification

shgroup_instance_alpha was getting a color[4] but would only use the
alpha defined upon creation of the shading group.

This was very limiting since it wouldn't allow for different instances
to have different alpha values.

Patch made with Clément Foucault (he made the code of it, while I fixed
all the parts of the code that were relying on shgroup_instance_alpha.

20 months agoFix T60328: Stereoscopy Convergence Plane broken
Dalai Felinto [Fri, 11 Jan 2019 12:47:48 +0000 (10:47 -0200)]
Fix T60328: Stereoscopy Convergence Plane broken

The original issue is that we were changing the camera shiftx
temporarily for the stereoscopic calculation. However we are using the
evaluated object when calculating the projection matrix.

Note: Camera framing drawing for stereo still seems to be broken.
But the viewport itself is now correct.

20 months agoFix T60401: Shape key's from pointer being set to evaluated CoW ID.
Bastien Montagne [Fri, 11 Jan 2019 22:13:29 +0000 (23:13 +0100)]
Fix T60401: Shape key's from pointer being set to evaluated CoW ID.

Not sure exactly why this happened for 'apply as shape' and not in other
cases (did not took time to fully trace what happens there). But in any
case, `BKE_key_evaluate_object_ex()` can be called from a fair amount of
places, including during depsgraph evaluation, so setting back key's
owner here is plain wrong in CoW era.

20 months agoFix T60402: Increased data.users value, when running: C.active_object.to_mesh(C.depsg...
Bastien Montagne [Fri, 11 Jan 2019 19:26:52 +0000 (20:26 +0100)]
Fix T60402: Increased data.users value, when running: C.active_object.to_mesh(C.depsgraph, True) - on curve.

More like a band-aid than anything else really, that code is horribly
weak and need to be fully re-written at some point (putting all those
temp data-blocks fully outside of bmain...). But for now should do.

20 months ago=Fix unused func warning in GP code...
Bastien Montagne [Fri, 11 Jan 2019 19:14:25 +0000 (20:14 +0100)]
=Fix unused func warning in GP code...

20 months agoFix syntax error breaking compile in GP code.
Bastien Montagne [Fri, 11 Jan 2019 19:11:11 +0000 (20:11 +0100)]
Fix syntax error breaking compile in GP code.

Seriously… Build your code before committing!!!

20 months agoRevert "Fix T57371: Generative modifiers in editmode display vertex group weights...
Clément Foucault [Fri, 11 Jan 2019 19:09:11 +0000 (20:09 +0100)]
Revert "Fix T57371: Generative modifiers in editmode display vertex group weights ..."

This reverts commit 6dbfd7f6d6bc9bea9556861eba682a3126b5ed40.

20 months agoFix T57371: Generative modifiers in editmode display vertex group weights
Clément Foucault [Fri, 11 Jan 2019 19:02:00 +0000 (20:02 +0100)]
Fix T57371: Generative modifiers in editmode display vertex group weights

In a better way...

6dbfd7f6d6bc would make the final vertex weights always calculated in
edit mode. Now it's only if the option is enabled.

20 months agoEditUV: Only clear data VBO when selection changes
Clément Foucault [Fri, 11 Jan 2019 18:07:33 +0000 (19:07 +0100)]
EditUV: Only clear data VBO when selection changes

This is a small optimisation that make UV selection faster.

20 months agoMerge branch 'blender2.7'
Bastien Montagne [Fri, 11 Jan 2019 19:03:42 +0000 (20:03 +0100)]
Merge branch 'blender2.7'

20 months agoFix T55668: Volume Keyframe on Cut-ted Metastrip (re-doing the fix in better way).
Bastien Montagne [Fri, 11 Jan 2019 18:48:56 +0000 (19:48 +0100)]
Fix T55668: Volume Keyframe on Cut-ted Metastrip (re-doing the fix in better way).

Fix T60194: Sequencer cut loses animation data for the right strip.

Fixing the first also fixes the second. First attempt was delaying
uniquename check at a later step of cut process, after everything had
been duplicated. While this fixed first issue, second one became even
more proeminent (it become active for all strips, and not only
video/audio movie strips in meta's).

So instead, passing along the list of (new) sequences, so that duplicated
seqs can be put there immediately, before checking for unique names,
henceforth ensuring even strips inside meta's get properly handled.

20 months agoRevert "Fix T55668: Volume Keyframe on Cut-ted Metastrip."
Bastien Montagne [Fri, 11 Jan 2019 11:01:13 +0000 (12:01 +0100)]
Revert "Fix T55668: Volume Keyframe on Cut-ted Metastrip."

This partially reverts commit bb98e83b99e63348e0396a5ffe5bb2a20ff1607a.
It fixed 'strips having same name' issue, but broke handling of
animation then. Need to find a better way to handle this.

20 months agoGP: New Cutter, Constraints and Segment selection
Antonioya [Fri, 11 Jan 2019 18:15:23 +0000 (19:15 +0100)]
GP: New Cutter, Constraints and Segment selection

This commit groups a set of new tools that were tested in grease pencil object branch before moving to master. We decide to do all the development in a separated branch because it could break master during days or weeks before the new tools were ready to deploy.

The commit includes:

- New Cutter tool to trim strokes and help cleaning up drawings.

- New set of constraints and guides to draw different types of shapes. All the credits for this development goes to Charlie Jolly (@charlie), thanks for your help!

- Segment selection mode to select strokes between intersections.

- New operator to change strokes cap mode.

- New option to display only keyframed frames. This option is very important when fill strokes with color.

- Multiple small fixes and tweaks.

Thanks to @pepeland and @mendio for their ideas, tests, reviews and support.

Note: Still pending the final icons for Cutter in Toolbar and Segment Selection in Topbar. @billreynish could help us here?

20 months agoFix T57371: Generative modifiers in editmode display vertex group weights ...
Clément Foucault [Fri, 11 Jan 2019 17:55:55 +0000 (18:55 +0100)]
Fix T57371: Generative modifiers in editmode display vertex group weights ...

... incorrectly (or assert)

Thanks @angavrilov and @lichtwerk for the fix.

20 months agoFix T59990: Crash when entering edit mode with skin modifier enabled
Clément Foucault [Fri, 11 Jan 2019 16:21:22 +0000 (17:21 +0100)]
Fix T59990: Crash when entering edit mode with skin modifier enabled

The skin modifier does not keep the UV layers.

This just add a safety check when there is no UV layers.

20 months agoMerge branch 'blender2.7'
Sergey Sharybin [Fri, 11 Jan 2019 17:09:05 +0000 (18:09 +0100)]
Merge branch 'blender2.7'

20 months agoFix T60145: Cycles resets manually set affinity
Sergey Sharybin [Fri, 11 Jan 2019 16:55:36 +0000 (17:55 +0100)]
Fix T60145: Cycles resets manually set affinity

This change brings back old original logic which was checking
whether worker threads do fit into an active CPU group. But
it does it a bit smarter now and is also checking affinity
within that group. This way Cycles will use all threads on a
Threadripper2 CPU if it's set to automatic number of threads,
but on another hand will not change affinity if user requested
16 threads and changed Blender affinity.

20 months agoUpdate bundled version of NUMA API library
Sergey Sharybin [Fri, 11 Jan 2019 16:47:10 +0000 (17:47 +0100)]
Update bundled version of NUMA API library

20 months agoGP: Missing in previous count commit
Antonioya [Fri, 11 Jan 2019 16:30:35 +0000 (17:30 +0100)]
GP: Missing in previous count commit

20 months agoFix T60415: wrong font preview image alpha blending.
Brecht Van Lommel [Fri, 11 Jan 2019 16:00:03 +0000 (17:00 +0100)]
Fix T60415: wrong font preview image alpha blending.

20 months agoFix Python errors batch generating preview images.
Brecht Van Lommel [Fri, 11 Jan 2019 15:18:00 +0000 (16:18 +0100)]
Fix Python errors batch generating preview images.

20 months agoFix T60411: crash in multi-object pose mode, with some armatures in rest pose.
Brecht Van Lommel [Fri, 11 Jan 2019 11:19:42 +0000 (12:19 +0100)]
Fix T60411: crash in multi-object pose mode, with some armatures in rest pose.

20 months agoGP: Fix missing Fill properties in Topbar
Antonioya [Fri, 11 Jan 2019 16:22:13 +0000 (17:22 +0100)]
GP: Fix missing Fill properties in Topbar

After some internal changes in the topbar, some properties were not visible if use col() instead of row() in python script.

20 months agoGP: Reduce memory reallocation in multiedit mode
Antonioya [Fri, 11 Jan 2019 15:58:18 +0000 (16:58 +0100)]
GP: Reduce memory reallocation in multiedit mode

There was a problem counting the number of points for edit points and lines. Now the total size is used allocating the VBO size and not the stroke size.

20 months agoUVEdit: Port texpaint_loop_wire to batch request
Clément Foucault [Thu, 10 Jan 2019 21:22:42 +0000 (22:22 +0100)]
UVEdit: Port texpaint_loop_wire to batch request

This removes code duplication and put an end to the old "create at request"
batch creation.

Also it uses the same vbo as the uv layer used for shading. Reducing VRAM

Also fixes the modified uv display in uv edit mode.

20 months agoUVEdit: Add back uv angle stretch aspect correction
Clément Foucault [Thu, 10 Jan 2019 16:59:11 +0000 (17:59 +0100)]
UVEdit: Add back uv angle stretch aspect correction

This is now done in shader so that the batches are shared across ImageUV

20 months agoUVEdit: Port batches to batch request
Clément Foucault [Wed, 9 Jan 2019 21:56:27 +0000 (22:56 +0100)]
UVEdit: Port batches to batch request

This is in order to allow more spaces to have their batches created at the
same time and sharing the batches.

This is part of the effort fo making the drawing code more optimized. This
commit however should not introduce any difference.

This commit bypass the aspect ratio correction for angle stretch display
but this should be fixed in the next commit.

20 months agoWM: Use draw manager to draw UV image editor spaces
Clément Foucault [Wed, 9 Jan 2019 21:26:52 +0000 (22:26 +0100)]
WM: Use draw manager to draw UV image editor spaces

This is in order to use batch cache directly without using tricks like
batch presets reseting the VAOs.

Note: For now it also create a depth buffer for this area which is not
needed. We could get rid of this to lower VRAM usage.

20 months agoBMesh: Add BM_face_calc_area_uv
Clément Foucault [Wed, 9 Jan 2019 21:09:27 +0000 (22:09 +0100)]
BMesh: Add BM_face_calc_area_uv

20 months agoTexture Paint: Add filtering option for texture paint overlay
Clément Foucault [Sun, 23 Dec 2018 15:26:21 +0000 (16:26 +0100)]
Texture Paint: Add filtering option for texture paint overlay

The overlay should now use the texture interpolation setting in material

In image mode, there is now a new button to let the user choose the texture
filter. The option is located in the Texture Slots popover and only shows
in Image mode.

20 months agoWorkbench: Support node texture "closest" interpolation option
Clément Foucault [Sun, 23 Dec 2018 14:20:06 +0000 (15:20 +0100)]
Workbench: Support node texture "closest" interpolation option

This makes it possible to paint pixel art using the workbench.

Cubic interpolation is not supported but could be added if needed.

20 months agoGPUShader: Cleanup Unused shaders
Clément Foucault [Sun, 23 Dec 2018 13:13:24 +0000 (14:13 +0100)]
GPUShader: Cleanup Unused shaders

20 months agoMesh Batch Cache: Cleanup Unused
Clément Foucault [Sat, 22 Dec 2018 23:23:51 +0000 (00:23 +0100)]
Mesh Batch Cache: Cleanup Unused

20 months agoEdit Mode Selection: Make Vertices not occluded by edges
Clément Foucault [Sat, 22 Dec 2018 23:11:42 +0000 (00:11 +0100)]
Edit Mode Selection: Make Vertices not occluded by edges

Debugging the edit mode selection I realized the vertices are often
occluded by edges with the same depth. Sometime it can be the center
pixel of a vertex point and that can lead to some selection issue.

So I increased the offset a bit for the vertices and it seems to fix it.

20 months agoGPUMaterial: Cleanup / optimization
Clément Foucault [Sat, 22 Dec 2018 23:07:52 +0000 (00:07 +0100)]
GPUMaterial: Cleanup / optimization

20 months agoMesh Selection: Port to batch cache request
Clément Foucault [Sat, 22 Dec 2018 22:57:12 +0000 (23:57 +0100)]
Mesh Selection: Port to batch cache request

This makes it more future proof and remove baked id offset inside the vbos.
Instead we add the offset as a uniform. This makes it possible to reuse
the vbos instead of discarding them all the time.

Also using batch request may reduce batches creation time.

20 months agoMesh Batch Cache: Fix wrong assert
Clément Foucault [Sat, 22 Dec 2018 20:04:53 +0000 (21:04 +0100)]
Mesh Batch Cache: Fix wrong assert

20 months agoGPUShader: Add selection id shader
Clément Foucault [Sat, 22 Dec 2018 20:02:30 +0000 (21:02 +0100)]
GPUShader: Add selection id shader

This is to separate id drawing from standard color drawing.

20 months agoMesh Batch Cache: Put context evaluation out of batch cache
Clément Foucault [Sat, 22 Dec 2018 20:00:23 +0000 (21:00 +0100)]
Mesh Batch Cache: Put context evaluation out of batch cache

This is in order to be able to call DRW_mesh_batch_cache_create_requested
outside of the draw manager

20 months agoDRW: Fix texture paint crashing if object has no material slot
Clément Foucault [Sat, 22 Dec 2018 19:17:42 +0000 (20:17 +0100)]
DRW: Fix texture paint crashing if object has no material slot

20 months agoMerge branch 'blender2.7'
Sergey Sharybin [Fri, 11 Jan 2019 14:09:46 +0000 (15:09 +0100)]
Merge branch 'blender2.7'

20 months agoFix T60227: Crash when Cycles uses more than system threads
Sergey Sharybin [Fri, 11 Jan 2019 14:01:54 +0000 (15:01 +0100)]
Fix T60227: Crash when Cycles uses more than system threads

Tweaked scheduling so it survives this situation by scattering
"extra" threads uniformly over all the NUMA nodes.

There are still tweaks possible to make some specific hardware
configurations work better.

20 months agoFix T60320: Cycles OpenCL denoising filter errors on some drivers.
Brecht Van Lommel [Fri, 11 Jan 2019 10:12:38 +0000 (11:12 +0100)]
Fix T60320: Cycles OpenCL denoising filter errors on some drivers.

20 months agoGP: Count all strokes when use multiedit for VBO size
Antonioya [Fri, 11 Jan 2019 10:00:30 +0000 (11:00 +0100)]
GP: Count all strokes when use multiedit for VBO size

When use multi frame edition, the initial size of the VBO must be bigger than normal edition because the realloc of VBO is very slow.

20 months agoFix auto-run warning RNA type
Campbell Barton [Fri, 11 Jan 2019 04:43:53 +0000 (15:43 +1100)]
Fix auto-run warning RNA type

20 months agoTheme: update blender light theme preferences
Campbell Barton [Fri, 11 Jan 2019 04:11:00 +0000 (15:11 +1100)]
Theme: update blender light theme preferences

Copy from properties space.

20 months agoTheme: disable blender_light 3D view gradient
Campbell Barton [Fri, 11 Jan 2019 03:38:31 +0000 (14:38 +1100)]
Theme: disable blender_light 3D view gradient

- Lost contrast w/ faded wire for dupli/set-scene.
- Make grid darker to increase contrast.

20 months ago3D View: fade out dupli-wire color 70%
Campbell Barton [Fri, 11 Jan 2019 03:26:30 +0000 (14:26 +1100)]
3D View: fade out dupli-wire color 70%

20 months ago3D View: use faded wire for set-scene objects
Campbell Barton [Fri, 11 Jan 2019 03:22:40 +0000 (14:22 +1100)]
3D View: use faded wire for set-scene objects

Matches 2.7x behavior.

20 months ago3D View: use dupli wire color for shaded wire drawing
Campbell Barton [Fri, 11 Jan 2019 03:12:55 +0000 (14:12 +1100)]
3D View: use dupli wire color for shaded wire drawing

Was only working for loose wire.

20 months agoCleanup: blend existing colors
Campbell Barton [Fri, 11 Jan 2019 02:27:49 +0000 (13:27 +1100)]
Cleanup: blend existing colors

20 months agoCleanup: avoid repetition versioning theme
Campbell Barton [Fri, 11 Jan 2019 02:23:27 +0000 (13:23 +1100)]
Cleanup: avoid repetition versioning theme

20 months agostartup: view background color wasn't default
Campbell Barton [Fri, 11 Jan 2019 02:15:38 +0000 (13:15 +1100)]
startup: view background color wasn't default

20 months agoFix background color use in 3D view
Campbell Barton [Fri, 11 Jan 2019 01:59:19 +0000 (12:59 +1100)]
Fix background color use in 3D view

TH_BACK was being used when drawing the 3D view even though
there was no way to set the color in the preferences.

The color was zero'd when moving to the new 2.8x theme.

Having both gradient and background colors was confusing,
especially having to use 'TH_HIGH_GRAD' for the 3D view, 'TH_BACK' for
other views.

Move the background color back to 'TH_BACK', 'TH_BACK_GRAD' is used
when gradients are enabled.
RNA is unchanged so presets don't need updating.

20 months agoPreferences: remove author field
Campbell Barton [Fri, 11 Jan 2019 00:00:33 +0000 (11:00 +1100)]
Preferences: remove author field

This was only used by collada export metadata.

If metadata like this is needed, we can use per-filetype preferences,
to make it clear when user identifiable information is being used.

20 months agoCleanup: remove tabs after line start
Campbell Barton [Thu, 10 Jan 2019 23:50:21 +0000 (10:50 +1100)]
Cleanup: remove tabs after line start

Allows expanding tabs before running clang-format.

20 months agoCleanup: unused vars
Campbell Barton [Thu, 10 Jan 2019 23:49:50 +0000 (10:49 +1100)]
Cleanup: unused vars

20 months agoMSVC: remove compiler __func__ define
Campbell Barton [Thu, 10 Jan 2019 22:22:21 +0000 (09:22 +1100)]
MSVC: remove compiler __func__ define

No longer needed and exposes a bug in clang-format see: D4185

20 months agoMSVC: remove compiler __func__ define
Campbell Barton [Thu, 10 Jan 2019 22:22:21 +0000 (09:22 +1100)]
MSVC: remove compiler __func__ define

No longer needed and exposes a bug in clang-format see: D4185

20 months agofix D4187: Collada Importer: Material assignment broken after importing Mesh with...
Trevor Glauz [Thu, 10 Jan 2019 19:23:40 +0000 (20:23 +0100)]
fix D4187: Collada Importer: Material assignment broken after importing Mesh with multiple materials

20 months agoFix T60266: missing viewport updates after changing scene world datablock.
Brecht Van Lommel [Thu, 10 Jan 2019 19:10:48 +0000 (20:10 +0100)]
Fix T60266: missing viewport updates after changing scene world datablock.

20 months agoFix use of uninitialized GPU context memory in release builds.
Brecht Van Lommel [Thu, 10 Jan 2019 19:03:05 +0000 (20:03 +0100)]
Fix use of uninitialized GPU context memory in release builds.

Reported by valgrind, not sure it caused any real bugs.

20 months agoSubdiv: Fix memory leak
Sergey Sharybin [Thu, 10 Jan 2019 16:08:31 +0000 (17:08 +0100)]
Subdiv: Fix memory leak

Was visible when mesh had n-gons.

20 months agoFix T60393: Subdiv gives wrong vertex colors
Sergey Sharybin [Thu, 10 Jan 2019 16:01:35 +0000 (17:01 +0100)]
Fix T60393: Subdiv gives wrong vertex colors

20 months agoFix T59631: Crash in Surface Deform modifier Bind when Dynamic Paint is included.
Bastien Montagne [Thu, 10 Jan 2019 15:45:38 +0000 (16:45 +0100)]
Fix T59631: Crash in Surface Deform modifier Bind when Dynamic Paint is included.

We should *never* prevent copying basic mesh CDLayers (vertices etc.),
that does not make sense.

I guess issue was not in old DM because geometry was duplicated anyway,
and in 'normal' modifier stack eval, probably because bare mesh was
awlays requested? But we should not have to be explicit here about it.

20 months agoGP: Fix render glitch when have collision with mesh
Antonioya [Thu, 10 Jan 2019 15:25:34 +0000 (16:25 +0100)]
GP: Fix render glitch when have collision with mesh

20 months agoUse proper ID to create FModifier RNA pointer
Sergey Sharybin [Thu, 10 Jan 2019 15:21:40 +0000 (16:21 +0100)]
Use proper ID to create FModifier RNA pointer

Allows to do simple DEG tag, without extra checks for ID type.

Will solve possible missing updates when modifying f-curve
modifier of a shared action.

20 months agoSupport proportional edit scaling on dopesheet keyframes
Philipp Oeser [Thu, 10 Jan 2019 13:03:52 +0000 (14:03 +0100)]
Support proportional edit scaling on dopesheet keyframes

Fixes T60361

Reviewers: brecht

Maniphest Tasks: T60361

Differential Revision:

20 months agoFix T60340: Removing f-curve modifier doesn't update animation
Sergey Sharybin [Thu, 10 Jan 2019 14:56:02 +0000 (15:56 +0100)]
Fix T60340: Removing f-curve modifier doesn't update animation

20 months agoKeep track of owner of f-curve
Sergey Sharybin [Thu, 10 Jan 2019 14:50:15 +0000 (15:50 +0100)]
Keep track of owner of f-curve

This is a part of another which, which needs to tag owner
of f-curve for an update. But since this is too many lines
changed committing separately.

Basically, for f-curve AnimElement we are now storing ID
whih owns the f-curve.

20 months agoUI: make pie menus stick only when tapping key.
Justin Jones [Thu, 10 Jan 2019 14:46:44 +0000 (15:46 +0100)]
UI: make pie menus stick only when tapping key.

When holding down the key for a while, the pie menu will disappear when
releasing the key. This is under the assumption that in this case the user
decided to cancel the action.

Differential Revision:

20 months agoFix T59913: error saving cloth preset
Philipp Oeser [Thu, 10 Jan 2019 14:52:34 +0000 (15:52 +0100)]
Fix T59913: error saving cloth preset

thx @rombout for investigation!

20 months agofix T60049: Collada Exporter: When exporting multiple UVs, the set index must start...
Gaia Clary [Thu, 10 Jan 2019 12:15:09 +0000 (13:15 +0100)]
fix T60049: Collada Exporter: When exporting multiple UVs, the set index must start with 0

20 months agoGP: Fix unreported pixel glitches
Antonioya [Thu, 10 Jan 2019 12:10:46 +0000 (13:10 +0100)]
GP: Fix unreported pixel glitches

There was a problem in the caps start and in some situations, the pixel was wrong.

Also changed the way the caps are detected because use the alpha in negative was a hack that maybe will not work with all drivers.

20 months agoFix T60285: allow negative offsets in shrinkwrap (worked in 2.79).
Alexander Gavrilov [Thu, 10 Jan 2019 08:55:09 +0000 (11:55 +0300)]
Fix T60285: allow negative offsets in shrinkwrap (worked in 2.79).