2 years agoMerge branch 'master' into blender2.8
Campbell Barton [Mon, 12 Nov 2018 21:25:46 +0000 (08:25 +1100)]
Merge branch 'master' into blender2.8

2 years agoEevee: Hide Sprite threshold as it is not implemented yet
Clément Foucault [Mon, 12 Nov 2018 20:15:33 +0000 (21:15 +0100)]
Eevee: Hide Sprite threshold as it is not implemented yet

2 years agoWorkbench: Volumes: Fix volumetrics step length calculation
Clément Foucault [Mon, 12 Nov 2018 20:14:51 +0000 (21:14 +0100)]
Workbench: Volumes: Fix volumetrics step length calculation

Step size is now one voxel diagonal.
Fix T57678 Culling of smoke depending on view direction

2 years agoWorkbench: Volumes: Fix volumetrics rendering twices
Clément Foucault [Mon, 12 Nov 2018 20:12:34 +0000 (21:12 +0100)]
Workbench: Volumes: Fix volumetrics rendering twices

2 years agoWM: avoid string replace w/ appconfig-activate
Campbell Barton [Mon, 12 Nov 2018 19:59:23 +0000 (06:59 +1100)]
WM: avoid string replace w/ appconfig-activate

Better construct an exact path, this would fail if the path exists
multiple times in the string.

2 years agoFix T57571: Blender crashes on UV transformation
Clément Foucault [Mon, 12 Nov 2018 17:06:32 +0000 (18:06 +0100)]
Fix T57571: Blender crashes on UV transformation

That was caused by a thread safety issue on gpu_batch_presets_unregister()
which was not designed to be used for this kind of situation (managing 3D
meshes batches).

2 years agostyle fix
Jacques Lucke [Mon, 12 Nov 2018 17:04:48 +0000 (18:04 +0100)]
style fix

2 years agoFix: draw_circle_2d not using the segment count from parameter list
Jacques Lucke [Mon, 12 Nov 2018 16:54:20 +0000 (17:54 +0100)]
Fix: draw_circle_2d not using the segment count from parameter list

2 years agoPy API Docs: another use case for offscreen rendering
Jacques Lucke [Mon, 12 Nov 2018 16:53:45 +0000 (17:53 +0100)]
Py API Docs: another use case for offscreen rendering

2 years agoFix build: min and max not found.
Alexander Gavrilov [Mon, 12 Nov 2018 16:36:18 +0000 (19:36 +0300)]
Fix build: min and max not found.

2 years agoRemove AnimMapper: it has been left unimplemented for almost ten years.
Alexander Gavrilov [Mon, 12 Nov 2018 16:30:25 +0000 (19:30 +0300)]
Remove AnimMapper: it has been left unimplemented for almost ten years.

It was supposed to be a feature for substituting RNA paths on the
fly, but has never been implemented, apart from a couple of structure
definitions and passing around some always-NULL pointers. Now it gets
in the way of refactoring NLA evaluation to use GHash for efficiency.

2 years agoPy API Docs: Another example for offscreen rendering
Jacques Lucke [Mon, 12 Nov 2018 16:17:59 +0000 (17:17 +0100)]
Py API Docs: Another example for offscreen rendering

2 years agoGP: Hide cursor in some modes
Antonioya [Mon, 12 Nov 2018 15:56:50 +0000 (16:56 +0100)]
GP: Hide cursor in some modes

2 years agoUI: Scale control points on curve map when zooming
Charlie Jolly [Tue, 6 Nov 2018 11:09:51 +0000 (11:09 +0000)]
UI: Scale control points on curve map when zooming

Mentioned by Pablo on Blender Today : @ about 27:47

Differential Revision:

2 years agoGP: Cleanup unused code
Antonioya [Mon, 12 Nov 2018 13:31:35 +0000 (14:31 +0100)]
GP: Cleanup unused code

2 years agoGP: Change View icon for annotations
Antonioya [Mon, 12 Nov 2018 13:30:17 +0000 (14:30 +0100)]
GP: Change View icon for annotations

2 years agoAdd a lot of update tagging to operations with NLA tracks and strips.
Alexander Gavrilov [Mon, 12 Nov 2018 13:17:57 +0000 (16:17 +0300)]
Add a lot of update tagging to operations with NLA tracks and strips.

2 years agoEevee: Fix ESM not working after a certain distance
Clément Foucault [Sun, 11 Nov 2018 16:45:29 +0000 (17:45 +0100)]
Eevee: Fix ESM not working after a certain distance

This was caused by overflow caused by the background and precision during

2 years agoEevee: Fix lamps shadows not updating correctly
Clément Foucault [Sun, 11 Nov 2018 16:36:00 +0000 (17:36 +0100)]
Eevee: Fix lamps shadows not updating correctly

This was visible if the lamps was out of frustum.

2 years agoRuler Tool: Fix non readable text
Clément Foucault [Sat, 10 Nov 2018 17:40:59 +0000 (18:40 +0100)]
Ruler Tool: Fix non readable text

The ruler tool is using a hard coded background color. Invert it if the
text color is bright. In the future we should maybe use a theme color
instead of guessing as it does not work well with middle gray colors.

2 years agoRuler Tool: Fix text background glitch
Clément Foucault [Sat, 10 Nov 2018 17:39:22 +0000 (18:39 +0100)]
Ruler Tool: Fix text background glitch

It was using UI_draw_roundbox_aa which is not available when drawing with
the view3d opengl context (because of VAO not being shared). Replace with
simpler rect box. Of course it's a bit more ugly but at least it's working.

2 years agoPy API Docs: fix typos/wording
Jacques Lucke [Mon, 12 Nov 2018 12:48:10 +0000 (13:48 +0100)]
Py API Docs: fix typos/wording

found by Omar Ahmad

2 years agoMerge branch 'master' into blender2.8
Sergey Sharybin [Mon, 12 Nov 2018 11:16:31 +0000 (12:16 +0100)]
Merge branch 'master' into blender2.8

2 years agoCycles: Fix/workaround for gcc-7.2
Sergey Sharybin [Mon, 12 Nov 2018 11:10:33 +0000 (12:10 +0100)]
Cycles: Fix/workaround for gcc-7.2

For some reason when building with gcc-7.2 (which is default
in previous Ubuntu LTS) the guarded allocator is not being
properly instantiated.

Doesn't happen with newer version of gcc-7 which is 7.3, and
also doesn't happen with gcc-6 and gcc-8.

Would be nice to know what is wrong, but for the time being
committing workaround which keeps Blender users happy.

2 years agoPy API Docs: Restructure gpu module introduction
Jacques Lucke [Mon, 12 Nov 2018 11:14:07 +0000 (12:14 +0100)]
Py API Docs: Restructure gpu module introduction

2 years agoFix T57766: error in Quick Effects > Quick Fur
Philipp Oeser [Mon, 12 Nov 2018 10:18:40 +0000 (11:18 +0100)]
Fix T57766: error in Quick Effects > Quick Fur

Maniphest Tasks: T57766

Differential Revision:

2 years agoMerge branch 'master' into blender2.8
Sergey Sharybin [Mon, 12 Nov 2018 10:02:46 +0000 (11:02 +0100)]
Merge branch 'master' into blender2.8

2 years agoCycles: Proper comment for closing header guard
Sergey Sharybin [Mon, 12 Nov 2018 10:02:10 +0000 (11:02 +0100)]
Cycles: Proper comment for closing header guard

2 years agoFix T57713: Object not selecteable after separate strokes
Antonioya [Mon, 12 Nov 2018 09:08:49 +0000 (10:08 +0100)]
Fix T57713: Object not selecteable after separate strokes

The object was duplicated in Edit mode.

2 years agoFix T57527: GP draw takes events from gizmos
Campbell Barton [Mon, 12 Nov 2018 07:47:24 +0000 (18:47 +1100)]
Fix T57527: GP draw takes events from gizmos

Add keymap flag to the gizmo handler so events can be handled
on the UI level and not get over-ridden by grease pencil.

2 years agoFix hidden HUD region being used - zero winrct
Campbell Barton [Mon, 12 Nov 2018 03:59:05 +0000 (14:59 +1100)]
Fix hidden HUD region being used - zero winrct

2 years agoRevert "Fix hidden action-zone interaction"
Campbell Barton [Mon, 12 Nov 2018 03:31:28 +0000 (14:31 +1100)]
Revert "Fix hidden action-zone interaction"

This reverts commit 03e5ba31837cbe91b633e18f19ba0b08e070e0dc.

Causes T57729, will look into an alternative fix.

2 years agoRevert "Fix for hidden regions becoming active"
Campbell Barton [Mon, 12 Nov 2018 03:27:47 +0000 (14:27 +1100)]
Revert "Fix for hidden regions becoming active"

This reverts commit 484faaea4f314d4c598b77d56cf7fe5a167afcc0.

Causes T57729, will look into an alternative fix.

2 years agoUI: don't show shortcuts in toolbar buttons
Campbell Barton [Mon, 12 Nov 2018 03:04:57 +0000 (14:04 +1100)]
UI: don't show shortcuts in toolbar buttons

Restrict these to displaying in tooltips.

2 years agoTool System: support for 'dropping' tools
Campbell Barton [Mon, 12 Nov 2018 01:44:49 +0000 (12:44 +1100)]
Tool System: support for 'dropping' tools

While there is no support for dropping tools exactly,
the cursor tool supports a keyboard oriented workflow
which is often over-ridden by other tools key-maps

While many tools had shortcuts there was no fast way to get back to
the cursor tool.

Now double-tapping space sets the cursor tool
(as long as this tool doesn't have a key mapped).

2 years agoFix error clearing the popup toolbar keymap
Campbell Barton [Mon, 12 Nov 2018 01:22:05 +0000 (12:22 +1100)]
Fix error clearing the popup toolbar keymap

Generating the keymap for the tooltip stopped shortcuts from running.

While this could be supported - the shortcuts show in the button,
so remove shortcuts from these tips.

2 years agoAdd back layout context for toolbar popup
Campbell Barton [Mon, 12 Nov 2018 00:56:13 +0000 (11:56 +1100)]
Add back layout context for toolbar popup

Removed when removing search.

2 years agoMissed last commit
Campbell Barton [Mon, 12 Nov 2018 00:19:30 +0000 (11:19 +1100)]
Missed last commit

2 years agoUI: remove search from toolbar popup
Campbell Barton [Sun, 11 Nov 2018 23:46:09 +0000 (10:46 +1100)]
UI: remove search from toolbar popup

Reduce toolbar clutter, keep it only for tool access.

This is available in the menu, users who need to access this can use
the direct shortcut.

2 years agoCleanup: minor gpencil changes
Campbell Barton [Sun, 11 Nov 2018 22:56:33 +0000 (09:56 +1100)]
Cleanup: minor gpencil changes

- Replace BKE_brush_getactive_gpencil -> BKE_paint_brush
  (no need for per-paint-type brush access).
  (avoid sharing prefix w/ unrelated constants).
- Rename instances of `GP_EditBrush_Data` to 'gp_brush'
  (`Brush` is typically called 'brush').

2 years agoFix headless build
Campbell Barton [Sun, 11 Nov 2018 22:18:45 +0000 (09:18 +1100)]
Fix headless build

2 years agoUpdate test, missed when changing Object.select_set()
Campbell Barton [Sun, 11 Nov 2018 22:05:38 +0000 (09:05 +1100)]
Update test, missed when changing Object.select_set()

2 years agoGP: Use same name when duplicate datablock
Antonioya [Sun, 11 Nov 2018 13:31:23 +0000 (14:31 +0100)]
GP: Use same name when duplicate datablock

2 years agoFix T57776: Error when adding a Torus to the scene.
Bastien Montagne [Sun, 11 Nov 2018 10:22:38 +0000 (11:22 +0100)]
Fix T57776: Error when adding a Torus to the scene.

Not all Object.select_set() cases had been updated to new API... Tsst. ;)

2 years agoNLA: fix frame mapping applied twice keyframing from graph/action editors.
Alexander Gavrilov [Wed, 7 Nov 2018 15:05:22 +0000 (18:05 +0300)]
NLA: fix frame mapping applied twice keyframing from graph/action editors.

The insert_keyframe function already applies NLA strip to action
time remapping, so doing it in insert_graph_keys/insert_action_keys
is redundant outside the code path that inserts directly into fcurve.

2 years agoMerge branch 'master' into blender2.8
Campbell Barton [Sun, 11 Nov 2018 05:35:44 +0000 (16:35 +1100)]
Merge branch 'master' into blender2.8

2 years agoPyAPI: update keyword list
Campbell Barton [Sat, 10 Nov 2018 22:37:26 +0000 (09:37 +1100)]
PyAPI: update keyword list

2 years agoGP: Change Thickness Text
Antonioya [Sat, 10 Nov 2018 21:20:21 +0000 (22:20 +0100)]
GP: Change Thickness Text

2 years agoGP: Add brush parameter to Shapes tools
Antonioya [Sat, 10 Nov 2018 19:33:37 +0000 (20:33 +0100)]
GP: Add brush parameter to Shapes tools

Need the brush to define thickness and color of the primitive (line, box, circle)

2 years agoGP: Fix mouse cursor problems
Antonioya [Sat, 10 Nov 2018 15:30:06 +0000 (16:30 +0100)]
GP: Fix mouse cursor problems

In some situations the check of the windows got false positives and the cursor was hidden by error.

2 years agoFix (unreported) crash when deleting collection in freshly duplicated scene.
Bastien Montagne [Sat, 10 Nov 2018 15:22:41 +0000 (16:22 +0100)]
Fix (unreported) crash when deleting collection in freshly duplicated scene.

From startup .blend, add a 'full copy' new scene, and delete its
Collection 1.001 collection. That would make blender crash, once again
due to NULL collection pointer in some ChildrenCollection struct...

2 years agoGP: Reorganize Drawing Plane options
Antonioya [Sat, 10 Nov 2018 12:19:20 +0000 (13:19 +0100)]
GP: Reorganize Drawing Plane options

2 years agoGP: Keep synchronized layer list in top bar
Antonioya [Sat, 10 Nov 2018 12:06:44 +0000 (13:06 +0100)]
GP: Keep synchronized layer list in top bar

Now when the layer is changed, the list of layers and the topbar selector keep equal.

2 years agoGP: Autolock layers was not working with dopesheet
Antonioya [Sat, 10 Nov 2018 11:57:51 +0000 (12:57 +0100)]
GP: Autolock layers was not working with dopesheet

Also fixed a delayed update of the panels

2 years agoGP: Add to stats number of objects/selected
Antonioya [Sat, 10 Nov 2018 10:48:02 +0000 (11:48 +0100)]
GP: Add to stats number of objects/selected

This information was not visible when select a GP object and can be useful.

2 years agoBrush: re-order sculpt tool enum
William Reynish [Sat, 10 Nov 2018 09:33:35 +0000 (20:33 +1100)]
Brush: re-order sculpt tool enum

Order is now used by the tool-system,
separators currently not supported.

2 years agoCleanup: naming
Campbell Barton [Sat, 10 Nov 2018 09:27:20 +0000 (20:27 +1100)]
Cleanup: naming

2 years agoMerge branch 'master' into blender2.8
Campbell Barton [Sat, 10 Nov 2018 09:02:33 +0000 (20:02 +1100)]
Merge branch 'master' into blender2.8

2 years agoBMesh: backport minor changes from 2.8
Campbell Barton [Sat, 10 Nov 2018 08:54:49 +0000 (19:54 +1100)]
BMesh: backport minor changes from 2.8

2 years agoCleanup: includes
Campbell Barton [Sat, 10 Nov 2018 08:02:26 +0000 (19:02 +1100)]
Cleanup: includes

2 years agoBMesh: avoid incorrect/invalid matrix calculation
Campbell Barton [Sat, 10 Nov 2018 07:52:14 +0000 (18:52 +1100)]
BMesh: avoid incorrect/invalid matrix calculation

- `BKE_object_scale_to_mat3` was used to get the worldspace scale,
  without taking constraints, parenting etc into account.
- Don't pass object's into BMesh API, (prefer matrices instead).
- Avoid matrix invert for each edge-angle calculation.
- Avoid 2x matrix multiplies when looping over edge pairs.

2 years agoFix 'Load Factory Settings' loosing the keymap
Campbell Barton [Sat, 10 Nov 2018 00:04:32 +0000 (11:04 +1100)]
Fix 'Load Factory Settings' loosing the keymap

Caused by recent move to Python based keymaps.

2 years agoMerge branch 'master' into blender2.8
Campbell Barton [Fri, 9 Nov 2018 23:57:35 +0000 (10:57 +1100)]
Merge branch 'master' into blender2.8

2 years agoPyAPI: add imports arg to BPY_execute_string
Campbell Barton [Fri, 9 Nov 2018 23:55:04 +0000 (10:55 +1100)]
PyAPI: add imports arg to BPY_execute_string

Allows for avoiding `__import__` in expressions,
was already supported for BPY_execute_string_as_* API calls.

2 years agoCleanup: style
Campbell Barton [Fri, 9 Nov 2018 22:24:23 +0000 (09:24 +1100)]
Cleanup: style

2 years agoFix missing tips for some RNA Object API functions parameters.
Bastien Montagne [Fri, 9 Nov 2018 21:32:04 +0000 (22:32 +0100)]
Fix missing tips for some RNA Object API functions parameters.

Without description, parameters are not documented at all in API (not
even their type)... Always nice to have a short description anyway.

Also fixed a few other issues in existing descriptions.

2 years agoGP: Make Sculpt and Edit Toolbar consistent
Antonioya [Fri, 9 Nov 2018 21:19:46 +0000 (22:19 +0100)]
GP: Make Sculpt and Edit Toolbar consistent

2 years agoMulti-Objects: MESH_OT_select_similar worldspace completion
Habib Gahbiche [Fri, 9 Nov 2018 19:03:41 +0000 (17:03 -0200)]
Multi-Objects: MESH_OT_select_similar worldspace completion

This makes the operator to work 100% with worldspace similarity:

Note from revisor (Dalai Felinto):

I'm not sure we want to pass Object * to the bmesh api, though I
personally don't see why not. Either way I group the patches together so
we can more easily roll them back if needs be.

Maniphest Tasks: T56948
Differential Revision: D3908, D3899, D3896

2 years agoGP: Add missing preset properties
Antonioya [Fri, 9 Nov 2018 19:04:37 +0000 (20:04 +0100)]
GP: Add missing preset properties

2 years agoGP: Hide Arrow cursor while painting
Antonioya [Fri, 9 Nov 2018 19:01:41 +0000 (20:01 +0100)]
GP: Hide Arrow cursor while painting

The arrow cursor is too intrusive

2 years agoGP: Remove duplicate shapes popover
Antonioya [Fri, 9 Nov 2018 18:48:00 +0000 (19:48 +0100)]
GP: Remove duplicate shapes popover

Now the tools are in Toolbar

2 years agoMulti-Objects Metaball: Selection refactor - fix pick and box selection
Dalai Felinto [Fri, 9 Nov 2018 16:26:58 +0000 (14:26 -0200)]
Multi-Objects Metaball: Selection refactor - fix pick and box selection

This is inspired/based on the code we use for armature bone selection.
Both pick selection, and box selection should be working now.

2 years agoGP: Reorder Move to Layer to TopDown
Antonioya [Thu, 8 Nov 2018 22:29:14 +0000 (23:29 +0100)]
GP: Reorder Move to Layer to TopDown

2 years agoPy API Docs: More gpu module documentation
Jacques Lucke [Fri, 9 Nov 2018 18:20:34 +0000 (19:20 +0100)]
Py API Docs: More gpu module documentation

2 years agoCleanup: fix layer_collection_sync() using int's for short values.
Bastien Montagne [Fri, 9 Nov 2018 17:41:54 +0000 (18:41 +0100)]
Cleanup: fix layer_collection_sync() using int's for short values.

Collection flag and runtime_flag are shorts, not ints...

2 years agoFix typo in assert that we do not delete master collection..
Bastien Montagne [Fri, 9 Nov 2018 17:31:51 +0000 (18:31 +0100)]
Fix typo in assert that we do not delete master collection..

2 years agoUI: split grease pencil brush curves into subpanels.
William Reynish [Fri, 9 Nov 2018 17:03:34 +0000 (18:03 +0100)]
UI: split grease pencil brush curves into subpanels.

2 years agoUI: add edge markings to top level of edge menu again.
William Reynish [Fri, 9 Nov 2018 16:22:05 +0000 (17:22 +0100)]
UI: add edge markings to top level of edge menu again.

These are commonly used and should be quick to access.

2 years agoMerge branch 'master' into blender2.8
Sergey Sharybin [Fri, 9 Nov 2018 16:56:28 +0000 (17:56 +0100)]
Merge branch 'master' into blender2.8

2 years agoRevert "Cycles: Cleanup, move Embree BVH logic to own file"
Sergey Sharybin [Fri, 9 Nov 2018 16:54:09 +0000 (17:54 +0100)]
Revert "Cycles: Cleanup, move Embree BVH logic to own file"

While we shouldn't have logic in an entry point, and since one should
not be making typos when moving lines around, there is bigger entanglement
issue with BVH host code using kernel function. This is bad violation,
but is tricky to get solved moments before the weekly.

In order to keep things in a (less) broken state than before own cleanup
reverting the changes.

This reverts commit 2bad10be96540ff50a149230d656e599775b3f47.
This reverts commit ddabb21d0584e9874e8e5c62c04abe496ec7334b

2 years agoCycles: Free Blender side data as soon as we don't need it
Sergey Sharybin [Fri, 9 Nov 2018 15:14:15 +0000 (16:14 +0100)]
Cycles: Free Blender side data as soon as we don't need it

Currently this is possible after built-in images are loaded in memory.
Allows to save memory used by dependency graph and copy-on-write.

In practice this lowers peak system memory usage from 52GB to 42GB on
a production file of spring

Note, that this only applies to F12 and command line renders.

Bigger note, that this optimization is currently only possible if
there are no grease pencil objects to be rendered.

2 years agoCycles: Add name field to scene
Sergey Sharybin [Fri, 9 Nov 2018 15:04:53 +0000 (16:04 +0100)]
Cycles: Add name field to scene

Doesn't mean much for Cycles itself, but allows to have nice logs
and progress reports without access of original scene.

2 years agoDraw manager: Expose grease pencil helper function
Sergey Sharybin [Fri, 9 Nov 2018 15:30:44 +0000 (16:30 +0100)]
Draw manager: Expose grease pencil helper function

2 years agogpu.offscreen, fix pydoc, example and rename modelviewmatrix > viewmatrix
Dalai Felinto [Fri, 9 Nov 2018 15:46:09 +0000 (13:46 -0200)]
gpu.offscreen, fix pydoc, example and rename modelviewmatrix > viewmatrix

Technically this is only the view matrix, not model view matrix.
And view layer was missing from the pydoc.

2 years agoRNA ID: forbid editing names of non-GMain IDs.
Bastien Montagne [Fri, 9 Nov 2018 15:49:08 +0000 (16:49 +0100)]
RNA ID: forbid editing names of non-GMain IDs.

We even had an assert about that in setter callback!

That means that we do not allow editing names of evaluated IDs, nor
non-data-block IDs (mainly root nodetrees and scene master collections).

2 years agoFix T57737: crash displaying expanded tooltip for transform tool
Philipp Oeser [Fri, 9 Nov 2018 12:14:10 +0000 (13:14 +0100)]
Fix T57737: crash displaying expanded tooltip for transform tool

Maniphest Tasks: T57737

Differential Revision:

2 years agoFix use of wrong icon IDs.
Brecht Van Lommel [Fri, 9 Nov 2018 10:20:45 +0000 (11:20 +0100)]
Fix use of wrong icon IDs.

2 years agoUI: Make Region overlap slide instead of fade
Clément Foucault [Fri, 9 Nov 2018 14:33:51 +0000 (15:33 +0100)]
UI: Make Region overlap slide instead of fade

Requested by @billreynish.
Increases the TIMESTEP to 60Hz to have smooth animation.

2 years agoObject Mode: Grid: Make antialiasing more grounded
Clément Foucault [Fri, 9 Nov 2018 13:37:35 +0000 (14:37 +0100)]
Object Mode: Grid: Make antialiasing more grounded

Went a bit anal on this but at least we will have a decent AA reference
for lines in the future.

2 years agoMerge branch 'master' into blender2.8
Sergey Sharybin [Fri, 9 Nov 2018 14:22:21 +0000 (15:22 +0100)]
Merge branch 'master' into blender2.8

2 years agoCycles: Cleanup, remove unused method declaration
Sergey Sharybin [Fri, 9 Nov 2018 14:21:19 +0000 (15:21 +0100)]
Cycles: Cleanup, remove unused method declaration

Was never defined. If it's really needed, consider using `const string&`.

2 years agoMerge branch 'master' into blender2.8
Sergey Sharybin [Fri, 9 Nov 2018 13:34:33 +0000 (14:34 +0100)]
Merge branch 'master' into blender2.8

2 years agoFix crash when renaming metaballs
Dalai Felinto [Fri, 9 Nov 2018 12:59:12 +0000 (10:59 -0200)]
Fix crash when renaming metaballs

This handles both renaming via outliner and rna.

Metaballs as we all know have their geometry based on the metaballs that
share the same name with them.

Changing the name of a metaball without tagging its geometry to change
is asking for trouble.

2 years agoBKE_id_is_in_gobal_main > BKE_id_is_in_global_main
Dalai Felinto [Fri, 9 Nov 2018 12:44:02 +0000 (10:44 -0200)]
BKE_id_is_in_gobal_main > BKE_id_is_in_global_main

2 years agoGreasepencil: double promotion cleanup and related
Dalai Felinto [Fri, 9 Nov 2018 12:01:22 +0000 (10:01 -0200)]
Greasepencil: double promotion cleanup and related

2 years agoGreasePencil: division by zero when stroke has one point
Dalai Felinto [Fri, 9 Nov 2018 11:57:37 +0000 (09:57 -0200)]
GreasePencil: division by zero when stroke has one point

Error "runtime error: division by zero" when opening:
"Sketch 1 demo by Brain Graft.blend"

2 years agoImprovements on CURVE_OT_select_similar: SIMCURHAND_DIRECTION
Habib Gahbiche [Fri, 9 Nov 2018 11:25:14 +0000 (09:25 -0200)]
Improvements on CURVE_OT_select_similar: SIMCURHAND_DIRECTION

Consider rotation and scale when calculating direction in world space.

Reviewers: dfelinto
Maniphest Tasks: T56948

Differential Revision:

2 years agoUI: Fix checking for sequences.
Pablo Vazquez [Fri, 9 Nov 2018 11:39:17 +0000 (12:39 +0100)]
UI: Fix checking for sequences.

2 years agoCycles; Cleanup, line length
Sergey Sharybin [Fri, 9 Nov 2018 11:31:46 +0000 (12:31 +0100)]
Cycles; Cleanup, line length

There are some more sanitization which would be cool to be done
in the neighbourhood of those functions, but that could also happen

2 years agoCycles: Cleanup, move Embree BVH logic to own file
Sergey Sharybin [Fri, 9 Nov 2018 11:28:55 +0000 (12:28 +0100)]
Cycles: Cleanup, move Embree BVH logic to own file

There is no way we can keep generic entry point functions easy to
follow if we start adding actual logic in them.