3 years agoMerge branch 'master' into blender2.8
Lukas Stockner [Sun, 27 May 2018 15:26:59 +0000 (17:26 +0200)]
Merge branch 'master' into blender2.8

3 years agoCycles: Fix problems in the IES loader when rendering with no file selected
Lukas Stockner [Sun, 27 May 2018 15:14:01 +0000 (17:14 +0200)]
Cycles: Fix problems in the IES loader when rendering with no file selected

3 years agoMerge branch 'master' into blender2.8
Campbell Barton [Sun, 27 May 2018 10:54:21 +0000 (12:54 +0200)]
Merge branch 'master' into blender2.8

3 years agoUI: replace BLI_strncpy w/ memcpy
Campbell Barton [Sun, 27 May 2018 10:50:03 +0000 (12:50 +0200)]
UI: replace BLI_strncpy w/ memcpy

Size is already checked.

3 years agoGrid: Do not go over objects in front/side ortho views.
Clément Foucault [Sun, 27 May 2018 09:25:29 +0000 (11:25 +0200)]
Grid: Do not go over objects in front/side ortho views.

Fixes T55190 Grid displayed on top of objects in orthographic view

3 years agoMerge branch 'master' into blender2.8
Campbell Barton [Sun, 27 May 2018 09:06:29 +0000 (11:06 +0200)]
Merge branch 'master' into blender2.8

3 years agoCleanup: unused var
Campbell Barton [Sun, 27 May 2018 09:06:03 +0000 (11:06 +0200)]
Cleanup: unused var

3 years agoRecently added IES conflicts w/ EEVEE
Campbell Barton [Sun, 27 May 2018 09:01:46 +0000 (11:01 +0200)]
Recently added IES conflicts w/ EEVEE

3 years agoGrid: Fix T51813: Opaque grid on OSX.
Clément Foucault [Sun, 27 May 2018 08:50:39 +0000 (10:50 +0200)]
Grid: Fix T51813: Opaque grid on OSX.

3 years ago3D View: minor change to NDOF view orbit
Campbell Barton [Sun, 27 May 2018 08:34:01 +0000 (10:34 +0200)]
3D View: minor change to NDOF view orbit

This change is needed for 2.8, where the NULL check isn't a reliable way
of testing if dynamic offset is needed.

3 years agoFix restrict error in BLI_str_format_byte_unit
Campbell Barton [Sun, 27 May 2018 08:25:52 +0000 (10:25 +0200)]
Fix restrict error in BLI_str_format_byte_unit

Don't use sprintf to append a string to it's self.

Also correct BLI_str_rstrip_float_zero's return value.

3 years agomake.bat : Fix builtime.txt being written in the wrong folder.
Ray Molenkamp [Sun, 27 May 2018 01:20:07 +0000 (19:20 -0600)]
make.bat : Fix builtime.txt being written in the wrong folder.

3 years agoCycles: Add Support for IES files as textures for light strength
Lukas Stockner [Sat, 26 May 2018 22:46:37 +0000 (00:46 +0200)]
Cycles: Add Support for IES files as textures for light strength

This patch adds support for IES files, a file format that is commonly used to store the directional intensity distribution of light sources.
The new IES node is supposed to be plugged into the Strength input of the Emission node of the lamp.

Since people generating IES files do not really seem to care about the standard, the parser is flexible enough to accept all test files I have tried.
Some common weirdnesses are distributing values over multiple lines that should go into one line, using commas instead of spaces as delimiters and adding various useless stuff at the end of the file.

The user interface of the node is similar to the script node, the user can either select an internal Text or load a file.
Internally, IES files are handled similar to Image textures: They are stored in slots by the LightManager and each unique IES is assigned to one slot.

The local coordinate system of the lamp is used, so that the direction of the light can be changed. For UI reasons, it's usually best to add an area light,
rotate it and then change its type, since especially the point light does not immediately show its local coordinate system in the viewport.

Reviewers: #cycles, dingto, sergey, brecht

Reviewed By: #cycles, dingto, brecht

Subscribers: OgDEV, crazyrobinhood, secundar, cardboard, pisuke, intrah, swerner, micah_denn, harvester, gottfried, disnel, campbellbarton, duarteframos, Lapineige, brecht, juicyfruit, dingto, marek, rickyblender, bliblubli, lockal, sergey

Differential Revision:

3 years agoWorkbench: Shadow: Refine camera in shadow test.
Clément Foucault [Sat, 26 May 2018 22:15:47 +0000 (00:15 +0200)]
Workbench: Shadow: Refine camera in shadow test.

Test if all nearplane points are not in front of the shadow BBox.

3 years agoWorkbench: Shadows: Add frustum check and camera occlusion test.
Clément Foucault [Sat, 26 May 2018 20:28:35 +0000 (22:28 +0200)]
Workbench: Shadows: Add frustum check and camera occlusion test.

If the object is manifold and the camera is in the shadow side, we can
use the depth fail method to fix the inverted shadow glitch.

Unfortunately this does not really work for non-manifold.

Implementation details:
We try to be as efficient as we can, we precompute camera near plane
projected into 2D shadow space so we can test for intersection with the
shadow boundbox easily.

As the intersection test is done in 2D it's pretty fast.
Unfortunately, this means the shadow bounds are all aligned to the same
space and are not the smallest bound we could extract.

3 years agoArmature: Fix warning.
Clément Foucault [Sat, 26 May 2018 20:17:10 +0000 (22:17 +0200)]
Armature: Fix warning.

3 years agoDRW: Add new DRW_debug API.
Clément Foucault [Sat, 26 May 2018 20:08:56 +0000 (22:08 +0200)]
DRW: Add new DRW_debug API.

This new API aim to provide simple function that can be called by the draw
engines during any phase of the draw pipeline. All calls are saved and
issued after all engines have finished rendering.

This removes the need of setuping special passes and shading groups for some
simple debug drawing.

3 years agoWorkbench: Codestyle
Clément Foucault [Mon, 21 May 2018 17:18:01 +0000 (19:18 +0200)]
Workbench: Codestyle

3 years agoWorkbench: Shadow: Add shader variant for manifold case.
Clément Foucault [Mon, 21 May 2018 17:08:02 +0000 (19:08 +0200)]
Workbench: Shadow: Add shader variant for manifold case.

Totally Manifold objects only require a single increment/decrement of the
stencil value. This result in less geometry generated and less overdraw.

3 years agoWorkbench: Shadow: Use depth fail method for manifold objects.
Clément Foucault [Mon, 21 May 2018 11:21:26 +0000 (13:21 +0200)]
Workbench: Shadow: Use depth fail method for manifold objects.

Since this method have no failure case for manifold objects, use it.

3 years agoThreads: add spinlock hit for hyperthreading processors on Windows.
Brecht Van Lommel [Sat, 26 May 2018 20:29:10 +0000 (22:29 +0200)]
Threads: add spinlock hit for hyperthreading processors on Windows.

Suggested by Percy Ross Tiglao.

3 years agoArmature: Make Custom bone have the same appearance as other bones.
Clément Foucault [Sun, 20 May 2018 22:15:19 +0000 (00:15 +0200)]
Armature: Make Custom bone have the same appearance as other bones.

I had to correct some errors in the winding order of the normal bones.

3 years agoArmature: Fix missing bone edges in object mode.
Clément Foucault [Sun, 20 May 2018 20:53:33 +0000 (22:53 +0200)]
Armature: Fix missing bone edges in object mode.

3 years agoArmature: Modify Shape outline shader to use Line adjacency instead of tri.
Clément Foucault [Sun, 20 May 2018 20:48:35 +0000 (22:48 +0200)]
Armature: Modify Shape outline shader to use Line adjacency instead of tri.

This is much faster and simpler. This is also to make it compatible with
custom bone shape in the future.

3 years agoCleanup: unused defines
Campbell Barton [Sat, 26 May 2018 11:15:55 +0000 (13:15 +0200)]
Cleanup: unused defines

3 years agoCleanup: unused defines
Campbell Barton [Sat, 26 May 2018 11:12:00 +0000 (13:12 +0200)]
Cleanup: unused defines

3 years agoRNA: correct naming w/ last cleanup
Campbell Barton [Sat, 26 May 2018 11:06:40 +0000 (13:06 +0200)]
RNA: correct naming w/ last cleanup

3 years agoRNA: follow boolean naming conventions
Campbell Barton [Sat, 26 May 2018 09:54:25 +0000 (11:54 +0200)]
RNA: follow boolean naming conventions

3 years agoCleanup: whitespace, long lines, duplicate include
Campbell Barton [Sat, 26 May 2018 08:41:25 +0000 (10:41 +0200)]
Cleanup: whitespace, long lines, duplicate include

3 years agoCleanup: rename RNA property to match UI
Campbell Barton [Sat, 26 May 2018 07:51:21 +0000 (09:51 +0200)]
Cleanup: rename RNA property to match UI

3 years agoCOW Fix: Lamp manipulators
Campbell Barton [Sat, 26 May 2018 07:44:45 +0000 (09:44 +0200)]
COW Fix: Lamp manipulators

3 years agomake.bat: Add support for building with ninja.
Ray Molenkamp [Sat, 26 May 2018 03:46:42 +0000 (21:46 -0600)]
make.bat: Add support for building with ninja.

ninja is an alternative to msbuild designed for fast rebuilds. However there is no IDE support, builds only from the command line.

Comparison between msbuild and ninja for a full build, build time in seconds.

Full Clean Build
msbuild     867.5
Ninja       801.2
Difference  -66.3 (-7.6%)

Minor Change
msbuild      43.0
Ninja        14.9
Difference  -28.1 (-64.4%)

No Changes
msbuild      23.0
Ninja         6.1
Difference  -16.9 (-73.5%)

3 years agomake.bat/cleanup: removed stray echo in make.bat
Ray Molenkamp [Fri, 25 May 2018 23:59:07 +0000 (17:59 -0600)]
make.bat/cleanup: removed stray echo in make.bat

3 years agomake.bat: refactor make.bat
Ray Molenkamp [Fri, 25 May 2018 23:57:13 +0000 (17:57 -0600)]
make.bat: refactor make.bat

make.bat was starting to become hard to maintain, this refactors it into separate batch files for each stage of the process.

-Improved detection of msvc2013/2015
-Improved failure handling.
-Added check for working msbuild and C++ compiler
-Added verbose switch to ease trouble shooting.
-Added Check if svn/cmake/git are in the path before using them
-Display the build configuration before asking to download the libraries
-Offer an option to recover an interrupted checkout of the libraries.
-Automatically check out sub-modules in-case they are missing.

3 years agoFix error when snapping with occlusion.
Germano [Fri, 25 May 2018 21:43:38 +0000 (18:43 -0300)]
Fix error when snapping with occlusion.

Face normal may be facing the wrong side.

3 years agoFix T55207, fix T55208: hair not positioned correctly after subsurf.
Brecht Van Lommel [Fri, 25 May 2018 19:44:33 +0000 (21:44 +0200)]
Fix T55207, fix T55208: hair not positioned correctly after subsurf.

The problem was that the particle system modifier was reading ob->derivedDeform
during modifier stack evaluation. Due to the mesh -> DM conversion this was no
longer set leading to wrong results.

In fact we don't really need the deformed mesh, just the original mesh topology
for face/poly index remapping. So the solution is to use that instead.

3 years agoAdd number and memory size formatting throughout the UI
Diego Gangl [Fri, 25 May 2018 20:17:15 +0000 (22:17 +0200)]
Add number and memory size formatting throughout the UI

This commit adds number formatting (thousands separator) to the baking panel. It also adds a new function to format memory sizes (KB/GB/etc) and applies it to the baking panel and scene stats. The new function is unit tested.

Reviewers: Severin
Tags: #user_interface
Differential Revision:

3 years agoFix eevee render settings not working
Dalai Felinto [Fri, 25 May 2018 17:50:43 +0000 (19:50 +0200)]
Fix eevee render settings not working

This was no longer working since 15c2801aac33.

3 years agoTool System: cursor tool now transforms on drag
Campbell Barton [Fri, 25 May 2018 17:43:23 +0000 (19:43 +0200)]
Tool System: cursor tool now transforms on drag

3 years ago[windows/make.bat] use a more reliable way of locating visual studio 2017.
Ray Molenkamp [Fri, 25 May 2018 16:24:01 +0000 (10:24 -0600)]
[windows/make.bat] use a more reliable way of locating visual studio 2017.

The registry hack we were using wasn't very reliable, the recommended way to locating visual studio is using vswhere (15.2 and up), using it also allows to switch between the regular and pre-release versions.

3 years agoMulti-Object-Mode: EditMesh UV snap to cursor
Campbell Barton [Fri, 25 May 2018 15:28:37 +0000 (17:28 +0200)]
Multi-Object-Mode: EditMesh UV snap to cursor

D3422 by @Al

3 years agoTimeline: Move Keying settings from sidebar to header as popover
Pablo Vazquez [Fri, 25 May 2018 15:02:40 +0000 (17:02 +0200)]
Timeline: Move Keying settings from sidebar to header as popover

Having them on the sidebar means we have to expand the editor every time.

3 years agoUse menu back theme colors for popover
Pablo Vazquez [Fri, 25 May 2018 15:00:38 +0000 (17:00 +0200)]
Use menu back theme colors for popover

3 years agoCOW Fix: Transforming animated objects would jump when starting transforms
Joshua Leung [Fri, 25 May 2018 14:20:38 +0000 (16:20 +0200)]
COW Fix: Transforming animated objects would jump when starting transforms

Just as with my earlier fix for bones (0492e56fece3e0c7d7d43a8d06b393bc9f911fa2),
here we're reading evaluated object values into the "i" versions of each transform
property, and using the original/non-evaluated data for the pointers.

What's not clear though is what we should be doing with the "BKE_object_where_is_calc()"
calls here. They currently use ob, but that probably shouldn't happen... and ob_eval
should in theory have a more up-to-date version of what it would need to evaluate!

3 years agoUI: popover now only centers on active button once
Campbell Barton [Fri, 25 May 2018 14:22:06 +0000 (16:22 +0200)]
UI: popover now only centers on active button once

3 years agoFix T55200: dragging object into hidden collection does not hide it.
Brecht Van Lommel [Fri, 25 May 2018 14:07:17 +0000 (16:07 +0200)]
Fix T55200: dragging object into hidden collection does not hide it.

3 years agoUI: fix event handling direction
Campbell Barton [Fri, 25 May 2018 13:46:22 +0000 (15:46 +0200)]
UI: fix event handling direction

Correct arrow key direction in popovers,
also de-duplicate menu callback,

3 years agoFix: X-Axis Mirror option was missing from the Pose Options popover
Joshua Leung [Fri, 25 May 2018 13:28:59 +0000 (15:28 +0200)]
Fix: X-Axis Mirror option was missing from the Pose Options popover

Although it's mostly a rigging option, sometimes it's useful to have it when posing.

3 years agoRemove DerivedMesh: paint_utils.c; Cow-ify PAINT_OT_sample_color
Bastien Montagne [Fri, 25 May 2018 13:21:40 +0000 (15:21 +0200)]
Remove DerivedMesh: paint_utils.c; Cow-ify PAINT_OT_sample_color

DM was only using it for color sampling in the 3Dview. Now it's properly
using COW evaluated versions of object and mesh instead.

3 years agoFix T55062: crash with workspace scene relations.
Brecht Van Lommel [Fri, 25 May 2018 12:54:55 +0000 (14:54 +0200)]
Fix T55062: crash with workspace scene relations.

List of relations was saved with wrong struct type.

3 years agoStyle: use extra space for aligning parameters in a function.
Germano [Fri, 25 May 2018 02:56:13 +0000 (23:56 -0300)]
Style: use extra space for aligning parameters in a function.

3 years agoCleanup: Change remaining BKE_scene_frame_get() in constraint.c to use DEG_get_ctime()
Joshua Leung [Fri, 25 May 2018 12:49:11 +0000 (14:49 +0200)]
Cleanup: Change remaining BKE_scene_frame_get() in constraint.c to use DEG_get_ctime()

3 years agoFix T55197: Dopesheet filtering settings were not triggering refresh anymore due...
Joshua Leung [Fri, 25 May 2018 12:41:45 +0000 (14:41 +0200)]
Fix T55197: Dopesheet filtering settings were not triggering refresh anymore due to messagebus crap

3 years agoFix T55198: Preferences Keybindings Crash
Julian Eisel [Fri, 25 May 2018 12:01:25 +0000 (14:01 +0200)]
Fix T55198: Preferences Keybindings Crash

Operator sanitize function would be called for non operator props. Mistake from

3 years agoFix outliner showing objects in collections instances.
Brecht Van Lommel [Fri, 25 May 2018 11:42:20 +0000 (13:42 +0200)]
Fix outliner showing objects in collections instances.

It didn't do this before for groups, and while it could be useful this leads
to terrible performance when there are many instances.

3 years agoOutliner: optimize lookup of unused tree elements.
Brecht Van Lommel [Fri, 25 May 2018 11:34:49 +0000 (13:34 +0200)]
Outliner: optimize lookup of unused tree elements.

3 years agoUI: support for a popup panel which stays open
Campbell Barton [Fri, 25 May 2018 10:54:24 +0000 (12:54 +0200)]
UI: support for a popup panel which stays open

3 years agoUI: Move UI_paneltype_draw into layout code
Campbell Barton [Fri, 25 May 2018 10:19:04 +0000 (12:19 +0200)]
UI: Move UI_paneltype_draw into layout code

No functional changes, needed for persistent popovers.

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

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

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

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

3 years 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!

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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