blender.git
5 months agoMerge branch 'blender2.7'
Sergey Sharybin [Fri, 11 Jan 2019 17:09:05 +0000 (18:09 +0100)]
Merge branch 'blender2.7'

5 months agoFix T60145: Cycles resets manually set affinity
Sergey Sharybin [Fri, 11 Jan 2019 16:55:36 +0000 (17:55 +0100)]
Fix T60145: Cycles resets manually set affinity

This change brings back old original logic which was checking
whether worker threads do fit into an active CPU group. But
it does it a bit smarter now and is also checking affinity
within that group. This way Cycles will use all threads on a
Threadripper2 CPU if it's set to automatic number of threads,
but on another hand will not change affinity if user requested
16 threads and changed Blender affinity.

5 months agoUpdate bundled version of NUMA API library
Sergey Sharybin [Fri, 11 Jan 2019 16:47:10 +0000 (17:47 +0100)]
Update bundled version of NUMA API library

5 months agoGP: Missing in previous count commit
Antonioya [Fri, 11 Jan 2019 16:30:35 +0000 (17:30 +0100)]
GP: Missing in previous count commit

5 months agoFix T60415: wrong font preview image alpha blending.
Brecht Van Lommel [Fri, 11 Jan 2019 16:00:03 +0000 (17:00 +0100)]
Fix T60415: wrong font preview image alpha blending.

5 months agoFix Python errors batch generating preview images.
Brecht Van Lommel [Fri, 11 Jan 2019 15:18:00 +0000 (16:18 +0100)]
Fix Python errors batch generating preview images.

5 months agoFix T60411: crash in multi-object pose mode, with some armatures in rest pose.
Brecht Van Lommel [Fri, 11 Jan 2019 11:19:42 +0000 (12:19 +0100)]
Fix T60411: crash in multi-object pose mode, with some armatures in rest pose.

5 months agoGP: Fix missing Fill properties in Topbar
Antonioya [Fri, 11 Jan 2019 16:22:13 +0000 (17:22 +0100)]
GP: Fix missing Fill properties in Topbar

After some internal changes in the topbar, some properties were not visible if use col() instead of row() in python script.

5 months agoGP: Reduce memory reallocation in multiedit mode
Antonioya [Fri, 11 Jan 2019 15:58:18 +0000 (16:58 +0100)]
GP: Reduce memory reallocation in multiedit mode

There was a problem counting the number of points for edit points and lines. Now the total size is used allocating the VBO size and not the stroke size.

5 months agoUVEdit: Port texpaint_loop_wire to batch request
Clément Foucault [Thu, 10 Jan 2019 21:22:42 +0000 (22:22 +0100)]
UVEdit: Port texpaint_loop_wire to batch request

This removes code duplication and put an end to the old "create at request"
batch creation.

Also it uses the same vbo as the uv layer used for shading. Reducing VRAM
usage.

Also fixes the modified uv display in uv edit mode.

5 months agoUVEdit: Add back uv angle stretch aspect correction
Clément Foucault [Thu, 10 Jan 2019 16:59:11 +0000 (17:59 +0100)]
UVEdit: Add back uv angle stretch aspect correction

This is now done in shader so that the batches are shared across ImageUV
areas.

5 months agoUVEdit: Port batches to batch request
Clément Foucault [Wed, 9 Jan 2019 21:56:27 +0000 (22:56 +0100)]
UVEdit: Port batches to batch request

This is in order to allow more spaces to have their batches created at the
same time and sharing the batches.

This is part of the effort fo making the drawing code more optimized. This
commit however should not introduce any difference.

This commit bypass the aspect ratio correction for angle stretch display
but this should be fixed in the next commit.

5 months agoWM: Use draw manager to draw UV image editor spaces
Clément Foucault [Wed, 9 Jan 2019 21:26:52 +0000 (22:26 +0100)]
WM: Use draw manager to draw UV image editor spaces

This is in order to use batch cache directly without using tricks like
batch presets reseting the VAOs.

Note: For now it also create a depth buffer for this area which is not
needed. We could get rid of this to lower VRAM usage.

5 months agoBMesh: Add BM_face_calc_area_uv
Clément Foucault [Wed, 9 Jan 2019 21:09:27 +0000 (22:09 +0100)]
BMesh: Add BM_face_calc_area_uv

5 months agoTexture Paint: Add filtering option for texture paint overlay
Clément Foucault [Sun, 23 Dec 2018 15:26:21 +0000 (16:26 +0100)]
Texture Paint: Add filtering option for texture paint overlay

The overlay should now use the texture interpolation setting in material
mode.

In image mode, there is now a new button to let the user choose the texture
filter. The option is located in the Texture Slots popover and only shows
in Image mode.

5 months agoWorkbench: Support node texture "closest" interpolation option
Clément Foucault [Sun, 23 Dec 2018 14:20:06 +0000 (15:20 +0100)]
Workbench: Support node texture "closest" interpolation option

This makes it possible to paint pixel art using the workbench.

Cubic interpolation is not supported but could be added if needed.

5 months agoGPUShader: Cleanup Unused shaders
Clément Foucault [Sun, 23 Dec 2018 13:13:24 +0000 (14:13 +0100)]
GPUShader: Cleanup Unused shaders

5 months agoMesh Batch Cache: Cleanup Unused
Clément Foucault [Sat, 22 Dec 2018 23:23:51 +0000 (00:23 +0100)]
Mesh Batch Cache: Cleanup Unused

5 months agoEdit Mode Selection: Make Vertices not occluded by edges
Clément Foucault [Sat, 22 Dec 2018 23:11:42 +0000 (00:11 +0100)]
Edit Mode Selection: Make Vertices not occluded by edges

Debugging the edit mode selection I realized the vertices are often
occluded by edges with the same depth. Sometime it can be the center
pixel of a vertex point and that can lead to some selection issue.

So I increased the offset a bit for the vertices and it seems to fix it.

5 months agoGPUMaterial: Cleanup / optimization
Clément Foucault [Sat, 22 Dec 2018 23:07:52 +0000 (00:07 +0100)]
GPUMaterial: Cleanup / optimization

5 months agoMesh Selection: Port to batch cache request
Clément Foucault [Sat, 22 Dec 2018 22:57:12 +0000 (23:57 +0100)]
Mesh Selection: Port to batch cache request

This makes it more future proof and remove baked id offset inside the vbos.
Instead we add the offset as a uniform. This makes it possible to reuse
the vbos instead of discarding them all the time.

Also using batch request may reduce batches creation time.

5 months agoMesh Batch Cache: Fix wrong assert
Clément Foucault [Sat, 22 Dec 2018 20:04:53 +0000 (21:04 +0100)]
Mesh Batch Cache: Fix wrong assert

5 months agoGPUShader: Add selection id shader
Clément Foucault [Sat, 22 Dec 2018 20:02:30 +0000 (21:02 +0100)]
GPUShader: Add selection id shader

This is to separate id drawing from standard color drawing.

5 months agoMesh Batch Cache: Put context evaluation out of batch cache
Clément Foucault [Sat, 22 Dec 2018 20:00:23 +0000 (21:00 +0100)]
Mesh Batch Cache: Put context evaluation out of batch cache

This is in order to be able to call DRW_mesh_batch_cache_create_requested
outside of the draw manager

5 months agoDRW: Fix texture paint crashing if object has no material slot
Clément Foucault [Sat, 22 Dec 2018 19:17:42 +0000 (20:17 +0100)]
DRW: Fix texture paint crashing if object has no material slot

5 months agoMerge branch 'blender2.7'
Sergey Sharybin [Fri, 11 Jan 2019 14:09:46 +0000 (15:09 +0100)]
Merge branch 'blender2.7'

5 months agoFix T60227: Crash when Cycles uses more than system threads
Sergey Sharybin [Fri, 11 Jan 2019 14:01:54 +0000 (15:01 +0100)]
Fix T60227: Crash when Cycles uses more than system threads

Tweaked scheduling so it survives this situation by scattering
"extra" threads uniformly over all the NUMA nodes.

There are still tweaks possible to make some specific hardware
configurations work better.

5 months agoFix T60320: Cycles OpenCL denoising filter errors on some drivers.
Brecht Van Lommel [Fri, 11 Jan 2019 10:12:38 +0000 (11:12 +0100)]
Fix T60320: Cycles OpenCL denoising filter errors on some drivers.

5 months agoGP: Count all strokes when use multiedit for VBO size
Antonioya [Fri, 11 Jan 2019 10:00:30 +0000 (11:00 +0100)]
GP: Count all strokes when use multiedit for VBO size

When use multi frame edition, the initial size of the VBO must be bigger than normal edition because the realloc of VBO is very slow.

5 months agoFix auto-run warning RNA type
Campbell Barton [Fri, 11 Jan 2019 04:43:53 +0000 (15:43 +1100)]
Fix auto-run warning RNA type

5 months agoTheme: update blender light theme preferences
Campbell Barton [Fri, 11 Jan 2019 04:11:00 +0000 (15:11 +1100)]
Theme: update blender light theme preferences

Copy from properties space.

5 months agoTheme: disable blender_light 3D view gradient
Campbell Barton [Fri, 11 Jan 2019 03:38:31 +0000 (14:38 +1100)]
Theme: disable blender_light 3D view gradient

- Lost contrast w/ faded wire for dupli/set-scene.
- Make grid darker to increase contrast.

5 months ago3D View: fade out dupli-wire color 70%
Campbell Barton [Fri, 11 Jan 2019 03:26:30 +0000 (14:26 +1100)]
3D View: fade out dupli-wire color 70%

5 months ago3D View: use faded wire for set-scene objects
Campbell Barton [Fri, 11 Jan 2019 03:22:40 +0000 (14:22 +1100)]
3D View: use faded wire for set-scene objects

Matches 2.7x behavior.

5 months ago3D View: use dupli wire color for shaded wire drawing
Campbell Barton [Fri, 11 Jan 2019 03:12:55 +0000 (14:12 +1100)]
3D View: use dupli wire color for shaded wire drawing

Was only working for loose wire.

5 months agoCleanup: blend existing colors
Campbell Barton [Fri, 11 Jan 2019 02:27:49 +0000 (13:27 +1100)]
Cleanup: blend existing colors

5 months agoCleanup: avoid repetition versioning theme
Campbell Barton [Fri, 11 Jan 2019 02:23:27 +0000 (13:23 +1100)]
Cleanup: avoid repetition versioning theme

5 months agostartup: view background color wasn't default
Campbell Barton [Fri, 11 Jan 2019 02:15:38 +0000 (13:15 +1100)]
startup: view background color wasn't default

5 months agoFix background color use in 3D view
Campbell Barton [Fri, 11 Jan 2019 01:59:19 +0000 (12:59 +1100)]
Fix background color use in 3D view

TH_BACK was being used when drawing the 3D view even though
there was no way to set the color in the preferences.

The color was zero'd when moving to the new 2.8x theme.

Having both gradient and background colors was confusing,
especially having to use 'TH_HIGH_GRAD' for the 3D view, 'TH_BACK' for
other views.

Move the background color back to 'TH_BACK', 'TH_BACK_GRAD' is used
when gradients are enabled.
RNA is unchanged so presets don't need updating.

5 months agoPreferences: remove author field
Campbell Barton [Fri, 11 Jan 2019 00:00:33 +0000 (11:00 +1100)]
Preferences: remove author field

This was only used by collada export metadata.

If metadata like this is needed, we can use per-filetype preferences,
to make it clear when user identifiable information is being used.

5 months agoCleanup: remove tabs after line start
Campbell Barton [Thu, 10 Jan 2019 23:50:21 +0000 (10:50 +1100)]
Cleanup: remove tabs after line start

Allows expanding tabs before running clang-format.

5 months agoCleanup: unused vars
Campbell Barton [Thu, 10 Jan 2019 23:49:50 +0000 (10:49 +1100)]
Cleanup: unused vars

5 months agoMSVC: remove compiler __func__ define
Campbell Barton [Thu, 10 Jan 2019 22:22:21 +0000 (09:22 +1100)]
MSVC: remove compiler __func__ define

No longer needed and exposes a bug in clang-format see: D4185

5 months agoMSVC: remove compiler __func__ define
Campbell Barton [Thu, 10 Jan 2019 22:22:21 +0000 (09:22 +1100)]
MSVC: remove compiler __func__ define

No longer needed and exposes a bug in clang-format see: D4185

5 months agofix D4187: Collada Importer: Material assignment broken after importing Mesh with...
Trevor Glauz [Thu, 10 Jan 2019 19:23:40 +0000 (20:23 +0100)]
fix D4187: Collada Importer: Material assignment broken after importing Mesh with multiple materials

5 months agoFix T60266: missing viewport updates after changing scene world datablock.
Brecht Van Lommel [Thu, 10 Jan 2019 19:10:48 +0000 (20:10 +0100)]
Fix T60266: missing viewport updates after changing scene world datablock.

5 months agoFix use of uninitialized GPU context memory in release builds.
Brecht Van Lommel [Thu, 10 Jan 2019 19:03:05 +0000 (20:03 +0100)]
Fix use of uninitialized GPU context memory in release builds.

Reported by valgrind, not sure it caused any real bugs.

5 months agoSubdiv: Fix memory leak
Sergey Sharybin [Thu, 10 Jan 2019 16:08:31 +0000 (17:08 +0100)]
Subdiv: Fix memory leak

Was visible when mesh had n-gons.

5 months agoFix T60393: Subdiv gives wrong vertex colors
Sergey Sharybin [Thu, 10 Jan 2019 16:01:35 +0000 (17:01 +0100)]
Fix T60393: Subdiv gives wrong vertex colors

5 months agoFix T59631: Crash in Surface Deform modifier Bind when Dynamic Paint is included.
Bastien Montagne [Thu, 10 Jan 2019 15:45:38 +0000 (16:45 +0100)]
Fix T59631: Crash in Surface Deform modifier Bind when Dynamic Paint is included.

We should *never* prevent copying basic mesh CDLayers (vertices etc.),
that does not make sense.

I guess issue was not in old DM because geometry was duplicated anyway,
and in 'normal' modifier stack eval, probably because bare mesh was
awlays requested? But we should not have to be explicit here about it.

5 months agoGP: Fix render glitch when have collision with mesh
Antonioya [Thu, 10 Jan 2019 15:25:34 +0000 (16:25 +0100)]
GP: Fix render glitch when have collision with mesh

5 months agoUse proper ID to create FModifier RNA pointer
Sergey Sharybin [Thu, 10 Jan 2019 15:21:40 +0000 (16:21 +0100)]
Use proper ID to create FModifier RNA pointer

Allows to do simple DEG tag, without extra checks for ID type.

Will solve possible missing updates when modifying f-curve
modifier of a shared action.

5 months agoSupport proportional edit scaling on dopesheet keyframes
Philipp Oeser [Thu, 10 Jan 2019 13:03:52 +0000 (14:03 +0100)]
Support proportional edit scaling on dopesheet keyframes

Fixes T60361

Reviewers: brecht

Maniphest Tasks: T60361

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

5 months agoFix T60340: Removing f-curve modifier doesn't update animation
Sergey Sharybin [Thu, 10 Jan 2019 14:56:02 +0000 (15:56 +0100)]
Fix T60340: Removing f-curve modifier doesn't update animation

5 months agoKeep track of owner of f-curve
Sergey Sharybin [Thu, 10 Jan 2019 14:50:15 +0000 (15:50 +0100)]
Keep track of owner of f-curve

This is a part of another which, which needs to tag owner
of f-curve for an update. But since this is too many lines
changed committing separately.

Basically, for f-curve AnimElement we are now storing ID
whih owns the f-curve.

5 months agoUI: make pie menus stick only when tapping key.
Justin Jones [Thu, 10 Jan 2019 14:46:44 +0000 (15:46 +0100)]
UI: make pie menus stick only when tapping key.

When holding down the key for a while, the pie menu will disappear when
releasing the key. This is under the assumption that in this case the user
decided to cancel the action.

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

5 months agoFix T59913: error saving cloth preset
Philipp Oeser [Thu, 10 Jan 2019 14:52:34 +0000 (15:52 +0100)]
Fix T59913: error saving cloth preset

thx @rombout for investigation!

5 months agofix T60049: Collada Exporter: When exporting multiple UVs, the set index must start...
Gaia Clary [Thu, 10 Jan 2019 12:15:09 +0000 (13:15 +0100)]
fix T60049: Collada Exporter: When exporting multiple UVs, the set index must start with 0

5 months agoGP: Fix unreported pixel glitches
Antonioya [Thu, 10 Jan 2019 12:10:46 +0000 (13:10 +0100)]
GP: Fix unreported pixel glitches

There was a problem in the caps start and in some situations, the pixel was wrong.

Also changed the way the caps are detected because use the alpha in negative was a hack that maybe will not work with all drivers.

5 months agoFix T60285: allow negative offsets in shrinkwrap (worked in 2.79).
Alexander Gavrilov [Thu, 10 Jan 2019 08:55:09 +0000 (11:55 +0300)]
Fix T60285: allow negative offsets in shrinkwrap (worked in 2.79).

5 months ago3D View: use faded color for dupli instance outlines
Campbell Barton [Thu, 10 Jan 2019 07:04:27 +0000 (18:04 +1100)]
3D View: use faded color for dupli instance outlines

Similar to 2.7x, so instanced geometry can be differentiated.

5 months ago3D View: use faded color for dupli instance wire & points
Campbell Barton [Thu, 10 Jan 2019 05:51:36 +0000 (16:51 +1100)]
3D View: use faded color for dupli instance wire & points

Similar to 2.7x, so instanced geometry can be differentiated.

5 months agoUndo System: switch active text block when undoing
Campbell Barton [Thu, 10 Jan 2019 03:07:59 +0000 (14:07 +1100)]
Undo System: switch active text block when undoing

5 months agoFix anim_utils.bake_action typo
Campbell Barton [Thu, 10 Jan 2019 02:11:48 +0000 (13:11 +1100)]
Fix anim_utils.bake_action typo

D4172 by @rcorre

5 months agoClenaup: remove unused EM_WAITCURSOR
Campbell Barton [Thu, 10 Jan 2019 02:02:07 +0000 (13:02 +1100)]
Clenaup: remove unused EM_WAITCURSOR

5 months agoCleanup: remove unused copy menu code
Campbell Barton [Thu, 10 Jan 2019 01:52:20 +0000 (12:52 +1100)]
Cleanup: remove unused copy menu code

Unused since 2.4x.

5 months agoCleanup: end DefNode macro w/ semicolon
Campbell Barton [Thu, 10 Jan 2019 01:39:29 +0000 (12:39 +1100)]
Cleanup: end DefNode macro w/ semicolon

Needed for clang-format.

5 months agoCleanup: end bgl macros w/ semicolon
Campbell Barton [Thu, 10 Jan 2019 01:37:13 +0000 (12:37 +1100)]
Cleanup: end bgl macros w/ semicolon

Needed for clang-format.

5 months agoFix gizmo orientation w/ shear tool
Campbell Barton [Thu, 10 Jan 2019 01:25:09 +0000 (12:25 +1100)]
Fix gizmo orientation w/ shear tool

5 months agoFix T60358: popup clipping within window
Campbell Barton [Thu, 10 Jan 2019 00:18:18 +0000 (11:18 +1100)]
Fix T60358: popup clipping within window

Moving menu contents wasn't working properly.

5 months agoFix T60358: popup clipping within window
Campbell Barton [Thu, 10 Jan 2019 00:18:18 +0000 (11:18 +1100)]
Fix T60358: popup clipping within window

Moving menu contents wasn't working properly.

5 months agoFix T60354: Paint color shown when not used
Campbell Barton [Wed, 9 Jan 2019 23:10:21 +0000 (10:10 +1100)]
Fix T60354: Paint color shown when not used

Add 'has_color' check to avoid duplicated tool checks.

Also abbreviate text descriptions.

5 months agoCleanup: sort RNA types after ename
Campbell Barton [Wed, 9 Jan 2019 22:58:04 +0000 (09:58 +1100)]
Cleanup: sort RNA types after ename

5 months agoCleanup: ensure header guards come first
Campbell Barton [Wed, 9 Jan 2019 21:46:38 +0000 (08:46 +1100)]
Cleanup: ensure header guards come first

Causes clang-format not to detect header guards,
indenting all preprocessor lines in the header.

5 months agoCleanup: ensure header guards come first
Campbell Barton [Wed, 9 Jan 2019 21:46:38 +0000 (08:46 +1100)]
Cleanup: ensure header guards come first

Causes clang-format not to detect header guards,
indenting all preprocessor lines in the header.

5 months agoMerge branch 'blender2.7'
Campbell Barton [Wed, 9 Jan 2019 21:10:50 +0000 (08:10 +1100)]
Merge branch 'blender2.7'

5 months agoFix T55336: Crash w/ dyntopo sculpt
Campbell Barton [Wed, 9 Jan 2019 09:25:12 +0000 (20:25 +1100)]
Fix T55336: Crash w/ dyntopo sculpt

5 months agoUndo System: apply accumulation steps
Campbell Barton [Wed, 9 Jan 2019 09:21:24 +0000 (20:21 +1100)]
Undo System: apply accumulation steps

Apply steps between the active and the undo state being decoded.

5 months agoFix sculpt redo failing to enable dyntopo
Campbell Barton [Wed, 9 Jan 2019 07:08:14 +0000 (18:08 +1100)]
Fix sculpt redo failing to enable dyntopo

5 months agoFix memfile undo decoding creating undo steps
Campbell Barton [Wed, 9 Jan 2019 05:53:44 +0000 (16:53 +1100)]
Fix memfile undo decoding creating undo steps

Exiting modes shouldn't be needed since loading the new memfile
will free the old data.

Sculpt mode dynamic topology was adding undo data on exiting the mode
which isn't logical in this case and can be avoided altogether.

5 months agoFix T59165: Text operations fail to undo
Campbell Barton [Wed, 9 Jan 2019 03:07:35 +0000 (14:07 +1100)]
Fix T59165: Text operations fail to undo

Some undo operations encode multiple actions, now all are undone/redone.

5 months agoMerge branch 'blender2.7'
Brecht Van Lommel [Wed, 9 Jan 2019 16:20:58 +0000 (17:20 +0100)]
Merge branch 'blender2.7'

5 months agoBuild Environment: install clang-format for macOS / Linux.
Brecht Van Lommel [Wed, 9 Jan 2019 15:53:57 +0000 (16:53 +0100)]
Build Environment: install clang-format for macOS / Linux.

It's already there for Windows.

5 months agoFix Cycles viewport render doing some unnecessary work at the start.
Brecht Van Lommel [Wed, 9 Jan 2019 15:57:01 +0000 (16:57 +0100)]
Fix Cycles viewport render doing some unnecessary work at the start.

In some cases it would load adaptive kernels or even start rendering
twice because the first time the scene was not fully synced yet.

5 months agoFix T60300, T57774: Cycles OpenCL viewport crash with subsurface scattering.
Brecht Van Lommel [Wed, 9 Jan 2019 15:38:04 +0000 (16:38 +0100)]
Fix T60300, T57774: Cycles OpenCL viewport crash with subsurface scattering.

5 months agoFix T60351: Blender crashes when using fill tool without existent keyframe
Antonioya [Wed, 9 Jan 2019 15:39:07 +0000 (16:39 +0100)]
Fix T60351: Blender crashes when using fill tool without existent keyframe

5 months agoRevert/Redo ugly rBd12b3767f81d commit (i.e. add locked sorting option to UIList).
Bastien Montagne [Wed, 9 Jan 2019 14:48:09 +0000 (15:48 +0100)]
Revert/Redo ugly rBd12b3767f81d commit (i.e. add locked sorting option to UIList).

Too many things done wrong in original rBd12b3767f81d to list them all
here, hopefully nothing bad sneaked in again this time :|

Also cleaned up a little the 'sort by name', even though (since we only
have two options by default, sort by index and by name) we can abuse it
as a binary option for now, this is not a bitflag...

5 months agoFix T60324: node linking UI bugs with some shader nodes.
Brecht Van Lommel [Wed, 9 Jan 2019 13:33:17 +0000 (14:33 +0100)]
Fix T60324: node linking UI bugs with some shader nodes.

5 months agoFix T60244: Bisect in mirror modifier doesn't work properly.
Bastien Montagne [Wed, 9 Jan 2019 10:36:00 +0000 (11:36 +0100)]
Fix T60244: Bisect in mirror modifier doesn't work properly.

That was indeed not working properly, not at all. Except for
the basic case, but as soon as you used another object to define the
mirror plane, it would be utterly broken, in several different ways!

5 months agoMerge branch 'blender2.7'
Sergey Sharybin [Wed, 9 Jan 2019 11:56:50 +0000 (12:56 +0100)]
Merge branch 'blender2.7'

5 months agoCycles: Add utility to dump BVH tree as graphviz file
Sergey Sharybin [Tue, 8 Jan 2019 17:17:21 +0000 (18:17 +0100)]
Cycles: Add utility to dump BVH tree as graphviz file

5 months agoCycles: Make BVH wider prior to packing
Sergey Sharybin [Tue, 8 Jan 2019 17:10:32 +0000 (18:10 +0100)]
Cycles: Make BVH wider prior to packing

This allows to do more non-trivial tree modifications to make
it more dense and more friendly for vectorization.

5 months agoFix T60342: exception when creating cycles integrator or sampling preset
Jacques Lucke [Wed, 9 Jan 2019 10:58:48 +0000 (11:58 +0100)]
Fix T60342: exception when creating cycles integrator or sampling preset

5 months agoFix T60338: Allow user to input units of another system
Jacques Lucke [Wed, 9 Jan 2019 09:39:31 +0000 (10:39 +0100)]
Fix T60338: Allow user to input units of another system

5 months agoFix T55336: Crash w/ dyntopo sculpt
Campbell Barton [Wed, 9 Jan 2019 09:25:12 +0000 (20:25 +1100)]
Fix T55336: Crash w/ dyntopo sculpt

5 months agoUndo System: apply accumulation steps
Campbell Barton [Wed, 9 Jan 2019 09:21:24 +0000 (20:21 +1100)]
Undo System: apply accumulation steps

Apply steps between the active and the undo state being decoded.

5 months agoFix sculpt redo failing to enable dyntopo
Campbell Barton [Wed, 9 Jan 2019 07:08:14 +0000 (18:08 +1100)]
Fix sculpt redo failing to enable dyntopo

5 months agoFix memfile undo decoding creating undo steps
Campbell Barton [Wed, 9 Jan 2019 05:53:44 +0000 (16:53 +1100)]
Fix memfile undo decoding creating undo steps

Exiting modes shouldn't be needed since loading the new memfile
will free the old data.

Sculpt mode dynamic topology was adding undo data on exiting the mode
which isn't logical in this case and can be avoided altogether.

5 months agoFix T59165: Text operations fail to undo
Campbell Barton [Wed, 9 Jan 2019 03:07:35 +0000 (14:07 +1100)]
Fix T59165: Text operations fail to undo

Some undo operations encode multiple actions, now all are undone/redone.

5 months agoAvoid assert w/ recent sculpt changes on undo
Campbell Barton [Wed, 9 Jan 2019 02:25:23 +0000 (13:25 +1100)]
Avoid assert w/ recent sculpt changes on undo