blender.git
5 weeks agoCleanup: minor adjustments to --help text formatting
Campbell Barton [Thu, 13 Jun 2019 23:50:13 +0000 (09:50 +1000)]
Cleanup: minor adjustments to --help text formatting

- Single quote args so they show with string literals in the manual.
- Improve the description of animation playback mode.

5 weeks agoFix T61768 Eevee Offscreen rendering
Clément Foucault [Thu, 13 Jun 2019 19:31:46 +0000 (21:31 +0200)]
Fix T61768 Eevee Offscreen rendering

The issue was caused by a bad usage of GPUOffscreen.

The Framebuffer was created using a window framebuffer and used
in a viewport callback when another GPUContext was bound.

This change allows up to 3 framebuffers per GPUOffscreen.

Most common case will be using 2 framebuffers (one for init and
one for drawing) but in the case of more (bad usage) it will just
degrade performance a bit.

5 weeks agoFix T65783: Gpencil Edit mode doesn't round data icon
Antonioya [Thu, 13 Jun 2019 18:38:31 +0000 (20:38 +0200)]
Fix T65783: Gpencil Edit mode doesn't round data icon

See D5071 for more details

Thanks to @brecht for his help

5 weeks agoFix T59275: generated texture coordinates don't stick to mesh for shape keys
Brecht Van Lommel [Thu, 13 Jun 2019 18:22:10 +0000 (20:22 +0200)]
Fix T59275: generated texture coordinates don't stick to mesh for shape keys

No need for this optimization in Eevee anymore, instead the modifier stack will
only compute CD_ORCO when needed.

5 weeks agoFix part of T63595: generated texture coordinates don't stick to deforming mesh
Brecht Van Lommel [Thu, 13 Jun 2019 17:56:25 +0000 (19:56 +0200)]
Fix part of T63595: generated texture coordinates don't stick to deforming mesh

Always compute CD_ORCO undeformed coordinates now for rendering, same as before.
There is still a refresh issue to be fixed, when switching from solid to textured
mode in the viewport.

Computing such undeformed coordinates can be expensive and is not actually needed
if the mesh is only using e.g. UV maps. This was the same in 2.79, at least now we
are skipping the computation when there are no deforming mdifiers on the mesh.

5 weeks agoMesh: don't compute CD_ORCO layer when there are no deforming modifiers
Brecht Van Lommel [Mon, 10 Jun 2019 13:42:15 +0000 (15:42 +0200)]
Mesh: don't compute CD_ORCO layer when there are no deforming modifiers

This saves memory and evaluation time for simple static meshes with e.g. a
subdivision surface modifier. If no CD_ORCO layer exists then we assume the
actual vertex coordinates are equal to the original undeformed coordinates.

5 weeks agoT65783: UI Inconsistency with Grease Pencil icons in Properties and Outliner
Antonioya [Thu, 13 Jun 2019 17:19:57 +0000 (19:19 +0200)]
T65783: UI Inconsistency with Grease Pencil icons in Properties and Outliner

Fixed Properties and tab icons

5 weeks agoFix T65669 Bones in Envelope Display break apart after selecting bone
Clément Foucault [Tue, 11 Jun 2019 21:35:35 +0000 (23:35 +0200)]
Fix T65669 Bones in Envelope Display break apart after selecting bone

This was because the VAOs were not updated if an instance batch was
reusing a VBO containing instances attributes which was reinitialized.

Now we ensure the Batch will reconfigure the VAOs if the VBO is 0.

5 weeks agoFix T65109: Object deleted when removed from the RigidBodyWorld collection.
Bastien Montagne [Thu, 13 Jun 2019 15:57:55 +0000 (17:57 +0200)]
Fix T65109: Object deleted when removed from the RigidBodyWorld collection.

While user should never do that, it appears many end up using a 'view
layer' instancing collection as RBW collection, and even worse, have
objects in that unique collection.

Therefore, when removing RB simulation from an object, which among other
things has to remove it from the RBW collection, it would fully delete
the object from the blend file.

This fix merely checks the usercount of RB-removed object, and if it is
at 1 (which means object was in a single collection), it adds it to the
scene's master collection first.

5 weeks agoFix T65445: wrong defaults when appending workspaces from builtin templates
Brecht Van Lommel [Thu, 13 Jun 2019 14:33:01 +0000 (16:33 +0200)]
Fix T65445: wrong defaults when appending workspaces from builtin templates

5 weeks agoDefaults: refactor startup.blend code, more consistely apply to templates
Brecht Van Lommel [Thu, 13 Jun 2019 15:40:04 +0000 (17:40 +0200)]
Defaults: refactor startup.blend code, more consistely apply to templates

There were various changes only applied to specific builtin templates even
though they should apply to all, since it's possible to do e.g. use grease
pencil objects in the general template or use mesh sculpting in the grease
pencil template.

Also, nearly all changes now apply to builtin templates only. This was
already the case for most, and the distinction seems to have been more by
accident than intent.

5 weeks agoIndustry Compat keymap: Fix broken Tab key in the Text Editor
William Reynish [Thu, 13 Jun 2019 14:45:37 +0000 (16:45 +0200)]
Industry Compat keymap: Fix broken Tab key in the Text Editor

Was being used for operator search here, which doesn't make any sense

5 weeks agoFix: Sequencer timecodes was using wrong properties
William Reynish [Thu, 13 Jun 2019 13:54:45 +0000 (15:54 +0200)]
Fix: Sequencer timecodes was using wrong properties

  - The Start value and the Playhead value both used 'frame_start', which only tells you where the strip was originally inserted. Instead 'frame_final_start' is now used, which results in the correct timeline values.
  - When scaling the sidebar some of the the labels weren't scaling correctly, this has been fixed
  - Use Hold Cut/Cut instead of Hard/Soft Cut, for consistency

Patch by Peter Fog

Differential revision: https://developer.blender.org/D5065

5 weeks agoFix "Fix Deform" not working in Blender 2.8
Sergey Sharybin [Thu, 13 Jun 2019 13:21:16 +0000 (15:21 +0200)]
Fix "Fix Deform" not working in Blender 2.8

Need to copy changes to the evaluated mesh before requesting
new deformed mesh.

Tested on a file from T32406.

5 weeks agoFix "Fix Deform" access evaluated data form original objects
Sergey Sharybin [Thu, 13 Jun 2019 13:08:45 +0000 (15:08 +0200)]
Fix "Fix Deform" access evaluated data form original objects

This is part of T60517.

5 weeks agoSet Node Editor to use Box Select tool by default
William Reynish [Thu, 13 Jun 2019 12:41:21 +0000 (14:41 +0200)]
Set Node Editor to use Box Select tool by default

This makes Shift and Ctrl work properly to extend and subtract selections.
This also moves Cut Links to Ctrl-RMB, which doesn't conflict with the selection tool.

5 weeks agoCleanup: clang-format
Antonioya [Thu, 13 Jun 2019 11:43:07 +0000 (13:43 +0200)]
Cleanup: clang-format

5 weeks agoGPencil: Reorganize blend shader
Antonioya [Thu, 13 Jun 2019 11:35:12 +0000 (13:35 +0200)]
GPencil: Reorganize blend shader

Reorganize code and change some functions to mimic other softwares blend modes. Still need more work.

5 weeks agoGPencil: Remove blend_opacity from shader
Antonioya [Wed, 12 Jun 2019 15:15:50 +0000 (17:15 +0200)]
GPencil: Remove blend_opacity from shader

The opacity was already used and using it in the shader only duplicate the blend.

5 weeks agoParticle system: Move runtime data to runtime field
Sergey Sharybin [Wed, 5 Jun 2019 10:39:40 +0000 (12:39 +0200)]
Particle system: Move runtime data to runtime field

Allows it to be preserved during copy-on-write update when on-geometry
related update is needed.

This is a required part for T63537, where we need to preserve the entire
evaluation data when object is tagged for only RECALC_COPY_ON_WRITE.

Reviewers: brecht

Reviewed By: brecht

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

5 weeks agoClear Datablocks Preview: add some more generic options.
Bastien Montagne [Thu, 13 Jun 2019 09:10:17 +0000 (11:10 +0200)]
Clear Datablocks Preview: add some more generic options.

Sometimes one may want to nuke all previews altogether, running the
operator for all eight individual ID types would be tedious then...

5 weeks agoFix T65034: Viewing material calls frame update handler
Sergey Sharybin [Wed, 12 Jun 2019 15:50:58 +0000 (17:50 +0200)]
Fix T65034: Viewing material calls frame update handler

Use lower level dependency graph evaluation which doesn't run any handlers,
doesn't touch sound system, doesn't inform image editors about changes.

Should probably move such evaluation steps to a helper function in DEG module,
but that is more like a cleanup.

Reviewers: brecht

Reviewed By: brecht

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

5 weeks agoCleanup: correct wireframe xray flag name
Campbell Barton [Thu, 13 Jun 2019 07:33:51 +0000 (17:33 +1000)]
Cleanup: correct wireframe xray flag name

Revert part of d56c0a0a6affcdfd7335c

5 weeks agoCleanup: clang-format
Campbell Barton [Thu, 13 Jun 2019 02:37:01 +0000 (12:37 +1000)]
Cleanup: clang-format

5 weeks agoCleanup: tweak logic for skipping modules
Campbell Barton [Thu, 13 Jun 2019 00:03:06 +0000 (10:03 +1000)]
Cleanup: tweak logic for skipping modules

Startup is the special case, so match against this instead of 'modules'.

5 weeks agoHide from UI overridable option for custom properties.
Bastien Montagne [Wed, 12 Jun 2019 17:59:29 +0000 (19:59 +0200)]
Hide from UI overridable option for custom properties.

5 weeks agoFix T57489: Texture coordinate object reference not updating in Eevee
Sergey Sharybin [Wed, 12 Jun 2019 14:57:56 +0000 (16:57 +0200)]
Fix T57489: Texture coordinate object reference not updating in Eevee

5 weeks agoGPencil: Fix clamp alpha problems when using Regular blend
Antonioya [Wed, 12 Jun 2019 14:55:24 +0000 (16:55 +0200)]
GPencil: Fix clamp alpha problems when using Regular blend

The problem was the alpha was not premult and the opacity factor was applied two times.

5 weeks agoTypos in description
Jeroen Bakker [Wed, 12 Jun 2019 14:26:58 +0000 (16:26 +0200)]
Typos in description

5 weeks agoCompositor: fix linear feather falloff in dilate/erode node
Jacques Lucke [Wed, 12 Jun 2019 13:52:09 +0000 (15:52 +0200)]
Compositor: fix linear feather falloff in dilate/erode node

The bug only affected debug builds.

5 weeks agoFix T65741: Removing a GPencil Object's Material Slot deletes the strokes assigned...
Antonioya [Wed, 12 Jun 2019 13:51:51 +0000 (15:51 +0200)]
Fix T65741: Removing a GPencil Object's Material Slot deletes the strokes assigned to it

This was a design decision, but now we have decided to change it using the active material for the strokes using deleted material.

If the material slot is empty a new material is created to keep the strokes visible.

5 weeks agoFix T64930: FFmpeg Output- no color mode by default
Sebastian Parborg [Wed, 12 Jun 2019 13:16:30 +0000 (15:16 +0200)]
Fix T64930: FFmpeg Output- no color mode by default

The issue was that the valid color modes was checked on the old image
format, not the new one. So if you switched formats it would not
correctly check if the settings were valid.

5 weeks agoTransform Snap: When snapping to curve's vertices, consider only the original elements.
mano-wii [Wed, 12 Jun 2019 12:48:15 +0000 (09:48 -0300)]
Transform Snap: When snapping to curve's vertices, consider only the original elements.

When they are occluded or when the snap is done for the generated meshes vertices, it was inconvenient.
An ideal solution needs to be discussed, but for now, for vertices, keep the behavior similar to the pre 2.8 versions.

5 weeks agoFix T65751: Mask Parenting does not work
Sergey Sharybin [Wed, 12 Jun 2019 12:02:57 +0000 (14:02 +0200)]
Fix T65751: Mask Parenting does not work

5 weeks agoFix T65750: Masking crash with Add Feather Vertex and Slide
Sergey Sharybin [Wed, 12 Jun 2019 10:47:01 +0000 (12:47 +0200)]
Fix T65750: Masking crash with Add Feather Vertex and Slide

5 weeks agoFix T64710: Rigid body stops simulating when an object is selected
Sergey Sharybin [Wed, 12 Jun 2019 10:11:49 +0000 (12:11 +0200)]
Fix T64710: Rigid body stops simulating when an object is selected

Need to preserve last evaluated time through copy-on-write process.

5 weeks agoWM: re-enable auto-save after loading the users preferences
Campbell Barton [Wed, 12 Jun 2019 07:53:18 +0000 (17:53 +1000)]
WM: re-enable auto-save after loading the users preferences

Minor change, only apples when loading factory settings,
then reverting to saved.

5 weeks agoCleanup: --help doc string formatting
Campbell Barton [Wed, 12 Jun 2019 06:59:03 +0000 (16:59 +1000)]
Cleanup: --help doc string formatting

STRINGIFY macro was being split across lines
causing problems extracting the strings for the references manual.

5 weeks agoUnit System: remove 'm' as an alternate name for mile
Campbell Barton [Wed, 12 Jun 2019 04:20:59 +0000 (14:20 +1000)]
Unit System: remove 'm' as an alternate name for mile

Now when using imperial dimensions,
using 'm' suffix is treated as meters instead of miles
(use 'mi' or 'mile' instead).

Resolves T65731

5 weeks agoRevert "Keymap: Add additional scrubbing affordance (Alt-LMB)"
Campbell Barton [Wed, 12 Jun 2019 03:46:30 +0000 (13:46 +1000)]
Revert "Keymap: Add additional scrubbing affordance (Alt-LMB)"

This reverts commits
dcec863b2f2fce7fc5caa138ad3816c88e2aa2a3,
f11929c145ef45444598a9679e675b2d013ae2ef.

It wasn't possible to set the cursor without accidentally selecting a
column of keys & (vice-versa).
This conflicts with Alt->LMB to select column of keys.

Shift-RMB is already bound to scrubbing.

5 weeks agoFix T65727: Broken button tool-tips in 3D view
Campbell Barton [Wed, 12 Jun 2019 02:57:20 +0000 (12:57 +1000)]
Fix T65727: Broken button tool-tips in 3D view

Own error in 686820289982.

5 weeks agoUI: alternate fix for T65702, handling of auto-saving userprefs
Campbell Barton [Wed, 12 Jun 2019 02:21:21 +0000 (12:21 +1000)]
UI: alternate fix for T65702, handling of auto-saving userprefs

The behavior for loading factory settings wasn't clear for users.

This commit changes the behavior:

- Loading factory settings always disables auto-save
  for the current session.
- The internal setting to skip saving on exit is now exposed
  in the preferences (when enabled).
- The menu item "Load Factory Settings (Temporary)" has been removed
  since it's always temporary.

This way users can always reset factory settings without
having to consider the combination of options that might cause their
preferences to be overwritten at exit.

If they want to enable auto-save for the current session
this can be done from the preferences.

5 weeks agoWM: optionally override the context with a module for wm.context_toggle
Campbell Barton [Wed, 12 Jun 2019 02:17:50 +0000 (12:17 +1000)]
WM: optionally override the context with a module for wm.context_toggle

This may be used with other wm.context_* operators in the future.

5 weeks agoCleanup: expand left/right select keymap items
Campbell Barton [Wed, 12 Jun 2019 01:11:39 +0000 (11:11 +1000)]
Cleanup: expand left/right select keymap items

This was meant to simplify the keymap but ended up
not having a significant advantage.

5 weeks agoKeymap: Add Ctrl-SelectMouse in to box-deselect
Campbell Barton [Wed, 12 Jun 2019 00:42:57 +0000 (10:42 +1000)]
Keymap: Add Ctrl-SelectMouse in to box-deselect

5 weeks agoCleanup: spelling in comments
Campbell Barton [Tue, 11 Jun 2019 23:04:10 +0000 (09:04 +1000)]
Cleanup: spelling in comments

5 weeks agoCleanup: clang-format
Campbell Barton [Tue, 11 Jun 2019 22:17:40 +0000 (08:17 +1000)]
Cleanup: clang-format

5 weeks agoCleanup: unused vars
Campbell Barton [Tue, 11 Jun 2019 22:16:58 +0000 (08:16 +1000)]
Cleanup: unused vars

5 weeks agoView3D Snap: Don't mix original/evaluated in the same function parameters.
mano-wii [Tue, 11 Jun 2019 21:45:46 +0000 (18:45 -0300)]
View3D Snap: Don't mix original/evaluated in the same function parameters.

5 weeks agoFix T64478: Wrong location Snap Selection to Cursor after set camera Follow the path.
mano-wii [Tue, 11 Jun 2019 21:12:14 +0000 (18:12 -0300)]
Fix T64478: Wrong location Snap Selection to Cursor after set camera Follow the path.

In this case it is necessary to use the `object->parent` evaluated to obtain the correct `parentmat`.

5 weeks agoFix/Cleanup: I18N: Bad usage of IFACE_ instead of TIP_.
Bastien Montagne [Tue, 11 Jun 2019 20:25:01 +0000 (22:25 +0200)]
Fix/Cleanup: I18N: Bad usage of IFACE_ instead of TIP_.

Cheap tip: anything that is not "Camel Case" and/or that is more than
a few words long should use `TIP_` translation, not `IFACE_` one.

Also added several missing strings (including the one reported in D5056
by Jean First (@robbott), thanks).

5 weeks agoCleanup: remove unused var.
Bastien Montagne [Tue, 11 Jun 2019 19:16:36 +0000 (21:16 +0200)]
Cleanup: remove unused var.

5 weeks agoFix T64430: Removing objects from sub-collection doesn't update instances of parent...
Bastien Montagne [Tue, 11 Jun 2019 19:13:37 +0000 (21:13 +0200)]
Fix T64430: Removing objects from sub-collection doesn't update instances of parent collection.

Collections are a tad annoying with all their caching of objects... When
we modify content of a children collection, we need to tag DeG for CoW
update of all of the ancestors.

For now keeping that recursive tagging helper private, but would not be
surprised if we found more similar cases and needed to expose it to more
code...

5 weeks agoFix (unreported) message wrongly using IFACE_ for its translation.
Bastien Montagne [Tue, 11 Jun 2019 18:54:43 +0000 (20:54 +0200)]
Fix (unreported) message wrongly using IFACE_ for its translation.

`IFACE_` is for short strings always shown in UI (like labels of buttons,
menu entries...). Every thing else, especially when more than a couple
of words, must use `TIP_`.

5 weeks agoFix T64608: DOF Focus object, not linked to new copy, Scen "full_copy".
Bastien Montagne [Tue, 11 Jun 2019 18:48:52 +0000 (20:48 +0200)]
Fix T64608: DOF Focus object, not linked to new copy, Scen "full_copy".

Note that there are probably many other similar cases... This code is
really legacy, should use library_query helpers and other modern
BKE_library code instead of doing its own dirty cooking...

5 weeks agoEdit Mode: Fix face alpha being too strong in xray mode
Clément Foucault [Tue, 11 Jun 2019 15:48:06 +0000 (17:48 +0200)]
Edit Mode: Fix face alpha being too strong in xray mode

This make the xray & wireframe follows the same style as the solid
mode.

5 weeks agoFix T65406 Edit Mode: Edge selection is below wireframe overlay
Clément Foucault [Tue, 11 Jun 2019 15:29:31 +0000 (17:29 +0200)]
Fix T65406 Edit Mode: Edge selection is below wireframe overlay

This was due to a double offset of the wireframe. We also reduce
the wireframe offset. The look of the wireframe overlay changes
a little with on distant wires.

5 weeks agoFFmpeg: Fix integer overflow when writing custom FPS with high denominator
Sybren A. Stüvel [Tue, 11 Jun 2019 13:51:39 +0000 (15:51 +0200)]
FFmpeg: Fix integer overflow when writing custom FPS with high denominator

FFmpeg uses a fraction of integers to indicate the frame rate, whereas
Blender uses `int / float`. When a custom frame rate is used with
non-integer base, the FPS and Base settings were multiplied with 100000
before passing to FFmpeg as `int`. This could overflow when a high
enough FPS setting was used, which is the case when importing a video of
almost-but-not-quite-integer frame rate into the VSE. The overflow
caused FFmpeg to return an error "The encoder timebase is not set",
which is rather cryptic for users.

The new solution is to take the max int and divide that by the frame
rate, and use that ratio to pass to FFmpeg. This won't overflow, and
thus allows exporting arbitrary frame rates.

5 weeks agoOpenGL Render: Fix crash when using audio
Sergey Sharybin [Tue, 11 Jun 2019 13:40:03 +0000 (15:40 +0200)]
OpenGL Render: Fix crash when using audio

Was very easy to reproduce by rendering sequencer with sound strip.

Need to use evaluated scene to open movie handle, since that is the only
scene which has proper sound handle with everything else attached to it.

5 weeks agoSound: Fix missing sound sequences length update on FPS change
Sergey Sharybin [Tue, 11 Jun 2019 13:19:32 +0000 (15:19 +0200)]
Sound: Fix missing sound sequences length update on FPS change

5 weeks agoSound: Fix queries of sound info
Sergey Sharybin [Tue, 11 Jun 2019 08:55:13 +0000 (10:55 +0200)]
Sound: Fix queries of sound info

A lot of areas were querying sound information directly using audio handle
which does not exist on an original sound IDs.

This change basically makes it so it's possible to query information about
given sound ID, without worrying about whether it's loaded or not: if it is
needed to load it first it happens automatically (no automatically-opened
handles are left behind though).

While this seems a bit extreme to open files on such queries it is still
better than the old situation when all sound handles were opened on file
load, no matter if it's needed or not. Besides, none of the changed code
paths are performance critical, just handful of tools.

Fixes T65696: Sequencer fails to create a new sound sequence strip via Python
Fixes T65656: Audio strip - SHIFT K crashes Blender

Reviewers: brecht

Reviewed By: brecht

Subscribers: ISS

Maniphest Tasks: T65696, T65656

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

5 weeks agoFix T65671: Armature X-Mirror inconsistencies
mano-wii [Tue, 11 Jun 2019 12:41:18 +0000 (09:41 -0300)]
Fix T65671: Armature X-Mirror inconsistencies

Apparently the `rna_Armature_editbone_transform_update` function was incomplete because it didn't copy all mirrored transform values.

I also noticed that the same logic seen in `rna_Armature_editbone_transform_update` is also seen in `ED_armature_edit_transform_mirror_update`.
So the solution is expose and use that logic that updates a mirrored bone. Thus deduplicating and fixing T65671.

Reviewers: brecht, zeddb

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

5 weeks agoDocumentation: Update description with documentation
Jeroen Bakker [Tue, 11 Jun 2019 12:27:18 +0000 (14:27 +0200)]
Documentation: Update description with documentation

5 weeks agofix T65576 collada exporter duplicates node tree when exported material already uses...
Gaia Clary [Tue, 11 Jun 2019 11:56:31 +0000 (13:56 +0200)]
fix T65576 collada exporter duplicates node tree when exported material already uses nodes

5 weeks agoFix T65702: Load factory erases setting without confirmation
Campbell Barton [Tue, 11 Jun 2019 11:49:05 +0000 (21:49 +1000)]
Fix T65702: Load factory erases setting without confirmation

It could be argued this was correct behavior, since auto-save
defaults to 'on' nevertheless, auto-saving settings once
the user has disabled auto-save can lead to accidents.

Don't reset the preferences flag when resetting preferences.

5 weeks agoFix T65715: Instant crash when grouping strips in VSE
Sergey Sharybin [Tue, 11 Jun 2019 11:22:59 +0000 (13:22 +0200)]
Fix T65715: Instant crash when grouping strips in VSE

5 weeks agoFix T65626: Use Nodes checkbox locks after being checked with "insert keyframe"
Sergey Sharybin [Tue, 11 Jun 2019 09:56:30 +0000 (11:56 +0200)]
Fix T65626: Use Nodes checkbox locks after being checked with "insert keyframe"

Not sure if this is something what is supported by render pipeline, but this report
discovered some actual error in logic.

5 weeks agoSequencer: Fix missing relations and recalc tags in RNA
Sergey Sharybin [Tue, 11 Jun 2019 09:18:47 +0000 (11:18 +0200)]
Sequencer: Fix missing relations and recalc tags in RNA

5 weeks agoFix T65677: Creating a scene sequencer strip with python crash blender
Sergey Sharybin [Tue, 11 Jun 2019 09:15:52 +0000 (11:15 +0200)]
Fix T65677: Creating a scene sequencer strip with python crash blender

5 weeks agoFix extend being ignored for left/right sequencer selection
Campbell Barton [Tue, 11 Jun 2019 08:11:35 +0000 (18:11 +1000)]
Fix extend being ignored for left/right sequencer selection

5 weeks agoKeymap: fix conflict introduced by recent Alt-LMB for scrubbing
Campbell Barton [Tue, 11 Jun 2019 07:44:30 +0000 (17:44 +1000)]
Keymap: fix conflict introduced by recent Alt-LMB for scrubbing

Use Ctrl-Alt modifier for select-left/right.

5 weeks agoFix T65393: Error live editing UI scripts
Campbell Barton [Tue, 11 Jun 2019 06:08:32 +0000 (16:08 +1000)]
Fix T65393: Error live editing UI scripts

Disable relative imports for UI scripts.

5 weeks agoFix panel-type re-registration with parents
Campbell Barton [Tue, 11 Jun 2019 06:01:19 +0000 (16:01 +1000)]
Fix panel-type re-registration with parents

The order of panel types changes when re-registering existing types.
Fixes an error exposed by T65393.

5 weeks agoFix T65470: Scale set to zero after extrude
Campbell Barton [Tue, 11 Jun 2019 03:27:10 +0000 (13:27 +1000)]
Fix T65470: Scale set to zero after extrude

5 weeks agoFix gpencil weight paint mode having no active tool
Campbell Barton [Tue, 11 Jun 2019 02:28:40 +0000 (12:28 +1000)]
Fix gpencil weight paint mode having no active tool

5 weeks agoFix T62875: Tooltips behave erratically with view gizmos
Campbell Barton [Tue, 11 Jun 2019 01:43:48 +0000 (11:43 +1000)]
Fix T62875: Tooltips behave erratically with view gizmos

Improvements to behavior for gizmo tool-tips.

- 2D gizmos no longer cancel tool-tips on cursor motion
  (matching the behavior of UI widgets).

- 3D gizmos still close on motion since 3D gizmos may have a large
  on-screen area which would cause them to stay visible even after the
  cursor has been moved a large distance. The motion threshold is used
  so they don't close on unintended cursor motion.

- Changing highlighted gizmo now cancels the tool-tip & resets the timer.

5 weeks agoFix T65699: gpencil weight paint unresponsive
Campbell Barton [Mon, 10 Jun 2019 23:20:33 +0000 (09:20 +1000)]
Fix T65699: gpencil weight paint unresponsive

5 weeks agoFix T65295: Convert curve to mesh fails with Keep Original.
Bastien Montagne [Mon, 10 Jun 2019 09:06:16 +0000 (11:06 +0200)]
Fix T65295: Convert curve to mesh fails with Keep Original.

This code now expects to wrok from fully evaluated data, however when we
keep original, we are actually working from data just copied from orig
one.

Ideally, we'd do a single depsgraph update/eval *after* we have created
all new required data, but that is tricky to do properly in that code
without risking breaking one thing or another.

So for now, just going for the simple, if not optimal solution, and just
repeatedly re-evaluating whole deg every time we duplicate an object to
be converted. Yep, dummy, but simple and... safe. ;)

5 weeks agoFix: Default keymap was missing Alt-click to scrub in the Graph Editor
William Reynish [Mon, 10 Jun 2019 07:28:58 +0000 (09:28 +0200)]
Fix: Default keymap was missing Alt-click to scrub in the Graph Editor

5 weeks agoFix T65301: Convert to mesh with Keep Original loses adjust operator panel.
Bastien Montagne [Sun, 9 Jun 2019 21:43:33 +0000 (23:43 +0200)]
Fix T65301: Convert to mesh with Keep Original loses adjust operator panel.

That was a dummy typo in `duplibase_for_convert()` in fact...

5 weeks agoRevert "Fix T65301: Convert to mesh with Keep Original loses adjust operator panel."
Bastien Montagne [Sun, 9 Jun 2019 21:39:55 +0000 (23:39 +0200)]
Revert "Fix T65301: Convert to mesh with Keep Original loses adjust operator panel."

This reverts commit rB78bbf374f475 (and part of rB702d85d7cddbf81).

Fix for this is actually simpler, done in next commit.

5 weeks agoFix (unreported) several issues when converting MBall to Mesh.
Bastien Montagne [Sun, 9 Jun 2019 20:56:37 +0000 (22:56 +0200)]
Fix (unreported) several issues when converting MBall to Mesh.

Redo panel would be hidden (when 'keep original' was not set), due to
same kind of (un)selected issue as in T65301 (see previous commit).

Further more, not all MBall objects of the family were properly removed.

5 weeks agoFix T65301: Convert to mesh with Keep Original loses adjust operator panel.
Bastien Montagne [Sun, 9 Jun 2019 20:53:48 +0000 (22:53 +0200)]
Fix T65301: Convert to mesh with Keep Original loses adjust operator panel.

We need to properly select new objects (and deselect 'source' ones) when
converting to another type while keeping original ones. Otherwise poll
check of the operator fails, and redo panel cannot be shown.

Note that this is actually a design flaw in redo system currently, since
*new* state has to still allow last operator to be ran, when it should
actually be previous step in history that matters here...

5 weeks agoFix T65657: crash in float texture painting, after recent changes
Brecht Van Lommel [Sun, 9 Jun 2019 20:03:01 +0000 (22:03 +0200)]
Fix T65657: crash in float texture painting, after recent changes

5 weeks agoFix T65638: memory leak - modifiers on curves.
Bastien Montagne [Sun, 9 Jun 2019 19:11:37 +0000 (21:11 +0200)]
Fix T65638: memory leak - modifiers on curves.

We need to tag the `mesh_eval` of curve as owned, when we generate one,
otherwise freeing code would not free it.

5 weeks agoFix: Build error with clang on windows.
Ray Molenkamp [Sun, 9 Jun 2019 00:10:48 +0000 (18:10 -0600)]
Fix: Build error with clang on windows.

clang does not seem support the static_assert with
message overload.

5 weeks agoIndustry Compat keymap: Fix nodes interaction
William Reynish [Sat, 8 Jun 2019 13:24:47 +0000 (15:24 +0200)]
Industry Compat keymap: Fix nodes interaction

  - Dragging to move, scale and setting links now works normally and correctly

5 weeks agoCleanup: use doxygen sections for 2D view operators
Campbell Barton [Fri, 7 Jun 2019 23:23:11 +0000 (09:23 +1000)]
Cleanup: use doxygen sections for 2D view operators

5 weeks agoFix T65420: Crash in file saved with edit mesh
Dalai Felinto [Fri, 7 Jun 2019 20:15:52 +0000 (17:15 -0300)]
Fix T65420: Crash in file saved with edit mesh

Reviewers: brecht, sergey

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

5 weeks agoCollections: Never change the collection views visibility when unhiding it
Dalai Felinto [Fri, 7 Jun 2019 21:41:37 +0000 (18:41 -0300)]
Collections: Never change the collection views visibility when unhiding it

How to reproduce: use 1-10 to change the visible collection. If the
collection was globally invisible, it would be set to globally visible.

This was a left over from the previous collection visibility design.

Now that we have a more clear separation between temporary visibility
(i.e., layer collection visibiilty) and a global visibility setting
(i.e., collection visibility) we should keep them separated.

5 weeks agoFix T65613: Memory leak in Audaspace with 3D sound
Jörg Müller [Fri, 7 Jun 2019 20:29:52 +0000 (22:29 +0200)]
Fix T65613: Memory leak in Audaspace with 3D sound

5 weeks agoFix T62121: Cycles crash with viewport render and smoke/pointclouds
Brecht Van Lommel [Fri, 7 Jun 2019 19:02:57 +0000 (21:02 +0200)]
Fix T62121: Cycles crash with viewport render and smoke/pointclouds

5 weeks agoCleanup: fix compiler warning
Brecht Van Lommel [Fri, 7 Jun 2019 18:40:06 +0000 (20:40 +0200)]
Cleanup: fix compiler warning

5 weeks agoFix T64625: Eevee image textures with alpha have dark edges
Brecht Van Lommel [Fri, 7 Jun 2019 15:49:58 +0000 (17:49 +0200)]
Fix T64625: Eevee image textures with alpha have dark edges

Now texture storage of images is defined by the alpha mode of the image. The
downside of this is that there can be artifacts near alpha edges where pixels
with zero alpha bleed in. It also adds more code complexity since image textures
are no longer all stored the same way.

This changes allows us to keep using sRGB texture formats, which have edge
darkening when stored with premultiplied alpha. Game engines seems to generally
do the same thing, and we want to be compatible with them.

5 weeks agoFix T65612: Ungroup in Node Editor Crashes
Sergey Sharybin [Fri, 7 Jun 2019 15:45:31 +0000 (17:45 +0200)]
Fix T65612: Ungroup in Node Editor Crashes

5 weeks agoCleanup: Reformat GPencil multiedit frame selection
Antonio Vazquez [Fri, 7 Jun 2019 14:07:32 +0000 (16:07 +0200)]
Cleanup: Reformat GPencil multiedit frame selection

5 weeks agoSound: Fix 3D sound coming from scene strips
Sergey Sharybin [Fri, 7 Jun 2019 13:54:22 +0000 (15:54 +0200)]
Sound: Fix 3D sound coming from scene strips

Need to pull in speakers from scene strips and make sure they
are properly updated.

5 weeks agoSet lower minimum drag thresholds
William Reynish [Fri, 7 Jun 2019 12:29:34 +0000 (14:29 +0200)]
Set lower minimum drag thresholds

Was 3px, but even lower values work too, so setting minimum now to 1px.

5 weeks agoGNUMakeFile: Fix bad command line to generate QTCreator project.
Dmitriy Efimov [Fri, 7 Jun 2019 12:19:56 +0000 (14:19 +0200)]
GNUMakeFile: Fix bad command line to generate QTCreator project.

Report with fix in D5035 by Dmitriy Efimov (@DarkDemiurg), thanks.

5 weeks agoEevee: Try to fix NaN caused by normal maps + bentnormals
Clément Foucault [Fri, 7 Jun 2019 11:53:30 +0000 (13:53 +0200)]
Eevee: Try to fix NaN caused by normal maps + bentnormals

Should help with T65118.