14 months agoFix T55165: Driving camera lens with property behaves unexpectedly
Dalai Felinto [Fri, 25 May 2018 09:05:51 +0000 (11:05 +0200)]
Fix T55165: Driving camera lens with property behaves unexpectedly

Differential Revision:

14 months agoKeymap: place cursor on press
Campbell Barton [Fri, 25 May 2018 10:45:18 +0000 (12:45 +0200)]
Keymap: place cursor on press

Needed for tablet users.

14 months agoCleanup/simplification for BKE_modifier_get_evaluated_mesh_from_object
Bastien Montagne [Fri, 25 May 2018 10:27:54 +0000 (12:27 +0200)]
Cleanup/simplification for BKE_modifier_get_evaluated_mesh_from_object

* Added BKE_object_get_evaluated_mesh, which can also be used outside of
Modifier context.
* BKE_modifier_get_evaluated_mesh_from_object is now a dummy wrapper
around BKE_object_get_evaluated_mesh, we do not need anything special
anymore for RENDER quality option, since this is supposed to be handled
at depsgraph level... Maybe we can get rid of it at some point, but kind
of like the idea of keeping it for now, sounds more consitent.

14 months agoCleanup: do not make functions for the pleasure of having functions...
Bastien Montagne [Fri, 25 May 2018 09:39:02 +0000 (11:39 +0200)]
Cleanup: do not make functions for the pleasure of having functions...

14 months agoCleanup: minor details in BKE paint code related to palettes.
Bastien Montagne [Fri, 25 May 2018 09:29:52 +0000 (11:29 +0200)]
Cleanup: minor details in BKE paint code related to palettes.

* Always use BKE_id_new, unless you have a very good reason to use
lower-level code!
* Prefer to pass actual ID user pointer to functions like id_us_plus & co,
rather than 'floating' ID pointer, when possible. It makes it more clear
who is the user we increase count for!

14 months agoFix T55183, fix T55174: crashes with workspace / view layer relation.
Brecht Van Lommel [Thu, 24 May 2018 15:28:35 +0000 (17:28 +0200)]
Fix T55183, fix T55174: crashes with workspace / view layer relation.

Don't store pointers to ViewLayer in the workspace, only names. Add specific
relation type since the generic mechanism makes the code hard to follow.
Integrate with pointer restore for undo and library remapping code to avoid
data going out of sync.

Also add relation automatically if there doesn't exists one yet in
BKE_workspace_view_layer_get, because in general it's really hard to ensure
it will exist when making arbitrary scene changes.

Differential Revision:

14 months agoMerge branch 'master' into blender2.8
Campbell Barton [Fri, 25 May 2018 08:52:53 +0000 (10:52 +0200)]
Merge branch 'master' into blender2.8

14 months agoWM: check modal handlers for keymap lookups
Campbell Barton [Fri, 25 May 2018 08:51:05 +0000 (10:51 +0200)]
WM: check modal handlers for keymap lookups

Keep in sync with 2.8x

14 months agoUI: fix assert
Campbell Barton [Fri, 25 May 2018 08:45:48 +0000 (10:45 +0200)]
UI: fix assert

Replace hard-coded button size check with UI_UNIT_X.

Caused icon-only buttons to have strings assigned based on UI-scale.

14 months agoFix 3D Cursor w/ interface scale
Campbell Barton [Fri, 25 May 2018 08:07:28 +0000 (10:07 +0200)]
Fix 3D Cursor w/ interface scale

14 months agoMerge branch 'master' into blender2.8
Campbell Barton [Fri, 25 May 2018 08:04:25 +0000 (10:04 +0200)]
Merge branch 'master' into blender2.8

14 months ago3D View: add pixelsize function w/o UI scale
Campbell Barton [Fri, 25 May 2018 08:00:33 +0000 (10:00 +0200)]
3D View: add pixelsize function w/o UI scale

14 months agoCleanup: style
Campbell Barton [Fri, 25 May 2018 07:45:04 +0000 (09:45 +0200)]
Cleanup: style

14 months agoKeymap: use Ctrl-Shift-Space for fullscreen area
Campbell Barton [Fri, 25 May 2018 07:20:37 +0000 (09:20 +0200)]
Keymap: use Ctrl-Shift-Space for fullscreen area

Closer to Shift-Space, less awkward to access.

14 months agoUI: Move Split into Mesh Menu
Campbell Barton [Fri, 25 May 2018 06:26:14 +0000 (08:26 +0200)]
UI: Move Split into Mesh Menu

This doesn't just apply to faces.

14 months agoFix split only checking selected faces
Campbell Barton [Fri, 25 May 2018 06:30:13 +0000 (08:30 +0200)]
Fix split only checking selected faces

14 months agoUI: move copy/paste into the object menu
Campbell Barton [Fri, 25 May 2018 06:16:24 +0000 (08:16 +0200)]
UI: move copy/paste into the object menu

We already have per mode copy/paste in mode specific menus.

14 months agoUI: Specials menu update
Campbell Barton [Fri, 25 May 2018 06:07:43 +0000 (08:07 +0200)]
UI: Specials menu update

- Name "Context Menu".
- Make it more context sensitive.
- Remove some more obscure items.

Patch from @billreynish

14 months agoFix crash when entering the curve edit mode.
Germano [Thu, 24 May 2018 22:22:35 +0000 (19:22 -0300)]
Fix crash when entering the curve edit mode.

14 months agoED_transform_snap_object: remove unused bmain parameter in context creation.
Germano [Thu, 24 May 2018 22:09:01 +0000 (19:09 -0300)]
ED_transform_snap_object: remove unused bmain parameter in context creation.

14 months agoChange defaults
Campbell Barton [Thu, 24 May 2018 19:19:38 +0000 (21:19 +0200)]
Change defaults

- Vertex/Edge Slide: Correct UV's = ON
- Extrude Along Normals: Even Thickness = ON
- Laplacian Smooth: Lambda Factor = 1.0
- UV/Image Editor: Normalized Coordinates = ON
- Render Image: Dithering = 1
- Image Sequence Auto Refresh = ON

See T54943

14 months ago3D View: remove temporary edge-select hack
Campbell Barton [Thu, 24 May 2018 18:35:51 +0000 (20:35 +0200)]
3D View: remove temporary edge-select hack

This caused a glitch with COW, where forcing edge selection
caused the evaluated scene to enable this afterwards.

Now pass the selection mode as an argument to the draw function.

14 months agoFix crash with snap and project to self.
Germano [Thu, 24 May 2018 18:35:20 +0000 (15:35 -0300)]
Fix crash with snap and project to self.

Apparently the original `edit_btmesh` is being freed and the new one has to be referenced

14 months agoCorrect own last commit
Campbell Barton [Thu, 24 May 2018 17:35:35 +0000 (19:35 +0200)]
Correct own last commit

14 months agoMulti-Object-Editing: MESH_OT_shortest_path_select
Ish Bosamiya [Thu, 24 May 2018 17:22:28 +0000 (19:22 +0200)]
Multi-Object-Editing: MESH_OT_shortest_path_select

Note from revisor: Edit the error message to match the original one.

Maniphest Tasks: T54643
Differential Revision:

14 months agoFix T55184: Edge-loop select fails w/ vert/face modes
Campbell Barton [Thu, 24 May 2018 17:30:01 +0000 (19:30 +0200)]
Fix T55184: Edge-loop select fails w/ vert/face modes

14 months agoFix T55186: Circle and Lasso select were not working on Pose Bones
Joshua Leung [Thu, 24 May 2018 17:12:41 +0000 (19:12 +0200)]
Fix T55186: Circle and Lasso select were not working on Pose Bones

These needed to be using the COW evaluated data, instead of the raw bone

All other datatypes still need converting to work with this though.

14 months agoCycles: Cleanup: Remove duplicated atan2f definition for OpenCL
Lukas Stockner [Thu, 24 May 2018 17:06:50 +0000 (19:06 +0200)]
Cycles: Cleanup: Remove duplicated atan2f definition for OpenCL

Turns out that atan2f was already defined for OpenCL.

14 months agoFlatty Light
Pablo Vazquez [Thu, 24 May 2018 16:49:49 +0000 (18:49 +0200)]
Flatty Light

Add new Status Bar settings and minor tweaks to axis colors inspired by Andy's changes to the theme.

14 months agoCycles Denoising: Don't use atomics in the accumulation kernel on CPUs
Lukas Stockner [Sun, 1 Apr 2018 00:10:27 +0000 (02:10 +0200)]
Cycles Denoising: Don't use atomics in the accumulation kernel on CPUs

The GPU kernel needs to use atomics for accumulation since all offsets are processed in
parallel, but on CPUs that's not the case, so we can disable them there for a considerable speedup.

14 months agoUI: use icons in render menu
Campbell Barton [Thu, 24 May 2018 16:43:16 +0000 (18:43 +0200)]
UI: use icons in render menu

14 months agoKeymap: remove Ctrl-Up/Down to toggle full-area
Campbell Barton [Thu, 24 May 2018 16:37:57 +0000 (18:37 +0200)]
Keymap: remove Ctrl-Up/Down to toggle full-area

This is already accessible via Shift-Space which can be accessed
easily with one hand.

14 months agoAlways get a reference point when snapping with the projected elements option enabled.
Germano [Thu, 24 May 2018 16:37:48 +0000 (13:37 -0300)]
Always get a reference point when snapping with the projected elements option enabled.

14 months agoUI: View menu area operators now in submenu
Campbell Barton [Thu, 24 May 2018 16:35:19 +0000 (18:35 +0200)]
UI: View menu area operators now in submenu

14 months agoCOW Fix: Border selecting bones on rigs broke
Joshua Leung [Thu, 24 May 2018 16:17:45 +0000 (18:17 +0200)]
COW Fix: Border selecting bones on rigs broke

Annoyingly, this was working as recently as yesterday...

14 months agoUI: disable view context w/ OpenGL anim render
Campbell Barton [Thu, 24 May 2018 16:15:10 +0000 (18:15 +0200)]
UI: disable view context w/ OpenGL anim render

The 3D view menu can GL render from a single view

14 months agoUI: remove render panel, move operators to menu
Campbell Barton [Thu, 24 May 2018 16:09:45 +0000 (18:09 +0200)]
UI: remove render panel, move operators to menu

14 months agoRevert "UI: remove 'Render' top level menu"
Campbell Barton [Thu, 24 May 2018 15:50:49 +0000 (17:50 +0200)]
Revert "UI: remove 'Render' top level menu"

This reverts commit 10e43c0aef38647d8904e758e36261c9ac0b6460.

After discussion, it's useful to have render menu
for more obscure render options.

14 months agoDrivers UI (Part of T55145) - WIP first steps towards getting a floating driver setti...
Joshua Leung [Thu, 24 May 2018 16:08:32 +0000 (18:08 +0200)]
Drivers UI (Part of T55145) - WIP first steps towards getting a floating driver settings panel

This commit adds a new menu entry - "Edit Driver" - the RMB menu that
will show a popover panel displaying the settings for the driver you
activated the menu item on. This shows the popover panel defined in
yesterday's commit (GRAPH_PT_drivers_popover).

It is possible to edit the driver settings from this panel now.
However, do be warned that the functionality presented is highly
WIP still. There are some unresolved issues, such as:
 - The popover disappears too easily on any mouse movements/clicks
   on anything, making the panel less useful right now than it should.

 - The layout still needs refining. Currently the layout that's there
   is a bit of a placeholder until we can play around with it a bit
   more to see/feel what feels good/right or what is too much.

 - The "Open Drivers Editor" on the bottom of the panel doesn't work.
   There are some tricky context tricky things that need to happen here
   to make that case work, since the operator button won't have the necessary
   context info.

14 months agoFix typo in editmesh edge delete
Campbell Barton [Thu, 24 May 2018 15:49:44 +0000 (17:49 +0200)]
Fix typo in editmesh edge delete

14 months agoUI: add top-level 'Edit' menu
Campbell Barton [Thu, 24 May 2018 14:46:01 +0000 (16:46 +0200)]
UI: add top-level 'Edit' menu

Use this for undo/redo, copy/paste & preferences.

14 months agoCycles/Compositor: Add arctan2 operation to the Math node
Lukas Stockner [Thu, 24 May 2018 00:51:41 +0000 (02:51 +0200)]
Cycles/Compositor: Add arctan2 operation to the Math node

The Math node currently has the normal atan() function, but for
actual angles this is fairly useless without additional nodes to handle the signs.

Since the node has two inputs anyways, it only makes sense to add an arctan2 option.

Reviewers: sergey, brecht

Differential Revision:

14 months agoMerge branch 'master' into blender2.8
Campbell Barton [Thu, 24 May 2018 14:44:26 +0000 (16:44 +0200)]
Merge branch 'master' into blender2.8

14 months agoCycles/Eevee: Implement disk and ellipse shapes for area lamps
Lukas Stockner [Thu, 24 May 2018 01:50:16 +0000 (03:50 +0200)]
Cycles/Eevee: Implement disk and ellipse shapes for area lamps

The implementation is pretty straightforward.

In Cycles, sampling the shapes is currently done w.r.t. area instead of solid angle.

There is a paper on solid angle sampling for disks [1], but the described algorithm is based on
simply sampling the enclosing square and rejecting samples outside of the disk, which is not exactly
great for Cycles' RNG (we'd need to setup a LCG for the repeated sampling) and for GPU divergence.

Even worse, the algorithm is only defined for disks. For ellipses, the basic idea still works, but a
way to analytically calculate the solid angle is required. This is technically possible [2], but the
calculation is extremely complex and still requires a lookup table for the Heuman Lambda function.

Therefore, I've decided to not implement that for now, we could still look into it later on.

In Eevee, the code uses the existing ltc_evaluate_disk to implement the lighting calculations.

[1]: "Solid Angle Sampling of Disk and Cylinder Lights"
[2]: "Analytical solution for the solid angle subtended at any point by an ellipse via a point source radiation vector potential"

Reviewers: sergey, brecht, fclem

Differential Revision:

14 months agoFix all modifiers that depended on BKE_modifier_get_evaluated_mesh_from_object
Dalai Felinto [Thu, 24 May 2018 14:40:08 +0000 (16:40 +0200)]
Fix all modifiers that depended on BKE_modifier_get_evaluated_mesh_from_object

This fix applying the following modifiers:
* Boolean (working already)
* Array
* Mesh Deform
* Surface Deform
* Vertex Weight Proximity

This function was to return evaluated mesh. So it should get the evaluated
object at all times. So in this case it makes more sense to simply pass the
depsgraph (or in this case the ModifierEvalContext that contains both the
depsgraph and the flag.

Solution discussed with Bastien Montagne.

14 months ago3D View: remove poll 3D view for copy/paste
Campbell Barton [Thu, 24 May 2018 14:40:33 +0000 (16:40 +0200)]
3D View: remove poll 3D view for copy/paste

These operators only need selected objects.

14 months agoUI: remove 'Render' top level menu
Campbell Barton [Thu, 24 May 2018 14:20:56 +0000 (16:20 +0200)]
UI: remove 'Render' top level menu

- Toggle render window is in the window menu.
- OpenGL render settings in the 3D View menu.
- Playback animation in the render panel.

14 months agoCorrect last commit
Campbell Barton [Thu, 24 May 2018 14:09:20 +0000 (16:09 +0200)]
Correct last commit

14 months agoUI: re-arrange 3D view menus
Campbell Barton [Thu, 24 May 2018 13:37:52 +0000 (15:37 +0200)]
UI: re-arrange 3D view menus

- Adjusted order and names for better consistency.
- Group add/edit/delete into menu sections.
- Move UV/Vertex color into 'Face Data' menu, matching 'Edge Data'.
- De-duplicate items between vertex/edge/face menu.
- Remove undo/redo menu (to be moved into 'Edit' menu).
- Remove Auto-Merge & Proportional Editing
  (already available from the 3D view).

Patch from @billreynish w/ edits

14 months agoFix boolean modifier when objects have transformations
Dalai Felinto [Thu, 24 May 2018 13:56:09 +0000 (15:56 +0200)]
Fix boolean modifier when objects have transformations

Follow up for 9406a1f19570.

14 months agoFix: Name of selected object/bone + current frame in 3D view didn't take region overl...
Joshua Leung [Thu, 24 May 2018 13:43:39 +0000 (15:43 +0200)]
Fix: Name of selected object/bone + current frame in 3D view didn't take region overlap (for headers-on-bottom) into account

14 months agoFix cannot apply boolean modifier
Dalai Felinto [Thu, 24 May 2018 13:26:02 +0000 (15:26 +0200)]
Fix cannot apply boolean modifier

14 months agoPartial Fix for T55165: Camera manipulator was not updating when the focal length...
Joshua Leung [Thu, 24 May 2018 13:22:03 +0000 (15:22 +0200)]
Partial Fix for T55165: Camera manipulator was not updating when the focal length ("lens") parameter was changed directly

14 months agoFix T55177: pose-mode manipulator placement w/ COW
Campbell Barton [Thu, 24 May 2018 13:12:40 +0000 (15:12 +0200)]
Fix T55177: pose-mode manipulator placement w/ COW

14 months agoOops... should rebuild before committing
Joshua Leung [Thu, 24 May 2018 13:10:12 +0000 (15:10 +0200)]
Oops... should rebuild before committing

14 months agoMulti Pose: Selecting a bone in one armature doesn't deselect bones in the other...
Joshua Leung [Thu, 24 May 2018 12:54:56 +0000 (14:54 +0200)]
Multi Pose: Selecting a bone in one armature doesn't deselect bones in the other armatures

This was actually due to missing COW flushing of pose data on the "other"
objects (only the active object was getting tagged for updates).

14 months agoFix: Several pose select operators were not in fact working with COW
Joshua Leung [Thu, 24 May 2018 12:38:22 +0000 (14:38 +0200)]
Fix: Several pose select operators were not in fact working with COW

The following operators are fixed in this commit
* POSE_OT_select_linked
* POSE_OT_select_grouped
* POSE_OT_select_mirror

14 months agoCleanup: Some minor tweaks to code
Joshua Leung [Thu, 24 May 2018 11:47:33 +0000 (13:47 +0200)]
Cleanup: Some minor tweaks to code

14 months agoFix missing ID pointers expansion for ID itself in readfile code.
Bastien Montagne [Thu, 24 May 2018 12:55:05 +0000 (14:55 +0200)]
Fix missing ID pointers expansion for ID itself in readfile code.

Was breaking static override chaining (static override of a linked
datablock that is already a static override in it original lib file).

Dummy mistake, thanks to @dfelinto for finding the bug.

14 months agoFix T55175: outliner "Show Active" not working.
Brecht Van Lommel [Thu, 24 May 2018 12:46:09 +0000 (14:46 +0200)]
Fix T55175: outliner "Show Active" not working.

14 months agoFix T55178: Cursor fails to restore on cancel
Campbell Barton [Thu, 24 May 2018 12:23:32 +0000 (14:23 +0200)]
Fix T55178: Cursor fails to restore on cancel

574c0fe38f332bd97c588029c0075ecba1fe19cd caused complications
restoring the cursor.

Use WM_cursor_modal_set/restore which is intended for operator use,
calling ED_region_cursor_set after an operator runs isn't reliable.

14 months agoDepsgraph: tag depsgraph for copy-on-write flush when RNA changes
Dalai Felinto [Thu, 24 May 2018 10:04:04 +0000 (12:04 +0200)]
Depsgraph: tag depsgraph for copy-on-write flush when RNA changes

Fixes bug with changes to properties not being flushed to the COW data.
It fixes T55144.

This is the part of rBb4b745b72064 that is required although slow.
Which was partially addressed but the rest of the commit, which in
turn broke things. So for now let's get RNA to flush slow cow, and
deal with the consequences.

14 months agoFix T55171: crash with undo and linked collections.
Brecht Van Lommel [Thu, 24 May 2018 10:01:40 +0000 (12:01 +0200)]
Fix T55171: crash with undo and linked collections.

Collections created in library file versioning need to be set as coming
from the library, otherwise they get freed on undo.

14 months agoFix Lamps, Empties, Cameras and Speakers not using theme colors
Pablo Vazquez [Thu, 24 May 2018 10:01:25 +0000 (12:01 +0200)]
Fix Lamps, Empties, Cameras and Speakers not using theme colors

14 months agoSlightly smaller triangle collapse icon on panels
Pablo Vazquez [Thu, 24 May 2018 09:23:00 +0000 (11:23 +0200)]
Slightly smaller triangle collapse icon on panels

14 months agoFix T55170 and T55167: Crash adding new curve
Germano [Thu, 24 May 2018 08:34:24 +0000 (10:34 +0200)]
Fix T55170 and T55167: Crash adding new curve

We do the same solution as we have for mesh_evaluated.

14 months agoUI: Add theming support for the status-bar
Julian Eisel [Thu, 24 May 2018 08:19:27 +0000 (10:19 +0200)]
UI: Add theming support for the status-bar

For now not bumping subversion, even though I technically should. We can do if
needed, but would like to avoid bumping it every few days...

14 months agoWorkbench: in editmode the toggle xray option will be disabled
Jeroen Bakker [Thu, 24 May 2018 08:23:03 +0000 (10:23 +0200)]
Workbench: in editmode the toggle xray option will be disabled

Z-Key was already taken by show hidden wires

14 months agoWorkbench: define to enable/disable revealage buffer.
Jeroen Bakker [Thu, 24 May 2018 07:06:29 +0000 (09:06 +0200)]
Workbench: define to enable/disable revealage buffer.

14 months agoWorkbench: Revealage buffer
Jeroen Bakker [Wed, 23 May 2018 14:35:34 +0000 (16:35 +0200)]
Workbench: Revealage buffer

14 months agoCorrect last commit
Campbell Barton [Thu, 24 May 2018 07:27:13 +0000 (09:27 +0200)]
Correct last commit

14 months agoCorrect fix for view center
Campbell Barton [Thu, 24 May 2018 07:04:25 +0000 (09:04 +0200)]
Correct fix for view center

The view layers active object was not being copied.

14 months agoRevert "Fix COW view center for pose mode"
Campbell Barton [Thu, 24 May 2018 06:55:54 +0000 (08:55 +0200)]
Revert "Fix COW view center for pose mode"

This reverts commit 485990e4aa38c182826e44cd36b1165bc8de7f95.

14 months agoMerge branch 'master' into blender2.8
Philipp Oeser [Thu, 24 May 2018 07:03:07 +0000 (09:03 +0200)]
Merge branch 'master' into blender2.8

14 months agoFix T55034: Setting duplication group for multiple selected items only
Philipp Oeser [Mon, 14 May 2018 10:54:23 +0000 (12:54 +0200)]
Fix T55034: Setting duplication group for multiple selected items only
affects one item

UI editing multiple selected items missed the case of PROP_POINTER

Reviewed By: campbellbarton

Differential Revision:

14 months agoMerge branch 'master' into blender2.8
Philipp Oeser [Thu, 24 May 2018 06:48:40 +0000 (08:48 +0200)]
Merge branch 'master' into blender2.8

14 months agoFix Extend property of Lasso select tool in Mask editor not working
Philipp Oeser [Sun, 13 May 2018 08:46:00 +0000 (10:46 +0200)]
Fix Extend property of Lasso select tool in Mask editor not working

Reviewed By: campbellbarton

Differential Revision:

14 months agoFix T54336: Extend property of Lasso select tool in Node editor does not
Philipp Oeser [Sun, 13 May 2018 07:37:53 +0000 (09:37 +0200)]
Fix T54336: Extend property of Lasso select tool in Node editor does not

Reviewed By: campbellbarton

Differential Revision:

14 months agoMerge branch 'master' into blender2.8
Philipp Oeser [Thu, 24 May 2018 06:27:01 +0000 (08:27 +0200)]
Merge branch 'master' into blender2.8

14 months agoFix T54336: Extend property of Lasso select tool in Node editor does not
Philipp Oeser [Sun, 13 May 2018 07:37:53 +0000 (09:37 +0200)]
Fix T54336: Extend property of Lasso select tool in Node editor does not

14 months agoFix T55137: Compilation failing on non-x86-64 architectures
Lukas Stockner [Wed, 23 May 2018 23:41:18 +0000 (01:41 +0200)]
Fix T55137: Compilation failing on non-x86-64 architectures

Some conversion helper functions were (most likely by accident) contained
inside an ifdef for SSE2 support, so on e.g. ARM they would be undefined
and therefore cause compilation to fail.

14 months agoUI: Global "Status-bar" Area (WIP)
Julian Eisel [Wed, 23 May 2018 20:38:25 +0000 (22:38 +0200)]
UI: Global "Status-bar" Area (WIP)

* Add horizontal bar at bottom of all non-temp windows, similar to the Top-bar.
* Status-bar is hidden in UI-less fullscreen mode
* Current contents are preliminary and based on T54861:
** Left: Current file-path if needed. "(Modified)" note if file was changed.
** Center: Scene statistics (like in 2.7 Info Editor).
** Right: Progress-bars and reports
* Internally managed as own "STATUSBAR" editor-type (hidden in UI).
* Like with the Top-bar, Status-bar data and SDNA writing is disabled.
* Most changes in low-level screen/area code are to support layout bounds that differ from window bounds.

Design task: T54861
Main changes approved by @brecht.

14 months agoFix INFO_MT_surface_add
Germano [Wed, 23 May 2018 20:23:38 +0000 (17:23 -0300)]
Fix INFO_MT_surface_add

It was a copy of `INFO_MT_curve_add` (I'm sure it was not intentional).

14 months agoRevert "Depsgraph: refresh RNA that doesn't need a full rebuild"
Joshua Leung [Wed, 23 May 2018 18:24:58 +0000 (20:24 +0200)]
Revert "Depsgraph: refresh RNA that doesn't need a full rebuild"

This reverts commit b4b745b72064ee7d3d8b0245ac8e8358b7fd07a3.

This was causing a problem in 01_025_A.anim.blend from the Spring
production files, where selecting one of Autumn's bones would
result in character jumping back to the origin.

14 months agoFix T55166: crash joining areas
Campbell Barton [Wed, 23 May 2018 18:23:13 +0000 (20:23 +0200)]
Fix T55166: crash joining areas

Caused by own commit 6e40b2de7ae8,

Tested w/o this call and can't find any errors so commenting the call.

14 months agoFix curve not updating when scaling Bevel Object
Dalai Felinto [Wed, 23 May 2018 17:33:25 +0000 (19:33 +0200)]
Fix curve not updating when scaling Bevel Object

Note the relationship we need is from the geometry/object to the curve data,
not the curve object.

Related to T55167, though when copy-on-write is enabled, we still get a crash.

14 months agoUI: popup panel operator, as we have for menus
Campbell Barton [Wed, 23 May 2018 17:46:40 +0000 (19:46 +0200)]
UI: popup panel operator, as we have for menus

14 months agoFix T55168: missing updates when switching particle system type.
Brecht Van Lommel [Wed, 23 May 2018 16:21:35 +0000 (18:21 +0200)]
Fix T55168: missing updates when switching particle system type.

14 months agoFix wrong object user count on duplicate.
Brecht Van Lommel [Wed, 23 May 2018 16:53:37 +0000 (18:53 +0200)]
Fix wrong object user count on duplicate.

14 months agoFix crash loading without UI, after recent changes.
Brecht Van Lommel [Wed, 23 May 2018 16:04:43 +0000 (18:04 +0200)]
Fix crash loading without UI, after recent changes.

14 months agoFix T55163: visibility not updated for instanced collections.
Brecht Van Lommel [Wed, 23 May 2018 13:43:21 +0000 (15:43 +0200)]
Fix T55163: visibility not updated for instanced collections.

14 months agoFix compiler error: Stupid const vs non const
Joshua Leung [Wed, 23 May 2018 16:29:52 +0000 (18:29 +0200)]
Fix compiler error: Stupid const vs non const

14 months agoDrivers UI (Part of T55145) - WIP work to prepare a panel we can shove into a popover
Joshua Leung [Wed, 23 May 2018 16:18:54 +0000 (18:18 +0200)]
Drivers UI (Part of T55145) - WIP work to prepare a panel we can shove into a popover

HINT: It's called GRAPH_PT_drivers_popover right now

14 months agoFix typo in header
Campbell Barton [Wed, 23 May 2018 15:13:41 +0000 (17:13 +0200)]
Fix typo in header

14 months agoFix COW view center for pose mode
Campbell Barton [Wed, 23 May 2018 14:44:29 +0000 (16:44 +0200)]
Fix COW view center for pose mode

14 months agoFix last usages of Scene.r.cfra in modifiers code.
Bastien Montagne [Wed, 23 May 2018 14:36:44 +0000 (16:36 +0200)]
Fix last usages of Scene.r.cfra in modifiers code.

Note that some modifiers-related code in BKE still uses that...

14 months agoDrivers UI (Part of T55145) - Show datablock that driven property belongs to instead...
Joshua Leung [Wed, 23 May 2018 14:31:59 +0000 (16:31 +0200)]
Drivers UI (Part of T55145) - Show datablock that driven property belongs to instead of only the property

Otherwise, it's not clear where things are coming from.

FIXME: The icons for datablocks may not always be correct. It uses the
innermost struct's icon instead of the datablock's icon - e.g. Bone
vs Object/Armature. But, that may make more sense for users?

14 months agoDrivers UI (Part of T55145) - Refactor existing UI code to allow it to be reused
Joshua Leung [Wed, 23 May 2018 14:11:14 +0000 (16:11 +0200)]
Drivers UI (Part of T55145) - Refactor existing UI code to allow it to be reused

The idea is that we may be able to just take this code and put it into a
new popover panel that gets displayed when called from the UI. This should
at least work well for a first pass test of what we want this UI to look like.

14 months agoDrivers UI: Add the "Update Dependencies" logic into the callbacks that should be...
Joshua Leung [Wed, 23 May 2018 14:00:56 +0000 (16:00 +0200)]
Drivers UI: Add the "Update Dependencies" logic into the callbacks that should be run on every button press

In theory, this should mean that we can get rid of the "Update Dependencies"
button. In practice, there may still be cases where it's still needed
(as somehow, it did end up being needed in the past, even though the RNA
calls should in theory be doing everything needed already).

14 months agoDrivers UI: Get rid of dedicated button to remove active driver
Joshua Leung [Wed, 23 May 2018 13:59:15 +0000 (15:59 +0200)]
Drivers UI: Get rid of dedicated button to remove active driver

There are multiple other ways to do it. Leaving this here just made it
easy (and dangerous) to accidentally remove the driver, and was causing
other problems with other layouts.