2 months agofix for inner uv and fractal / bmesh temp-fracture-modifier-2.8
Martin Felke [Thu, 4 Apr 2019 19:30:41 +0000 (21:30 +0200)]
fix for inner uv and fractal / bmesh

2 months agoattempt to fix inner uv for fractal boolean
Martin Felke [Thu, 4 Apr 2019 13:08:19 +0000 (15:08 +0200)]
attempt to fix inner uv for fractal boolean

3 months agosmall refresh operator fix
Martin Felke [Sun, 17 Mar 2019 13:48:12 +0000 (14:48 +0100)]
small refresh operator fix

3 months agoattempt to stabilize dynamic fracture
Martin Felke [Sun, 17 Mar 2019 13:12:48 +0000 (14:12 +0100)]
attempt to stabilize dynamic fracture

3 months agocan now finally save and load fracture data (and motion data)
Martin Felke [Mon, 11 Mar 2019 23:39:42 +0000 (00:39 +0100)]
can now finally save and load fracture data (and motion data)

3 months agofix typo (where only the unmodified mesh was taken into account as operand)
Martin Felke [Sun, 10 Mar 2019 11:35:54 +0000 (12:35 +0100)]
fix typo (where only the unmodified mesh was taken into account as operand)

3 months agowhy interrupt and reset the particle sim, if a modifier after it changes ? Makes...
Martin Felke [Sun, 10 Mar 2019 09:51:03 +0000 (10:51 +0100)]
why interrupt and reset the particle sim, if a modifier after it changes ? Makes not much sense.

in this case, changing the parameters of metaball remesh after particlesystem during animation caused strange resets.

3 months agonull pointer crash fix
Martin Felke [Sat, 9 Mar 2019 22:29:48 +0000 (23:29 +0100)]
null pointer crash fix

3 months agoactually take the FM solver change into account, was defaulting to carve now.
Martin Felke [Sat, 9 Mar 2019 21:48:28 +0000 (22:48 +0100)]
actually take the FM solver change into account, was defaulting to carve now.

3 months agofix incorrectly flipped carve result
Martin Felke [Sat, 9 Mar 2019 20:09:52 +0000 (21:09 +0100)]
fix incorrectly flipped carve result

3 months agobring back carve as boolean alternative for FM 2.8 (and boolean modifier too)
Martin Felke [Sat, 9 Mar 2019 19:40:29 +0000 (20:40 +0100)]
bring back carve as boolean alternative for FM 2.8 (and boolean modifier too)

Users should keep the solver as choice, since Bmesh boolean is not finished yet.

3 months agoattempt to fix crash with dynamic + constraints (but the problems are multiple depsgr...
Martin Felke [Sat, 2 Mar 2019 18:14:34 +0000 (19:14 +0100)]
attempt to fix crash with dynamic + constraints (but the problems are multiple depsgraph threads here)

3 months agometaball remesh crash fix
Martin Felke [Sat, 2 Mar 2019 10:05:39 +0000 (11:05 +0100)]
metaball remesh crash fix

3 months agoupdate submodule pointers
Martin Felke [Sat, 2 Mar 2019 09:48:23 +0000 (10:48 +0100)]
update submodule pointers

3 months agoMerge remote-tracking branch 'origin/master' into fracture_modifier-2.8
Martin Felke [Sat, 2 Mar 2019 09:43:27 +0000 (10:43 +0100)]
Merge remote-tracking branch 'origin/master' into fracture_modifier-2.8

# Conflicts:
# intern/cycles/blender/blender_mesh.cpp
# intern/rigidbody/RBI_api.h
# intern/rigidbody/rb_bullet_api.cpp
# source/blender/blenkernel/BKE_rigidbody.h
# source/blender/blenkernel/intern/rigidbody.c
# source/blender/depsgraph/intern/builder/
# source/blender/draw/intern/draw_manager.c
# source/blender/editors/physics/rigidbody_object.c
# source/blender/makesdna/DNA_modifier_types.h
# source/blender/makesdna/DNA_rigidbody_types.h
# source/blender/makesrna/intern/rna_modifier.c
# source/blender/makesrna/intern/rna_rigidbody.c
# source/blender/modifiers/intern/MOD_boolean.c
# source/blender/modifiers/intern/MOD_multires.c
# source/blender/modifiers/intern/MOD_remesh.c

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 agoGPencil: Change display modes
Antonioya [Fri, 1 Mar 2019 19:50:44 +0000 (20:50 +0100)]
GPencil: Change display modes

-Wireframe use Background color for X-Ray off
- Added support to Solid mode.
- Solid mode shows fill or not depending X-Ray.
- Solid can use Single, Material, etc.
- Wireframe and Solid mode don't show FXs.

3 months agoFix T62025: Outliner and viewport missing update after deleting object
Dalai Felinto [Fri, 1 Mar 2019 19:18:05 +0000 (16:18 -0300)]
Fix T62025: Outliner and viewport missing update after deleting object

Bug introduced on 012483b6e4a1453c3e990127db001617997a9d64.

Since we notify similar things when changing active and selected
objects, I believe we didn't notice this was missing a ND_OB_SELECT
notification before the small refactor to use the messenging system
exposed that bug.

3 months agoFix unreported: Glitches on the wireframe of curves.
mano-wii [Fri, 1 Mar 2019 19:02:35 +0000 (16:02 -0300)]
Fix unreported: Glitches on the wireframe of curves.

3 months agoFix warning for uiButPushedStateFunc
Dalai Felinto [Fri, 1 Mar 2019 18:58:03 +0000 (15:58 -0300)]
Fix warning for uiButPushedStateFunc

I changed the number of arguments for uiButPushedStateFunc
and forgot to update parts of the code (rB92182495da881).

3 months agoFix T62047 New wireframes missing fresnel effect
Clément Foucault [Fri, 1 Mar 2019 17:21:58 +0000 (18:21 +0100)]
Fix T62047 New wireframes missing fresnel effect

Add back some (subtle) fresnel effect on object wireframe.

Dupli/set object still remains flat and need more work.

3 months agoFix T62090 : Eevee shader compilation: undefined variable "att1_is_srgb"
Clément Foucault [Fri, 1 Mar 2019 16:57:06 +0000 (17:57 +0100)]
Fix T62090 : Eevee shader compilation: undefined variable "att1_is_srgb"

The geom shader check was not needed and this uncovered an error in the
GPU_BARYCENTRIC_TEXCO optimization recently commited.

3 months agoFix T62016: Outliner visibility icons drag behaviour broken
Dalai Felinto [Fri, 1 Mar 2019 16:14:16 +0000 (13:14 -0300)]
Fix T62016: Outliner visibility icons drag behaviour broken

We are mixing bool and fancy 3-in-1 func-set buttons in the outliner.
So they would return different pushed state in

We now have a callback function that allows the button to set its own
pushed_button_state callback function.

Note: This is a bit of overkill since we are planning to change the
3-in-1 outliner buttons. That said, it may be nice to have, since in the
future we can mix those buttons for other things.

Reviewers: brecht

Differential Revision:

3 months agoMerge branch 'blender2.7'
Brecht Van Lommel [Fri, 1 Mar 2019 18:29:26 +0000 (19:29 +0100)]
Merge branch 'blender2.7'

3 months agoFix T62073: Cycles random hangs rendering with Save Buffers on.
Brecht Van Lommel [Fri, 1 Mar 2019 18:09:17 +0000 (19:09 +0100)]
Fix T62073: Cycles random hangs rendering with Save Buffers on.

3 months agoFix T62087: Crash when rendering in Cycles
Sergey Sharybin [Fri, 1 Mar 2019 17:51:16 +0000 (18:51 +0100)]
Fix T62087: Crash when rendering in Cycles

The issue was discovered only after recent changes, but roots back
to much older changes.

What was happening is scene's ID recalc flags where never cleared,
which caused ensure_view_layer() to always run copy-on-write on the
scene. This resulted in certain runtime data being cleared, without
proper flag stored in the dependency graph.

This was caused by ID recalc clear function checking whether any ID
was tagged for recalc in that graph or not. This was happening due
to all areas using DEG_id_type_tag() which can only set flags on the
graph from viewport scenes, and could not inform render dependency

Now ID tyoe tagging is happening on per-graph level, which avoids
possibility of flags running out of sync.

In a bit longer term we also need to get rid of two functions which
are clearing flags: DEG_id_type_tag() and deg_graph_clear_tags().

3 months agoFix T62075: Edges generated by solidify modifier does not appear
Clément Foucault [Fri, 1 Mar 2019 13:03:45 +0000 (14:03 +0100)]
Fix T62075: Edges generated by solidify modifier does not appear

This was a missing flag.

3 months agoFix crash with wireframe on highpoly curves on some AMD gpus.
mano-wii [Fri, 1 Mar 2019 15:36:34 +0000 (12:36 -0300)]
Fix crash with wireframe on highpoly curves on some AMD gpus.

Differential Revision:

3 months agoUse original base to see whether it can be ignored from evaluation
Sergey Sharybin [Fri, 1 Mar 2019 15:35:11 +0000 (16:35 +0100)]
Use original base to see whether it can be ignored from evaluation

Object of evaluated base is not yet copied, so we can not know whether
it has animation on visibility or not.

This issue was reported in T56635#630383.

3 months agoCleanup: typo and update comment
Philipp Oeser [Fri, 1 Mar 2019 15:06:14 +0000 (16:06 +0100)]
Cleanup: typo and update comment

3 months agoOutliner: Collections Duplicate - remove original duplicate operator
Dalai Felinto [Fri, 1 Mar 2019 14:43:30 +0000 (11:43 -0300)]
Outliner: Collections Duplicate - remove original duplicate operator

Now that we have better options (duplicate collection and duplicate linked) there is no
longer need for the original dupli operator.

In fact, as it was it was of little use if you ever had nested collections.

3 months agoOutliner: Collection - Duplicate Hierarchy, and Duplicate Linked Hierarchy
Dalai Felinto [Tue, 26 Feb 2019 19:15:30 +0000 (16:15 -0300)]
Outliner: Collection - Duplicate Hierarchy, and Duplicate Linked Hierarchy

As per the suggestion on T57064, this introduces two new options to duplicate collections.
We then have:
* Duplicate > Collection (New collection with linked content).
* Duplicate > Hierachy (Duplicate entire hierarchy and make all contents single user).
* Duplicate > Linked Hierarchy (Duplicate entire hierarchy keeping content linked with original).

Development TODO: `single_object_users` can/should use the new functions.

Reviewers: brecht, mont29

Subscribers: pablovazquez, billreynish, JulienKaspar

Differential Revision:

3 months agoCleanup: Update comment
Dalai Felinto [Tue, 26 Feb 2019 21:30:01 +0000 (18:30 -0300)]
Cleanup: Update comment

3 months agoCleanup: Set BKE_key_from_object/_p to take const Object *
Dalai Felinto [Tue, 26 Feb 2019 21:14:09 +0000 (18:14 -0300)]
Cleanup: Set BKE_key_from_object/_p to take const Object *

3 months agoCleanup: use variable instead of define
Campbell Barton [Fri, 1 Mar 2019 14:30:59 +0000 (01:30 +1100)]
Cleanup: use variable instead of define

3 months agoCleanup: move theme reset into it's own operator file
Campbell Barton [Fri, 1 Mar 2019 13:52:00 +0000 (00:52 +1100)]
Cleanup: move theme reset into it's own operator file

3 months agoFix: Better fix for KeyingSet "Export to File" and unescaped characters
Joshua Leung [Fri, 1 Mar 2019 13:15:54 +0000 (02:15 +1300)]
Fix: Better fix for KeyingSet "Export to File" and unescaped characters

Use Python's native raw formatting instead, which should take care of any issues
we may face.

3 months agoCleanup: Adding braces around all cases here to make it easier for the next step
Joshua Leung [Fri, 1 Mar 2019 13:11:14 +0000 (02:11 +1300)]
Cleanup: Adding braces around all cases here to make it easier for the next step

3 months agoFix T62057: Particle settings keyframes not showing in Graph Editor channels
Joshua Leung [Fri, 1 Mar 2019 13:10:43 +0000 (02:10 +1300)]
Fix T62057: Particle settings keyframes not showing in Graph Editor channels

In short, the settings to expand/collapse the Particles Animation Dopesheet expander
were no longer getting exposed, so the F-Curves attached to the particle settings
were not showing up in the channels list as that section was collapsed and couldn't
be opened from the UI.

Early on during the development of 2.8, we originally wanted to completely remove
the Particle System. Eventually that decision got walked back, and so particles
were reinstated. Well... most of the relevant code was! One of the areas that was
the most messed up during this process was the animation editor support for these
channels. It seems that there was almost a two-step removal process here -
the first pass tried to keep the channel definitions while removing all references
to particle stuff, while the second pass tried to remove the definitions completely
and/or re-added them in the wrong places, etc. To say the removal/reverting history is
here is "colourful" is an understatement...

3 months agoCleanup: use preferences prefix for Python operators
Campbell Barton [Fri, 1 Mar 2019 13:21:05 +0000 (00:21 +1100)]
Cleanup: use preferences prefix for Python operators

3 months agoCollections: mark visibility properties as not animatable.
Brecht Van Lommel [Fri, 1 Mar 2019 12:39:30 +0000 (13:39 +0100)]
Collections: mark visibility properties as not animatable.

Better to communicate the current state clearly until this is supported,
for now only object visibility can be animated.

3 months agoCleanup: use unsigned types in 3D view editor
Campbell Barton [Fri, 1 Mar 2019 12:43:34 +0000 (23:43 +1100)]
Cleanup: use unsigned types in 3D view editor

3 months agoTool System: add a mode option to 3D view circle select
Campbell Barton [Fri, 1 Mar 2019 12:18:34 +0000 (23:18 +1100)]
Tool System: add a mode option to 3D view circle select

Support only basic operations: new/add/subtract.

3 months ago3D View: avoid redundant circle select updates
Campbell Barton [Fri, 1 Mar 2019 12:09:22 +0000 (23:09 +1100)]
3D View: avoid redundant circle select updates

This refreshes on cursor motion so it's worth avoiding redundant
updates, especially for multi-object edit-modes where many objects
aren't even near the object being selected.

This commit also moves to passing eSelectOp to circle select functions
in preparation for adding a select mode tool option.

3 months agoWM: add gesture variable to detect first execution
Campbell Barton [Fri, 1 Mar 2019 12:00:11 +0000 (23:00 +1100)]
WM: add gesture variable to detect first execution

Needed for circle select to replace the current selection.

3 months agoFix T62053: Composite rendering more images than needed
Philipp Oeser [Fri, 1 Mar 2019 09:59:37 +0000 (10:59 +0100)]
Fix T62053: Composite rendering more images than needed

Reviewers: brecht

Maniphest Tasks: T62053

Differential Revision:

3 months ago3D View: move particle circle select out of object mode loop
Campbell Barton [Fri, 1 Mar 2019 11:25:29 +0000 (22:25 +1100)]
3D View: move particle circle select out of object mode loop

This doesn't support multi-object editing, no reason to check others.

3 months agoRevert "UI: File menu tweaks."
Brecht Van Lommel [Fri, 1 Mar 2019 10:13:32 +0000 (11:13 +0100)]
Revert "UI: File menu tweaks."

This reverts commit b104b3cdcff and 04baefcc2fc. Changes to core UI like
this should go through review, and doing them during Beta development is
not generally the right moment unless they fix an important problem.

3 months agoUI: Make Auto Smooth panel open by default
William Reynish [Fri, 1 Mar 2019 09:45:59 +0000 (10:45 +0100)]
UI: Make Auto Smooth panel open by default

3 months agoFix T62015: Duplicating object, rotating, pivot point not used
Sergey Sharybin [Fri, 1 Mar 2019 09:25:14 +0000 (10:25 +0100)]
Fix T62015: Duplicating object, rotating, pivot point not used

Was caused by another fix in the area, and root to the wrong though that
transformation is only initialized from a fully evaluated dependency graph.

The latter one is not a case when changing transformation mode.

Solved by copying transform to an evaluated object.

3 months agoFix flag on wrong object being modified
Sergey Sharybin [Fri, 1 Mar 2019 09:00:14 +0000 (10:00 +0100)]
Fix flag on wrong object being modified

The intention was to disable constraints prior evaluation of
the object.

Spotted by Campbell, thanks!

3 months agobuild_environment: Fixed `make deps` on macOS
Stefan Werner [Fri, 1 Mar 2019 09:01:55 +0000 (10:01 +0100)]
build_environment: Fixed `make deps` on macOS

Two changes:
Removed the explicit version for the macOS SDK, recent
versions of Xcode have a symlink to the newest SDK.
Fixed the build script for OpenMP by removing extra ' marks that
install_name_tool took literally and replaced INSTALL_PATH with

3 months agoWM: improve support for binding actions to modifier keys
Campbell Barton [Fri, 1 Mar 2019 05:46:10 +0000 (16:46 +1100)]
WM: improve support for binding actions to modifier keys

Previously a modifier key-map type only worked when the same key was
enabled as a modifier as well.

This allows for users to assign an action to double-tap-shift for eg.

3 months agoCleanup: Use braces in event matching logic
Campbell Barton [Fri, 1 Mar 2019 05:38:22 +0000 (16:38 +1100)]
Cleanup: Use braces in event matching logic

Also no need to map the event type for inactive keys.

3 months agoFix object mode lasso de-selection
Campbell Barton [Fri, 1 Mar 2019 03:08:05 +0000 (14:08 +1100)]
Fix object mode lasso de-selection

Lasso actions that only de-selected were handled as if nothing changed.

3 months agoCleanup: de-duplicate RNA array default args
Campbell Barton [Fri, 1 Mar 2019 02:21:08 +0000 (13:21 +1100)]
Cleanup: de-duplicate RNA array default args

3 months agoFix T62068: rotation incorrectly re-uses axis
Campbell Barton [Fri, 1 Mar 2019 02:05:24 +0000 (13:05 +1100)]
Fix T62068: rotation incorrectly re-uses axis

Regression in recent transform changes.

3 months agoRNA: move cursor into own struct
Campbell Barton [Fri, 1 Mar 2019 01:35:48 +0000 (12:35 +1100)]
RNA: move cursor into own struct

Without this it's impractical to subscribe to any change to the cursor.

Fixes T61969 by having gizmos update on any change to the cursor.

3 months agoFix T61825: animated images not working immediately when enabling auto refresh.
Brecht Van Lommel [Fri, 1 Mar 2019 01:12:40 +0000 (02:12 +0100)]
Fix T61825: animated images not working immediately when enabling auto refresh.

3 months agoFix T61929: crash on undo in some files with local view.
Brecht Van Lommel [Thu, 28 Feb 2019 23:34:25 +0000 (00:34 +0100)]
Fix T61929: crash on undo in some files with local view.

3 months agoComments: add comments for new transform struct members.
Campbell Barton [Thu, 28 Feb 2019 23:12:26 +0000 (10:12 +1100)]
Comments: add comments for new transform struct members.

3 months agoCleanup: minor improvements to transform comments.
Campbell Barton [Thu, 28 Feb 2019 23:45:22 +0000 (10:45 +1100)]
Cleanup: minor improvements to transform comments.

3 months agoCleanup: Use const for static number.
Campbell Barton [Thu, 28 Feb 2019 23:18:58 +0000 (10:18 +1100)]
Cleanup: Use const for static number.

Also use double indent instead of mixed tab/spaces.

3 months agoCleanup: pep8
Campbell Barton [Thu, 28 Feb 2019 23:55:23 +0000 (10:55 +1100)]
Cleanup: pep8

3 months agoFix macOS OpenMP build error when using a build folder name with spaces.
Brecht Van Lommel [Thu, 28 Feb 2019 23:25:53 +0000 (00:25 +0100)]
Fix macOS OpenMP build error when using a build folder name with spaces.

Patch by Campbell.

3 months agoCleanup and refactor sequencer proxy properties panel
Richard Antalik [Thu, 28 Feb 2019 23:10:19 +0000 (15:10 -0800)]
Cleanup and refactor sequencer proxy properties panel

Split SEQUENCER_PT_proxy to:

 - global settings and operators
 - proxy settings per strip

Author: Guillaume M (mathers)

Reviewed by: ISS, campbellbarton

Differential Revision:

3 months agoHair Particle: Fix issue on OSX due to hardware accelerated subdivision
Clément Foucault [Thu, 28 Feb 2019 21:56:27 +0000 (22:56 +0100)]
Hair Particle: Fix issue on OSX due to hardware accelerated subdivision

Workaround to tranform feedback not working on mac.
On some system it crashes (see T58489) and on some other it outputs
garbage (see T60171).

So instead of using transform feedback we render to a texture,
readback the result to system memory and reupload as VBO data.
It is really not ideal performance wise, but it is the simplest
and the most local workaround that still uses the power of the GPU.

This should fix T59426, T60171 and T58489.

3 months agoUI: hierarchical nesting
William Reynish [Thu, 28 Feb 2019 21:54:06 +0000 (22:54 +0100)]
UI: hierarchical nesting

Use correct hierarchical nesting in camera and mesh obdata properties

3 months agoUI: un-expand enum
William Reynish [Thu, 28 Feb 2019 20:58:36 +0000 (21:58 +0100)]
UI: un-expand enum

Enums don't work well when expanded vertically like this

3 months agoUI: Properties hierarchical nesting
William Reynish [Thu, 28 Feb 2019 20:53:14 +0000 (21:53 +0100)]
UI: Properties hierarchical nesting

Make hierarchy more clear and consistent in Render, Object and Particles

3 months agoCleanup/refactor clnor code: add high-level helpers to set custom normals.
Bastien Montagne [Thu, 28 Feb 2019 19:40:21 +0000 (20:40 +0100)]
Cleanup/refactor clnor code: add high-level helpers to set custom normals.

Now it will be simpler for code jsut wanting to preserve custom normals
around to set them, without having to add same boiler plate code all the
time around actual code.

3 months agoFix (unreported) assert in modifier evaluation of weighted normals.
Bastien Montagne [Thu, 28 Feb 2019 18:54:22 +0000 (19:54 +0100)]
Fix (unreported) assert in modifier evaluation of weighted normals.

Currently modifier stack assumes there are no poly normals data passed
around, so in case a modifier generates such data, it has to clean it up
after usage.

Whole handling of normals is a bit annoying and week currently, we can
probably enhance that once fully per-mesh item type cddata masks are in?

3 months ago'Fix' T61942: Triangulate modifier breaks custom normals.
Bastien Montagne [Thu, 28 Feb 2019 17:03:48 +0000 (18:03 +0100)]
'Fix' T61942: Triangulate modifier breaks custom normals.

Not a bug, but supporting preservation of custom normals in that
specific modifier makes sense, in game pipeline contexts.

Could also ease work of IO add-ons that want to export
triangulated geometry...

3 months agoCustomData: add function to clear layers' flags.
Bastien Montagne [Thu, 28 Feb 2019 17:03:01 +0000 (18:03 +0100)]
CustomData: add function to clear layers' flags.

We only had one to set those flags, up til now...

3 months agoUI: Particles
William Reynish [Thu, 28 Feb 2019 19:46:05 +0000 (20:46 +0100)]
UI: Particles

Nicer alignment in Vertex Groups panel

3 months agoUI: File menu tweaks.
Pablo Vazquez [Thu, 28 Feb 2019 19:32:39 +0000 (20:32 +0100)]
UI: File menu tweaks.

* Group Export with Save, Save As, Save Copy.
* Group Import with Link, Append.

Suggested by @fsiddi

3 months agoUI: Minor tweak on Object Type Visibility popover.
Pablo Vazquez [Thu, 28 Feb 2019 19:09:40 +0000 (20:09 +0100)]
UI: Minor tweak on Object Type Visibility popover.

Mirror order of items as in 'Add' object menu.

3 months agoGPencil: Cleanup style
Antonioya [Thu, 28 Feb 2019 18:53:43 +0000 (19:53 +0100)]
GPencil: Cleanup style

3 months agoUI: File menu tweaks.
Pablo Vazquez [Thu, 28 Feb 2019 18:45:16 +0000 (19:45 +0100)]
UI: File menu tweaks.

* Move Revert, Recover Last Session, Recover Auto Save to its own sub-menu.
  Had three entries of the same category, and solves user reports on "Revert" being dangerously accessible under Open.
* Move up Link, Append, Import, Export as they are used more often than e.g. Save Startup File.

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

3 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.

3 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.

3 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

3 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.

3 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.

3 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

3 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.

3 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.

3 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.

3 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.

3 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.

3 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

3 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.

3 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.

3 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.

3 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:

3 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.

3 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:

3 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.

3 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: