blender.git
3 months agoMerge branch 'blender2.7'
Brecht Van Lommel [Tue, 5 Mar 2019 18:14:00 +0000 (19:14 +0100)]
Merge branch 'blender2.7'

3 months agoFix T62112: wrong curve face count
Jacques Lucke [Tue, 5 Mar 2019 18:06:59 +0000 (19:06 +0100)]
Fix T62112: wrong curve face count

Reviewers: brecht

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

3 months agoCleanup: add asserts to catch cases where wrong attribute type is used.
Brecht Van Lommel [Tue, 5 Mar 2019 17:49:47 +0000 (18:49 +0100)]
Cleanup: add asserts to catch cases where wrong attribute type is used.

3 months agoFix T61778: Crash when adding material slot to object
Clément Foucault [Tue, 5 Mar 2019 17:58:22 +0000 (18:58 +0100)]
Fix T61778: Crash when adding material slot to object

For some reason the mat_nr can be superior to the number of material slots
present on an object. Just cap this number to the max available slot.

3 months agoFix Cycles bug rendering with multiple UV maps after recent changes.
Brecht Van Lommel [Tue, 5 Mar 2019 17:39:55 +0000 (18:39 +0100)]
Fix Cycles bug rendering with multiple UV maps after recent changes.

3 months agoGPUMaterial: Make Shader Output nodes inside nodegroups work
Clément Foucault [Tue, 5 Mar 2019 16:24:31 +0000 (17:24 +0100)]
GPUMaterial: Make Shader Output nodes inside nodegroups work

Works as expected and mimics Cycles behavior.

The patch is a bit hacky: In order to not touch the lower level function,
we search for the active output inside groups (recursively) and the first
valid one is then copied (or extracted if you want) in the previous parent
nodetree. So we recursively extract the output node back to the main
nodetree while preserving the links through the nodegroups interfaces.

This way everything works as expected in gpu tree evaluation and bsdf
tagging.

Fix T61869 Material Output Node Inside Node Group Renders Pink in Eevee

3 months agoDRW: Fix rasterizer discard messing with clear commands
Clément Foucault [Tue, 5 Mar 2019 15:42:18 +0000 (16:42 +0100)]
DRW: Fix rasterizer discard messing with clear commands

Fixes T62179 Viewport Ghosting on rigs

3 months agoBLI_memiter: use ASAN memory poison
Campbell Barton [Tue, 5 Mar 2019 16:16:38 +0000 (03:16 +1100)]
BLI_memiter: use ASAN memory poison

Detects invalid memory use when WITH_COMPILER_ASAN is enabled.

3 months agoUI: Nicer report when trying to edit external libraries
Pablo Vazquez [Tue, 5 Mar 2019 16:06:11 +0000 (17:06 +0100)]
UI: Nicer report when trying to edit external libraries

Rename 'libdata' to 'library data'.

3 months agoCleanup: warning in release builds
Campbell Barton [Tue, 5 Mar 2019 15:48:51 +0000 (02:48 +1100)]
Cleanup: warning in release builds

3 months agoFix T62208: constant detail picker not taking object scale into account
Jacques Lucke [Tue, 5 Mar 2019 15:44:37 +0000 (16:44 +0100)]
Fix T62208: constant detail picker not taking object scale into account

3 months agoDRW: use memiter for on screen text allocation
Campbell Barton [Tue, 5 Mar 2019 15:34:30 +0000 (02:34 +1100)]
DRW: use memiter for on screen text allocation

Avoid allocation for each string,
improves redraw speed for text heavy views.

A contrived test showed FPS ~18.5% speedup but this doesn't represent
typical usage.

3 months agoFix T62210: endless loop in kd tree lookup
Jacques Lucke [Tue, 5 Mar 2019 15:20:43 +0000 (16:20 +0100)]
Fix T62210: endless loop in kd tree lookup

The problem was that `balance` expected that all node children
are set to `KD_NODE_UNSET` by default.
However, this might not be the case when `balance` is called
more than once.

The balance function might change the order of nodes even
when no new point has been inserted.

3 months agoRNA: remove Screen.layout_name
Campbell Barton [Tue, 5 Mar 2019 14:48:43 +0000 (01:48 +1100)]
RNA: remove Screen.layout_name

This is no longer used.

3 months agoCycles: Changed standalone XML parser to read UV as float2
Stefan Werner [Tue, 5 Mar 2019 14:25:36 +0000 (15:25 +0100)]
Cycles: Changed standalone XML parser to read UV as float2

3 months agoDRW: support clipping for bone verts
Campbell Barton [Tue, 5 Mar 2019 14:14:13 +0000 (01:14 +1100)]
DRW: support clipping for bone verts

3 months agoTool System: add select tools to particle edit
Campbell Barton [Tue, 5 Mar 2019 13:28:06 +0000 (00:28 +1100)]
Tool System: add select tools to particle edit

3 months agoFix T62163: Duplicating particle system results in crash
Jacques Lucke [Tue, 5 Mar 2019 14:24:54 +0000 (15:24 +0100)]
Fix T62163: Duplicating particle system results in crash

There were two problems:
1. `mesh_get_eval_final` has to be called with the evaluated object.
2. Particle systems have to have unique names within an object.
The depsgraph seems to use the particle system name as identifier.
This issue is actually independent of duplication.
The old code used a small hack to create unique names.

Reviewers: brecht

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

3 months agoGPencil: Disable proportional for Duplicate
Antonioya [Tue, 5 Mar 2019 14:11:55 +0000 (15:11 +0100)]
GPencil: Disable proportional for Duplicate

When duplicates a stroke using Shift+D, the proportional must be disabled.

3 months agoMerge branch 'blender2.7'
Stefan Werner [Tue, 5 Mar 2019 14:06:09 +0000 (15:06 +0100)]
Merge branch 'blender2.7'

3 months agoCycles: Added Float2 attribute type.
Brecht Van Lommel [Tue, 5 Mar 2019 13:54:54 +0000 (14:54 +0100)]
Cycles: Added Float2 attribute type.

Float2 are now a new type for attributes in Cycles. Before, the choices
for attribute storage were float and float3, the latter padded to
float4. This meant that UV maps were inflated to twice the size
necessary.

Reviewers: brecht, sergey

Reviewed By: brecht

Subscribers: #cycles

Tags: #cycles

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

3 months agoFix T62216: order of items flipped in some menus like object mode.
Brecht Van Lommel [Tue, 5 Mar 2019 13:35:52 +0000 (14:35 +0100)]
Fix T62216: order of items flipped in some menus like object mode.

3 months agoFix T61796: Linking a collection with instances inside will place the instanced objec...
Bastien Montagne [Tue, 5 Mar 2019 13:39:43 +0000 (14:39 +0100)]
Fix T61796: Linking a collection with instances inside will place the instanced object in the scene.

Do not force to link indirectly linked collections into current scene,
that is usually not desired. Note that user can always add this link
manually if they want.

All this 'implicit instantiation' post-linking process is rather hairy
to get it correct, hope this time it's not breaking something else...

3 months agoMerge branch 'blender2.7'
Jeroen Bakker [Tue, 5 Mar 2019 13:26:28 +0000 (14:26 +0100)]
Merge branch 'blender2.7'

3 months agoFix T58953: Lamp data not always set
Jeroen Bakker [Tue, 5 Mar 2019 13:22:54 +0000 (14:22 +0100)]
Fix T58953: Lamp data not always set

The Lamp data was not always set. When using CUDA or CPU it was, but when using OpenCL
without `OBJECT_MOTION` `sd->lamp` not updated to the actual lamp. This made the
TextureCoordinate output the wrong normal when used in a light shader.

As the normal was incorrect it made the IES node render incorrectly.
(what is the default for the IES node).

By setting the lamp data when no `__OBJECT_MOTION__` compile directive is present makes
sure that the normal is correctly calculated.

Fix D4450

Reviewed By: Brecht van Lommel

3 months agoFix T61780: Crash when trying to access screen areas through the outliner.
Bastien Montagne [Tue, 5 Mar 2019 13:06:19 +0000 (14:06 +0100)]
Fix T61780: Crash when trying to access screen areas through the outliner.

ScreenArea->type is NULL-ified on read, and need to be initialized
(usually by `ED_area_initialize()`), but RNA can also access it before
it happens, so need to do it itself...

3 months agoFix upside down tool menus
Campbell Barton [Tue, 5 Mar 2019 12:51:10 +0000 (23:51 +1100)]
Fix upside down tool menus

Regression from 4dd575e5ab55e153f8

3 months agoTool System: add node circle select tool
Campbell Barton [Tue, 5 Mar 2019 12:29:49 +0000 (23:29 +1100)]
Tool System: add node circle select tool

3 months agoFix T62202: circle select does not work on hair points
Jacques Lucke [Tue, 5 Mar 2019 12:13:04 +0000 (23:13 +1100)]
Fix T62202: circle select does not work on hair points

3 months agoFix parenting objects to bones/vertices causes offset
Philipp Oeser [Tue, 5 Feb 2019 14:43:34 +0000 (15:43 +0100)]
Fix parenting objects to bones/vertices causes offset

This reverts part of rBbc5482337669.
Problem with above commit is that the evaluated object seems to not have
partype, par1, par2, par3 copied from the original (yet). Using original
object instead now.
Second issue (when parenting to 'Bone Relative') is that the bones
BONE_RELATIVE_PARENTING flag is set on the original, but not the
evaluated bone (yet), setting this on both now.

Fixes T60623 (and part of T59352)

Reviewers: brecht, sergey

Maniphest Tasks: T60623

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

3 months agoFix T60585: threadripper CPU only using 16 threads for e.g. sculpting.
Brecht Van Lommel [Tue, 5 Mar 2019 11:43:40 +0000 (12:43 +0100)]
Fix T60585: threadripper CPU only using 16 threads for e.g. sculpting.

This reverts the changes from ce927e1 to put the main and job threads on
node 0. The problem is that all threads created as children from these
threads will inherit the NUMA node and so will end up on the same node.
This can be fixed case-by-case by assigning the NUMA node for every child
thread, however this is difficult for external libraries and OpenMP, and
out of our control for plugins like external renderers.

3 months agoTool System: use set/add/subtract for all circle select operators
Campbell Barton [Tue, 5 Mar 2019 11:26:45 +0000 (22:26 +1100)]
Tool System: use set/add/subtract for all circle select operators

This applies changes from the 3D view circle select to other operators.

3 months agoGPencil: Cleanup compiler warnings
Antonioya [Tue, 5 Mar 2019 11:10:34 +0000 (12:10 +0100)]
GPencil: Cleanup compiler warnings

3 months agoFix T62194: Blender crash after makingnew file after using Grease Pencil.
Antonioya [Tue, 5 Mar 2019 11:06:37 +0000 (12:06 +0100)]
Fix T62194: Blender crash after makingnew file after using Grease Pencil.

The crash was detected in draw_manager, but the real problem was a wrong pointer that corrupted the struct, so the free function failed.

Redesign this area to keep pointer correct all the time.

3 months agoFix T62190: Image editor pixel values are hidden by header at the bottom
Philipp Oeser [Tue, 5 Mar 2019 09:39:42 +0000 (10:39 +0100)]
Fix T62190: Image editor pixel values are hidden by header at the bottom

since header regions can possibly overlap, accommodate by getting main
regions visible rect first.

Reviewers: sergey, brecht

Maniphest Tasks: T62190

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

3 months agoGPencil: Don't create framebuffers for selection
Antonioya [Tue, 5 Mar 2019 09:52:33 +0000 (10:52 +0100)]
GPencil: Don't create framebuffers for selection

The selction use it's own frambuffers.

3 months agoFix T61763: Crash on selecting "Background Scene"
Sergey Sharybin [Tue, 5 Mar 2019 09:22:14 +0000 (10:22 +0100)]
Fix T61763: Crash on selecting "Background Scene"

Memory optimization in dependency graph was using wrong view layer
for the scene which came via set.

3 months agoGP: move select all into a utility function
Campbell Barton [Tue, 5 Mar 2019 07:37:33 +0000 (18:37 +1100)]
GP: move select all into a utility function

3 months agoCemara tracking: move select all into a utility function
Campbell Barton [Tue, 5 Mar 2019 07:33:09 +0000 (18:33 +1100)]
Cemara tracking: move select all into a utility function

3 months agoNodes: move select all into a utility function
Campbell Barton [Tue, 5 Mar 2019 07:30:06 +0000 (18:30 +1100)]
Nodes: move select all into a utility function

3 months agoCleanup: move keymap circle select items to template
Campbell Barton [Tue, 5 Mar 2019 04:47:56 +0000 (15:47 +1100)]
Cleanup: move keymap circle select items to template

3 months agoCleanup: rename RENDER_OVERRIDE -> HIDE_OVERLAYS
Campbell Barton [Tue, 5 Mar 2019 04:09:25 +0000 (15:09 +1100)]
Cleanup: rename RENDER_OVERRIDE -> HIDE_OVERLAYS

Match the UI naming (changed since 2.7x).

3 months agoFix T62159: Poly build crashes w/o overlays
Campbell Barton [Tue, 5 Mar 2019 04:02:39 +0000 (15:02 +1100)]
Fix T62159: Poly build crashes w/o overlays

3 months ago3D View: move pre-select mesh element access into gizmo API
Campbell Barton [Tue, 5 Mar 2019 03:40:33 +0000 (14:40 +1100)]
3D View: move pre-select mesh element access into gizmo API

3 months agoFix T62199: Incorrect bpy.data.screens behavior
Campbell Barton [Tue, 5 Mar 2019 01:51:05 +0000 (12:51 +1100)]
Fix T62199: Incorrect bpy.data.screens behavior

The screen identifier was set to the "layout_name" which isn't
guaranteed to be unique or even exist.

This meant `bpy.data.screens.keys()` could have duplicate keys,
even when not duplicated, these keys couldn't be used for
`bpy.data.screen[key]` access because internally ID's use names for
collection look-ups.

Make screens match other ID's, using the ID.name as the identifier.

Note: this change was from the initial workspace commit 7f564d74f9edaaa
Since then the layout selector has been removed so this isn't needed.

3 months agoCleanup: minor adjustment to gizmo extrude setup
Campbell Barton [Tue, 5 Mar 2019 00:32:46 +0000 (11:32 +1100)]
Cleanup: minor adjustment to gizmo extrude setup

No need to access both edit & active object.

3 months agoGPencil: Fix error in 3D Location mode
Antonioya [Mon, 4 Mar 2019 19:56:54 +0000 (20:56 +0100)]
GPencil: Fix error in 3D Location mode

In previous commit introduced this bug. The flag was inverted and the mode was not working.

3 months agoAnnotations: Reduce smooth factor to 0.5
Antonioya [Mon, 4 Mar 2019 19:38:03 +0000 (20:38 +0100)]
Annotations: Reduce smooth factor to 0.5

The previous value was too high and deform too much if write text.

3 months agoGPencil: New extrude operator
Antonioya [Mon, 4 Mar 2019 18:31:36 +0000 (19:31 +0100)]
GPencil: New extrude operator

Keymap: E   - Extrude Gizmo supported.

If the extrude points are the first or last of the stroke, the stroke is extended.

If the extrude points are in the middle of the stroke, a new stroke is created because the grease pencil strokes can be only with 2 extremes and fold the stroke to get a new point gets very bad results.

Still pending define a new icon. Also, it could be good to set by default XYZ axis in the gizmo.

Note: There is a change in the transform_gizmo_extrude_3d.c gizmo for OB_MODE_EDIT_GPENCIL. This change must be undo when the mode will be integrated into OB_MODE_EDIT, but while we have both modes, we need to keep this code in order to keep running the gizmo.

3 months agoPreferences: Remove "requires restart" from multisample tooltips
Clément Foucault [Mon, 4 Mar 2019 18:16:53 +0000 (19:16 +0100)]
Preferences: Remove "requires restart" from multisample tooltips

It does not make sense now that we uses FBOs for that.

3 months agoPreferences: Add option to disable edit-mode wire Antialiasing
Clément Foucault [Mon, 4 Mar 2019 18:15:18 +0000 (19:15 +0100)]
Preferences: Add option to disable edit-mode wire Antialiasing

Requested by some users who prefer old wireframe precision.

Smooth wires are still enabled by defaults as they don't have a noticeable
perf impact.

Application restart is needed for changes to take effects.

3 months agoFix T59140 : Loose edges of final mesh does not display in edit mode
Clément Foucault [Mon, 4 Mar 2019 16:35:45 +0000 (17:35 +0100)]
Fix T59140 : Loose edges of final mesh does not display in edit mode

3 months agoDNA: optimize data reconstruction
Campbell Barton [Mon, 4 Mar 2019 13:44:09 +0000 (00:44 +1100)]
DNA: optimize data reconstruction

Cache the result of DNA_elem_array_size which was being called
for each element when reconstructing each struct.

Also skip padding members during reconstruction.

Gives ~18% overall speedup loading 10_010_A.anim.blend (r3154)
from the spring project.# Please enter the commit message for your changes. Lines starting

Note, this was reverted recently because it caused T62181
Changes to DNA_sdna_patch_struct_member_nr were needed which
caused issues loading old 2.8x files.

3 months agoGPencil: Cleanup value to enum name
Antonioya [Mon, 4 Mar 2019 16:09:20 +0000 (17:09 +0100)]
GPencil: Cleanup value to enum name

3 months agoGPencil: Move Object Depth Order to Object
Antonioya [Mon, 4 Mar 2019 16:05:44 +0000 (17:05 +0100)]
GPencil: Move Object Depth Order to Object

There was a conflict between Object "In Front" and how the strokes were managed in Stroke panel for grease pencil datablock.

In order to keep consistency, the order of the object has been moved to Object level and now it's using the standard "In Front" flag. As all it is 3D, the option "Back" has been removed.

This also fixes the problem with task T62137.

Also related to commit 54ffc4e19dc4 and D4405

3 months agoMerge branch 'blender2.7'
Sergey Sharybin [Mon, 4 Mar 2019 15:54:19 +0000 (16:54 +0100)]
Merge branch 'blender2.7'

3 months agoFixup for fix for OSX build using a build folder name with spaces
Dalai Felinto [Fri, 1 Mar 2019 20:07:06 +0000 (17:07 -0300)]
Fixup for fix for OSX build using a build folder name with spaces

Bug introduced on: 1f22e3f311e74031c3c01714117d759d3e3de3f1.
This was making regular Mac builds to fail, where they were not failing before.

Tested by William Reynish.

3 months agoFix T62175: Crash on Undo.
Bastien Montagne [Mon, 4 Mar 2019 15:44:33 +0000 (16:44 +0100)]
Fix T62175: Crash on Undo.

Again nodetree broken code... as usual...

3 months agoFix T62134: duplicating a material won't update node group's node tree user count...
Bastien Montagne [Mon, 4 Mar 2019 15:14:36 +0000 (16:14 +0100)]
Fix T62134: duplicating a material won't update node group's node tree user count anymore.

Yet again we have to twist and curl like insane worms to cope with
IDs-not-in-main infamous issue... :(

3 months agoMerge branch 'blender2.7'
Brecht Van Lommel [Mon, 4 Mar 2019 15:08:09 +0000 (16:08 +0100)]
Merge branch 'blender2.7'

3 months agoUI: make text editor Text menu consistent with menus for .blend and images.
Brecht Van Lommel [Mon, 4 Mar 2019 14:24:23 +0000 (15:24 +0100)]
UI: make text editor Text menu consistent with menus for .blend and images.

3 months agoFix missing image editor redraw when reloading image through API.
Brecht Van Lommel [Mon, 4 Mar 2019 15:04:24 +0000 (16:04 +0100)]
Fix missing image editor redraw when reloading image through API.

3 months agoFix Cycles animation denoising giving black pixels for some outliers.
Brecht Van Lommel [Mon, 4 Mar 2019 15:01:11 +0000 (16:01 +0100)]
Fix Cycles animation denoising giving black pixels for some outliers.

The denoising code expects the output buffer to be filled with the noisy
image, which was not the case for standalone denoising.

3 months agoTexture Paint: round corners of dilated UV seams
Luca Rood [Mon, 4 Mar 2019 14:53:36 +0000 (01:53 +1100)]
Texture Paint: round corners of dilated UV seams

This fixes the issue of long spikes on sharp corners by rounding them,
guaranteeing that the bleed will never exceed the bleed distance
set by the user in any part of the mesh.

See: D4437

3 months agoFix texture paint UV dilation algorithm
Luca Rood [Mon, 4 Mar 2019 14:24:47 +0000 (01:24 +1100)]
Fix texture paint UV dilation algorithm

Two aspects are addressed:

- Correct computation of dilation distance,
  so that dilated boundaries remain parallel to the original boundaries
  (and with the actual distance specified as bleed distance).

- Dilate with regard to adjacent seams
  instead of adjacent triangle edges, for a more correct result.
  This is especially important in the case of concave shapes,
  where spikes could overlap with actual geometry.

See: D4436

3 months agoFix early output check in movie clip prefetch
Sergey Sharybin [Mon, 4 Mar 2019 14:22:14 +0000 (15:22 +0100)]
Fix early output check in movie clip prefetch

Was preventing prefetching when clip is offset to a
higher scene frame number than a duration of the clip.

3 months agoFix/workaround T62167: Random crash when displaying wireframes.
mano-wii [Mon, 4 Mar 2019 13:18:57 +0000 (10:18 -0300)]
Fix/workaround T62167: Random crash when displaying wireframes.

Some old AMD drivers crash when a vbo with stride 1 is used a few times.
I have not found a real solution to this problem. So the solution was to use a vbo with stride 4 (which in theory is less efficient and takes up more memory space).

3 months agoRevert "DNA: optimize data reconstruction"
Campbell Barton [Mon, 4 Mar 2019 13:20:31 +0000 (00:20 +1100)]
Revert "DNA: optimize data reconstruction"

This reverts commit 657205530cc680012734200a8babd6232be5ee92.

This caused an T62181, looking into fix but revert for now.

3 months agoFix T62140: GPencil line segment disappears
Charlie Jolly [Mon, 4 Mar 2019 12:13:35 +0000 (12:13 +0000)]
Fix T62140: GPencil line segment disappears

Remove code for when edge count is 2.

3 months agoOutliner: better support for paintcurves ('Blender File' view)
Philipp Oeser [Mon, 4 Mar 2019 10:51:11 +0000 (11:51 +0100)]
Outliner: better support for paintcurves ('Blender File' view)

- paintcurves were hitting an assert in outliner_add_element()
- missing outliner update when adding a paintcurve
- paintcurves were not showing an icon [they dont have a dedicated icon,
took the one used elsewhere]

Reviewers: brecht

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

3 months agoCleanup: indentation, style
Campbell Barton [Mon, 4 Mar 2019 11:09:55 +0000 (22:09 +1100)]
Cleanup: indentation, style

3 months agoCleanup: use single quotes for enums
Campbell Barton [Mon, 4 Mar 2019 11:06:23 +0000 (22:06 +1100)]
Cleanup: use single quotes for enums

3 months agoMerge branch 'blender2.7'
Sergey Sharybin [Mon, 4 Mar 2019 11:00:02 +0000 (12:00 +0100)]
Merge branch 'blender2.7'

3 months agoFix bad level calls
Sergey Sharybin [Mon, 4 Mar 2019 10:58:37 +0000 (11:58 +0100)]
Fix bad level calls

3 months agoFix T62009: ԥ abkhazian letter shows as a square in Blender.
Bastien Montagne [Mon, 4 Mar 2019 10:53:29 +0000 (11:53 +0100)]
Fix T62009: ԥ abkhazian letter shows as a square in Blender.

Added all 'Extended Cyrillic' chars I found in DejaVuSans (unfortunately
that one does not have the complete set).

Note: At some point we might want to switch to some more modern solution
than our Frankenstein font (thinking about noto one)...

3 months agoCycles: Store various render stages timings
Sergey Sharybin [Mon, 4 Mar 2019 10:31:20 +0000 (11:31 +0100)]
Cycles: Store various render stages timings

Includes time spent on synchronization and time spent on just
path tracing/denoising.

3 months agoShow metadata for rendered images
Sergey Sharybin [Mon, 4 Mar 2019 10:29:55 +0000 (11:29 +0100)]
Show metadata for rendered images

Previously metadata was only shown for images which are saved
to disk.

This change makes it so that it's possible to see metadata right
after pressing F12.

3 months agoCleanup: Indentation
Sergey Sharybin [Mon, 4 Mar 2019 08:51:36 +0000 (09:51 +0100)]
Cleanup: Indentation

3 months agoAdd Thai language entry (hidden for until we get some translation).
Bastien Montagne [Mon, 4 Mar 2019 09:46:15 +0000 (10:46 +0100)]
Add Thai language entry (hidden for until we get some translation).

3 months agoFix T62113: Color Management Curves CRGB buttons missing
Sebastian Parborg [Mon, 4 Mar 2019 09:44:40 +0000 (10:44 +0100)]
Fix T62113: Color Management Curves CRGB buttons missing

Template was missing a type="COLOR" definition.

3 months agoUI: Add descriptive tooltip to Curve Radius tool
William Reynish [Mon, 4 Mar 2019 09:26:27 +0000 (10:26 +0100)]
UI: Add descriptive tooltip to Curve Radius tool

Was previously just using generic transform tooltip.

3 months agoUI: Rename Shrink/Fatten in curve contextual menu to fit with recent tool name change
William Reynish [Mon, 4 Mar 2019 09:17:45 +0000 (10:17 +0100)]
UI: Rename Shrink/Fatten in curve contextual menu to fit with recent tool name change

3 months agoCleanup: typo in comment
Philipp Oeser [Mon, 4 Mar 2019 09:13:52 +0000 (10:13 +0100)]
Cleanup: typo in comment

spotted by @miclack, thx!

3 months agoFix unreported: Shrink/Fatten in Curve Transform menu fails because it was calling...
William Reynish [Mon, 4 Mar 2019 09:13:49 +0000 (10:13 +0100)]
Fix unreported: Shrink/Fatten in Curve Transform menu fails because it was calling the mesh edit mode operator

3 months agoUI: Move paint context menus to panels
Campbell Barton [Mon, 4 Mar 2019 09:10:11 +0000 (20:10 +1100)]
UI: Move paint context menus to panels

See proposal: T62130

3 months agoTools: Rename Curve Shrink/Fatten to Radius
William Reynish [Mon, 4 Mar 2019 08:50:59 +0000 (09:50 +0100)]
Tools: Rename Curve Shrink/Fatten to Radius

This is fundamentally different from Shrink/Fatten for meshes, because the control points are not moved, only the radius.
Issue raised by Ronan Ducluzeau, name suggested by Campbell Barton

3 months agoIcons: only use macOS override if blender not found
Campbell Barton [Mon, 4 Mar 2019 08:37:46 +0000 (19:37 +1100)]
Icons: only use macOS override if blender not found

Otherwise `make icons_geom BLENDER_BIN=...` doesn't work as documented.

3 months agoDRW: Remove unecessary state changes
Clément Foucault [Mon, 4 Mar 2019 00:29:29 +0000 (01:29 +0100)]
DRW: Remove unecessary state changes

The TODO is old and the issue does not seems to appear anymore.

If bugs emerge from this commit it's most likely to be a bad usage of the
API.

3 months agoDRW: Fix matflag not being updated after first drawcall
Clément Foucault [Mon, 4 Mar 2019 00:14:51 +0000 (01:14 +0100)]
DRW: Fix matflag not being updated after first drawcall

This Fixes T61823: Flickering material problem with eevee

3 months agoFix T62076: Delete Active Scene Freezes Blender.
Bastien Montagne [Sun, 3 Mar 2019 20:59:28 +0000 (21:59 +0100)]
Fix T62076: Delete Active Scene Freezes Blender.

Not sure where that piece of code originates from, but trying to remap
usages of deleted scene to newly active scene in *whole* bmain is
really, really not the thing to do! Just use generic ID deletion code
here, no reason it could not handle the task properly. ;)

3 months agoFix (unreported) missing handling of 'never self' ID pointers in library_query and...
Bastien Montagne [Sun, 3 Mar 2019 20:56:38 +0000 (21:56 +0100)]
Fix (unreported) missing handling of 'never self' ID pointers in library_query and library_remap codes.

Looks like something forgotten at some point, define in callback flags
was there, just not used at all.

Added most obvious cases now (we are probably still missing some), and
proper handling for it in remapping code (when we hit such case, we
'convert' new_id to NULL and go on with it).

Related (as in, exposed by) T62076, but not the actual cause of that bug.

3 months agoFix T62064: Linked object made by Make Links isn't showed in the scene you linked to.
Bastien Montagne [Sun, 3 Mar 2019 20:14:19 +0000 (21:14 +0100)]
Fix T62064: Linked object made by Make Links isn't showed in the scene you linked to.

Usual missing DEG relations rebuild tagging...

3 months agoTweaks to icons for curve shrink/fatten & tilt
William Reynish [Sun, 3 Mar 2019 19:38:22 +0000 (20:38 +0100)]
Tweaks to icons for curve shrink/fatten & tilt

3 months agoTools: Add Randomize to Curve Edit toolbar
William Reynish [Sun, 3 Mar 2019 19:37:47 +0000 (20:37 +0100)]
Tools: Add Randomize to Curve Edit toolbar

3 months agoAnnotations: Make strokes smoother
Antonioya [Sun, 3 Mar 2019 18:55:39 +0000 (19:55 +0100)]
Annotations: Make strokes smoother

When move the mouse/pen very fast, the events were not enough to create smooth strokes.

I have used a simplified version of the same logic used with grease pencil objects to smooth annotations.

3 months agoIcons: Make blender_icons_geom_update.py support macOS
William Reynish [Sun, 3 Mar 2019 18:02:14 +0000 (19:02 +0100)]
Icons: Make blender_icons_geom_update.py support macOS

3 months agoDNA: optimize data reconstruction
Campbell Barton [Sun, 3 Mar 2019 15:33:16 +0000 (02:33 +1100)]
DNA: optimize data reconstruction

Cache the result of DNA_elem_array_size which was being called
for each element when reconstructing each struct.

Also skip padding members during reconstruction.

Gives ~18% overall speedup loading 10_010_A.anim.blend (r3154)
from the spring project.

3 months agoDNA: rename BezTriple alfa to tilt
Campbell Barton [Sun, 3 Mar 2019 14:14:27 +0000 (01:14 +1100)]
DNA: rename BezTriple alfa to tilt

3 months agoCleanup: rename FileData.listbase -> bhead_list
Campbell Barton [Sun, 3 Mar 2019 14:01:52 +0000 (01:01 +1100)]
Cleanup: rename FileData.listbase -> bhead_list

Having the name matching the type isn't so meaningful.

3 months agoUI: subtle outline for negative 3D view gizmo axes
Campbell Barton [Sun, 3 Mar 2019 13:48:34 +0000 (00:48 +1100)]
UI: subtle outline for negative 3D view gizmo axes

Without this they can blend in visually with the backdrop of the gizmo.