blender.git
2 years agoMerge branch 'blender2.8' into soc-2018-bevel
Rohan Rathi [Wed, 20 Jun 2018 16:59:44 +0000 (22:29 +0530)]
Merge branch 'blender2.8' into soc-2018-bevel

2 years agoUI: Style locks in Object Transform panel
Pablo Vazquez [Wed, 20 Jun 2018 15:01:33 +0000 (17:01 +0200)]
UI: Style locks in Object Transform panel

2 years agoCleanup: whitespace
Campbell Barton [Wed, 20 Jun 2018 14:41:02 +0000 (16:41 +0200)]
Cleanup: whitespace

2 years agoUI: Single column, flow and sub-panel for collision physics
William Reynish [Wed, 20 Jun 2018 14:32:42 +0000 (16:32 +0200)]
UI: Single column, flow and sub-panel for collision physics

2 years agoCleanup: follow naming conventions
Campbell Barton [Wed, 20 Jun 2018 14:32:31 +0000 (16:32 +0200)]
Cleanup: follow naming conventions

Using panels for presets printed warnings for classes named as menus.

2 years agoIcons: update generation script
Campbell Barton [Wed, 20 Jun 2018 14:15:06 +0000 (16:15 +0200)]
Icons: update generation script

2 years agoUI: Single column layout for Force Fields
William Reynish [Wed, 20 Jun 2018 14:10:03 +0000 (16:10 +0200)]
UI: Single column layout for Force Fields

2 years agoUI: Dynamic Paint panels into sub-panels
William Reynish [Wed, 20 Jun 2018 14:02:32 +0000 (16:02 +0200)]
UI: Dynamic Paint panels into sub-panels

2 years agoStudiolight: Spherical harmonics
Jeroen Bakker [Wed, 20 Jun 2018 14:07:31 +0000 (16:07 +0200)]
Studiolight: Spherical harmonics

Compile time option to reduce the level of the SH

2 years agoMerge branch 'master' into blender2.8
Campbell Barton [Wed, 20 Jun 2018 14:01:30 +0000 (16:01 +0200)]
Merge branch 'master' into blender2.8

2 years agoCleanup: naming (make it clear vars are squared)
Campbell Barton [Wed, 20 Jun 2018 13:58:46 +0000 (15:58 +0200)]
Cleanup: naming (make it clear vars are squared)

2 years agoMerge branch 'master' into blender2.8
Campbell Barton [Wed, 20 Jun 2018 13:50:54 +0000 (15:50 +0200)]
Merge branch 'master' into blender2.8

2 years agoMerge branch 'master' into blender2.8
Campbell Barton [Wed, 20 Jun 2018 13:40:14 +0000 (15:40 +0200)]
Merge branch 'master' into blender2.8

2 years agoScreen: split ED_area_actionzone_find_xy
Campbell Barton [Wed, 20 Jun 2018 13:32:46 +0000 (15:32 +0200)]
Screen: split ED_area_actionzone_find_xy

Add ED_area_actionzone_refresh_xy which can tag redraw
find no longer changes changes to the action zone.

2 years agoCleanup: rename is_in_area_actionzone
Campbell Barton [Wed, 20 Jun 2018 11:52:56 +0000 (13:52 +0200)]
Cleanup: rename is_in_area_actionzone

2 years agoCleanup: quiet warning
Campbell Barton [Wed, 20 Jun 2018 11:55:16 +0000 (13:55 +0200)]
Cleanup: quiet warning

2 years agoCleanup: remove some useless Derivedmesh struct declarations.
Bastien Montagne [Wed, 20 Jun 2018 13:17:13 +0000 (15:17 +0200)]
Cleanup: remove some useless Derivedmesh struct declarations.

2 years agoCleanup: remove last DM usages from datatransfer code.
Bastien Montagne [Wed, 20 Jun 2018 12:50:05 +0000 (14:50 +0200)]
Cleanup: remove last DM usages from datatransfer code.

2 years agoStudiolight: fixed diffuse lighting
Jeroen Bakker [Wed, 20 Jun 2018 12:58:55 +0000 (14:58 +0200)]
Studiolight: fixed diffuse lighting

- Orientation of the cubemap were not conform cycles and eevee
- one side of the cubemap was flipped, so one side was overlit and the
other side was to dark.

2 years agoMerge branch 'master' into blender2.8
Bastien Montagne [Wed, 20 Jun 2018 12:16:22 +0000 (14:16 +0200)]
Merge branch 'master' into blender2.8

2 years agoFix crash opening some files, after recent changes.
Brecht Van Lommel [Wed, 20 Jun 2018 11:42:23 +0000 (13:42 +0200)]
Fix crash opening some files, after recent changes.

2 years agoObjects: support for hiding all objects in a collection.
Brecht Van Lommel [Mon, 18 Jun 2018 17:49:53 +0000 (19:49 +0200)]
Objects: support for hiding all objects in a collection.

In the outliner there are now icons for it, Ctrl+Click isolates a
single collections.

In the 3D view, Ctrl+H key opens a menu that is more or less the
equivalent of the old layer buttons in the header. Regular Click isolates
the collection, Shift+Click toggle the collection visibility. Pressing
number keys and letters works in this menu, which can help for quickly
selecting a specific collection.

Shortcuts for quick switching by just pressing 1/2/3/.. keys are available
again. The order can be confusing with nested collections, but that seems
unavoidable. The first numbers control the top level collections, and then
sub collections if numbers are left.

Remaining design issues:

* The 3D view menu needs to be improved: support for sub collections,
  staying open on shift+click, access from the 3D view header somewhere,
  shortcut key display.
* Currently collection hiding just controls per-object hiding, we plan
  to separate this state still so alt+H doesn't affect collection hiding.

2 years agoObjects: restore per object restrict view/render/select.
Brecht Van Lommel [Mon, 18 Jun 2018 17:18:02 +0000 (19:18 +0200)]
Objects: restore per object restrict view/render/select.

Note this is now separate from H key hiding, and meant for more persistent
ways to define which objects are relevant to the viewport or render.

This avoids some cases where you'd have to create collection specifically
to hide objects for viewport/render.

2 years agoObjects: restore H key per object hiding.
Brecht Van Lommel [Mon, 14 May 2018 21:36:56 +0000 (23:36 +0200)]
Objects: restore H key per object hiding.

H hides selected objects, Shift+H hides unselected objects, and Alt+H
reveals hidden objects.

This hiding state is distinct from restrict viewport and render, and
meant for temporarily hiding objects without affecting more persistent
collection hiding.

Object hiding is per view-layer, same as selection. It affects the
viewport and any preview renders in there, but not final renders.

In the outliner, different icons are now used for temporary hiding, and
restrict viewport and render. Hidden objects are greyed out.

Remaining design issues:

* For lamps we probably still want to keep their effect on the scene,
  currently they are fully disabled by hiding. Arguably mesh lights or
  even objects being reflected or casting shadows are not that different
  but perhaps the special lamp exception from local view should remain.
* We need a feature still to disabled this hiding for specific viewports,
  for render or animation preview where you want to see the entire scene
  while working in another view.
* We need a new icon for restrict viewport, for now it uses a grid similar
  to the 2.4 icon.
* Hiding objects does not preserve selection state as it did in 2.7,
  it's probably convenient to support this again?

2 years agoT55550: Workbench Shadows are incorrect in first draw cycle
Jeroen Bakker [Wed, 20 Jun 2018 10:26:06 +0000 (12:26 +0200)]
T55550: Workbench Shadows are incorrect in first draw cycle

Shadows uses the old location for light_direction. Maybe a merge
conflict.

2 years agoCleanup: remove some G.main from BKE's node.c
Bastien Montagne [Wed, 20 Jun 2018 10:16:16 +0000 (12:16 +0200)]
Cleanup: remove some G.main from BKE's node.c

Validate some cases using G_MAIN instead (I don't think we want to work
on any other Main than G.main one when registering/unregistering nodes
etc.).

And when freeing, all ID not in Main shall now be tagged accordingly, so
we *should* not need to do that stupi search over all ntrees in G.main
to check wether we have to free it ourself or not!

2 years agoUI: Use chevrons for number sliders, pulldowns and popovers
Pablo Vazquez [Wed, 20 Jun 2018 10:24:13 +0000 (12:24 +0200)]
UI: Use chevrons for number sliders, pulldowns and popovers

In the future popovers/pulldowns should have different indicators

Patch by William Reynish and Clement Foucault

2 years agoCleanup: moar G.main removal.
Bastien Montagne [Wed, 20 Jun 2018 09:53:30 +0000 (11:53 +0200)]
Cleanup: moar G.main removal.

Nice trick from blender2.8, we now can get active scene from active
window of windowmanager!

2 years agoFix crash activating the HUD w/o an active region
Campbell Barton [Wed, 20 Jun 2018 09:42:41 +0000 (11:42 +0200)]
Fix crash activating the HUD w/o an active region

2 years agoCleanup: get rid of last non-thread-safe BLI_frand random generator func.
Bastien Montagne [Wed, 20 Jun 2018 09:29:33 +0000 (11:29 +0200)]
Cleanup: get rid of last non-thread-safe BLI_frand random generator func.

2 years agoCleanup: get rid of last BLI_frand usage.
Bastien Montagne [Wed, 20 Jun 2018 09:27:19 +0000 (11:27 +0200)]
Cleanup: get rid of last BLI_frand usage.

2 years agoCleanup: use new BKE_mesh_iterator foreach_mapped helpers in WPaint gradient code.
Bastien Montagne [Wed, 20 Jun 2018 09:09:52 +0000 (11:09 +0200)]
Cleanup: use new BKE_mesh_iterator foreach_mapped helpers in WPaint gradient code.

2 years agoUI: fix "Edit Source" operator
Campbell Barton [Wed, 20 Jun 2018 09:13:07 +0000 (11:13 +0200)]
UI: fix "Edit Source" operator

2 years agoRevert "UI: fix "Edit Source" operator"
Campbell Barton [Wed, 20 Jun 2018 09:11:58 +0000 (11:11 +0200)]
Revert "UI: fix "Edit Source" operator"

This reverts commit 109dbab593b183b17e474d3f92468b06c86684f2.

Accidental changes applied

2 years agoUI: fix "Edit Source" operator
Campbell Barton [Wed, 20 Jun 2018 09:10:08 +0000 (11:10 +0200)]
UI: fix "Edit Source" operator

2 years agoMerge branch 'master' into blender2.8
Campbell Barton [Wed, 20 Jun 2018 09:09:07 +0000 (11:09 +0200)]
Merge branch 'master' into blender2.8

2 years agoParticle edit: Fix missing hair in edit mode for new particle systems
Sergey Sharybin [Wed, 20 Jun 2018 09:05:52 +0000 (11:05 +0200)]
Particle edit: Fix missing hair in edit mode for new particle systems

Need to get away from thosae update flags in original datablocks.

2 years agoUI: only show "Edit Translations" when addon used
Campbell Barton [Wed, 20 Jun 2018 08:45:03 +0000 (10:45 +0200)]
UI: only show "Edit Translations" when addon used

2 years agoObject Mode: enable mode locking by default
Campbell Barton [Wed, 20 Jun 2018 08:18:53 +0000 (10:18 +0200)]
Object Mode: enable mode locking by default

This is meant to be default behavior for 2.8, see T55246

2 years agoOutliner: add object mode switching to RMB menu
Campbell Barton [Wed, 20 Jun 2018 08:04:43 +0000 (10:04 +0200)]
Outliner: add object mode switching to RMB menu

2 years agoCleanup: strip space
Campbell Barton [Wed, 20 Jun 2018 08:13:49 +0000 (10:13 +0200)]
Cleanup: strip space

2 years agoFix T55540 Add foreachMappedXXX equivalent API for evaluated meshes
Sybren A. Stüvel [Wed, 20 Jun 2018 08:03:50 +0000 (10:03 +0200)]
Fix T55540 Add foreachMappedXXX equivalent API for evaluated meshes

2 years agoStudiolight: removed raise condition
Jeroen Bakker [Wed, 20 Jun 2018 07:29:40 +0000 (09:29 +0200)]
Studiolight: removed raise condition

Happened when deleting many studiolights at the same time when the
previews were still beging calculated in the background.

Added a free function callback that is filled when the preview is being
generated. This free function will then kill the preview job

This patch also removes icons that are not valid anymore so the user
cannot accidentally render an icon where the studiolight is invalid.

In the end we should use a add/remove function in the studiolight as
currently icons are recalculated too much.

2 years agoMissed last commit
Campbell Barton [Wed, 20 Jun 2018 05:27:35 +0000 (07:27 +0200)]
Missed last commit

2 years agoCleanup: default emboss=off for outliner buttons
Campbell Barton [Wed, 20 Jun 2018 05:12:23 +0000 (07:12 +0200)]
Cleanup: default emboss=off for outliner buttons

Also use use braces for code blocks and reduce right-shift.

2 years agoCleanup: some more valid G.main usages moved to G_MAIN.
Bastien Montagne [Tue, 19 Jun 2018 17:30:47 +0000 (19:30 +0200)]
Cleanup: some more valid G.main usages moved to G_MAIN.

2 years agoMerge branch 'master' into blender2.8
Bastien Montagne [Tue, 19 Jun 2018 17:25:44 +0000 (19:25 +0200)]
Merge branch 'master' into blender2.8

2 years agoFinal cleanup of G.mains in render area.
Bastien Montagne [Tue, 19 Jun 2018 17:25:06 +0000 (19:25 +0200)]
Final cleanup of G.mains in render area.

2 years agoUI: fix ctrl wheel while over the opposite side
Campbell Barton [Tue, 19 Jun 2018 17:20:46 +0000 (19:20 +0200)]
UI: fix ctrl wheel while over the opposite side

2 years agoCleanup: names of WPaint gradient data structs.
Bastien Montagne [Tue, 19 Jun 2018 17:14:26 +0000 (19:14 +0200)]
Cleanup: names of WPaint gradient data structs.

Those actually never had anything to do with DM... Just used WP prefix
instead!

2 years agoCleanup: remove DerivedMesh from WPaint Gradient tool code.
Bastien Montagne [Tue, 19 Jun 2018 17:12:37 +0000 (19:12 +0200)]
Cleanup: remove DerivedMesh from WPaint Gradient tool code.

Name cleanup to follow.

2 years agoFix re-entrant calls in some cases of mesh_evaluated generation.
Bastien Montagne [Tue, 19 Jun 2018 17:00:25 +0000 (19:00 +0200)]
Fix re-entrant calls in some cases of mesh_evaluated generation.

`mesh_get_eval_final` and friends could call `mesh_build_data`, which in
paint/sculpt mode would call `BKE_sculpt_update_mesh_elements` which
would call `mesh_get_eval_final`... ugly!

2 years agoUI: tweak sequencer color space position, it's not related to display device.
Brecht Van Lommel [Tue, 19 Jun 2018 16:54:34 +0000 (18:54 +0200)]
UI: tweak sequencer color space position, it's not related to display device.

2 years agoUI: fix Ctrl-Wheel to change button values
Campbell Barton [Tue, 19 Jun 2018 16:35:55 +0000 (18:35 +0200)]
UI: fix Ctrl-Wheel to change button values

2 years agoCorrection to previous commit.
Bastien Montagne [Tue, 19 Jun 2018 16:29:40 +0000 (18:29 +0200)]
Correction to previous commit.

There is no guarantee that given ob pointer is not also an evaluated one
here...

2 years agoModStack: Fix broken object_get_datamask helper.
Bastien Montagne [Tue, 19 Jun 2018 16:23:26 +0000 (18:23 +0200)]
ModStack: Fix broken object_get_datamask helper.

Would compare evaluated ob pointer to original one...

Found while investigating some errors in incomming cleanup, but this was
probably generating lost of other issues in some cases...

2 years agoFix animation player drawing wrong size
Campbell Barton [Tue, 19 Jun 2018 16:03:08 +0000 (18:03 +0200)]
Fix animation player drawing wrong size

2 years agoMerge branch 'master' into blender2.8
Bastien Montagne [Tue, 19 Jun 2018 14:49:54 +0000 (16:49 +0200)]
Merge branch 'master' into blender2.8

Conflicts:
source/blender/editors/sculpt_paint/paint_image_proj.c

2 years ago3D View: improve selection locking
Campbell Barton [Tue, 19 Jun 2018 14:41:18 +0000 (16:41 +0200)]
3D View: improve selection locking

Locked selection would still occlude with objects which could not be
selected.

2 years agoStudiolight: Temp Mutex issue
Jeroen Bakker [Tue, 19 Jun 2018 14:33:47 +0000 (16:33 +0200)]
Studiolight: Temp Mutex issue

This is a temp fix for a better system.
Currently the studiolights can be referenced by a WM_job and being freed
via the API. This can happen when removing a studiolight via the
interface.

As the studiolight has no relation with the job, it is hard to detect if
it is still being used. I tried with a Mutex and a Thread Queue but they
were failing.

So the current temp fix is to keep the studiolights in memory until you
close blender. This Must be fixed ASAP! I added this fix so normal cases
can workish.

2 years agoCycles: Fixed crash when the camera was inside 16 volumes or more. It still won't...
Stefan Werner [Tue, 19 Jun 2018 14:34:15 +0000 (16:34 +0200)]
Cycles: Fixed crash when the camera was inside 16 volumes or more. It still won't render those volumes correctly, but at least the crash is addressed.

2 years agoFix (unreported) passing CDLayer 'ID' instead of bitflag to a cdlayer mask!
Bastien Montagne [Tue, 19 Jun 2018 14:25:24 +0000 (16:25 +0200)]
Fix (unreported) passing CDLayer 'ID' instead of bitflag to a cdlayer mask!

Probably harmless, since I bet CD_ORIGINDEX is nearly always generated,
but still...

2 years agoMerge branch 'master' into blender2.8
Brecht Van Lommel [Tue, 19 Jun 2018 14:21:35 +0000 (16:21 +0200)]
Merge branch 'master' into blender2.8

2 years agoFix missing render slots bugs after recent changes.
Brecht Van Lommel [Tue, 19 Jun 2018 14:07:10 +0000 (16:07 +0200)]
Fix missing render slots bugs after recent changes.

2 years agoCorrect rigidbody stub
Campbell Barton [Tue, 19 Jun 2018 14:18:23 +0000 (16:18 +0200)]
Correct rigidbody stub

2 years agoFix animation player
Campbell Barton [Tue, 19 Jun 2018 14:13:10 +0000 (16:13 +0200)]
Fix animation player

2 years agoUI: Smoke panels as sub-panels
Pablo Vazquez [Tue, 19 Jun 2018 14:01:29 +0000 (16:01 +0200)]
UI: Smoke panels as sub-panels

Remove suffix from name since they are sub-panels now.

Display Settings -> Viewport Display, and two sub-panels as well for less used settings.

2 years agoAdded face strength in bevel modifier
Rohan Rathi [Tue, 19 Jun 2018 13:57:08 +0000 (19:27 +0530)]
Added face strength in bevel modifier

The selected face strength (Weak/Medium/High) can be used by the WN Modifier
to determine influence of current face in

2 years agoCleanup: remove ref to dm in names in projpaint struct.
Bastien Montagne [Tue, 19 Jun 2018 13:53:21 +0000 (15:53 +0200)]
Cleanup: remove ref to dm in names in projpaint struct.

2 years agoRemove derivedmesh from 3DView texture/projection paint.
Bastien Montagne [Tue, 19 Jun 2018 13:47:54 +0000 (15:47 +0200)]
Remove derivedmesh from 3DView texture/projection paint.

Pretty straightforward changes. Name cleanup to follow in a separated
commit.

2 years agoUI: Fluid physics panels as sub-panels
Pablo Vazquez [Tue, 19 Jun 2018 13:47:11 +0000 (15:47 +0200)]
UI: Fluid physics panels as sub-panels

Also remove suffix from name since they are sub-panels now.

2 years agoUI: Soft Body panels as sub-panels
Pablo Vazquez [Tue, 19 Jun 2018 13:41:59 +0000 (15:41 +0200)]
UI: Soft Body panels as sub-panels

Also remove suffix from name since they are sub-panels now.

2 years agoUI: Rigid body panels as sub-panels
Pablo Vazquez [Tue, 19 Jun 2018 13:38:51 +0000 (15:38 +0200)]
UI: Rigid body panels as sub-panels

Also remove suffix from name since they are sub-panels now.

2 years agoRemove rigid body from rbw->group when deleting
Sybren A. Stüvel [Tue, 19 Jun 2018 12:57:07 +0000 (14:57 +0200)]
Remove rigid body from rbw->group when deleting

I moved some code from ED_rigidbody_object_remove() to
BKE_rigidbody_remove_object(), so that calling the latter doesn't leave
the object in rbw->group (causing a crash later on when rebuilding the
depsgraph).

2 years agoUI: Cloth panels as sub-panels
Pablo Vazquez [Tue, 19 Jun 2018 13:33:32 +0000 (15:33 +0200)]
UI: Cloth panels as sub-panels

Also remove Cloth suffix from name since they are sub-panels now.

2 years agoParticles: Support changing modifiers during particle edit mode
Sergey Sharybin [Tue, 19 Jun 2018 13:25:48 +0000 (15:25 +0200)]
Particles: Support changing modifiers during particle edit mode

The idea is to only use pointers to particles in original object when
creating an edit structure. The derived mesh we get from evaluated
object.

The rest of the commit is just keeping pointers in sync.

2 years agoParticles: Use utility function to copy particles
Sergey Sharybin [Tue, 19 Jun 2018 09:46:39 +0000 (11:46 +0200)]
Particles: Use utility function to copy particles

2 years agoParticles: Add utility function to copy particles from one system to another
Sergey Sharybin [Tue, 19 Jun 2018 09:40:09 +0000 (11:40 +0200)]
Particles: Add utility function to copy particles from one system to another

2 years agoBlender Version Bump
Campbell Barton [Tue, 19 Jun 2018 12:49:26 +0000 (14:49 +0200)]
Blender Version Bump

Without this, render slots aren't added.

2 years agoRevert: EditMode Inactive edge drawing
Jeroen Bakker [Tue, 19 Jun 2018 12:32:09 +0000 (14:32 +0200)]
Revert: EditMode Inactive edge drawing

Did it manually as there was some refactoring done that has value

2 years agoFixed rigid body simulation randomly stopping
Sybren A. Stüvel [Tue, 19 Jun 2018 10:16:18 +0000 (12:16 +0200)]
Fixed rigid body simulation randomly stopping

This was caused by a floating point comparison using ==, instead of using
compare_ff_relative().

2 years agoMissed warning in previous commit
Jeroen Bakker [Tue, 19 Jun 2018 12:07:21 +0000 (14:07 +0200)]
Missed warning in previous commit

2 years agoLookdev: Renamed RNA
Jeroen Bakker [Tue, 19 Jun 2018 12:03:53 +0000 (14:03 +0200)]
Lookdev: Renamed RNA

studiolight_background => studiolight_background_alpha
Removed "Show" from the label

2 years agoStudiolight: Background Generation of icons
Jeroen Bakker [Tue, 19 Jun 2018 12:00:34 +0000 (14:00 +0200)]
Studiolight: Background Generation of icons

2 years agoShow cached frames in timeline at correct height
Sybren A. Stüvel [Tue, 19 Jun 2018 09:49:19 +0000 (11:49 +0200)]
Show cached frames in timeline at correct height

The line was covered by the horizontal scrollbar instead of drawn above
it.

2 years agoRigidBodyWorld: copy ptcache from evaluated scene back to original scene
Sybren A. Stüvel [Tue, 19 Jun 2018 09:33:48 +0000 (11:33 +0200)]
RigidBodyWorld: copy ptcache from evaluated scene back to original scene

This makes it possible to perform re-evaluation of the scene without
having to re-run the simulation.

The CoW → Orig copy is only performed when the depsgraph is active, so
as to not influence the current scene while rendering in the background.

Alternatively, we could have the CoW copy share the cache with the
original to prevent too much copying of cache data. This will be faster,
but I'm not sure whether we can reliably check the DEG_is_active()
status at CoW copy creation time.

2 years agoFix T55528: Cycles AO node should default to 1 if radius is 0.
Brecht Van Lommel [Tue, 19 Jun 2018 09:44:23 +0000 (11:44 +0200)]
Fix T55528: Cycles AO node should default to 1 if radius is 0.

2 years agoMerge branch 'master' into blender2.8
Bastien Montagne [Tue, 19 Jun 2018 08:52:01 +0000 (10:52 +0200)]
Merge branch 'master' into blender2.8

Conflicts:
source/blender/editors/sculpt_paint/paint_image_proj.c

2 years agoCleanup DM generation code for ProjPaint.
Bastien Montagne [Tue, 19 Jun 2018 08:48:37 +0000 (10:48 +0200)]
Cleanup DM generation code for ProjPaint.

Two branches were actually doing essentially the same thing here, no
need to artificially complicate things. ;)

2 years agoFix (unreported) unauthorized relesing of derived_final DM in paint projection code.
Bastien Montagne [Tue, 19 Jun 2018 08:43:54 +0000 (10:43 +0200)]
Fix (unreported) unauthorized relesing of derived_final DM in paint projection code.

NEVER free yourself DM returned by mesh_get_derived_final(), it's always
to one assigned to ob->derived_final!

2 years agoCleanup: rename mode -> object.mode in Py UI
Campbell Barton [Tue, 19 Jun 2018 07:25:05 +0000 (09:25 +0200)]
Cleanup: rename mode -> object.mode in Py UI

Keep 'mode' only for 'context.mode'.

2 years agoError in last commit
Campbell Barton [Tue, 19 Jun 2018 07:20:38 +0000 (09:20 +0200)]
Error in last commit

2 years agoUI: move object-mode lock out of the 3D header
Campbell Barton [Tue, 19 Jun 2018 07:11:03 +0000 (09:11 +0200)]
UI: move object-mode lock out of the 3D header

Avoid obscure options here.
Move to the edit menu, although this may be temporary.

2 years agoStudiolight: Add SH2 cache
Jeroen Bakker [Tue, 19 Jun 2018 06:48:01 +0000 (08:48 +0200)]
Studiolight: Add SH2 cache

- the result of the SH2-coeffiecients are stored in a bin file (3*9
floats). As the file is a local file we do not care about the
architecture.
- solved issue that also for internal lights the irradiance file were
stored. We don't want that as it could be in a not accessible location

2 years agoMerge branch 'master' into blender2.8
Campbell Barton [Tue, 19 Jun 2018 06:56:45 +0000 (08:56 +0200)]
Merge branch 'master' into blender2.8

2 years agoVertex Paint: set sculpt object mode immediately
Campbell Barton [Tue, 19 Jun 2018 06:35:41 +0000 (08:35 +0200)]
Vertex Paint: set sculpt object mode immediately

SculptSession.mode_type wasn't initialized until painting,
making it unreliable for checks in other parts of the code.

Also remove unnecessary initialization,
matching sculpt mode more closely.

2 years agoMerge branch 'master' into blender2.8
Campbell Barton [Tue, 19 Jun 2018 06:15:03 +0000 (08:15 +0200)]
Merge branch 'master' into blender2.8

2 years agoeditorconfig: correct C/C++ using space
Campbell Barton [Tue, 19 Jun 2018 05:48:12 +0000 (07:48 +0200)]
editorconfig: correct C/C++ using space

2 years agoGhost: Fix offline OGL render on windows.
Ray Molenkamp [Tue, 19 Jun 2018 00:10:45 +0000 (18:10 -0600)]
Ghost: Fix offline OGL render on windows.

rBe0c088f8fb5a introduced offline rendering support on windows, sadly it was trying to use the desktop window for getting a context, which given SetPixelFormat can only be called once for any given HDC was an unfortunate choice.

This patch uses a temporary hidden window for getting the opengl context.

Reviewers: mano-wii

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

2 years agoMerge remote-tracking branch 'origin/master' into blender2.8
Ray Molenkamp [Mon, 18 Jun 2018 19:40:39 +0000 (13:40 -0600)]
Merge remote-tracking branch 'origin/master' into blender2.8