blender.git
2 years agoDepsgraph: Expose (evaluation) mode in rna
Dalai Felinto [Wed, 6 Jun 2018 14:38:10 +0000 (16:38 +0200)]
Depsgraph: Expose (evaluation) mode in rna

2 years agoDepsgraph iterator: Remove explicit mode
Dalai Felinto [Wed, 6 Jun 2018 14:01:51 +0000 (16:01 +0200)]
Depsgraph iterator: Remove explicit mode

We can get the mode from the depsgraph itself.

2 years agoFix T55350: Cycles: instanced hair with hidden emitter is invisible when rendering
Dalai Felinto [Wed, 6 Jun 2018 13:18:45 +0000 (15:18 +0200)]
Fix T55350: Cycles: instanced hair with hidden emitter is invisible when rendering

2 years agoCleanup: unused function
Campbell Barton [Wed, 6 Jun 2018 14:36:00 +0000 (16:36 +0200)]
Cleanup: unused function

2 years agoFix view_layer update function
Campbell Barton [Wed, 6 Jun 2018 14:31:05 +0000 (16:31 +0200)]
Fix view_layer update function

This was no longer working, now this works the same way as
scene.update(), only it applied to the current view layer.

Caused crash running alembic export from Python.

2 years agoCleanup: get rid of just-added G.main usage.
Bastien Montagne [Wed, 6 Jun 2018 14:32:09 +0000 (16:32 +0200)]
Cleanup: get rid of just-added G.main usage.

Was just added to ease merging of master, proper code now!

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

 Conflicts:
source/blender/collada/ArmatureExporter.cpp
source/blender/collada/ArmatureExporter.h
source/blender/collada/DocumentExporter.cpp
source/blender/collada/DocumentExporter.h
source/blender/collada/SceneExporter.cpp
source/blender/collada/SceneExporter.h
source/blender/collada/collada.cpp
source/blender/collada/collada.h
source/blender/editors/armature/armature_edit.c
source/blender/editors/armature/editarmature_retarget.c
source/blender/editors/armature/pose_transform.c
source/blender/editors/include/ED_armature.h
source/blender/editors/include/ED_object.h
source/blender/editors/include/ED_screen.h
source/blender/editors/io/io_collada.c
source/blender/editors/object/object_transform.c
source/blender/editors/screen/screen_edit.c
source/blender/editors/screen/screen_ops.c
source/blender/windowmanager/intern/wm.c
source/blender/windowmanager/intern/wm_files.c
source/blender/windowmanager/intern/wm_window.c
source/blenderplayer/bad_level_call_stubs/stubs.c

2 years agoView3DShading popover: Naming + alignment
Jeroen Bakker [Wed, 6 Jun 2018 14:16:06 +0000 (16:16 +0200)]
View3DShading popover: Naming + alignment

2 years agoDepsgraph: remove legacy code for dupli group updates.
Brecht Van Lommel [Wed, 6 Jun 2018 12:39:05 +0000 (14:39 +0200)]
Depsgraph: remove legacy code for dupli group updates.

This caused crashes in some cases, and should be fully handled by
the depsgraph now.

2 years agoUI: sub panel titles draw smaller and indented.
Brecht Van Lommel [Wed, 6 Jun 2018 11:28:40 +0000 (13:28 +0200)]
UI: sub panel titles draw smaller and indented.

2 years agoFix incorrect double checked lock in collection object cache.
Brecht Van Lommel [Wed, 6 Jun 2018 10:18:41 +0000 (12:18 +0200)]
Fix incorrect double checked lock in collection object cache.

2 years agoMerge branch 'master' into blender2.8
Sybren A. Stüvel [Wed, 6 Jun 2018 13:58:18 +0000 (15:58 +0200)]
Merge branch 'master' into blender2.8

2 years agoAlembic export: only free duplilists when not NULL
Sybren A. Stüvel [Wed, 6 Jun 2018 13:42:20 +0000 (15:42 +0200)]
Alembic export: only free duplilists when not NULL

2 years agoCleanup: Nuke moar G.main usages...
Bastien Montagne [Wed, 6 Jun 2018 13:50:24 +0000 (15:50 +0200)]
Cleanup: Nuke moar G.main usages...

2 years agoView3D: Shading Popup
Jeroen Bakker [Wed, 6 Jun 2018 13:44:00 +0000 (15:44 +0200)]
View3D: Shading Popup

- layout so cavity options are better visible
- fixed issues showing wrong options in Material mode
- added labels + seperators

2 years agoLookDev: When HDRI could not be reloaded we should switch to world
Jeroen Bakker [Wed, 6 Jun 2018 13:25:05 +0000 (15:25 +0200)]
LookDev: When HDRI could not be reloaded we should switch to world

Thanks for reporting sergey!

2 years agoFix object-dupli selection w/ COW
Campbell Barton [Wed, 6 Jun 2018 13:19:16 +0000 (15:19 +0200)]
Fix object-dupli selection w/ COW

2 years agoT55333 Workbench: Cavity Shader
Jeroen Bakker [Wed, 6 Jun 2018 12:47:54 +0000 (14:47 +0200)]
T55333 Workbench: Cavity Shader

A cavity shader based on SSAO. Works on all workbench deferred passes.

Per 3d viewport the cavity shader options can be set as different
shading needed different options. Some global options are in the
Viewport Display of the scene like num samples and distance.

Experimental: Naming of Ridges and Valleys

2 years agoAlembic: Fix double-free of mutex
Sybren A. Stüvel [Wed, 6 Jun 2018 10:45:14 +0000 (12:45 +0200)]
Alembic: Fix double-free of mutex

The mutex was shared between CoW copies of the CacheFile datablock, and
as a result also freed multiple times. It is now only freed when the
original datablock is freed; the CoW copies share the same mutex.

2 years agoFix double-free of custom data
Sybren A. Stüvel [Wed, 6 Jun 2018 12:37:30 +0000 (14:37 +0200)]
Fix double-free of custom data

This causes a temporary spike in memory usage when creating a copy; the
entire copy will be removed anyway when DerivedMesh is removed.

2 years agoMove Time Remapping into a sub-panel
Pablo Vazquez [Wed, 6 Jun 2018 12:28:29 +0000 (14:28 +0200)]
Move Time Remapping into a sub-panel

2 years agoFix crash when file is saved in particle edit mode
Sergey Sharybin [Wed, 6 Jun 2018 12:13:46 +0000 (14:13 +0200)]
Fix crash when file is saved in particle edit mode

Depsgraph is not available on file load yet.

2 years agoUI: add particle brush to topbar
Campbell Barton [Wed, 6 Jun 2018 12:06:30 +0000 (14:06 +0200)]
UI: add particle brush to topbar

2 years agoParticle edit: Fix missing hair with new oarticle system added
Sergey Sharybin [Wed, 6 Jun 2018 11:53:51 +0000 (13:53 +0200)]
Particle edit: Fix missing hair with new oarticle system added

2 years agoParticle edit: Fix crash when trying to edit particles without cache
Sergey Sharybin [Wed, 6 Jun 2018 11:51:57 +0000 (13:51 +0200)]
Particle edit: Fix crash when trying to edit particles without cache

Particles in EMITTER mode needs to have cache.

2 years agoFix update issue in VPaint mode.
Bastien Montagne [Wed, 6 Jun 2018 10:39:49 +0000 (12:39 +0200)]
Fix update issue in VPaint mode.

Need to flush the changes through DEG CoW, otherwise drawing code would
not see them in some cases...

2 years agoDepsgraph: Silence relations builder errors
Sergey Sharybin [Wed, 6 Jun 2018 10:35:00 +0000 (12:35 +0200)]
Depsgraph: Silence relations builder errors

Were caused by depsgraph trying to create relations between objects
which are coming from restricted collection.

2 years agoDepsgraph: Expand object data datablocks for drivers
Sergey Sharybin [Wed, 6 Jun 2018 10:01:38 +0000 (12:01 +0200)]
Depsgraph: Expand object data datablocks for drivers

Drivers can reference object data datablock directly, and if there
was no object in the scene with that datablock, blender will crash.

2 years agoDepsgraph: Handle key->object relations from object builder
Sergey Sharybin [Wed, 6 Jun 2018 09:53:04 +0000 (11:53 +0200)]
Depsgraph: Handle key->object relations from object builder

2 years agoDepsgraph: Object data separation, armature
Sergey Sharybin [Wed, 6 Jun 2018 09:41:56 +0000 (11:41 +0200)]
Depsgraph: Object data separation, armature

2 years agoDepsgraph: Object data separation, geometry
Sergey Sharybin [Wed, 6 Jun 2018 09:22:20 +0000 (11:22 +0200)]
Depsgraph: Object data separation, geometry

2 years agoDepsgraph: Object data separation, camera
Sergey Sharybin [Wed, 6 Jun 2018 08:52:50 +0000 (10:52 +0200)]
Depsgraph: Object data separation, camera

2 years agoDepsgraph: Object data separation, lamp
Sergey Sharybin [Wed, 6 Jun 2018 08:47:54 +0000 (10:47 +0200)]
Depsgraph: Object data separation, lamp

2 years agoDepsgraph: Object data separation, light probes
Sergey Sharybin [Wed, 6 Jun 2018 08:23:45 +0000 (10:23 +0200)]
Depsgraph: Object data separation, light probes

This is a beginning of series of commits which will clearly separate
building IDs which are used as object data from object building.

The goal is to be able to always build whatever ID. Required to make
driver targets to work reliably with copy-on-write concept.

2 years agoDepsgraph: Remove confusing metaball logic
Sergey Sharybin [Wed, 6 Jun 2018 07:54:58 +0000 (09:54 +0200)]
Depsgraph: Remove confusing metaball logic

DATA datablock must evaluation must never depend on object it is
used for. If there is something what depends on an object, it must
be done on object level.

At least the actual callback was empty.

2 years agoWireframe: Fix do_version.
Clément Foucault [Wed, 6 Jun 2018 10:32:13 +0000 (12:32 +0200)]
Wireframe: Fix do_version.

2 years agoEnsure BKE_mesh_new_nomain_from_template() always has valid mxxx pointers
Sybren A. Stüvel [Wed, 6 Jun 2018 10:21:36 +0000 (12:21 +0200)]
Ensure BKE_mesh_new_nomain_from_template() always has valid mxxx pointers

When the source mesh doesn't have the primary layers (CD_VERT for vdata,
etc.) the returned mesh also didn't have those layers, even when non-zero
elements were requested (for example requesting 4 vertices would still
result in mvert = NULL).

2 years agoConsolidated custom data layer initialisation
Sybren A. Stüvel [Wed, 6 Jun 2018 10:20:21 +0000 (12:20 +0200)]
Consolidated custom data layer initialisation

Code shared between BKE_mesh_new_nomain() and
BKE_mesh_new_nomain_from_template() is now in separate functions, instead
of copy-pasted.

2 years agoSet mesh->totface in nomain-mesh creation
Sybren A. Stüvel [Wed, 6 Jun 2018 10:16:02 +0000 (12:16 +0200)]
Set mesh->totface in nomain-mesh creation

The totxxx fields should match the number of elements in their respective
custom data layers.

2 years agoFix T55344: linked collection instance has user count 0.
Brecht Van Lommel [Wed, 6 Jun 2018 09:08:56 +0000 (11:08 +0200)]
Fix T55344: linked collection instance has user count 0.

2 years agoUI: tweak for Cycles panels.
Brecht Van Lommel [Tue, 5 Jun 2018 11:34:32 +0000 (13:34 +0200)]
UI: tweak for Cycles panels.

2 years agoCleanup: fix compiler warning.
Brecht Van Lommel [Tue, 5 Jun 2018 10:37:50 +0000 (12:37 +0200)]
Cleanup: fix compiler warning.

2 years agoFix importing temporary screens
Sybren A. Stüvel [Wed, 6 Jun 2018 09:13:05 +0000 (11:13 +0200)]
Fix importing temporary screens

Apparently Blender 2.79 could save temporary screens; those should not be
converted to workspaces.

2 years agoRenamed BKE_nomain_mesh_xxx → BKE_mesh_nomain_xxx
Sybren A. Stüvel [Wed, 6 Jun 2018 08:30:24 +0000 (10:30 +0200)]
Renamed BKE_nomain_mesh_xxx → BKE_mesh_nomain_xxx

This maintains the `BKE_mesh_` prefix for the mesh-related BKE functions.

2 years agoDerivedMesh deprecation: Removed some functions in displist.c
Sybren A. Stüvel [Tue, 5 Jun 2018 16:31:47 +0000 (18:31 +0200)]
DerivedMesh deprecation: Removed some functions in displist.c

Those functions were using DerivedMesh but are not called from anywhere.
As a result, they cannot be tested after porting DerivedMesh to Mesh.

2 years agoDerivedMesh deprecation: marked no-longer-in-use function
Sybren A. Stüvel [Tue, 5 Jun 2018 16:18:45 +0000 (18:18 +0200)]
DerivedMesh deprecation: marked no-longer-in-use function

Functions that are no longer in use can be marked as such, so that later
we can easily remove them.

2 years agoModifiers: ported curve_calc_modifiers_post() internals from DerivedMesh → Mesh
Sybren A. Stüvel [Tue, 5 Jun 2018 13:59:30 +0000 (15:59 +0200)]
Modifiers: ported curve_calc_modifiers_post() internals from DerivedMesh → Mesh

The function still returns a DerivedMesh, but internally it uses Mesh
now.

2 years agoError in recent popover keep_open option
Campbell Barton [Wed, 6 Jun 2018 07:43:03 +0000 (09:43 +0200)]
Error in recent popover keep_open option

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

2 years agoFix error using freed bmain
Campbell Barton [Wed, 6 Jun 2018 07:36:50 +0000 (09:36 +0200)]
Fix error using freed bmain

Regression in 481cdb08ed6f3

2 years agoCleanup: rename WITH -> USE for internal defines
Campbell Barton [Wed, 6 Jun 2018 07:29:54 +0000 (09:29 +0200)]
Cleanup: rename WITH -> USE for internal defines

2 years agoCleanup: USE_UI_* prefix for UI defines
Campbell Barton [Wed, 6 Jun 2018 07:27:23 +0000 (09:27 +0200)]
Cleanup: USE_UI_* prefix for UI defines

Otherwise there is no quick way to see where this comes from.

2 years agoUI: WM_OT_call_panel option to keep popovers open
Campbell Barton [Wed, 6 Jun 2018 07:24:24 +0000 (09:24 +0200)]
UI: WM_OT_call_panel option to keep popovers open

2 years agoWorkbench: Speed up fo scene with many duplis
Jeroen Bakker [Wed, 6 Jun 2018 06:45:31 +0000 (08:45 +0200)]
Workbench: Speed up fo scene with many duplis

The ObjectID pass was generating per material per dupli a specific
number for the outline what results in a GPU context switch. In spring scene
01-050 a scene with many trees (duplis) generated 28000 GPU materials.

Now only new materials are created when objectid pass is enabled. Also
added a hard limit to the number of objects for the objectid pass (255)
Basically the outline between objects will not be drawn, but it will be
very hard to detect them also.

Also fixed for XRay mode.

2 years agoUI: use regular size icons for toolbar popup
Campbell Barton [Wed, 6 Jun 2018 06:31:31 +0000 (08:31 +0200)]
UI: use regular size icons for toolbar popup

Test this since the popup feels disruptive/flashing when its too large
when set smaller it looks closer to a menu w/ key-accelerators which is
the intention in this case.

It's also more likely the active tool can be placed under the cursor.

2 years agoFix object selection w/ COW
Campbell Barton [Wed, 6 Jun 2018 06:20:05 +0000 (08:20 +0200)]
Fix object selection w/ COW

2 years agoCleanup: style
Campbell Barton [Tue, 5 Jun 2018 19:32:49 +0000 (21:32 +0200)]
Cleanup: style

2 years agoEevee: Improve load time.
Clément Foucault [Sun, 3 Jun 2018 20:47:01 +0000 (22:47 +0200)]
Eevee: Improve load time.

Only generate shadow store shaders on demand and create a simpler shader
for small blur radius.

2 years agoFix compilation issue due to last commit.
Clément Foucault [Tue, 5 Jun 2018 17:49:12 +0000 (19:49 +0200)]
Fix compilation issue due to last commit.

2 years agoWireframe: Add slider to hide edges from coplanar faces
Clément Foucault [Tue, 5 Jun 2018 17:35:08 +0000 (19:35 +0200)]
Wireframe: Add slider to hide edges from coplanar faces

The default behaviour is to show the same amount of edges as 2.7.
The slider makes it possible to show all edges or even less.

2 years agomake.bat : move all experimental options to their own section in the help.
Ray Molenkamp [Tue, 5 Jun 2018 17:29:03 +0000 (11:29 -0600)]
make.bat : move all experimental options to their own section in the help.

2 years agomake.bat : bring the help up to date with recent additions to the build script.
Ray Molenkamp [Tue, 5 Jun 2018 16:40:14 +0000 (10:40 -0600)]
make.bat : bring the help up to date with recent additions to the build script.

2 years agomake.bat : check for existence of ninja before using it.
Ray Molenkamp [Tue, 5 Jun 2018 16:39:39 +0000 (10:39 -0600)]
make.bat : check for existence of ninja before using it.

2 years agomake.bat: change the way the vs buildtools are detected.
Ray Molenkamp [Tue, 5 Jun 2018 16:38:48 +0000 (10:38 -0600)]
make.bat: change the way the vs buildtools are detected.

The recent change also used the buildtools instead of the regular compiler, you now have to explicitly state what you want to use :

2017 - the standard msvc compiler
2017pre - the msvc compiler from the preview installation
2017b - the msvc compiler from the buildtools installation

2 years agoMerge branch 'master' into blender2.8
Bastien Montagne [Tue, 5 Jun 2018 15:56:18 +0000 (17:56 +0200)]
Merge branch 'master' into blender2.8

Conflicts:
source/blender/windowmanager/intern/wm_files.c

2 years agoFix crash in owmn previous commit.
Bastien Montagne [Tue, 5 Jun 2018 15:51:17 +0000 (17:51 +0200)]
Fix crash in owmn previous commit.

2 years agoMerge branch 'master' into blender2.8
Bastien Montagne [Tue, 5 Jun 2018 15:02:50 +0000 (17:02 +0200)]
Merge branch 'master' into blender2.8

Conflicts:
source/blender/blenkernel/intern/blendfile.c
source/blender/blenloader/intern/readfile.h
source/blender/blenloader/intern/versioning_250.c
source/blender/blenloader/intern/versioning_260.c
source/blender/blenloader/intern/versioning_270.c
source/blender/blenloader/intern/versioning_legacy.c
source/blender/editors/render/render_shading.c
source/blender/makesrna/intern/rna_movieclip.c
source/blender/render/intern/source/pipeline.c
source/blender/render/intern/source/voxeldata.c

2 years agoMoved function declarations from BKE_DerivedMesh.h to BKE_mesh_runtime.h
Sybren A. Stüvel [Tue, 5 Jun 2018 14:58:08 +0000 (16:58 +0200)]
Moved function declarations from BKE_DerivedMesh.h to BKE_mesh_runtime.h

The function definitions still reside in DerivedMesh.c. Once we're done
porting all the DerivedMesh use to Mesh, we'll move the still-relevant
functions to mesh_runtime.c. This move is now cumbersome due to shared
statically-declared utility functions in DerivedMesh.c

2 years agoMoved function declarations from BKE_mesh.h → BKE_mesh_runtime.h
Sybren A. Stüvel [Tue, 5 Jun 2018 13:59:53 +0000 (15:59 +0200)]
Moved function declarations from BKE_mesh.h → BKE_mesh_runtime.h

2 years agoMerge branch 'master' into 28
Campbell Barton [Tue, 5 Jun 2018 14:35:20 +0000 (16:35 +0200)]
Merge branch 'master' into 28

2 years agoCleanup: use new accessors to blendfile path (Main.name).
Bastien Montagne [Tue, 5 Jun 2018 13:10:33 +0000 (15:10 +0200)]
Cleanup: use new accessors to blendfile path (Main.name).

2 years agoCleanup: add hleper functions to get filepath from Main.
Bastien Montagne [Tue, 5 Jun 2018 13:08:28 +0000 (15:08 +0200)]
Cleanup: add hleper functions to get filepath from Main.

This helps making things clearer and cleaner. Func returning filepath of
G.main is separate, so that we can easily track its usages, and
hopefully deprecate it at some point. Though that usage of G.main is
likely the less evil one, you nearly always want current blendfile path
in those cases anyway.

2 years agoCleanup: pep8
Campbell Barton [Tue, 5 Jun 2018 14:32:11 +0000 (16:32 +0200)]
Cleanup: pep8

Use 'autopep8 --ignore E721,E722' on our UI code, only minor changes.

2 years agoCleanup: doxy grouping for mesh runtime API
Campbell Barton [Tue, 5 Jun 2018 13:54:12 +0000 (15:54 +0200)]
Cleanup: doxy grouping for mesh runtime API

2 years agoLookDev: Fix crash when no world
Jeroen Bakker [Tue, 5 Jun 2018 13:49:31 +0000 (15:49 +0200)]
LookDev: Fix crash when no world

2 years agoUI: move 3D view display options into popover
Campbell Barton [Tue, 5 Jun 2018 13:34:37 +0000 (15:34 +0200)]
UI: move 3D view display options into popover

- Moved Mesh Display, Mesh Analysis & Motion Tracking
  display panels to Overlays.
- Removed Item panel from sidebar (buttons available elsewhere).

Patch by @billreynish w/ edits

2 years agomake.bat: cache the vcredist directory.
Ray Molenkamp [Tue, 5 Jun 2018 13:25:37 +0000 (07:25 -0600)]
make.bat: cache the vcredist directory.

When run from make.bat the environment is setup correctly and the VCToolsRedistDir environment variable exists, on later invocations of cmake this may no longer be the case and a warning was emitted about the missing runtime. we can't rely on InstallRequiredSystemLibraries.cmake here since it uses the compiler version to figure out the correct location and it doesn't know how to deal with clang.

2 years agoError in last commit
Campbell Barton [Tue, 5 Jun 2018 13:21:04 +0000 (15:21 +0200)]
Error in last commit

2 years agoDepsgraph: Fix bug with broken tweak of animated node tree settings
Sergey Sharybin [Tue, 5 Jun 2018 13:10:09 +0000 (15:10 +0200)]
Depsgraph: Fix bug with broken tweak of animated node tree settings

With single editing context we can have expected and correct evaluation order
of animation and material update.

2 years ago3D View: disable manipulators & text w/o overlay
Campbell Barton [Tue, 5 Jun 2018 12:24:58 +0000 (14:24 +0200)]
3D View: disable manipulators & text w/o overlay

Manipulators which aren't explicitly activated via tools are now hidden.

Tool manipulators are kept because it doesn't make sense to interact
with a tool with hidden manipulators.

2 years agoObject Modes: Flush COW on mode switching
Campbell Barton [Tue, 5 Jun 2018 10:19:14 +0000 (12:19 +0200)]
Object Modes: Flush COW on mode switching

Caused glitch w/ sculpt mode not updating.

2 years agoPreserve unkeyed changes on undo and file open
Sergey Sharybin [Tue, 5 Jun 2018 10:34:31 +0000 (12:34 +0200)]
Preserve unkeyed changes on undo and file open

This partially reverts 5975d6581cee.

With single editing context it is more predictable what is unkeyed change is.

2 years agoCleanup: simplify studiolight/matcap enum code, remove limit.
Brecht Van Lommel [Tue, 5 Jun 2018 10:08:29 +0000 (12:08 +0200)]
Cleanup: simplify studiolight/matcap enum code, remove limit.

2 years agoT55291: Matcaps were reset when loading file
Jeroen Bakker [Tue, 5 Jun 2018 10:20:02 +0000 (12:20 +0200)]
T55291: Matcaps were reset when loading file

2 years agoStatic Override: Fix order of operations issue in material slots.
Bastien Montagne [Tue, 5 Jun 2018 10:07:20 +0000 (12:07 +0200)]
Static Override: Fix order of operations issue in material slots.

*Really* not happy with that kind of constraint, but no choice for
now...

2 years agoStatic Override: progresses towards full support for material slots.
Bastien Montagne [Tue, 5 Jun 2018 09:58:56 +0000 (11:58 +0200)]
Static Override: progresses towards full support for material slots.

Material slots are a real pain to get working, due to all the black
magic they do to hide object vs. obdata storage of the material...

Currently hitting an order problem - we need to always set 'link' (to
object or obdata) property of the slot first, before we set its
material... *super-sigh*

2 years agoFix compilation error after recent matcap changes
Sergey Sharybin [Tue, 5 Jun 2018 10:02:08 +0000 (12:02 +0200)]
Fix compilation error after recent matcap changes

2 years agoFix T55319: Keyframing issues
Sergey Sharybin [Tue, 5 Jun 2018 09:56:46 +0000 (11:56 +0200)]
Fix T55319: Keyframing issues

The issue was that keyframing from menu would tag object for animation
update, which was making object to loose unkeyed changes.

2 years agoWorkbench: remove the soft limit for the xray_alpha
Jeroen Bakker [Tue, 5 Jun 2018 09:45:22 +0000 (11:45 +0200)]
Workbench: remove the soft limit for the xray_alpha

2 years agoWorkbench: Matcaps T55291
Jeroen Bakker [Tue, 5 Jun 2018 06:15:30 +0000 (08:15 +0200)]
Workbench: Matcaps T55291

- users can use their own matcaps
.config/blender/2.80/datafiles/studiolights/matcap/ folder
- upto 100 matcaps can be loaded
- color of the matcap is influenced by the color of the material/single
color etc. To show the plain matcap use single color at 1.0
- chosing a matcap is at lighting level (flat/studio/matcap)
- matcap only possible in solid mode
- also works for X-Ray mode

As the old matcaps are still in used by the clay engine I didn't remove
it yet.

2 years agoUI: set cursor line width
Campbell Barton [Tue, 5 Jun 2018 09:37:30 +0000 (11:37 +0200)]
UI: set cursor line width

2 years agoTransform: avoid assert in wpaint mode
Campbell Barton [Tue, 5 Jun 2018 09:31:17 +0000 (11:31 +0200)]
Transform: avoid assert in wpaint mode

2 years agoFix stupid mistake in previous commit.
Bastien Montagne [Tue, 5 Jun 2018 09:22:43 +0000 (11:22 +0200)]
Fix stupid mistake in previous commit.

2 years agoRNA/Override: Move override-related property flags to own variable.
Bastien Montagne [Tue, 5 Jun 2018 09:10:05 +0000 (11:10 +0200)]
RNA/Override: Move override-related property flags to own variable.

We are already running out of available flags in main, generic int, and
everytime I work on static override I find new special cases that will
need new specific propflag, so...

2 years agoBaby step towards making overridable materials for objects.
Bastien Montagne [Mon, 4 Jun 2018 14:31:13 +0000 (16:31 +0200)]
Baby step towards making overridable materials for objects.

Naughty Collections RNACollection of objects is still to be tamed, but
for individual objects should work now....

2 years agoTransform: improve pose trans/rot/scale guessing
Campbell Barton [Tue, 5 Jun 2018 09:00:36 +0000 (11:00 +0200)]
Transform: improve pose trans/rot/scale guessing

Switching the mode was being done per object,
where it should first check all pose bones from all objects.

This also removes code that changes the transform mode
from within the counting function.
This was only needed on transform initialization.

2 years agoMissing from last commit
Campbell Barton [Tue, 5 Jun 2018 08:13:55 +0000 (10:13 +0200)]
Missing from last commit

2 years agoTransform: revert use of evaluated objects
Campbell Barton [Tue, 5 Jun 2018 07:48:38 +0000 (09:48 +0200)]
Transform: revert use of evaluated objects

This is no longer needed.

2 years agoUI: context menu for other editor types
Campbell Barton [Tue, 5 Jun 2018 07:12:19 +0000 (09:12 +0200)]
UI: context menu for other editor types

D3458 by @billreynish w/ edits.

- Context menu for dope-sheet, graph, image & node editors.
- Add type to contenxt menu header.
- Access with W-Key.
- Change UV-editor weld key binding to Shift-W.

2 years agoUI: support property split for 'prop_search'
Campbell Barton [Tue, 5 Jun 2018 06:56:14 +0000 (08:56 +0200)]
UI: support property split for 'prop_search'