blender.git
2 years 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.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

2 years 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).

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

2 years agoFix swapped active/selected lattice vertex color
Campbell Barton [Wed, 9 Jan 2019 02:09:03 +0000 (13:09 +1100)]
Fix swapped active/selected lattice vertex color

2 years agoUI: use keymap introspection for tooltip creation
Campbell Barton [Wed, 9 Jan 2019 01:27:58 +0000 (12:27 +1100)]
UI: use keymap introspection for tooltip creation

Also support non existing keymap items which gave an error, see: T60335

2 years agoWM: add keymap.find_from_operator(...)
Campbell Barton [Wed, 9 Jan 2019 01:26:10 +0000 (12:26 +1100)]
WM: add keymap.find_from_operator(...)

2 years agoFix IS_EVENT_ACTIONZONE macro
Campbell Barton [Wed, 9 Jan 2019 01:22:32 +0000 (12:22 +1100)]
Fix IS_EVENT_ACTIONZONE macro

Caused tweak events not to display.

2 years agoAssert: add check to last commit
Campbell Barton [Tue, 8 Jan 2019 23:32:02 +0000 (10:32 +1100)]
Assert: add check to last commit

2 years agoObject Mode: only toggle active object mode once
Campbell Barton [Tue, 8 Jan 2019 23:16:51 +0000 (10:16 +1100)]
Object Mode: only toggle active object mode once

- When toggling a mode that doesn't support multi editing
  only do this once of the active object.

- For sculpt mode create sculpt data since this is needed
  for activating other sculpt objects on reload.

2 years agoFix T60044: Sculpting brush is not visible
Campbell Barton [Tue, 8 Jan 2019 22:06:59 +0000 (09:06 +1100)]
Fix T60044: Sculpting brush is not visible

Same logic as fix from D4153, but only applied when running undo.

2 years agoRevert "Fix T60044: Sculpting brush is not visible on file load"
Dalai Felinto [Tue, 8 Jan 2019 20:31:36 +0000 (18:31 -0200)]
Revert "Fix T60044: Sculpting brush is not visible on file load"

This reverts commit 4d8ed937f226f4cdfa6f62fde5306b14c217e9c5.

An alternative fix will come soon as a patch, since this introduced an issue.
Rolling back since the original fix (sculpt cursor on load) is less important
than the issue it introduced (crash on weight paint undo/redo).

Fix T60322.

2 years agoFix T60327: Value input with adaptive imperial units not working properly
Jacques Lucke [Tue, 8 Jan 2019 18:20:22 +0000 (19:20 +0100)]
Fix T60327: Value input with adaptive imperial units not working properly

2 years agoFix inconsistent naming and behavior for base visible/selected/editable.
Brecht Van Lommel [Tue, 8 Jan 2019 17:19:12 +0000 (18:19 +0100)]
Fix inconsistent naming and behavior for base visible/selected/editable.

Fixes T60251.

2 years agoFix T60320: Cycles OpenCL volume rendering error on some drivers.
Brecht Van Lommel [Tue, 8 Jan 2019 14:50:14 +0000 (15:50 +0100)]
Fix T60320: Cycles OpenCL volume rendering error on some drivers.

2 years agoFix T60300: Cycles SSS render hanging with AMD OpenCL.
Brecht Van Lommel [Tue, 8 Jan 2019 14:35:54 +0000 (15:35 +0100)]
Fix T60300: Cycles SSS render hanging with AMD OpenCL.

2 years agoQuick Explode: replace BI based material handling (using 'fade'/'blend')
Philipp Oeser [Mon, 7 Jan 2019 14:42:46 +0000 (15:42 +0100)]
Quick Explode: replace BI based material handling (using 'fade'/'blend')

using a simple shader graph mixing Transparent BSDF now

Fixes T59185

Reviewers: brecht

Maniphest Tasks: T59185

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

2 years agoQuick Explode: use keyword argument
Philipp Oeser [Mon, 7 Jan 2019 12:04:39 +0000 (13:04 +0100)]
Quick Explode: use keyword argument

2 years agoFix T56545: Material referencing missing UV crash
Campbell Barton [Tue, 8 Jan 2019 14:04:28 +0000 (01:04 +1100)]
Fix T56545: Material referencing missing UV crash

2 years agoFix T58479: Quick Favorites Lets you add multiple of the same item
Philipp Oeser [Fri, 28 Dec 2018 13:57:34 +0000 (14:57 +0100)]
Fix T58479: Quick Favorites Lets you add multiple of the same item

Reviewers: brecht

Maniphest Tasks: T58479

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

2 years agoFix T60314: Missing strength w/ weight gradient
Campbell Barton [Tue, 8 Jan 2019 12:46:55 +0000 (23:46 +1100)]
Fix T60314: Missing strength w/ weight gradient

2 years agoTypo fixes
Joshua Leung [Fri, 4 Jan 2019 02:02:41 +0000 (15:02 +1300)]
Typo fixes

2 years agoFix T59984: Drivers don't update values in UI or show proper errors
Joshua Leung [Fri, 4 Jan 2019 01:57:09 +0000 (14:57 +1300)]
Fix T59984: Drivers don't update values in UI or show proper errors

We now perform COW -> original data flushing for all the debug values + error
status flags on Drivers/DriverVariables/DriverTargets, as these are only set
when errors are encountered when evaluating drivers.

2 years agoFix T59450: brush colors flip inactive w/ texture paint
Campbell Barton [Tue, 8 Jan 2019 12:24:38 +0000 (23:24 +1100)]
Fix T59450: brush colors flip inactive w/ texture paint

2 years agoFix T60263: render layer node sockets not showing on file load, for some files.
Brecht Van Lommel [Tue, 8 Jan 2019 12:21:39 +0000 (13:21 +0100)]
Fix T60263: render layer node sockets not showing on file load, for some files.

2 years agoFix T60291: Wrong tooltip in for Add Cube tool
Jacques Lucke [Tue, 8 Jan 2019 11:24:45 +0000 (12:24 +0100)]
Fix T60291: Wrong tooltip in for Add Cube tool

2 years agoFix T60306: Circle select tool behaves like a mode
Campbell Barton [Tue, 8 Jan 2019 11:14:09 +0000 (22:14 +1100)]
Fix T60306: Circle select tool behaves like a mode

2 years agoProperly clean up Python when exiting due to --python-exit-code
Sybren A. Stüvel [Tue, 8 Jan 2019 11:00:18 +0000 (12:00 +0100)]
Properly clean up Python when exiting due to --python-exit-code

When BPY_python_end() is not called, there can be buffered data still in
`sys.stdout` or `sys.stderr`. This generally isn't an issue when those are
connected to a terminal, but when they are read by another process (in the case
of rendering with Flamenco, for example) we could miss the actual error message
that's causing the exit in the first place.

The following script demonstrates the issue; before this commit neither the
writes to STDERR and STDOUT nor the traceback of the NameError were shown.

    #!/bin/bash

    cat > file-with-errors.py <<EOT
    import sys
    print('THIS IS STDERR', file=sys.stderr)
    print('THIS IS STDOUT', file=sys.stdout)
    nonexisting.monkey = 3
    EOT

    blender --enable-autoexec -noaudio --background \
any-existing-blendfile.blend \
--python-exit-code 42 \
--python file-with-errors.py 2>&1 | cat

Reviewers: campbellbarton, mont29

Reviewed By: campbellbarton, mont29

Subscribers: fsiddi

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

2 years agoMerge branch 'blender2.7'
Sergey Sharybin [Tue, 8 Jan 2019 10:47:35 +0000 (11:47 +0100)]
Merge branch 'blender2.7'

2 years agoMake DNA and RNA errors more meaningful and friendly
Sergey Sharybin [Tue, 8 Jan 2019 10:43:15 +0000 (11:43 +0100)]
Make DNA and RNA errors more meaningful and friendly

2 years agofix rotational limits not showing for GENERIC ridgid body constraint
Philipp Oeser [Tue, 8 Jan 2019 09:20:53 +0000 (10:20 +0100)]
fix rotational limits not showing for GENERIC ridgid body constraint

oversight in rB502aabb9d0c5

part of T60290

2 years agoFix workbench shading pie menu
Campbell Barton [Tue, 8 Jan 2019 06:17:52 +0000 (17:17 +1100)]
Fix workbench shading pie menu

Expand the enum since it's dynamic, depending on the render engine.

2 years agoVertex Paint: support vertex masking
Philipp Oeser [Tue, 8 Jan 2019 04:15:35 +0000 (15:15 +1100)]
Vertex Paint: support vertex masking

Working in 2.7x, was just disabled in 2.8x.

Fixes T60256

2 years agoCleanup: comments causing bad clang-format output
Campbell Barton [Mon, 7 Jan 2019 23:28:20 +0000 (10:28 +1100)]
Cleanup: comments causing bad clang-format output

2 years agoFix T60167: wrong shader nodes in Eevee add menu.
Brecht Van Lommel [Mon, 7 Jan 2019 16:32:40 +0000 (17:32 +0100)]
Fix T60167: wrong shader nodes in Eevee add menu.

2 years agoFix bad enum value since 299ff7dcd13
Sergey Sharybin [Mon, 7 Jan 2019 16:18:33 +0000 (17:18 +0100)]
Fix bad enum value since 299ff7dcd13

This is why out-sourcing things to a production-tested formatters
is a very very good idea.

2 years agoSubdiv: Use defined order of corner/edge vertices
Sergey Sharybin [Mon, 7 Jan 2019 16:08:54 +0000 (17:08 +0100)]
Subdiv: Use defined order of corner/edge vertices

This switches evaluation of vertices which are on the boundaries
of PTex faces to a single threaded one. While this introduces
some slowdown it fixes ambiguity of PTex index used to evaluate
particular vertex.

Possible alternative solutions would be:
- Do some pre-calculation of index, then do evaluation in threads.
- Try using Gregory patches and see if that makes any affect.

Fix T60235: Flickering of object instances

2 years agoSubdiv: Move single threaded code to a single function
Sergey Sharybin [Mon, 7 Jan 2019 14:34:59 +0000 (15:34 +0100)]
Subdiv: Move single threaded code to a single function

Allows to more easily add more passes which are supposed to be run
from a single thread.

2 years agoSubdiv: Cleanup, de-duplicate code
Sergey Sharybin [Mon, 7 Jan 2019 14:31:09 +0000 (15:31 +0100)]
Subdiv: Cleanup, de-duplicate code

2 years agoGP: Hide Options and Curves popovers for Fill brushes
Antonioya [Mon, 7 Jan 2019 15:22:20 +0000 (16:22 +0100)]
GP: Hide Options and Curves popovers for Fill brushes

2 years agoFix missing updates when muting/soloing/reordering NLA tracks.
Alexander Gavrilov [Mon, 7 Jan 2019 14:33:47 +0000 (17:33 +0300)]
Fix missing updates when muting/soloing/reordering NLA tracks.

2 years agoCleanup: corrections to last commit
Campbell Barton [Mon, 7 Jan 2019 14:00:40 +0000 (01:00 +1100)]
Cleanup: corrections to last commit

2 years agoCleanup: move DNA comments before struct members
Campbell Barton [Mon, 7 Jan 2019 11:19:13 +0000 (22:19 +1100)]
Cleanup: move DNA comments before struct members

Needed for clang-format in some cases, see: T53211

2 years agoCleanup: fix typo.
Bastien Montagne [Mon, 7 Jan 2019 13:04:23 +0000 (14:04 +0100)]
Cleanup: fix typo.

2 years agoFix T59151 Bevel modifier has bad input width for percent.
Howard Trickey [Mon, 7 Jan 2019 12:29:54 +0000 (07:29 -0500)]
Fix T59151 Bevel modifier has bad input width for percent.

The units scaling was inappropriate when the bevel value was
to be interpreted as a percent, so added a separate rna property
for "Width Percent" and made UI show the width appropriate for
current offset_type.

2 years agoOpenSundiv: Simplify tweaking of shared stencil/patch settings
Sergey Sharybin [Mon, 7 Jan 2019 09:29:48 +0000 (10:29 +0100)]
OpenSundiv: Simplify tweaking of shared stencil/patch settings

2 years agoFix T60247: app.handlers.undo_post calls undo_pre's function.
Bastien Montagne [Mon, 7 Jan 2019 08:51:41 +0000 (09:51 +0100)]
Fix T60247: app.handlers.undo_post calls undo_pre's function.

Undo and redo post were actually calling respective pre funcs...