blender.git
3 years agoFix T56675: Crash when snapping Cursor to selected a Bone in Edit Mode.
Bastien Montagne [Tue, 4 Sep 2018 07:12:54 +0000 (09:12 +0200)]
Fix T56675: Crash when snapping Cursor to selected a Bone in Edit Mode.

Seriously...

3 years agoMerge branch 'master' into blender2.8
Campbell Barton [Tue, 4 Sep 2018 05:29:27 +0000 (15:29 +1000)]
Merge branch 'master' into blender2.8

3 years agoUI: cleanup tooltip bounds clamping
Campbell Barton [Tue, 4 Sep 2018 05:23:39 +0000 (15:23 +1000)]
UI: cleanup tooltip bounds clamping

Wasn't properly clamping on the window minimum.

3 years agoUI: show tool name in tip w/ icon-only display
Campbell Barton [Tue, 4 Sep 2018 04:37:19 +0000 (14:37 +1000)]
UI: show tool name in tip w/ icon-only display

3 years agoFix T56660: Use horizontal enums w/ image template
Campbell Barton [Tue, 4 Sep 2018 04:09:45 +0000 (14:09 +1000)]
Fix T56660: Use horizontal enums w/ image template

3 years agoUI: use horizontal alignment for expanded enums
Campbell Barton [Tue, 4 Sep 2018 04:07:26 +0000 (14:07 +1000)]
UI: use horizontal alignment for expanded enums

With the property separate option, the direction of expanded enums
now follows the current layout.

3 years agoCleanup: pep8
Campbell Barton [Mon, 3 Sep 2018 22:50:00 +0000 (08:50 +1000)]
Cleanup: pep8

3 years agoCorrect toolbar tips for non sculpt modes
Campbell Barton [Mon, 3 Sep 2018 22:09:48 +0000 (08:09 +1000)]
Correct toolbar tips for non sculpt modes

3 years agoUI: tweak object viewport display panel, use grid flow.
William Reynish [Mon, 3 Sep 2018 17:33:23 +0000 (19:33 +0200)]
UI: tweak object viewport display panel, use grid flow.

3 years agoUI: use grid flow for metadata panel.
William Reynish [Mon, 3 Sep 2018 16:34:02 +0000 (18:34 +0200)]
UI: use grid flow for metadata panel.

3 years agoFix T56544: Crash on startup with Radeon + Win 7
Clément Foucault [Mon, 3 Sep 2018 17:20:56 +0000 (19:20 +0200)]
Fix T56544: Crash on startup with Radeon + Win 7

Testing GLEW_ARB_texture_gather is not sufficient in this case. We need to
test if GL_ARB_texture_gather is defined in the shader, which is always true
on some NVIDIA drivers who does not support it...
So trying to make everything work.

3 years agoUI: reorganize render output and encoding panels for single columns.
William Reynish [Mon, 3 Sep 2018 15:23:48 +0000 (17:23 +0200)]
UI: reorganize render output and encoding panels for single columns.

This will look a bit better once horizontal expanded enums work.

3 years agoFix T56667: missing sockets with Cycles render layer nodes in compositing.
Brecht Van Lommel [Mon, 3 Sep 2018 15:16:17 +0000 (17:16 +0200)]
Fix T56667: missing sockets with Cycles render layer nodes in compositing.

3 years agoMerge branch 'master' into blender2.8
Bastien Montagne [Mon, 3 Sep 2018 15:44:36 +0000 (17:44 +0200)]
Merge branch 'master' into blender2.8

Conflicts:
source/blender/blenkernel/intern/collision.c

3 years agoClosthCollision: fully avoid computing BVHTree when we have no collision objects...
Bastien Montagne [Mon, 3 Sep 2018 15:32:46 +0000 (17:32 +0200)]
ClosthCollision: fully avoid computing BVHTree when we have no collision objects to test against.

Followup to rBc6bbe6c5aac29, much more elegant solution to the problem. ;)

3 years agoFix T56423: Fully broken drag'n'drop parenting in Outliner.
Bastien Montagne [Mon, 3 Sep 2018 15:24:26 +0000 (17:24 +0200)]
Fix T56423: Fully broken drag'n'drop parenting in Outliner.

`BKE_libblock_find_name()` expects ID names *without* ID type 'prefix'...

3 years agoCleanup: Split function up
Sergey Sharybin [Mon, 3 Sep 2018 15:06:50 +0000 (17:06 +0200)]
Cleanup: Split function up

We would need to at least support one more PBVH building
here, trying to squeeze everything into one function will
make it really hard to read and follow.

3 years agoSpelling fixes in comments and descriptions, patch by luzpaz.
Brecht Van Lommel [Mon, 3 Sep 2018 14:49:08 +0000 (16:49 +0200)]
Spelling fixes in comments and descriptions, patch by luzpaz.

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

3 years agoFix T56622: crash and other bugs deleting scenes.
Brecht Van Lommel [Fri, 31 Aug 2018 14:14:20 +0000 (16:14 +0200)]
Fix T56622: crash and other bugs deleting scenes.

Simplify library remapping code to handle special collection/object links
in postprocess. Previously base contained the actual object link which
needed special handling in preprocess, now objects are linked through
collection and the base cache can be updated in postprocess.

3 years agoWeightpaint mode: Removing barbarian batch tagging on engine init
Dalai Felinto [Mon, 3 Sep 2018 14:12:31 +0000 (11:12 -0300)]
Weightpaint mode: Removing barbarian batch tagging on engine init

This was introduced in the original implementation of weightpaint
in 2.8 (20f95de6ba2d). But this is very shortsighted, we can't assume only one
object will be edited at once, nor should we tag things during drawing.

There is a chance this introduces "bugs". If it does, we then tackle them in the
proper way (usually tagging DEG after operators changing the weight paint data).

3 years agoTopbar: Remove unused variable
Sergey Sharybin [Mon, 3 Sep 2018 14:12:15 +0000 (16:12 +0200)]
Topbar: Remove unused variable

3 years agoFix T56666: Crash typing "w" in the search function.
Bastien Montagne [Mon, 3 Sep 2018 14:05:57 +0000 (16:05 +0200)]
Fix T56666: Crash typing "w" in the search function.

One shall check object is a GPencil one, before trying to use ob->data...

3 years agoDepsgraph: Cleanup, put symbols to a proper namespace
Sergey Sharybin [Mon, 3 Sep 2018 14:05:12 +0000 (16:05 +0200)]
Depsgraph: Cleanup, put symbols to a proper namespace

3 years agoMulti-Object Editing: MESH_OT_bridge_edge_loops by Philippe Bachour
Dalai Felinto [Mon, 3 Sep 2018 13:37:24 +0000 (10:37 -0300)]
Multi-Object Editing: MESH_OT_bridge_edge_loops by Philippe Bachour

I (Dalai) did a few changes before committing:
* Code style (mostly tabs instead of space).
* Skip loop when no vert selected.
* Keeping comment on why always return FINISHED.

Maniphest Tasks: T54643
https://developer.blender.org/D3338

3 years agoFix T56593: Crash when enabling collection with curves
Sergey Sharybin [Mon, 3 Sep 2018 13:22:02 +0000 (15:22 +0200)]
Fix T56593: Crash when enabling collection with curves

Was missing update of ID blocks which are becoming visible.

3 years agoMerge branch 'master' into blender2.8
Bastien Montagne [Mon, 3 Sep 2018 13:33:07 +0000 (15:33 +0200)]
Merge branch 'master' into blender2.8

3 years agoMulti-Objects: OBJECT_OT_vertex_group_smooth
Dalai Felinto [Mon, 3 Sep 2018 13:27:07 +0000 (10:27 -0300)]
Multi-Objects: OBJECT_OT_vertex_group_smooth

In this case we call the operation multiple times.

3 years agoFix (unreported) potentially giant memory leak in Cloth collision solver.
Bastien Montagne [Mon, 3 Sep 2018 13:30:33 +0000 (15:30 +0200)]
Fix (unreported) potentially giant memory leak in Cloth collision solver.

Not freeing its BVHTree in case there were no collision objects,
could quickly lead to hundreds of MB of memleak!

3 years agoDepsgraph: Use more meaningful name for flags storage
Sergey Sharybin [Mon, 3 Sep 2018 12:35:42 +0000 (14:35 +0200)]
Depsgraph: Use more meaningful name for flags storage

3 years agoTool System: add paint brush shortcut
Campbell Barton [Mon, 3 Sep 2018 13:12:53 +0000 (23:12 +1000)]
Tool System: add paint brush shortcut

3 years agoEevee: Fix missing meshes on Win + Intel HD 530/540
Clément Foucault [Mon, 3 Sep 2018 12:36:30 +0000 (14:36 +0200)]
Eevee: Fix missing meshes on Win + Intel HD 530/540

This is only a workaround. The real issue should be adressed by the
driver team upstream.

3 years agoFix slow .blend file load due to recent accidentally committed debug code.
Brecht Van Lommel [Mon, 3 Sep 2018 12:11:55 +0000 (14:11 +0200)]
Fix slow .blend file load due to recent accidentally committed debug code.

3 years agoSet active base to NULL if its object is gone
Sergey Sharybin [Mon, 3 Sep 2018 11:42:47 +0000 (13:42 +0200)]
Set active base to NULL if its object is gone

3 years agoDepsgraph: Cleanup, make it more obvious what ID references
Sergey Sharybin [Mon, 3 Sep 2018 10:57:04 +0000 (12:57 +0200)]
Depsgraph: Cleanup, make it more obvious what ID references

3 years agoDepsgraph: Cleanup, make it more clear what function does
Sergey Sharybin [Mon, 3 Sep 2018 10:55:26 +0000 (12:55 +0200)]
Depsgraph: Cleanup, make it more clear what function does

3 years agoDepsgraph: Generalize storage for already existing ID nodes
Sergey Sharybin [Mon, 3 Sep 2018 10:39:56 +0000 (12:39 +0200)]
Depsgraph: Generalize storage for already existing ID nodes

Currently no functional changes, just allows to store mo information.

3 years agoCleanup: Remove unused lay_updated
Sergey Sharybin [Mon, 3 Sep 2018 10:17:55 +0000 (12:17 +0200)]
Cleanup: Remove unused lay_updated

Is no longer used, having it around was more of a confusion than
anything else.

3 years agoDepsgraph: Cleanup, indentation level
Sergey Sharybin [Mon, 3 Sep 2018 10:11:11 +0000 (12:11 +0200)]
Depsgraph: Cleanup, indentation level

3 years agoFix Cycles half float pragma for strict OpenCL compilers (like ROCm).
Alex Fuller [Mon, 3 Sep 2018 09:11:45 +0000 (11:11 +0200)]
Fix Cycles half float pragma for strict OpenCL compilers (like ROCm).

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

3 years agoFix T56659: Flow UI: Checkboxes report wrong width, making layouts jump to multi...
Bastien Montagne [Mon, 3 Sep 2018 09:05:36 +0000 (11:05 +0200)]
Fix T56659: Flow UI: Checkboxes report wrong width, making layouts jump to multi-columns too soon.

Wrong handling of ideal width when splitting buttons and labels appart
for checkboxes...

3 years agoCleanup: warning
Campbell Barton [Mon, 3 Sep 2018 04:35:40 +0000 (14:35 +1000)]
Cleanup: warning

3 years agoGP: Cleanup function parameter
Antonioya [Mon, 3 Sep 2018 08:14:13 +0000 (10:14 +0200)]
GP: Cleanup function parameter

There was a mix of enum parameters and int/bool values.

3 years agoFix exception running toolbar w/o an active space
Campbell Barton [Mon, 3 Sep 2018 04:22:58 +0000 (14:22 +1000)]
Fix exception running toolbar w/o an active space

3 years agoCleanup: use single quotes for enum's
Campbell Barton [Mon, 3 Sep 2018 04:15:18 +0000 (14:15 +1000)]
Cleanup: use single quotes for enum's

3 years agoUI: remove rotate/reverse UV's from menu
Campbell Barton [Mon, 3 Sep 2018 04:03:32 +0000 (14:03 +1000)]
UI: remove rotate/reverse UV's from menu

These are quite obscure operations and are already available in the
"Face Data" menu.

3 years agoUI: disable key shortcuts for tools
Campbell Barton [Mon, 3 Sep 2018 03:47:14 +0000 (13:47 +1000)]
UI: disable key shortcuts for tools

Only show shortcuts in the tooltips since they use different logic.

3 years agoCleanup: replace __import__ w/ import argument
Campbell Barton [Mon, 3 Sep 2018 02:53:42 +0000 (12:53 +1000)]
Cleanup: replace __import__ w/ import argument

3 years agoMerge branch 'master' into blender2.8
Campbell Barton [Mon, 3 Sep 2018 02:48:30 +0000 (12:48 +1000)]
Merge branch 'master' into blender2.8

3 years agoPyAPI: add optional imports to expression eval API
Campbell Barton [Mon, 3 Sep 2018 02:38:19 +0000 (12:38 +1000)]
PyAPI: add optional imports to expression eval API

Avoids having to use `__import__` to access modules.

3 years agoTool System: Show popup accelerators in tooltip
Campbell Barton [Mon, 3 Sep 2018 01:24:25 +0000 (11:24 +1000)]
Tool System: Show popup accelerators in tooltip

The tooltips for tools in the toolbar now show how to access.

3 years agoTool System: map keys bound directly to a tools
Campbell Barton [Mon, 3 Sep 2018 01:06:34 +0000 (11:06 +1000)]
Tool System: map keys bound directly to a tools

If a key is bound to activate a tool in the tool-system,
add this to the popup keymap.

3 years agoFix toolbar popup outside the window region
Campbell Barton [Mon, 3 Sep 2018 00:19:30 +0000 (10:19 +1000)]
Fix toolbar popup outside the window region

3 years agoFix part of T56654: Freestyle hiding viewlayer buttons when there is no lineset.
Bastien Montagne [Sun, 2 Sep 2018 13:28:03 +0000 (15:28 +0200)]
Fix part of T56654: Freestyle hiding viewlayer buttons when there is no lineset.

Buttons' context 'path' has to bee handled carefully, especially when
building more than one step in a single call...

3 years agoKeymap: Double tap A-Key to de-select all
Campbell Barton [Sun, 2 Sep 2018 11:39:31 +0000 (21:39 +1000)]
Keymap: Double tap A-Key to de-select all

Uses double click events for the keyboard, which wasn't used before.

Experimental feature suggested by @venomgfx

3 years agoCleanup: move select all/none/invert into template
Campbell Barton [Sun, 2 Sep 2018 11:21:15 +0000 (21:21 +1000)]
Cleanup: move select all/none/invert into template

3 years agoUI: correct unintended space in string formatting
Campbell Barton [Sun, 2 Sep 2018 10:05:45 +0000 (20:05 +1000)]
UI: correct unintended space in string formatting

3 years agoMerge branch 'master' into blender2.8
Campbell Barton [Sun, 2 Sep 2018 09:42:29 +0000 (19:42 +1000)]
Merge branch 'master' into blender2.8

3 years agoCleanup: move keymap helpers into own file
Campbell Barton [Sun, 2 Sep 2018 09:34:36 +0000 (19:34 +1000)]
Cleanup: move keymap helpers into own file

3 years agoMerge branch 'master' into blender2.8
Campbell Barton [Sun, 2 Sep 2018 08:56:02 +0000 (18:56 +1000)]
Merge branch 'master' into blender2.8

3 years agoCleanup: comment blocks
Campbell Barton [Sun, 2 Sep 2018 08:51:31 +0000 (18:51 +1000)]
Cleanup: comment blocks

3 years agoCleanup: comment blocks
Campbell Barton [Sun, 2 Sep 2018 08:28:27 +0000 (18:28 +1000)]
Cleanup: comment blocks

3 years agoCleanup: style
Campbell Barton [Sun, 2 Sep 2018 06:45:00 +0000 (16:45 +1000)]
Cleanup: style

3 years agoCleanup: shadow warning
Campbell Barton [Sun, 2 Sep 2018 06:27:44 +0000 (16:27 +1000)]
Cleanup: shadow warning

3 years agoFix MESH_OT_loop_select: Deselect object objects
Dalai Felinto [Fri, 31 Aug 2018 20:43:57 +0000 (17:43 -0300)]
Fix MESH_OT_loop_select: Deselect object objects

Before that if you loop select a mesh, it would deselect the previous selected
edges of the selected mesh, leaving the other objects untouched.

3 years agoFollow up to MESH_OT_offset_edge_loops
Dalai Felinto [Fri, 31 Aug 2018 20:23:33 +0000 (17:23 -0300)]
Follow up to MESH_OT_offset_edge_loops

Committing this as a separate commit since we may want to keep this mode syncing
elsewhere. But for now it makes sense to do it like this.

3 years agoMulti-Objects: MESH_OT_offset_edge_loops
milios [Fri, 31 Aug 2018 20:07:42 +0000 (17:07 -0300)]
Multi-Objects: MESH_OT_offset_edge_loops

Changes from reviewer (Dalai Felinto):
* Code style (replace tabs with spaces).
* Return OPERATOR_CANCELLED if no a single object get through.

Maniphest Tasks: T54643
https://developer.blender.org/D3392

3 years agoFixup for MESH_OT_vertices_smooth_laplacian
Dalai Felinto [Fri, 31 Aug 2018 20:00:21 +0000 (17:00 -0300)]
Fixup for MESH_OT_vertices_smooth_laplacian

Failing to repeat should return, but continue the object loop.
Should test for selected vertex, not face.

3 years agoFixup for multi-objects snap functions
Dalai Felinto [Fri, 31 Aug 2018 19:33:45 +0000 (16:33 -0300)]
Fixup for multi-objects snap functions

Sanitizing the use of TransVertStore, making sure it is always freed.
Skip meshes with no vertex selected.

3 years agoFix memleak on snap_curs_to_sel_ex
Dalai Felinto [Fri, 31 Aug 2018 19:23:38 +0000 (16:23 -0300)]
Fix memleak on snap_curs_to_sel_ex

3 years agoMESH_OT_symmetrize: Cleanup, get op->ptr props outside objects loop
Dalai Felinto [Fri, 31 Aug 2018 18:53:07 +0000 (15:53 -0300)]
MESH_OT_symmetrize: Cleanup, get op->ptr props outside objects loop

3 years agoMulti-Objects: MESH_OT_symmetry_snap
n-kall [Fri, 31 Aug 2018 18:33:12 +0000 (15:33 -0300)]
Multi-Objects: MESH_OT_symmetry_snap

Reviewers: dfelinto
Differential Revision: https://developer.blender.org/D3374

3 years agoMESH_OT_blend_from_shape: Add error when no selected vertex
Dalai Felinto [Fri, 31 Aug 2018 18:22:54 +0000 (15:22 -0300)]
MESH_OT_blend_from_shape: Add error when no selected vertex

This is just something simple I caught while testing the patch for multi-object.

3 years agoMulti-Object-Mode: MESH_OT_blend_from_shape
Habib Gahbiche [Fri, 31 Aug 2018 17:25:18 +0000 (14:25 -0300)]
Multi-Object-Mode: MESH_OT_blend_from_shape

"Blend from Shape" lists keys from active object and applies to all selected
objects that have keys with a matching name.

Changes from reviewer (Dalai Felinto):
* Code Style.
* Move Object **objects after sanity check to prevent leak when
  returning OPERATOR_CANCELLED.
* Skip objects that have no selected vertex.
* Fixed existent comments code-style: Since we are changing the indentation of
  these lines, may as well correct this as well.

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

3 years agoMESH_OT_shape_propagate_to_all: Add error when no selected vertex
Dalai Felinto [Fri, 31 Aug 2018 17:20:05 +0000 (14:20 -0300)]
MESH_OT_shape_propagate_to_all: Add error when no selected vertex

This is just something simple I caught while testing the patch for multi-object.

3 years agoMulti-Objects: MESH_OT_shape_propagate_to_all
Habib Gahbiche [Fri, 31 Aug 2018 15:26:01 +0000 (12:26 -0300)]
Multi-Objects: MESH_OT_shape_propagate_to_all

Pressing "Propagate to Shapes" now propagates the current shapes to the selected
object's respective keys, if at least one selected object has shape keys.

Discussion here:
https://devtalk.blender.org/t/behaviour-of-shape-keys-in-multi-object-mode/1956/4

Changes from reviewer (Dalai Felinto):
* Code style
* Error message
* Remove dead code

Reviewers: dfelinto
Differential Revision: https://developer.blender.org/D3651

3 years agoMerge branch 'master' into blender2.8
Sergey Sharybin [Fri, 31 Aug 2018 15:08:29 +0000 (17:08 +0200)]
Merge branch 'master' into blender2.8

3 years agoBuildbot: Usable PIE
Sergey Sharybin [Fri, 31 Aug 2018 15:05:51 +0000 (17:05 +0200)]
Buildbot: Usable PIE

Makes it impossible to run from GUI on certain platforms, see T56628.

3 years agoCleanup: edbm_do_smooth_laplacian_vertex_exec
Dalai Felinto [Fri, 31 Aug 2018 14:43:44 +0000 (11:43 -0300)]
Cleanup: edbm_do_smooth_laplacian_vertex_exec

3 years agoMulti-Object-Editing: MESH_OT_vertices_smooth_laplacian
Habib Gahbiche [Fri, 31 Aug 2018 14:29:01 +0000 (11:29 -0300)]
Multi-Object-Editing: MESH_OT_vertices_smooth_laplacian

Since D3284 was inactive for a long time, I figured I could finish this.

This revision also gives warning when there are no selected faces or when
selected faces are invalid.

Changes from reviewer (Dalai Felinto) :
* Code style
* Fix checking for ngons (BM_ITER_MESH is a for loop, you need to break from it
before continuing the object iteration loop).

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

3 years agoCloth: Implement angular bending springs
Luca Rood [Mon, 5 Dec 2016 23:39:29 +0000 (21:39 -0200)]
Cloth: Implement angular bending springs

This implements angular bending springs for cloth simulation. This also
adds shearing springs for n-gons.

This angular spring implementation does not include Jacobian matrices,
as the springs can exist between polygons of different vertex counts,
rendering their relationships asymmetrical, and thus impossible to solve
with the current implementation. This means that the bending component
is solved explicitly. However, this is usually not a big problem, as
bending springs contribute less to instability than structural springs.

The the old linear bending model can still be used, and is the default for
existing files, to keep compatibility. However, the new angular bending
model is the default for any new simulation.

This commit makes small breaking changes, in that shearing springs are
now created on n-gons (also in linear bending mode), while n-gons were
previously ignored.

Reviewed By: brecht

Differential Revision: http://developer.blender.org/D3662

3 years agoCloth: Componentize forces
Luca Rood [Tue, 28 Aug 2018 22:29:37 +0000 (00:29 +0200)]
Cloth: Componentize forces

This separates cloth stiffness and damping forces into tension,
compression, and shearing components, allowing more control over the
cloth behaviour.

This also adds a bending model selector (although the new bending model
itself is not implemented in this commit). This is because some of the
features implemented here only make sense within the new bending model,
while the old model is kept for compatibility.

This commit makes non-breaking changes, and thus maintains full
compatibility with existing simulations.

Reviewed By: brecht

Differential Revision: http://developer.blender.org/D3655

3 years agoMulti-Objects: VIEW3D_OT_snap_selected_to_cursor by Habib Gahbiche
Dalai Felinto [Fri, 31 Aug 2018 13:54:24 +0000 (10:54 -0300)]
Multi-Objects: VIEW3D_OT_snap_selected_to_cursor by Habib Gahbiche

Objects in edit mode now behave as if they were joined.

Changes from reviewer (Dalai Felinto): code style (tabs, spaces, ...), missing MEM_freeN(objects);

https://developer.blender.org/D3648

3 years agoPython: Enable MASS unit in FloatProperty
Monique Dewanchand [Fri, 31 Aug 2018 13:00:38 +0000 (15:00 +0200)]
Python: Enable MASS unit in FloatProperty

MASS unit was already implemented for the C api. Only making sure it is
accessible in the python api. Also added 'CAMERA' to the documentation as a valid option.

3 years agoFix Text Boxes not drawing
Dalai Felinto [Fri, 31 Aug 2018 12:53:44 +0000 (09:53 -0300)]
Fix Text Boxes not drawing

I'm using a different shading group for the active text box and the others.
This way I can assign different colors to them.

The alternative would be to create a new `shgroup_dynlines_dashed_flat_color`,
but I find this overkill for such a simple use case.

3 years agoRemove CCGDM from PBVH
Sergey Sharybin [Fri, 31 Aug 2018 10:41:23 +0000 (12:41 +0200)]
Remove CCGDM from PBVH

The statement that PBVH needs to keep track of CCGDM is wrong, PBVH itself
does not care about CCGDM at all, and it's weird for it to carry on this
beast so others can access.

Even more, nobody will actually caring about CCGDM itself, all the usages
were checking whether there is CCGDM or not. This is as good as simply
checking PBVH type.

Tested with an original report T53551 and everything is still stable.

3 years agoFix broken decorate buttong dragging after recent changes.
Brecht Van Lommel [Fri, 31 Aug 2018 11:35:07 +0000 (13:35 +0200)]
Fix broken decorate buttong dragging after recent changes.

3 years agoMerge branch 'master' into blender2.8
Brecht Van Lommel [Fri, 31 Aug 2018 11:00:19 +0000 (13:00 +0200)]
Merge branch 'master' into blender2.8

3 years agoFix T56618: crash in release builds when GHOST asserts.
Brecht Van Lommel [Fri, 31 Aug 2018 10:32:12 +0000 (12:32 +0200)]
Fix T56618: crash in release builds when GHOST asserts.

WITH_ASSERT_ABORT was not disabled for release builds. In most cases asserts
are disabled in release builds, but not always.

This also changes the buildbot to use blender_release.cmake instead of
blender_full.cmake, the only effective difference should be WITH_ASSERT_ABORT.

3 years agoFix T56618: crash when typing certain characters on Linux.
Brecht Van Lommel [Fri, 31 Aug 2018 10:39:16 +0000 (12:39 +0200)]
Fix T56618: crash when typing certain characters on Linux.

3 years agoMerge branch 'master' into blender2.8
Sergey Sharybin [Fri, 31 Aug 2018 10:30:19 +0000 (12:30 +0200)]
Merge branch 'master' into blender2.8

3 years agoCycles: Cleanup, use explicit comparison with NULL
Sergey Sharybin [Fri, 31 Aug 2018 10:28:12 +0000 (12:28 +0200)]
Cycles: Cleanup, use explicit comparison with NULL

3 years agoFix T56626: Cycles ambient occlusion only local : crash
Sergey Sharybin [Fri, 31 Aug 2018 10:14:36 +0000 (12:14 +0200)]
Fix T56626: Cycles ambient occlusion only local : crash

Was caused by missing NULL pointer check in BVH8.

3 years agoCleanup: Remove unused field
Antonioya [Fri, 31 Aug 2018 07:54:35 +0000 (09:54 +0200)]
Cleanup: Remove unused field

3 years agoMerge branch 'master' into blender2.8
Campbell Barton [Fri, 31 Aug 2018 04:53:34 +0000 (14:53 +1000)]
Merge branch 'master' into blender2.8

3 years agoPyAPI: replace checks for invalid input w/ assert
Campbell Barton [Fri, 31 Aug 2018 04:51:59 +0000 (14:51 +1000)]
PyAPI: replace checks for invalid input w/ assert

Was returning -1 as a bool argument,
in this case the caller needs to ensure non-null args.

3 years agoTool System: support tool description for tips
Campbell Barton [Fri, 31 Aug 2018 04:37:10 +0000 (14:37 +1000)]
Tool System: support tool description for tips

When the description isn't set, the operators is used instead.

3 years agoMerge branch 'master' into blender2.8
Campbell Barton [Fri, 31 Aug 2018 04:25:42 +0000 (14:25 +1000)]
Merge branch 'master' into blender2.8

3 years agoC/Python API: Add PyC_RunString_AsIntPtr
Campbell Barton [Fri, 31 Aug 2018 04:21:32 +0000 (14:21 +1000)]
C/Python API: Add PyC_RunString_AsIntPtr

Utility to get an int or pointer from a Python expression.

3 years agoMerge branch 'master' into blender2.8
Campbell Barton [Fri, 31 Aug 2018 03:40:10 +0000 (13:40 +1000)]
Merge branch 'master' into blender2.8

3 years agoCleanup: rename WM_keymap_find -> WM_keymap_ensure
Campbell Barton [Fri, 31 Aug 2018 03:36:14 +0000 (13:36 +1000)]
Cleanup: rename WM_keymap_find -> WM_keymap_ensure