17 months agoMerge branch 'blender2.7'
Brecht Van Lommel [Thu, 28 Feb 2019 18:17:54 +0000 (19:17 +0100)]
Merge branch 'blender2.7'

17 months agoFix T60366: texture paint slots not updating when editing material.
Brecht Van Lommel [Thu, 28 Feb 2019 13:09:19 +0000 (14:09 +0100)]
Fix T60366: texture paint slots not updating when editing material.

Now always refresh when the material changes. Depsgraph tag moved out
of the refresh function since that gets called on depsgraph update,
which should not trigger a second depsgraph update.

17 months agoFix Cycles animation denoising not working for files on a network drive.
Brecht Van Lommel [Thu, 28 Feb 2019 18:15:40 +0000 (19:15 +0100)]
Fix Cycles animation denoising not working for files on a network drive.

Can't do cross-device renaming, so put temporary file in same folder as
output file.

17 months agoUI: 3D View 'Add' Menu tweaks
Pablo Vazquez [Thu, 28 Feb 2019 17:53:49 +0000 (18:53 +0100)]
UI: 3D View 'Add' Menu tweaks

* Remove single item Armature sub-menu. Add Armature straight away, unless the menu is expanded (like with Rigify enabled)
* Group Light and Light Probe between separators
* Move the lesser used Speaker item below Camera

17 months agoDepsgraph: Fix wrong disabled bases deletion
Sergey Sharybin [Thu, 28 Feb 2019 17:47:07 +0000 (18:47 +0100)]
Depsgraph: Fix wrong disabled bases deletion

Original optimization idea was wrong: it is possible that some other
ID would reference an object which is also used by a base.

Rolled back to a bit more fragile solution.

In the future would be nice to make it somewhat less duplicated with
the builder itself.

Fixes assert failure (and possibly crashes) when adding grease pencil
object and switching to a draw mode.

17 months agoCleanup: Snake style in depsgraph
Sergey Sharybin [Thu, 28 Feb 2019 17:39:55 +0000 (18:39 +0100)]
Cleanup: Snake style in depsgraph

While it's kind of common to use camel case in C++ this is not
currently agreed style for C++ in Blender.

Got confused by working on other areas with 3rd party libraries.

17 months agoUI: Contextual menus
William Reynish [Thu, 28 Feb 2019 17:09:32 +0000 (18:09 +0100)]
UI: Contextual menus

-Rename 'Specials' menus to 'Context' menus for Grease Pencil
-Make Grease Pencil contextual menus follow the design of the regular contextual menus more
-Add more useful operators to the contextual menus in the paint modes

17 months agoFix T62012: Non-animated property, stuck in previously keyframed values
Sergey Sharybin [Thu, 28 Feb 2019 17:08:22 +0000 (18:08 +0100)]
Fix T62012: Non-animated property, stuck in previously keyframed values

Was missing ID recalc tag.

17 months agoGPencil: Rename variable name and add alpha to outline
Antonioya [Thu, 28 Feb 2019 15:11:30 +0000 (16:11 +0100)]
GPencil: Rename variable name and add alpha to outline

The outline now has some alpha to be more consistent with other Blender areas.

17 months agoGPencil: Disable Outline if Overlay is disabled
Antonioya [Thu, 28 Feb 2019 14:58:03 +0000 (15:58 +0100)]
GPencil: Disable Outline if Overlay is disabled

The main overlay switch and outline option must be checked.

17 months agoGPencil: Remove comment line added by error to header text
Antonioya [Thu, 28 Feb 2019 11:23:58 +0000 (12:23 +0100)]
GPencil: Remove comment line added by error to header text

This line was added accidentally in the header text.

17 months agoGPencil: Increase outline to 2 pixels
Antonioya [Thu, 28 Feb 2019 11:12:52 +0000 (12:12 +0100)]
GPencil: Increase outline to 2 pixels

The selection outline of 1 pixel was too thin.

17 months agoGPencil: Hide selecction outline when play animation
Antonioya [Thu, 28 Feb 2019 10:45:23 +0000 (11:45 +0100)]
GPencil: Hide selecction outline when play animation

17 months agoGPencil: Draw Outline to Active and Selected objects
Antonioya [Thu, 28 Feb 2019 09:47:57 +0000 (10:47 +0100)]
GPencil: Draw Outline to Active and Selected objects

Now an outline is drawn when the grease pencil is selected.

17 months agoGPencil: Remove dummy marker for Grease Pencil objects
Antonioya [Wed, 27 Feb 2019 19:46:04 +0000 (20:46 +0100)]
GPencil: Remove dummy marker for Grease Pencil objects

After adding selecction using strokes, the dummy is not required because it was added as a provisional solution while we implement stroke selection.

17 months agoGPencil: Add selection support for objects using strokes
Antonioya [Wed, 27 Feb 2019 18:49:16 +0000 (19:49 +0100)]
GPencil: Add selection support for objects using strokes

Now it's possible to select a grease pencil object without using the dummy.

17 months agoWonky Menu Down Arrow
Pablo Vazquez [Thu, 28 Feb 2019 16:01:35 +0000 (17:01 +0100)]
Wonky Menu Down Arrow

Almost every pulldown menu and popover has a little dropdown arrow shape.

Unfortunately it is a bit wonky.  The top of the right side of it is wider than the top of the left side. And both sides are narrower at the bottom than the top. It might be hard to see, but this image should help:


The patch fixes the symmetry of the shape while keeping the weight as similar as possible. In the following image you can see the outline of the current version in red and this new version in green.


With patch applied the arrow looks perfect:


Reviewers: brecht, billreynish

Reviewed By: billreynish

Subscribers: pablovazquez

Tags: #bf_blender, #bf_blender_2.8, #user_interface

Differential Revision:

17 months agoRevert "Objects: Remove Textured from object display type"
Clément Foucault [Thu, 28 Feb 2019 15:51:10 +0000 (16:51 +0100)]
Revert "Objects: Remove Textured from object display type"

This reverts commit 6a4a984ff731070d0702821fe1e67dea40e593b9.

17 months agoSplit base flags on own and collection-defined
Sergey Sharybin [Wed, 27 Feb 2019 16:09:30 +0000 (17:09 +0100)]
Split base flags on own and collection-defined

This allows to update base flags to a proper state then object's restriction
flags are changed, without requiring to re-evaluate an entire tree of flags.

Some old unused flags are were removed by this change, and also disabling
menu items might not work the same as before. This is something we can bring
back if it's really needed (the way how flags are handled did change since
that interface code was done anyway, so code was looking weird anyway).

Reviewers: brecht

Differential Revision:

17 months agoRemove unused base flag
Sergey Sharybin [Wed, 27 Feb 2019 15:12:59 +0000 (16:12 +0100)]
Remove unused base flag

Was only set and read from a single location.
Removing to keep things more manageable.

17 months agoDepsgraph: Keep objects which has animated visibility
Sergey Sharybin [Wed, 27 Feb 2019 14:15:26 +0000 (15:15 +0100)]
Depsgraph: Keep objects which has animated visibility

This allows dependency graph to evaluate drivers of those objects
and put them to a correct state. It will increase memory usage
since now we can no longer save it by skipping copy-on-write for
such objects. It will also currently make things slower, because
we do not have granular enough visibility update of components in
the dependency graph. Can do it later when the rest of the changes
are finished.

This commit does not update restriction flags on the base, since
that is somewhat tricky to do currently: need to somehow see whether
object is disabled due to flags on collection or due to own flags.

Differential Revision:

17 months agoDepsgraph: Route visibility flags update to proper component
Sergey Sharybin [Wed, 27 Feb 2019 14:15:07 +0000 (15:15 +0100)]
Depsgraph: Route visibility flags update to proper component

17 months agoDepsgraph: Change the logic about keeping bases in the graph
Sergey Sharybin [Wed, 27 Feb 2019 13:57:52 +0000 (14:57 +0100)]
Depsgraph: Change the logic about keeping bases in the graph

The idea is to keep bases which are known for sure to be in the
dependency graph. Previously, this code was duplicating logic
around checking restriction flags, which becomes more hard to
maintain once we are moving towards to more comprehensive checks
about whether base is a part of evaluated scene or not.

17 months agoObjects: Remove Textured from object display type
Clément Foucault [Thu, 28 Feb 2019 14:29:04 +0000 (15:29 +0100)]
Objects: Remove Textured from object display type

As discussed with @billreynish this makes little sense now that we don't
have a dedicated textured mode. We don't have a superior texture or shaded
mode anymore and we also cannot mix different engines together (workbench
with eevee/lookdev).

The only feature it removes is the possibility to hide textures for certain
object in solid mode.

17 months agoFix T62040: Irradiance Volume broken
Clément Foucault [Thu, 28 Feb 2019 14:10:14 +0000 (15:10 +0100)]
Fix T62040: Irradiance Volume broken

Was broken by 6a03199b50e02d57a50eb24441ef7be0b7e965ac.

Reintroducing the padding along with a few comment to not reproduce the
same errors.

17 months agoFix T62050: remove non-persistent timers in load-pre callback
Jacques Lucke [Thu, 28 Feb 2019 15:07:56 +0000 (16:07 +0100)]
Fix T62050: remove non-persistent timers in load-pre callback

This actually makes more sense than removing them in the
load-post callback. During load, the file might register
timers that would be removed immediately.

17 months agoFix T61994: crash when box selecting instances
Jacques Lucke [Thu, 28 Feb 2019 14:53:01 +0000 (15:53 +0100)]
Fix T61994: crash when box selecting instances

Reviewers: brecht

Differential Revision:

17 months agoFix T62021: Wireframe input node doesn't work properly
Clément Foucault [Thu, 28 Feb 2019 12:56:03 +0000 (13:56 +0100)]
Fix T62021: Wireframe input node doesn't work properly

This fixes the general case. It is still not supported for hairs.

Added a hack in the geometry node to avoid unnecessary geometry shader

17 months agoFix T58405: viewport drawing issues with display device set to None.
Brecht Van Lommel [Thu, 28 Feb 2019 12:41:06 +0000 (13:41 +0100)]
Fix T58405: viewport drawing issues with display device set to None.

Disabling color management this way is not very useful, but as long as the
option is there it should work correct.

17 months agoFix T58875: object paste and append Active Collection property not working.
Brecht Van Lommel [Thu, 28 Feb 2019 12:00:38 +0000 (13:00 +0100)]
Fix T58875: object paste and append Active Collection property not working.

17 months agoPreferences: Remove warning concerning selection in edit mode with MSAA
Clément Foucault [Thu, 28 Feb 2019 10:09:25 +0000 (11:09 +0100)]
Preferences: Remove warning concerning selection in edit mode with MSAA

We don't use MSAA anymore for the selection buffers so this warning is no
longer relevant.

17 months agoFix T61878: Selection does not allways work in wireframe mode
Clément Foucault [Wed, 27 Feb 2019 17:16:58 +0000 (18:16 +0100)]
Fix T61878: Selection does not allways work in wireframe mode

This draw surfaces if the xray option is disabled even in wireframe mode.

17 months agoDRW: add back edge highlighting for active face drawing
Campbell Barton [Thu, 28 Feb 2019 06:55:49 +0000 (17:55 +1100)]
DRW: add back edge highlighting for active face drawing

Removed in aa7b013bd5d24 for performance reasons, however highlights
can't always be seen against specular shading, see: T55456#510873

Instead of having a highlighted inner-edge, use the active edge color.

17 months ago3D View: only calculate view center when needed
Campbell Barton [Thu, 28 Feb 2019 04:40:28 +0000 (15:40 +1100)]
3D View: only calculate view center when needed

When orbit around selection was enabled the selection center was being
calculated even when it wasn't needed.

17 months agoDRW: use active color for face dot
Campbell Barton [Thu, 28 Feb 2019 03:47:21 +0000 (14:47 +1100)]
DRW: use active color for face dot

Matches active vert/edge modes.

17 months agoUI: rename Quit Prompt to Save Prompt
Campbell Barton [Thu, 28 Feb 2019 02:20:21 +0000 (13:20 +1100)]
UI: rename Quit Prompt to Save Prompt

Eventually this should be used to prompt when loading a new file too.

17 months agoUI: change behavior for quit prompt
Campbell Barton [Thu, 28 Feb 2019 02:09:56 +0000 (13:09 +1100)]
UI: change behavior for quit prompt

Remove confirmation popup menu, just exit.

Note that this option is mainly for developers or people reviewing
blend files, see D4406 for discussion on reason for keeping this feature
while simplifying how it works.

17 months agoCleanup: style
Campbell Barton [Thu, 28 Feb 2019 01:15:42 +0000 (12:15 +1100)]
Cleanup: style

17 months agoUpdate for rename: constraint_orientation -> orient_type
Campbell Barton [Thu, 28 Feb 2019 01:30:06 +0000 (12:30 +1100)]
Update for rename: constraint_orientation -> orient_type

17 months agoicons_geom: update from svn rev 62198
Campbell Barton [Thu, 28 Feb 2019 00:59:02 +0000 (11:59 +1100)]
icons_geom: update from svn rev 62198

In the future we'll try to avoid such big updates,
adjusting to material colors could have caused so many files to change.

17 months agoFix missing NULL check in recent transform changes
Campbell Barton [Thu, 28 Feb 2019 01:14:14 +0000 (12:14 +1100)]
Fix missing NULL check in recent transform changes

Caused bevel to crash.

17 months agoCleanup: warning
Campbell Barton [Thu, 28 Feb 2019 01:12:29 +0000 (12:12 +1100)]
Cleanup: warning

17 months agoMakefile: icons target now uses make variables
Campbell Barton [Wed, 27 Feb 2019 23:34:50 +0000 (10:34 +1100)]
Makefile: icons target now uses make variables

Add examples in help text.

17 months agoMakefile: use BLENDER_BIN variable if passed in
Campbell Barton [Wed, 27 Feb 2019 23:33:58 +0000 (10:33 +1100)]
Makefile: use BLENDER_BIN variable if passed in

When the default build path isn't used,
it's still handy to be able to run utility commands.

17 months agoMakefile: move help text to string literal
Campbell Barton [Wed, 27 Feb 2019 23:07:50 +0000 (10:07 +1100)]
Makefile: move help text to string literal

Editing text in @echo commands wasn't convenient.

17 months agoRefactors preview drawing code with few functional modifications:
Richard Antalik [Wed, 27 Feb 2019 21:48:27 +0000 (13:48 -0800)]
Refactors preview drawing code with few functional modifications:

Fix T61241

 - Changing preview size does not affect drawn image size, only resolution.
 -- Consistent behavior, when changing full-size / proxy / scene render size
 -- Scopes are rendered in *same size* as source image
 -- Over all, user does not have to readjust preview zoom.

Reviewed by: Brecht

Differential revision:

17 months agoUI Particles: Minor tweaks to labels
Pablo Vazquez [Wed, 27 Feb 2019 18:50:04 +0000 (19:50 +0100)]
UI Particles: Minor tweaks to labels

* Capitalize 'Orientation Axis' and 'Multiply Mass with Size'
* Rename 'Scaling' to 'Radius Scale'

17 months agoUI: Rename 'Object' to 'Object Velocity' in particle settings
Pablo Vazquez [Wed, 27 Feb 2019 18:02:22 +0000 (19:02 +0100)]
UI: Rename 'Object' to 'Object Velocity' in particle settings

17 months agoUI: Rename Display -> Viewport Display panel
Pablo Vazquez [Wed, 27 Feb 2019 18:01:29 +0000 (19:01 +0100)]
UI: Rename Display -> Viewport Display panel

17 months agoCleanup: better names and comments for library ID linking code.
Brecht Van Lommel [Wed, 27 Feb 2019 18:25:21 +0000 (19:25 +0100)]
Cleanup: better names and comments for library ID linking code.

Differential Revision:

17 months agoFix T62007: Dial 3d being drawn out of rotating tool.
mano-wii [Wed, 27 Feb 2019 16:37:12 +0000 (13:37 -0300)]
Fix T62007: Dial 3d being drawn out of rotating tool.

It was being drawn when any Gizmo was highlighted.
There are several ways to solve this (creating a new parameter to the operator, checking the gizmos in the invoke or creating a global context).
Also, for a micro-optimization, all of those conditions in the `drawDial3d` could be done once in the invoke.
But since all of these changes involve changing the customdata (`TransInfo`), which is already a bit confusing with so many members, I thought it best to make minimal changes.

17 months agoFix T61988, Bevel miter on small scale.
Howard Trickey [Wed, 27 Feb 2019 16:51:24 +0000 (11:51 -0500)]
Fix T61988, Bevel miter on small scale.

Take two at fix, hopefully without unintended commits
to submodules this time.

17 months agoArmature: Make selection only work on outlines in wireframe mode
Clément Foucault [Wed, 27 Feb 2019 16:39:44 +0000 (17:39 +0100)]
Armature: Make selection only work on outlines in wireframe mode

This was not working in edit mode and broken in posemode + bounding box
display type.

This makes possible to select bones inside other bones.

17 months agoArmature: Remove the Transparent Bone overlay option
Clément Foucault [Wed, 27 Feb 2019 16:35:43 +0000 (17:35 +0100)]
Armature: Remove the Transparent Bone overlay option

The option is replaced by the Wireframe mode display which (in edit & pose
mode) does exactly what transparent bones did.

17 months agoArmature: Force Transparent bone in wireframe display type/mode
Clément Foucault [Tue, 26 Feb 2019 22:44:05 +0000 (23:44 +0100)]
Armature: Force Transparent bone in wireframe display type/mode

This makes the bones transparent when the object or the viewport display
type is Wireframe. This is in order to make things consistent.

In object mode all bones are fully transparent to not create more visual
noise if the scene is complex.

Another small addition is that the Bounding Box draw mode now works as
expected on armatures.

17 months agoRevert "Fix T61988: Bevel mitering on small objects."
Howard Trickey [Wed, 27 Feb 2019 16:41:40 +0000 (11:41 -0500)]
Revert "Fix T61988: Bevel mitering on small objects."

This reverts commit 048088e1d2435d249f36feb4774d14aeaf1293e9.
Accidentally changed submodules. Will resubmit with only
intended changes later.

17 months agoRevert "Add library-hint to datablock search menus."
Bastien Montagne [Wed, 27 Feb 2019 15:39:01 +0000 (16:39 +0100)]
Revert "Add library-hint to datablock search menus."

This reverts commit 4669c3692cc4f69660c673ceccce2245d5b9fed8.

17 months agoRevert "Fix broken 'search pointer' UI since this morning."
Bastien Montagne [Wed, 27 Feb 2019 15:36:29 +0000 (16:36 +0100)]
Revert "Fix broken 'search pointer' UI since this morning."

This reverts commit 456e3f00e007dbdeecb8a967ded9b7f4b2bc2969.

17 months agoTransform: fix redo rotate adjusting orientation
Campbell Barton [Wed, 27 Feb 2019 15:30:26 +0000 (02:30 +1100)]
Transform: fix redo rotate adjusting orientation

Regression in recent update.
Also de-duplicate orientation matrix initialization.

17 months agoGPencil: Fix memory leak issue
Antonioya [Wed, 27 Feb 2019 14:59:40 +0000 (15:59 +0100)]
GPencil: Fix memory leak issue

After a previous commit to use unique identifiers for Ghash key, I had missed to free the memory of the name key.

Thanks to Jacques Lucke for detecting the leak.

17 months agoKeymap: use tap/drag for mode switching w/ pref enabled
Campbell Barton [Wed, 27 Feb 2019 14:02:14 +0000 (01:02 +1100)]
Keymap: use tap/drag for mode switching w/ pref enabled

17 months agoCleanup: remove redundant property assignment
Campbell Barton [Wed, 27 Feb 2019 13:34:14 +0000 (00:34 +1100)]
Cleanup: remove redundant property assignment

Also cleanup comments

17 months agoDepsgraph: Make it easier to control which bases being pulled into the graph
Sergey Sharybin [Wed, 27 Feb 2019 10:17:36 +0000 (11:17 +0100)]
Depsgraph: Make it easier to control which bases being pulled into the graph

Just de-duplicates some logic. Should be no functional changes.

17 months agoMove base flags evaluation to its own function
Sergey Sharybin [Tue, 26 Feb 2019 14:58:37 +0000 (15:58 +0100)]
Move base flags evaluation to its own function

No need to have iterator loop in the view layer evaluation,
this only makes it more difficult to have base flags covered
by the dependency graph.

Other good thing is that we don't need to worry about whether
base has been removed from the evaluated view layer or not.

Reviewers: brecht

Reviewed By: brecht

Differential Revision:

17 months agoTransform: shear redo support for other orientations
Campbell Barton [Wed, 27 Feb 2019 13:19:37 +0000 (00:19 +1100)]
Transform: shear redo support for other orientations

Shear gizmo now uses a single orientation and sets
different ortho axis instead of constructing a different matrix for
each handle - allowing the redo panel to select orientations.

17 months agoFix T61988: Bevel mitering on small objects.
Howard Trickey [Wed, 27 Feb 2019 12:51:57 +0000 (07:51 -0500)]
Fix T61988: Bevel mitering on small objects.

When edges had small length (less than about .005) the angle
classification didn't work. Needed some normalization of vectors.

17 months agoFix typos related to units
Vaishnav S [Wed, 27 Feb 2019 12:22:55 +0000 (13:22 +0100)]
Fix typos related to units

17 months agoCleanup: use "_pad" prefix for pad vars
Campbell Barton [Wed, 27 Feb 2019 11:20:29 +0000 (22:20 +1100)]
Cleanup: use "_pad" prefix for pad vars

17 months agoCleanup: header guard names
Campbell Barton [Wed, 27 Feb 2019 08:58:06 +0000 (19:58 +1100)]
Cleanup: header guard names

Missed in file rename.

17 months agoFix T61945: Scaling with invalid snap distances
Sebastian Parborg [Wed, 27 Feb 2019 08:28:15 +0000 (09:28 +0100)]
Fix T61945: Scaling with invalid snap distances

ApplySnapResize did not take into account invalid distances. Added check for this.

Reviewed By: Campbell Barton

Differential Revision:

17 months agoGP: Use unique names for instance objects
Antonioya [Wed, 27 Feb 2019 07:50:29 +0000 (08:50 +0100)]
GP: Use unique names for instance objects

When instance objects linked, the name could not be unique.

17 months agoGP: Check if Instance loop is needed
Antonioya [Wed, 27 Feb 2019 07:41:13 +0000 (08:41 +0100)]
GP: Check if Instance loop is needed

This reduces the loop time if the scene is not using instances.

17 months agoGP: Optimize Instances drawing loop
Antonioya [Wed, 27 Feb 2019 07:32:55 +0000 (08:32 +0100)]
GP: Optimize Instances drawing loop

17 months agoTransform: refactor orientation naming and usasge
Campbell Barton [Wed, 27 Feb 2019 06:25:45 +0000 (17:25 +1100)]
Transform: refactor orientation naming and usasge

Transform orientation was previously related to constraints,
recent changes meant it was used even when not constraining to an axis.

Now transform orientation is separate from axis constraints.

17 months agoCorrect error in recent transform refactor
Campbell Barton [Wed, 27 Feb 2019 05:39:03 +0000 (16:39 +1100)]
Correct error in recent transform refactor

17 months agoDRW: disable wide edges when face-dots are used
Campbell Barton [Wed, 27 Feb 2019 05:01:09 +0000 (16:01 +1100)]
DRW: disable wide edges when face-dots are used

Users who prefer to use face dot's don't get an advantage from drawing
thicker wire.

Requested by @ward

17 months agoCleanup: remove runtime structs from DNA
Campbell Barton [Wed, 27 Feb 2019 04:39:12 +0000 (15:39 +1100)]
Cleanup: remove runtime structs from DNA

17 months agomakesdna: enforce use of '_pad' naming convention
Campbell Barton [Wed, 27 Feb 2019 04:07:56 +0000 (15:07 +1100)]
makesdna: enforce use of '_pad' naming convention

17 months agoCleanup: use '_pad' convention for padding in all DNA structs
Campbell Barton [Wed, 27 Feb 2019 04:07:50 +0000 (15:07 +1100)]
Cleanup: use '_pad' convention for padding in all DNA structs

Avoids mixing these in with regular variables in code-completion.

Use char for pad members except for 'void *', to make size clearer.

Removed/shrink a few redundant padding vars which were >= 8 bytes.

17 months agoCleanup: remove runtime structs from DNA
Campbell Barton [Wed, 27 Feb 2019 02:54:02 +0000 (13:54 +1100)]
Cleanup: remove runtime structs from DNA

17 months agoCleanup: remove unused Material.pr_light
Campbell Barton [Wed, 27 Feb 2019 02:08:06 +0000 (13:08 +1100)]
Cleanup: remove unused Material.pr_light

Also no need for 14 bytes of padding.

17 months agoCleanup: file rename lamp -> light
Campbell Barton [Wed, 27 Feb 2019 01:34:56 +0000 (12:34 +1100)]
Cleanup: file rename lamp -> light

17 months agoCleanup: rename lamp -> light
Campbell Barton [Wed, 27 Feb 2019 01:02:02 +0000 (12:02 +1100)]
Cleanup: rename lamp -> light

17 months agoCleanup: Main struct member names
Campbell Barton [Wed, 27 Feb 2019 00:14:41 +0000 (11:14 +1100)]
Cleanup: Main struct member names

Rename latt to lattice and don't use plural names.

17 months agoDNA: rename Lamp -> Light
Campbell Barton [Tue, 26 Feb 2019 23:46:48 +0000 (10:46 +1100)]
DNA: rename Lamp -> Light

- BKE_lamp -> BKE_light
- Main.lamp -> light

17 months agoFix: Grease Pencil data panels not working with pinning
Dalai Felinto [Tue, 26 Feb 2019 22:40:07 +0000 (19:40 -0300)]
Fix: Grease Pencil data panels not working with pinning

Note: Things were working fine if you were to pin the Grease Pencil
object, but not if you were pinning the GP data.

In too many poll functions context.object was being requested when
a simple context.gpencil_data would suffit.

Panels that are still not showing in pinning:
* DATA_PT_gpencil_display.

The panel needs to be split in sub-panels, leaving all object-dependent
properties in its own panel so we can poll it away, while showing the

* * *

This commit doesn't handle greasepencil material. In this case I
recommend we do as and have a generous poll(),
followed by different drawing logics whether or not we have an object.

17 months agoGrease Pencil: Strokes Cut icon
Dalai Felinto [Tue, 26 Feb 2019 20:19:18 +0000 (17:19 -0300)]
Grease Pencil: Strokes Cut icon

The icon was there, but it was not in the Export collection, nor
was it correctly named.

17 months agoGrease Pencil: Silence warning
Dalai Felinto [Tue, 26 Feb 2019 19:22:17 +0000 (16:22 -0300)]
Grease Pencil: Silence warning

17 months agoCleanup: use 'poly' for polygons-related data, not 'face'.
Bastien Montagne [Tue, 26 Feb 2019 19:59:09 +0000 (20:59 +0100)]
Cleanup: use 'poly' for polygons-related data, not 'face'.

In Blender face is for tesselated faces, that kind of miss-naming is a
pretty good way to shoot yourself in the foot at some point or another
(see T61979)...

17 months agoFix T61979: Solidify not working in Blender 2.8.
Bastien Montagne [Tue, 26 Feb 2019 19:45:56 +0000 (20:45 +0100)]
Fix T61979: Solidify not working in Blender 2.8.

Broken logic in rB181356edba04, thanks most likely to stupid naming
(face in Blender is for tessellated faces, use poly for BMesh polygons).

Cleanup to follow in next commit...

17 months agoGP: Cleanup ToDo comment
Antonioya [Tue, 26 Feb 2019 19:32:02 +0000 (20:32 +0100)]
GP: Cleanup ToDo comment

17 months agoFix T61956: Errors when instancing grease pencil objects
Antonioya [Tue, 26 Feb 2019 19:28:06 +0000 (20:28 +0100)]
Fix T61956: Errors when instancing grease pencil objects

The problem was not only for instances, but for particles too, and produced segment fault.

For some reason due any internal modification of how duplicated objects are generated, the duplicated object are not available when the draw manager try to use runtime data.

Now, before drawing the particle or the instance, the pointers of the duplicated objects are reassigned to the original "real object" to get full access to runtime data.

17 months agoUI: Move Pivot next to Orientation in header
William Reynish [Tue, 26 Feb 2019 19:24:40 +0000 (20:24 +0100)]
UI: Move Pivot next to Orientation in header

-The pivot point and orientation of any transform are strongly related
-It matches the comma-key and period-key on the keyboard who are neighbours
-We get slightly nicer grouping this way, with the two axis-related options on the left and the two toggles on the right

Reviewers: pablovazquez, campbellbarton
Differential Revision:

17 months agoMerge branch 'blender2.7'
Brecht Van Lommel [Tue, 26 Feb 2019 19:07:36 +0000 (20:07 +0100)]
Merge branch 'blender2.7'

17 months agoCleanup: prevent future issues with ID.tag overflow, clarify somes names.
Brecht Van Lommel [Tue, 26 Feb 2019 13:14:56 +0000 (14:14 +0100)]
Cleanup: prevent future issues with ID.tag overflow, clarify somes names.

17 months agoCleanup: remove unnecessary assert.
Brecht Van Lommel [Tue, 26 Feb 2019 18:59:51 +0000 (19:59 +0100)]
Cleanup: remove unnecessary assert.

17 months agoUI: Icons
William Reynish [Tue, 26 Feb 2019 18:29:01 +0000 (19:29 +0100)]
UI: Icons

New icons from Andrzej Ambroż / jendrzych:
-New trash icon for deleting ID's and other data (currently unused)
-New icon for the Grease Pencil select between strokes mode
-New icon for Proportional Editing Root Falloff curve

Also adjustments for Jump to Next / Prev. Keyframe, Camera ObData, Point Light ObData, Light Probe Object and ObData, Collection & Save icons.

17 months agoUI: Show marker lines in remaining animation spaces
Jacques Lucke [Tue, 26 Feb 2019 16:24:36 +0000 (17:24 +0100)]
UI: Show marker lines in remaining animation spaces

This also includes fixed/slighly refactored drawing code for marker lines.
The old code used the wrong height.

Reviewers: brecht

Differential Revision:

17 months agoGP: Redesign wireframe mode
Antonioya [Tue, 26 Feb 2019 15:55:21 +0000 (16:55 +0100)]
GP: Redesign wireframe mode

Now it's possible use the different Wire modes (Single, Object & Random)

Also support for x-ray mode.

For random colors, the name of the object and the name of the layer is used.

Also some parameters cleanup.

17 months agoGP: Draw: Stroke Trim
Charlie Jolly [Tue, 26 Feb 2019 16:04:27 +0000 (16:04 +0000)]
GP: Draw: Stroke Trim

New edit mode operator and post-processing brush option.

Trim works on a single GP stroke. It removes trailing points before and after the first intersection (or loop) nearest to the start of the stroke.