blender.git
3 years agoMerge branch 'master' into blender2.8
Campbell Barton [Mon, 25 Jun 2018 05:43:51 +0000 (07:43 +0200)]
Merge branch 'master' into blender2.8

3 years agoCMake: correct remove_strict_cxx_flags_file
Campbell Barton [Mon, 25 Jun 2018 05:30:00 +0000 (07:30 +0200)]
CMake: correct remove_strict_cxx_flags_file

Was still using C-flags.

3 years agoUI: internal changes to user-menu storage
Campbell Barton [Sun, 24 Jun 2018 14:07:34 +0000 (16:07 +0200)]
UI: internal changes to user-menu storage

- Use per context menu lists to support menu editing.
- Support for different kinds of menu items since this may be needed
  in the future. Only use operator types for now.

3 years agoNuke DM out of collada code.
Bastien Montagne [Sun, 24 Jun 2018 16:40:52 +0000 (18:40 +0200)]
Nuke DM out of collada code.

Also, now use out-of-main temp copy of mesh for export, and fixed a
potential memleak (return without freeing temp copy of mesh, tsst).

3 years agoFix most of 'disappearing' first letter in right-aligned labels.
Bastien Montagne [Sun, 24 Jun 2018 15:47:40 +0000 (17:47 +0200)]
Fix most of 'disappearing' first letter in right-aligned labels.

BLF' blf_font_width_to_strlen() could easily generate strings with up to
nearly two pixels length over requested limit!

Note that the fiddling between floats and ints values make things really
confusing here... :/

There is still a few limit cases where, even though computed str length
is now always below reauested limit, we still get first letter
disappearing, no idea why currently.

3 years agoLamps: Make default size more usable
Clément Foucault [Sun, 24 Jun 2018 13:02:52 +0000 (15:02 +0200)]
Lamps: Make default size more usable

This way the area light shapes are more visible (and usable) by default.

Changes were discussed with @venomgfx

3 years agoObject Mode: Add Shape visual for spot and point lamps
Clément Foucault [Sun, 24 Jun 2018 12:11:36 +0000 (14:11 +0200)]
Object Mode: Add Shape visual for spot and point lamps

Since Eevee and Cycles both use lamp size for point lamps, displaying
the shape is now more relevant than before.

3 years agoCycles: change AO node color default to 1.0.
Brecht Van Lommel [Sun, 24 Jun 2018 10:24:30 +0000 (12:24 +0200)]
Cycles: change AO node color default to 1.0.

3 years agoMerge branch 'master' into blender2.8
Campbell Barton [Sun, 24 Jun 2018 08:45:42 +0000 (10:45 +0200)]
Merge branch 'master' into blender2.8

3 years agoCleanup: move UI context menus into own file
Campbell Barton [Sun, 24 Jun 2018 08:01:13 +0000 (10:01 +0200)]
Cleanup: move UI context menus into own file

3 years agoWireframe Overlay: Add back the per edge hiding
Clément Foucault [Sat, 23 Jun 2018 22:01:02 +0000 (00:01 +0200)]
Wireframe Overlay: Add back the per edge hiding

This method is a bit more optimized than the very first one
because it does not rely on the adjacent faces properties.

That said it's still a bit slower than the per vertex method.

3 years agoEevee: Fix wrong depth test in main shading pass.
Clément Foucault [Sat, 23 Jun 2018 19:26:21 +0000 (21:26 +0200)]
Eevee: Fix wrong depth test in main shading pass.

3 years agoTypo in last commit
Campbell Barton [Sat, 23 Jun 2018 18:57:09 +0000 (20:57 +0200)]
Typo in last commit

3 years agoUI: Add user defined context menu
Campbell Barton [Sat, 23 Jun 2018 14:31:28 +0000 (16:31 +0200)]
UI: Add user defined context menu

- Add/Remove from RMB context menu.
- Stored in user preferences.
- Access from Q key.

See T55027.

3 years agoGhost: Fix F12 render on windows.
Ray Molenkamp [Sat, 23 Jun 2018 17:37:35 +0000 (11:37 -0600)]
Ghost: Fix F12 render on windows.

createOffscreenContext left the new context bound to the calling thread
causing a race condition with the background thread doing the actual
rendering. see T55555 for a more detailed description of the problem.

this patch changes the behavior of createOffscreenContext to restore the
context to the calling context.

Reviewers: fclem

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

3 years agoKeymap: Add F3 key back for search
Campbell Barton [Sat, 23 Jun 2018 14:21:53 +0000 (16:21 +0200)]
Keymap: Add F3 key back for search

Keeping tilder, adding back F3 since some platforms
still don't have hardware scan-codes for tilder key on non-US keyboards.

3 years agoManipulator: fix issue refreshing transform tool
Campbell Barton [Sat, 23 Jun 2018 10:46:01 +0000 (12:46 +0200)]
Manipulator: fix issue refreshing transform tool

Changing manipulator types failed.

3 years agoMerge branch 'master' into blender2.8
Campbell Barton [Sat, 23 Jun 2018 08:45:19 +0000 (10:45 +0200)]
Merge branch 'master' into blender2.8

3 years agoUI: alternate fix for empty context menu
Campbell Barton [Sat, 23 Jun 2018 08:31:10 +0000 (10:31 +0200)]
UI: alternate fix for empty context menu

block and layout could be NULL and checking this everywhere
wasn't practical.

Instead of lazy initializing, add UI_popup_menu_end_or_cancel
which cancels empty popup menus.

3 years agoUI: naming of cursor options
Campbell Barton [Sat, 23 Jun 2018 07:45:53 +0000 (09:45 +0200)]
UI: naming of cursor options

3 years agoBlenfont: Fix texture not being initialized in recent refactor.
Ray Molenkamp [Fri, 22 Jun 2018 20:35:32 +0000 (14:35 -0600)]
Blenfont: Fix texture not being initialized in recent refactor.

Caused some gpus to have issues with the font shadows.

thanks @fclem for helping tracking this one down.

3 years agoMissed last commit
Campbell Barton [Fri, 22 Jun 2018 17:25:38 +0000 (19:25 +0200)]
Missed last commit

3 years agoTool System: transform can now toggle loc/rot/scale
Campbell Barton [Fri, 22 Jun 2018 17:22:49 +0000 (19:22 +0200)]
Tool System: transform can now toggle loc/rot/scale

3 years agoDepsgraph: cache effector relations, for performance and stability.
Brecht Van Lommel [Thu, 21 Jun 2018 17:45:39 +0000 (19:45 +0200)]
Depsgraph: cache effector relations, for performance and stability.

To find all effectors in the scene, we need to loop over all objects.
Doing this during depsgraph evaluation caused crashes because not all
objects are guaranteed to be evaluated yet.

To fix this, we now cache the relations as part of the dependency graph
build. As a bonus this also makes evaluation faster for big scenes,
since looping over all objects for each particle system is slow.

Fixes T55156.

3 years agoCleanup: nuke (nearly) all remaining usages of DM from RNA.
Bastien Montagne [Fri, 22 Jun 2018 15:54:48 +0000 (17:54 +0200)]
Cleanup: nuke (nearly) all remaining usages of DM from RNA.

Only case remaining is a nasty ccgdm/opensubdiv update case, TBD once
subsurf case is addressed.

3 years agoPort DM_debug stuf to BKE_mesh_runtime.
Bastien Montagne [Fri, 22 Jun 2018 15:54:18 +0000 (17:54 +0200)]
Port DM_debug stuf to BKE_mesh_runtime.

3 years agoFix crash reading toolsettings
Campbell Barton [Fri, 22 Jun 2018 15:21:40 +0000 (17:21 +0200)]
Fix crash reading toolsettings

3 years agoCleanup: use standard BKE_object_free_derived_caches in BKE_mesh_to_curve.
Bastien Montagne [Fri, 22 Jun 2018 14:58:44 +0000 (16:58 +0200)]
Cleanup: use standard BKE_object_free_derived_caches in BKE_mesh_to_curve.

...Instead of doing own dirty/risky version of the same thing!

3 years agoCleanup: misc DrivedMesh stuff.
Bastien Montagne [Fri, 22 Jun 2018 14:56:49 +0000 (16:56 +0200)]
Cleanup: misc DrivedMesh stuff.

3 years agoStudioLights: API
Jeroen Bakker [Fri, 22 Jun 2018 14:22:36 +0000 (16:22 +0200)]
StudioLights: API

- get spherical harmonics coefficients

3 years agoCleanup: Moar DM busting from editor code area.
Bastien Montagne [Fri, 22 Jun 2018 14:10:29 +0000 (16:10 +0200)]
Cleanup: Moar DM busting from editor code area.

3 years agoCleanup: nuke another DM usage in paint code.
Bastien Montagne [Fri, 22 Jun 2018 14:03:16 +0000 (16:03 +0200)]
Cleanup: nuke another DM usage in paint code.

3 years agoCleanup: useless BKE_cdderivedmesh includes...
Bastien Montagne [Fri, 22 Jun 2018 13:52:14 +0000 (15:52 +0200)]
Cleanup: useless BKE_cdderivedmesh includes...

3 years agoModifiers: port shapekey modifier, some cleanup.
Bastien Montagne [Fri, 22 Jun 2018 13:45:46 +0000 (15:45 +0200)]
Modifiers: port shapekey modifier, some cleanup.

3 years agoModifiers: port UV_unwarp from DM to Mesh.
Bastien Montagne [Fri, 22 Jun 2018 13:27:50 +0000 (15:27 +0200)]
Modifiers: port UV_unwarp from DM to Mesh.

Pretty trivial...

3 years agoAdd depth and orientation options to 3D cursor tool
Campbell Barton [Fri, 22 Jun 2018 13:07:11 +0000 (15:07 +0200)]
Add depth and orientation options to 3D cursor tool

3 years agoCleanup: unused value
Campbell Barton [Fri, 22 Jun 2018 13:21:12 +0000 (15:21 +0200)]
Cleanup: unused value

3 years agoModifiers: Remove remaining parts of md->scene
Sergey Sharybin [Fri, 22 Jun 2018 13:04:06 +0000 (15:04 +0200)]
Modifiers: Remove remaining parts of md->scene

3 years agoModifiers: Remove lots of usages of md->scene
Sergey Sharybin [Fri, 22 Jun 2018 13:03:42 +0000 (15:03 +0200)]
Modifiers: Remove lots of usages of md->scene

3 years agoSubsurf: Move away from using scene from modifier data
Sergey Sharybin [Mon, 18 Jun 2018 09:51:02 +0000 (11:51 +0200)]
Subsurf: Move away from using scene from modifier data

3 years agoCloth: Move away from scene stored in cloth modifier data
Sergey Sharybin [Mon, 18 Jun 2018 09:34:24 +0000 (11:34 +0200)]
Cloth: Move away from scene stored in cloth modifier data

3 years agoMultires: Move away from using scene from modifier data
Sergey Sharybin [Mon, 18 Jun 2018 09:21:33 +0000 (11:21 +0200)]
Multires: Move away from using scene from modifier data

3 years agoStudioLight: Better API
Jeroen Bakker [Fri, 22 Jun 2018 12:48:23 +0000 (14:48 +0200)]
StudioLight: Better API

In stead of a single refresh function that re-init the whole system. The
API now supports adding and removing. Which will be much faster and less
flickering of missing icons when adding/removing lights

3 years agoMerge branch 'master' into blender2.8
Sergey Sharybin [Fri, 22 Jun 2018 12:42:25 +0000 (14:42 +0200)]
Merge branch 'master' into blender2.8

3 years agoCMake: Make language explicit for per-file strict flags removal
Sergey Sharybin [Fri, 22 Jun 2018 12:40:00 +0000 (14:40 +0200)]
CMake: Make language explicit for per-file strict flags removal

3 years agoCMake: Cleanup, add_cc_flag -> add_c_flag
Sergey Sharybin [Fri, 22 Jun 2018 12:29:13 +0000 (14:29 +0200)]
CMake: Cleanup, add_cc_flag -> add_c_flag

3 years agoCMake: Cleanup, rename CC_REMOVE_STRICT_FLAGS to C_REMOVE_STRICT_FLAGS
Sergey Sharybin [Fri, 22 Jun 2018 12:17:55 +0000 (14:17 +0200)]
CMake: Cleanup, rename CC_REMOVE_STRICT_FLAGS to C_REMOVE_STRICT_FLAGS

3 years agoCMake: Tweaks to removal of strict flags
Sergey Sharybin [Fri, 22 Jun 2018 12:07:55 +0000 (14:07 +0200)]
CMake: Tweaks to removal of strict flags

Silences the following strict flags from external libraries:

- -Wclass-memaccess
- -Wswitch
- -Wtype-limits
- -Wint-in-bool-context

Needed to tweak macro a bit, since the old logic was wrong:
we can not use CXX flags for C compiler, need way more strict
separation between what goes where.

3 years agoCleanup: move cursor rotation into own function
Campbell Barton [Fri, 22 Jun 2018 11:56:14 +0000 (13:56 +0200)]
Cleanup: move cursor rotation into own function

3 years agoOutliner: Aggregate ID types and object types together with numbers
Dalai Felinto [Thu, 21 Jun 2018 17:40:14 +0000 (19:40 +0200)]
Outliner: Aggregate ID types and object types together with numbers

We draw small numbers over the icon of multiple objects of the same type.
Also, we make all inlined elements to be non-clickabled.

For modifiers we still do it the old way. In this case it is more important
to see the order then the ammount.

Reviewers: brecht, campbellbarton
Subscribers: billreynish, venomgfx

Design task and mockup: T54707
Differential Revision: https://developer.blender.org/D3497

3 years agoUpdate theme Flatty Dark Blueberry
Pablo Vazquez [Fri, 22 Jun 2018 11:45:27 +0000 (13:45 +0200)]
Update theme Flatty Dark Blueberry

3 years agoMerge branch 'master' into blender2.8
Campbell Barton [Fri, 22 Jun 2018 10:56:02 +0000 (12:56 +0200)]
Merge branch 'master' into blender2.8

3 years agoCleanup: rename 3D cursor calculation vars
Campbell Barton [Fri, 22 Jun 2018 10:55:15 +0000 (12:55 +0200)]
Cleanup: rename 3D cursor calculation vars

3 years agoCleanup: 2.8-new G.main in RNA code.
Bastien Montagne [Fri, 22 Jun 2018 10:50:26 +0000 (12:50 +0200)]
Cleanup: 2.8-new G.main in RNA code.

Again, essentially validating them, and adding assert check if needed.

3 years agoMerge branch 'master' into blender2.8
Bastien Montagne [Fri, 22 Jun 2018 10:46:16 +0000 (12:46 +0200)]
Merge branch 'master' into blender2.8

Conflicts:
source/blender/makesrna/intern/rna_image.c
source/blender/makesrna/intern/rna_object.c
source/blender/makesrna/intern/rna_object_force.c
source/blender/makesrna/intern/rna_screen.c
source/blender/makesrna/intern/rna_sculpt_paint.c
source/blender/makesrna/intern/rna_space.c
source/blender/python/bmesh/bmesh_py_types.c
source/blender/python/generic/bpy_internal_import.h
source/blender/python/intern/bpy_rna_anim.c
source/blender/python/intern/gpu_offscreen.c

3 years agoStudioLight: Only apply windowing when SH level is 2
Jeroen Bakker [Fri, 22 Jun 2018 10:37:03 +0000 (12:37 +0200)]
StudioLight: Only apply windowing when SH level is 2

It does not make much sense for the other levels

3 years agoCleanup: remove last G.main from RNA.
Bastien Montagne [Fri, 22 Jun 2018 10:35:41 +0000 (12:35 +0200)]
Cleanup: remove last G.main from RNA.

Again, we cannot actually get rid of G_MAIN global access here, so in
most case just 'marked' them as valid, and added assert checks to ensure
we do only work with IDs in G_MAIN in those cases.

3 years agoStudioLight: remove caches when removing studiolight
Jeroen Bakker [Fri, 22 Jun 2018 10:30:27 +0000 (12:30 +0200)]
StudioLight: remove caches when removing studiolight

Cache files were not deleted and when uploading a new file with the same
name resulted in using the old cache file.

3 years agoStudiolight: Spherical Harmonics Windowing
Jeroen Bakker [Fri, 22 Jun 2018 10:16:23 +0000 (12:16 +0200)]
Studiolight: Spherical Harmonics Windowing

Apply Windowing on the Spherical Harmonics result. This would lead to
better results.

3 years agoTweak new BKE_id_is_in_global_main to accept NULL pointer (and consider them as valid).
Bastien Montagne [Fri, 22 Jun 2018 10:26:45 +0000 (12:26 +0200)]
Tweak new BKE_id_is_in_global_main to accept NULL pointer (and consider them as valid).

3 years agoFix harmless use of unintialized memory
Sergey Sharybin [Fri, 22 Jun 2018 10:07:48 +0000 (12:07 +0200)]
Fix harmless use of unintialized memory

Still nbice to avoid such access to keep valgrind output more sane.

3 years agoCleanup, spelling
Sergey Sharybin [Fri, 22 Jun 2018 09:26:47 +0000 (11:26 +0200)]
Cleanup, spelling

3 years agoMath: Set matrix to zero when inversion fails
Sergey Sharybin [Fri, 22 Jun 2018 09:22:50 +0000 (11:22 +0200)]
Math: Set matrix to zero when inversion fails

Avoids usage of uninitialized memory when inversion fails.

That uninitialized memory can cause object to become visible when
it is supposed not to or other artifacts like that.

Longer term solution would be to check every instance of invert_m#
function and to explicit fallback when needed (possibly, using
extra utility functions).

3 years agoCleanup: get rid of last G.main's in bpy area.
Bastien Montagne [Fri, 22 Jun 2018 09:37:47 +0000 (11:37 +0200)]
Cleanup: get rid of last G.main's in bpy area.

Essentially 'validating' them as G_MAIN, and adding some asserts in
dubious places, that handled IDs are actually in G_MAIN.

3 years agoBKE_library: Add func to check an ID is actually in G_MAIN database.
Bastien Montagne [Fri, 22 Jun 2018 09:37:08 +0000 (11:37 +0200)]
BKE_library: Add func to check an ID is actually in G_MAIN database.

3 years agoPaintMode: Full Shading Boolean => Slider
Jeroen Bakker [Fri, 22 Jun 2018 08:37:38 +0000 (10:37 +0200)]
PaintMode: Full Shading Boolean => Slider

There was a Full Shading bool that was shared across the WP, VP and TP
modes. This commit makes some changes:

- Replace the bool with a factor. This gives the user more control on
the visibility.
- Also draw it on top of the Material and Rendered mode so the user can
control what he needs. In certain cases you don't want to see the final
rendered material, but the actual texture.
- Removed the skipping of objects when in paint modes. As now the paint
modes are blended.

3 years agoCleanup: style
Campbell Barton [Fri, 22 Jun 2018 06:18:02 +0000 (08:18 +0200)]
Cleanup: style

3 years agoCleanup: suppress assert in recent GPU refactor
Campbell Barton [Fri, 22 Jun 2018 06:10:59 +0000 (08:10 +0200)]
Cleanup: suppress assert in recent GPU refactor

3 years agoFix T55547: "Fit camera to selected" fails
Campbell Barton [Fri, 22 Jun 2018 05:54:55 +0000 (07:54 +0200)]
Fix T55547: "Fit camera to selected" fails

3 years agoGLRefactor: Refactor bf_blenfont to use GPUTexture instead of raw GL calls and types.
Ray Molenkamp [Fri, 22 Jun 2018 00:35:37 +0000 (18:35 -0600)]
GLRefactor: Refactor bf_blenfont to use GPUTexture instead of raw GL calls and types.

In an effort to centralize all opengl calls in the codebase, this patch replaces
the raw opengl calls in bf_blenfont with GPUTexture so it's no longer depended
on opengl headers.

reviewer: Brecht

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

3 years agoEdit Mode: Bevel Op: Offset Soft Max to 100
Aaron Carlisle [Thu, 21 Jun 2018 17:46:11 +0000 (13:46 -0400)]
Edit Mode: Bevel Op: Offset Soft Max to 100

This is consistent with the modifier

3 years agoMerge branch 'master' into blender2.8
Campbell Barton [Thu, 21 Jun 2018 17:29:22 +0000 (19:29 +0200)]
Merge branch 'master' into blender2.8

3 years agoFix T55568: second click event ignored
Campbell Barton [Thu, 21 Jun 2018 17:26:21 +0000 (19:26 +0200)]
Fix T55568: second click event ignored

3 years agoRevert "Fix T55568: second click event ignored"
Campbell Barton [Thu, 21 Jun 2018 17:24:50 +0000 (19:24 +0200)]
Revert "Fix T55568: second click event ignored"

This reverts commit 52aa963f0ef1b6f4abba6653e9a441dee234127a.

Fixed for keyboards, broke mouse buttons.

3 years agoCleanup: get rid of dual DM/Mesh versions of mirror topology code.
Bastien Montagne [Thu, 21 Jun 2018 17:05:10 +0000 (19:05 +0200)]
Cleanup: get rid of dual DM/Mesh versions of mirror topology code.

Easy to switch to only use (evaluated) mesh instead!

3 years agoCleanup: ED_mesh_pick_vert: DM -> me_eval.
Bastien Montagne [Thu, 21 Jun 2018 16:38:37 +0000 (18:38 +0200)]
Cleanup: ED_mesh_pick_vert: DM -> me_eval.

3 years agoCleanup: remove DM from 'join as shape' operator.
Bastien Montagne [Thu, 21 Jun 2018 16:24:32 +0000 (18:24 +0200)]
Cleanup: remove DM from 'join as shape' operator.

Also deduplicated the 'mesh as shapekey' code, we had kind of two funcs
doing the same thing here...

3 years agoFix own error making outliner rename not emboss
Campbell Barton [Thu, 21 Jun 2018 16:15:17 +0000 (18:15 +0200)]
Fix own error making outliner rename not emboss

3 years agoModifiers: Stop using md->scene in isDisabled() callback
Sergey Sharybin [Thu, 21 Jun 2018 15:54:12 +0000 (17:54 +0200)]
Modifiers: Stop using md->scene in isDisabled() callback

This is first commit in series of changes to get rid of md->scene.

3 years agoFix incorrect use of G.is_rendering for particles in some places.
Brecht Van Lommel [Thu, 21 Jun 2018 14:30:34 +0000 (16:30 +0200)]
Fix incorrect use of G.is_rendering for particles in some places.

3 years agoCleanup: nuke useless BKE_DerivedMesh.h includes.
Bastien Montagne [Thu, 21 Jun 2018 14:45:33 +0000 (16:45 +0200)]
Cleanup: nuke useless BKE_DerivedMesh.h includes.

3 years agoMerge branch 'master' into blender2.8
Campbell Barton [Thu, 21 Jun 2018 14:43:39 +0000 (16:43 +0200)]
Merge branch 'master' into blender2.8

3 years agoUI: don't show empty button context menu
Campbell Barton [Thu, 21 Jun 2018 14:33:27 +0000 (16:33 +0200)]
UI: don't show empty button context menu

3 years agoFix T55555: Crash when select material properties
Antonioya [Thu, 21 Jun 2018 14:10:52 +0000 (16:10 +0200)]
Fix T55555: Crash when select material properties

This error is only in Windows and Mac when select in properties the material tab.

This commit revert dc856be8399242f4ee3a2ce0450b7ac5a20b35f6 Preview: Add own opengl context to render preview images.

3 years agoDepsgraph: Add missing relation from proxy group
Sergey Sharybin [Thu, 21 Jun 2018 13:56:06 +0000 (15:56 +0200)]
Depsgraph: Add missing relation from proxy group

Transform evaluation does depend on that matrix, but relation was never
in dependency graph. It was not even in the old dependency graph, which
makes me wonder how this thing worked reliably to begin with.

Should fix flickering issue in the render farm.

3 years agoDepsgraph: Re-hook duplicgroup relation to final transform operation
Sergey Sharybin [Thu, 21 Jun 2018 13:47:55 +0000 (15:47 +0200)]
Depsgraph: Re-hook duplicgroup relation to final transform operation

Transform evaluation doesn't not depend on objects which are being duplicated,
so should not be any regressions here.

The whole relation should probably be gone as it's kind of rooting back to
legacy times, but that would need more clear research and investigation and
regression testing.

3 years agoDepsgraph: Walk into dupli_group object
Sergey Sharybin [Thu, 21 Jun 2018 13:41:51 +0000 (15:41 +0200)]
Depsgraph: Walk into dupli_group object

That will help with cases when dupli_group object is not linked
directly to the scene.

3 years agoCleanup: names: data transfer/mesh remap: dm -> me/mesh.
Bastien Montagne [Thu, 21 Jun 2018 13:32:01 +0000 (15:32 +0200)]
Cleanup: names: data transfer/mesh remap: dm -> me/mesh.

That area is now officially purged from the Devil.. errr... DerivedMesh!

3 years agoCleanup: data transfer: get rid of dual destination mesh.
Bastien Montagne [Thu, 21 Jun 2018 13:17:40 +0000 (15:17 +0200)]
Cleanup: data transfer: get rid of dual destination mesh.

Not needed anymore, we only actually need to know wether it's orig mesh
or eval one in a few places...

3 years agoCleanup: some potentially critical changes in data transfer.
Bastien Montagne [Thu, 21 Jun 2018 12:54:03 +0000 (14:54 +0200)]
Cleanup: some potentially critical changes in data transfer.

Removing that stuff should be valid with new depsgraph/modifiers stack
evaluation system... BUT it might not be, so rather have those in
separate own well-isolated commit.

3 years agoCleanup: nuke DM out of data transfer code.
Bastien Montagne [Thu, 21 Jun 2018 12:39:28 +0000 (14:39 +0200)]
Cleanup: nuke DM out of data transfer code.

This was actually rather hairy, this code is huge and complicated, easy
to make mistakes...

Good thing is, it will allow for significant simplification and more
(name) cleanup in following commits ;)

3 years agoFix Cycles incorrect versioning for automatic sample world resolution.
Brecht Van Lommel [Thu, 21 Jun 2018 13:25:29 +0000 (15:25 +0200)]
Fix Cycles incorrect versioning for automatic sample world resolution.

3 years agoFix T55525: "Only Keyframes from Selected Channels" option in Timeline was being...
Joshua Leung [Thu, 21 Jun 2018 13:25:48 +0000 (01:25 +1200)]
Fix T55525: "Only Keyframes from Selected Channels" option in Timeline was being ignored

I was originally going to just expose the filtering options fo the timeline
too (via popover), to provide full access to the filtering options here too.
However, investigating further, that would've caused problems when trying to
use the Next/Prev Keyframe operators in other editors (see comment in code).
For now, the simpler solution is to just sync the scene-level flag (used for
this option) back to the dopesheet settings (used for generating the summary
channel used for displaying keyframes), to buy some time to investigate more
carefully.

3 years agoWorkbench: Remove warning
Jeroen Bakker [Thu, 21 Jun 2018 13:15:41 +0000 (15:15 +0200)]
Workbench: Remove warning

When in forward rendering and Object outline was disabled every render
call created one console warning (uniform objectId not found)

this commit removes this warning

3 years agoRevert "Objects: when active object gets hidden, make it inactive."
Brecht Van Lommel [Thu, 21 Jun 2018 12:42:57 +0000 (14:42 +0200)]
Revert "Objects: when active object gets hidden, make it inactive."

This reverts commit fec97ec949, it's useful to be able to edit object
properties for hidden objects. The issue with mode locking that this
was meant to solve will be handled in another way.

3 years agoMerge branch 'master' into blender2.8
Campbell Barton [Thu, 21 Jun 2018 13:02:38 +0000 (15:02 +0200)]
Merge branch 'master' into blender2.8

3 years agoT55570: Moved Texture drawtype as to shading popover
Jeroen Bakker [Thu, 21 Jun 2018 12:56:00 +0000 (14:56 +0200)]
T55570: Moved Texture drawtype as to shading popover

the use of the texture drawtype is limited. so who should we have it
this prominent on the screen. By adding it as a shading.color_type
option we should save some screenspace.

3 years agoUI: preference for developer extras
Campbell Barton [Thu, 21 Jun 2018 12:54:21 +0000 (14:54 +0200)]
UI: preference for developer extras

Currently only used for "Edit Source" feature.

3 years agoFix T55568: second click event ignored
Campbell Barton [Thu, 21 Jun 2018 08:58:03 +0000 (10:58 +0200)]
Fix T55568: second click event ignored

Double-click handling caused the second click to be ignored
for keymaps that only handle click.

3 years agoPython/BLF: add blf.color(r, g, b, a) method.
Brecht Van Lommel [Thu, 21 Jun 2018 11:01:24 +0000 (13:01 +0200)]
Python/BLF: add blf.color(r, g, b, a) method.

This is needed now that glColor() no longer works.