21 months agoCleanup: remove unused EditDerivedBMesh
Campbell Barton [Tue, 9 Oct 2018 04:57:38 +0000 (15:57 +1100)]
Cleanup: remove unused EditDerivedBMesh

21 months agoEdit Mesh: remove derived-mesh from crazy-space calculation
Campbell Barton [Tue, 9 Oct 2018 04:37:10 +0000 (15:37 +1100)]
Edit Mesh: remove derived-mesh from crazy-space calculation

21 months agoModifier: move edit-mesh calculation from DerivedMesh to Mesh
Campbell Barton [Tue, 9 Oct 2018 04:04:51 +0000 (15:04 +1100)]
Modifier: move edit-mesh calculation from DerivedMesh to Mesh

21 months agoModifier: add non derived mesh modifier wrappers
Campbell Barton [Tue, 9 Oct 2018 02:19:21 +0000 (13:19 +1100)]
Modifier: add non derived mesh modifier wrappers

Rename modifier_deformVerts_ensure_normals &
modifier_applyModifier_ensure_normals with wrappers that match 2.7x

21 months agoCleanup: naming
Campbell Barton [Tue, 9 Oct 2018 01:23:22 +0000 (12:23 +1100)]
Cleanup: naming

Rename DerivedMesh modifier functions to make room for mesh versions.

21 months agoCleanup: naming
Campbell Barton [Tue, 9 Oct 2018 00:01:50 +0000 (11:01 +1100)]
Cleanup: naming

- immAttrib*    -> immAttr*
- immSkipAttrib -> immAttrSkip

Term 'attr' is a convention for GPU module.

21 months agoCleanup: naming
Campbell Barton [Mon, 8 Oct 2018 23:49:44 +0000 (10:49 +1100)]
Cleanup: naming

21 months agoCleanup: warnings
Campbell Barton [Mon, 8 Oct 2018 23:40:09 +0000 (10:40 +1100)]
Cleanup: warnings

21 months agoMerge branch 'master' into blender2.8
Campbell Barton [Mon, 8 Oct 2018 23:41:13 +0000 (10:41 +1100)]
Merge branch 'master' into blender2.8

21 months agoFix misuse of Py_INCREF in module creation.
mano-wii [Mon, 8 Oct 2018 23:01:55 +0000 (20:01 -0300)]
Fix misuse of Py_INCREF in module creation.

Differential Revision:

21 months agoCleanup: spelling
Campbell Barton [Mon, 8 Oct 2018 22:28:36 +0000 (09:28 +1100)]
Cleanup: spelling

21 months agoCleanup: naming
Campbell Barton [Mon, 8 Oct 2018 22:25:33 +0000 (09:25 +1100)]
Cleanup: naming

21 months agoCycles: Fix NLM denoising kernels zeroing the wrong buffer on OpenCL
Lukas Stockner [Mon, 8 Oct 2018 22:03:47 +0000 (00:03 +0200)]
Cycles: Fix NLM denoising kernels zeroing the wrong buffer on OpenCL

Since my temporary buffer commit (about a month ago), the OpenCL device was zeroing the wrong buffer, leading to
completely wrong filtered feature passes and therefore significantly lower-quality results than CPU and CUDA.

21 months agoMerge branch 'master' into blender2.8
Campbell Barton [Mon, 8 Oct 2018 21:46:00 +0000 (08:46 +1100)]
Merge branch 'master' into blender2.8

21 months agoGP: New Canvas offset parameters
Antonioya [Mon, 8 Oct 2018 21:21:44 +0000 (23:21 +0200)]
GP: New Canvas offset parameters

Now the canvas can me moved in X/Y axis.

21 months agoCleanup: style
Campbell Barton [Mon, 8 Oct 2018 20:58:06 +0000 (07:58 +1100)]
Cleanup: style

21 months agoFix T57103: Subdivide smooth results in NAN verts
Campbell Barton [Mon, 8 Oct 2018 20:47:35 +0000 (07:47 +1100)]
Fix T57103: Subdivide smooth results in NAN verts

21 months agoCycles: Clean up extra minus in previous commit
Lukas Stockner [Mon, 8 Oct 2018 20:22:05 +0000 (22:22 +0200)]
Cycles: Clean up extra minus in previous commit

Forgot to add that change, sorry for the noise.

21 months agoCycles: Reuse existing buffer in the NLM denoising kernels on CPU
Lukas Stockner [Mon, 8 Oct 2018 20:17:06 +0000 (22:17 +0200)]
Cycles: Reuse existing buffer in the NLM denoising kernels on CPU

21 months agoCycles: Use existing shared temporary memory in reconstruction step of the denoiser
Lukas Stockner [Mon, 8 Oct 2018 20:13:40 +0000 (22:13 +0200)]
Cycles: Use existing shared temporary memory in reconstruction step of the denoiser

Previously the code allocated its own temporary memory, but it's possible to just use the existing shared one instead.

21 months agoSplash: add themes to first time setup in splash screen.
Brecht Van Lommel [Mon, 8 Oct 2018 17:19:05 +0000 (19:19 +0200)]
Splash: add themes to first time setup in splash screen.

* Add default theme as Blender Dark.
* Rename Flatty Light to Blender Light.
* When setting theme, reset to default first for consistent results.

21 months agoUI: layout tweaks for headers.
William Reynish [Mon, 8 Oct 2018 17:10:10 +0000 (19:10 +0200)]
UI: layout tweaks for headers.

* Move all copy & paste operators into the menus. There was no real reason
  why these particular operators should be in the header and not in the menus,
  like all other operators
* Move ‘Update Automatically’ toggle from UV/Image Editor header into menu.
* Move the pin toggle next to the ID blocks, because it is related.
* Move OpenGL render from sequence header into View menu.
* Sequence editor display mode and channels are now not expanded.

21 months agoUI: add icon color coding for different data types in the outliner.
Brecht Van Lommel [Tue, 2 Oct 2018 17:04:38 +0000 (19:04 +0200)]
UI: add icon color coding for different data types in the outliner.

For now we have categories collection, object, object data, modifiers &
constraints, and shading. The icons can be categorized by adding e.g.
DEF_ICON_OBJECT() in UI_icons.h.

Light themes will need to be updated to use darker colors to keep icons
visible in the outliner.

21 months agoUI: new icon set by Andrzej Ambroz.
Brecht Van Lommel [Mon, 1 Oct 2018 08:45:50 +0000 (10:45 +0200)]
UI: new icon set by Andrzej Ambroz.

This is a monochrome icon set, with a more modern look and icons for
various features that did not have a proper icon before.

21 months agoFix incorrect alpha blending for icon drawing outside buttons.
Brecht Van Lommel [Mon, 8 Oct 2018 11:28:14 +0000 (13:28 +0200)]
Fix incorrect alpha blending for icon drawing outside buttons.

This was not so noticeable for old icons with black outline, but with
white outline it's problematic.

21 months agoFix tool panel not refreshing when updating color
Dalai Felinto [Mon, 8 Oct 2018 15:40:18 +0000 (15:40 +0000)]
Fix tool panel not refreshing when updating color

21 months agoGP: New automatic adaptative UVs parameter
Antonioya [Mon, 8 Oct 2018 16:33:26 +0000 (18:33 +0200)]
GP: New automatic adaptative UVs parameter

Now by default the UVs are calculated with a fixed size and this makes easier to add patterns for drawings like Manga. Before, the texture changed depending of the stroke size.

21 months agoWorkbench: Smoke: Port back Flame display
Clément Foucault [Mon, 8 Oct 2018 15:20:02 +0000 (17:20 +0200)]
Workbench: Smoke: Port back Flame display

The appearance is a bit different than 2.79 where the flame was just added
on top of the smoke without correct blending.

Now it's much more realistic and using volumetric integration. You can see
the smoke actually masking the flame.

The other difference is that the flame color was not using proper color
managed blending. Now with the use of filmic it shows bright yellow.
This could be adjusted and displayed as a user parameter in the future.

21 months agoEEVEE: Fix unpremultiplied alpha in render result
Clément Foucault [Mon, 8 Oct 2018 15:07:09 +0000 (17:07 +0200)]
EEVEE: Fix unpremultiplied alpha in render result

Fix T57102

21 months agoWorkbench: Smoke: Fix display
Clément Foucault [Mon, 8 Oct 2018 09:25:24 +0000 (11:25 +0200)]
Workbench: Smoke: Fix display

Includes the following fixes
- Fix smoke texture creation: data was interpreted as Byte instead of Floats.
- Fix Velocity texture not being free after draw: also was causing crashes.
- Fix display_thickness not being copied during COW.
- Fix Blending and general volume rendering algorithm.
- Add Volume Shadowing support.

21 months agoImplement display of weight isoline contours in the fragment shader.
Alexander Gavrilov [Thu, 27 Sep 2018 15:38:07 +0000 (18:38 +0300)]
Implement display of weight isoline contours in the fragment shader.

Add an option to display contour lines tracing through points with the
same interpolated weight value in weight paint mode. This can be useful
for working on gentle gradients over a relatively high resolution mesh,
where the difference in color between adjacent vertices is very small.

The contour grid has 3 levels of detail going down to step 0.001,
which automatically fade in or out based on the weight gradient.

Fade out works by capping both screen space and weight space line
width, and reducing alpha when the screen space width becomes too
small for moire and noise-less rendering.

Reviewers: fclem

Differential Revision:

21 months agoFix T57083: Grease Pencil / Texture Paint Crash in 2.8
Antonioya [Mon, 8 Oct 2018 08:32:41 +0000 (10:32 +0200)]
Fix T57083: Grease Pencil / Texture Paint Crash in 2.8

The brush of texture paint hadn't gp_icon

21 months agouse keyword argument for template_node_socket()
Philipp Oeser [Mon, 8 Oct 2018 07:14:25 +0000 (09:14 +0200)]
use keyword argument for template_node_socket()

21 months agoEdit Mesh: basic show in edit mode support
Campbell Barton [Mon, 8 Oct 2018 06:29:59 +0000 (17:29 +1100)]
Edit Mesh: basic show in edit mode support

Note this is just using the derived-mesh data at the moment,
to support this properly we'll need to remove derived-mesh.

21 months agoEdit Mesh: use deformed mesh w/ face-dot & normals
Campbell Barton [Mon, 8 Oct 2018 01:18:45 +0000 (12:18 +1100)]
Edit Mesh: use deformed mesh w/ face-dot & normals

21 months agoCleanup: extract cache calculation from derived-mesh
Campbell Barton [Mon, 8 Oct 2018 00:35:01 +0000 (11:35 +1100)]
Cleanup: extract cache calculation from derived-mesh

21 months agoCleanup: use DRW_object_is_* for object checks
Campbell Barton [Sun, 7 Oct 2018 23:43:34 +0000 (10:43 +1100)]
Cleanup: use DRW_object_is_* for object checks

Also use const qualifier for object's.

21 months agoCleanup: rename checks for Python struct strings
Campbell Barton [Sun, 7 Oct 2018 21:37:32 +0000 (08:37 +1100)]
Cleanup: rename checks for Python struct strings

Using 'format' prefix made this read as if t was for string formatting.

Use 'PyC_StructFmt' prefix instead since these values are compatible
with formatting from Python's 'struct' module.

21 months agoCPython: use format char utilities in idprop_py_api
mano-wii [Sun, 7 Oct 2018 15:24:47 +0000 (12:24 -0300)]
CPython: use format char utilities in idprop_py_api

21 months agoCPython: py_capi_utils: format char utilities do not need to be inline.
mano-wii [Sun, 7 Oct 2018 15:22:17 +0000 (12:22 -0300)]
CPython: py_capi_utils: format char utilities do not need to be inline.

21 months agoCPython: py_capi_utils: use more descriptive names for format string utilities.
mano-wii [Sun, 7 Oct 2018 15:21:09 +0000 (12:21 -0300)]
CPython: py_capi_utils: use more descriptive names for format string utilities.

21 months agoCleanup: style
Campbell Barton [Sun, 7 Oct 2018 06:49:22 +0000 (17:49 +1100)]
Cleanup: style

21 months agoTests: Support parallel execution of render tests
Lukas Stockner [Sat, 6 Oct 2018 20:12:28 +0000 (22:12 +0200)]
Tests: Support parallel execution of render tests

Previously, parallel tests would overwrite each others temporary outputs.

21 months agoCycles: Implement vectorized NLM kernels for faster CPU denoising
Lukas Stockner [Sat, 6 Oct 2018 18:39:01 +0000 (20:39 +0200)]
Cycles: Implement vectorized NLM kernels for faster CPU denoising

21 months agoFix crash unregistering parent panel before children.
Brecht Van Lommel [Sat, 6 Oct 2018 18:56:08 +0000 (20:56 +0200)]
Fix crash unregistering parent panel before children.

This caused crashes with addon enabling/disabling and template loading.

21 months agoVertex Paint: support switching to secondary color temporarily holding Ctrl
Philipp Oeser [Sat, 6 Oct 2018 12:56:49 +0000 (14:56 +0200)]
Vertex Paint: support switching to secondary color temporarily holding Ctrl

while it is possible to permanently flip the colors using the 'X' button, this makes it consistent with Texture Paint.

fixes T56994

Reviewers: campbellbarton, brecht

Reviewed By: brecht

Subscribers: JulienKaspar

Tags: #sculpting_and_painting

Maniphest Tasks: T56994

Differential Revision:

21 months agoCleanup: use the naming convention in py_capi_utils
mano-wii [Sat, 6 Oct 2018 04:15:15 +0000 (01:15 -0300)]
Cleanup: use the naming convention in py_capi_utils

And use inline functions instead of preprocessor directives.

21 months agoCleanup: use new format string utility
mano-wii [Sat, 6 Oct 2018 03:13:54 +0000 (00:13 -0300)]
Cleanup: use new format string utility

21 months agopy_capi_utils: add utilities for format string in `struct` module style syntax.
mano-wii [Sat, 6 Oct 2018 03:13:40 +0000 (00:13 -0300)]
py_capi_utils: add utilities for format string in `struct` module style syntax.

21 months agoPseudo-fix for ARMATURE_OT_autoside_names and x-mirror
Dalai Felinto [Fri, 5 Oct 2018 22:41:48 +0000 (19:41 -0300)]
Pseudo-fix for ARMATURE_OT_autoside_names and x-mirror

It now works like 2.7x. That said this operator is kind of incompatible with
x-mirror (the way it is implemented anyways). But if people were happy with
this in 2.7x they will be multi-object happier.

That said, do turn off x-mirror before using this or select all bones, or just
stop using this operator altogether ;)

Jokes aside, the operator can also be fixed. It shouldn't be hard.

21 months agoFix for ARMATURE_OT_flip_names and x-mirror
Dalai Felinto [Fri, 5 Oct 2018 22:28:04 +0000 (19:28 -0300)]
Fix for ARMATURE_OT_flip_names and x-mirror

There was a reason this was using CTX_DATA_BEGIN in the first place.
Issue introduced on 47cf8bd92847c6837e7af5bd0edbfe1d62fdcaf5.

21 months agoMulti-Objects: ARMATURE_OT_parent_clear
Dalai Felinto [Fri, 5 Oct 2018 21:42:55 +0000 (18:42 -0300)]
Multi-Objects: ARMATURE_OT_parent_clear

21 months agoMulti-Objects: ARMATURE_OT_symmetrize
Dalai Felinto [Fri, 5 Oct 2018 21:27:05 +0000 (18:27 -0300)]
Multi-Objects: ARMATURE_OT_symmetrize

21 months agoMulti-Objects: ARMATURE_OT_separate
Dalai Felinto [Fri, 5 Oct 2018 21:13:17 +0000 (18:13 -0300)]
Multi-Objects: ARMATURE_OT_separate

21 months agoMulti-Objects: ARMATURE_OT_split
Dalai Felinto [Fri, 5 Oct 2018 20:55:54 +0000 (17:55 -0300)]
Multi-Objects: ARMATURE_OT_split

21 months agoSilence warning
Dalai Felinto [Fri, 5 Oct 2018 20:55:34 +0000 (17:55 -0300)]
Silence warning

21 months agoARMATURE_OT_fill: cleanup
Dalai Felinto [Fri, 5 Oct 2018 20:49:26 +0000 (17:49 -0300)]
ARMATURE_OT_fill: cleanup

Remove nonsensical insanity check.
Remove FIXME that would never be addressed anyways.

21 months agoMulti-Objects: ARMATURE_OT_merge
Dalai Felinto [Fri, 5 Oct 2018 20:30:56 +0000 (17:30 -0300)]
Multi-Objects: ARMATURE_OT_merge

Also removed the insane insanity check. This would fail in the
poll function. No point in that level of paranoia.

And return OPERATOR_FINISHED regardless. Since this has a parameter
(though not used) you may get want to tweak REDO (in the future).

21 months agoGPU Python: optionally init the vertexformat in the vertexbuffer itself.
mano-wii [Fri, 5 Oct 2018 20:21:10 +0000 (17:21 -0300)]
GPU Python: optionally init the vertexformat in the vertexbuffer itself.

21 months agoMulti-Objects: ARMATURE_OT_autoside_names
Dalai Felinto [Fri, 5 Oct 2018 20:02:37 +0000 (17:02 -0300)]
Multi-Objects: ARMATURE_OT_autoside_names

21 months agoAdd and use a utility for computing B-Bone roll from custom handles.
Alexander Gavrilov [Fri, 5 Oct 2018 18:02:57 +0000 (21:02 +0300)]
Add and use a utility for computing B-Bone roll from custom handles.

This also fixes a stability problem with the start handle
due to an incorrect matrix multiplication order.

21 months agoTexture Paint: reorganize texture slots UI panel.
Brecht Van Lommel [Fri, 5 Oct 2018 15:40:24 +0000 (17:40 +0200)]
Texture Paint: reorganize texture slots UI panel.

21 months agoTexture Paint: automatically set default color when adding texture slot.
Brecht Van Lommel [Fri, 5 Oct 2018 13:57:50 +0000 (15:57 +0200)]
Texture Paint: automatically set default color when adding texture slot.

21 months agoFix wrong RNA handling of some internal pchan pointers.
Bastien Montagne [Fri, 5 Oct 2018 17:46:51 +0000 (19:46 +0200)]
Fix wrong RNA handling of some internal pchan pointers.

There were two issues here:
* cutsom_shape_transform was not properly tagged as not-owned pointer.
* custom_shape_transform and bbone_start/_end could be set to a pchan from
  another data-block (not from UI, but RNA access code itself allowed it).

Those two issues were specificaly breaking complex rigs in static
override case.

EDIT: since yesterday, bbone_start/_end are mere accessors to edit_bone
data in RNA, so most of fix related to those was ditched (they still needed
to be 'deactivated' from RNA diffing with PROPOVERRIDE_NO_COMPARISON).

21 months agoMulti-Objects: ARMATURE_OT_duplicate
Dalai Felinto [Fri, 5 Oct 2018 17:50:32 +0000 (14:50 -0300)]
Multi-Objects: ARMATURE_OT_duplicate

21 months agoGPU Python: use _PyArg_ParseTupleAndKeywordsFast.
mano-wii [Fri, 5 Oct 2018 17:06:24 +0000 (14:06 -0300)]
GPU Python: use _PyArg_ParseTupleAndKeywordsFast.

21 months agoAdd a new B-Bone Custom Handle type that uses the handle bone direction.
Alexander Gavrilov [Fri, 5 Oct 2018 17:00:32 +0000 (20:00 +0300)]
Add a new B-Bone Custom Handle type that uses the handle bone direction.

Both original handle types are based on location, and Absolute uses it
in a weird way: the Start handle uses the head, while End uses the tail.

This makes controlling the shape of the B-Bone via control bone rotation
really non-intuitive, especially if trying to add a single control for
the tangent in the middle of a B-Bone chain.

To remedy this, add a new custom handle type that uses the orientation
of the control bone, while completely ignoring location. It is even
possible to control both ends of one B-Bone with the same handle bone,
resulting in an S shape.

Reviewers: brecht

Differential Revision:

21 months agoMulti-Objects: ARMATURE_OT_click_extrude
Dalai Felinto [Fri, 5 Oct 2018 17:01:03 +0000 (14:01 -0300)]
Multi-Objects: ARMATURE_OT_click_extrude

This operator is actually working as expected, but I added some
comments explained that it was already "ported".

21 months agoFixes for ARMATURE_OT_extrude / ARMATURE_OT_extrude_move
Dalai Felinto [Fri, 5 Oct 2018 16:20:23 +0000 (13:20 -0300)]
Fixes for ARMATURE_OT_extrude / ARMATURE_OT_extrude_move

* Return OPERATOR_FINISHED only if at least one object succeeded.
* Have a per object fork value, otherwise an object may influence the next.
(which is why we should use `const foo = ...; foo_iter = foo;`)

21 months agoMulti-Objects: ARMATURE_OT_extrude / ARMATURE_OT_extrude_move
Dalai Felinto [Fri, 5 Oct 2018 16:20:23 +0000 (13:20 -0300)]
Multi-Objects: ARMATURE_OT_extrude / ARMATURE_OT_extrude_move

Based on D3384 by Nick Milios.

21 months agoMulti-Objects: ARMATURE_OT_calculate_roll
Dalai Felinto [Fri, 5 Oct 2018 15:56:27 +0000 (12:56 -0300)]
Multi-Objects: ARMATURE_OT_calculate_roll

The patch itself was fine (save for sending notifiers for objects instead of ob).
But I couldn't apply it, so I re-did from scratch.

Based on D3394 by @codemanx

21 months agoMulti-Objects: ARMATURE_OT_roll_clear
Dalai Felinto [Fri, 5 Oct 2018 15:36:06 +0000 (12:36 -0300)]
Multi-Objects: ARMATURE_OT_roll_clear

21 months agoSpecial enum item when no sound is found
Dalai Felinto [Fri, 5 Oct 2018 14:51:04 +0000 (11:51 -0300)]
Special enum item when no sound is found

This happens when you build without sound libraries and such.
Without that the console is spammed with tons of RNA messages because
the enum is empty.

21 months agoGPU Python: fix crash when calling `batch.draw` without passing a shader.
mano-wii [Fri, 5 Oct 2018 14:55:17 +0000 (11:55 -0300)]
GPU Python: fix crash when calling `batch.draw` without passing a shader.

21 months agoTransform: hide the Dial3d drawing if the operator has not been called by a Gizmo.
mano-wii [Fri, 5 Oct 2018 13:42:15 +0000 (10:42 -0300)]
Transform: hide the Dial3d drawing if the operator has not been called by a Gizmo.

21 months agoDial3d Gizmo: consider the offset value in the incremental angle drawing.
mano-wii [Fri, 5 Oct 2018 13:40:14 +0000 (10:40 -0300)]
Dial3d Gizmo: consider the offset value in the incremental angle drawing.

This prevents misalignment with the Spin tool gizmo for example.

21 months agoPython API: new GPUVertFormat constructor and vbo.fill_attribute method
Jacques Lucke [Fri, 5 Oct 2018 13:10:56 +0000 (15:10 +0200)]
Python API: new GPUVertFormat constructor and vbo.fill_attribute method

Reviewer: fclem

Differential Revision:

21 months agoUI: move set origin operators into own object submenu.
William Reynish [Fri, 5 Oct 2018 12:13:57 +0000 (14:13 +0200)]
UI: move set origin operators into own object submenu.

21 months agoVertex Paint: multiply vertex paint overlay
Jacques Lucke [Fri, 5 Oct 2018 12:03:22 +0000 (14:03 +0200)]
Vertex Paint: multiply vertex paint overlay

Fixes the first part of T56999.

Reviewer: brecht

Differential Revision:

21 months agoGP: Rename Canvas Grid to Canvas
Antonioya [Fri, 5 Oct 2018 12:00:34 +0000 (14:00 +0200)]
GP: Rename Canvas Grid to Canvas

21 months agoRedefine the Relative custom B-Bone handle type to be more reasonable.
Alexander Gavrilov [Fri, 5 Oct 2018 09:35:59 +0000 (12:35 +0300)]
Redefine the Relative custom B-Bone handle type to be more reasonable.

Specifically, it should always use the position of the custom handle
bone head, even when affecting the handle at the tail of the main bone,
and shouldn't apply the special handling for joining two B-Bones.

This handle type was unusably broken before a bug fix included in
recent changes, so it should be safe to break backward compatibility.

21 months agoGP: Remove decoration in Viewport Display panels
Antonioya [Fri, 5 Oct 2018 08:39:02 +0000 (10:39 +0200)]
GP: Remove decoration in Viewport Display panels

21 months agoGP: Cleanup grid RNA settings moving to separated struct
Antonioya [Fri, 5 Oct 2018 08:23:13 +0000 (10:23 +0200)]
GP: Cleanup grid RNA settings moving to separated struct

21 months agoCleanup: capitalize runtime in struct name
Campbell Barton [Fri, 5 Oct 2018 07:20:23 +0000 (17:20 +1000)]
Cleanup: capitalize runtime in struct name

21 months agoContext: add uv_sculpt_object
Campbell Barton [Fri, 5 Oct 2018 07:10:27 +0000 (17:10 +1000)]
Context: add uv_sculpt_object

While this may be temporary, it avoids copy-pasting these
checks in Python code.

21 months agoGP: Cleanup names and code
Antonioya [Fri, 5 Oct 2018 06:59:16 +0000 (08:59 +0200)]
GP: Cleanup names and code

21 months agoCleanup: style
Campbell Barton [Fri, 5 Oct 2018 05:01:58 +0000 (15:01 +1000)]
Cleanup: style

21 months agoUI: show uv sculpt options in topbar & toolsettings
Campbell Barton [Fri, 5 Oct 2018 04:53:18 +0000 (14:53 +1000)]
UI: show uv sculpt options in topbar & toolsettings

21 months agoMerge branch 'blender2.8' of into blender2.8
Ray Molenkamp [Fri, 5 Oct 2018 03:57:00 +0000 (21:57 -0600)]
Merge branch 'blender2.8' of into blender2.8

21 months agoMerge remote-tracking branch 'origin/master' into blender2.8
Ray Molenkamp [Fri, 5 Oct 2018 03:56:20 +0000 (21:56 -0600)]
Merge remote-tracking branch 'origin/master' into blender2.8

21 months agoCleanup: remove gpencil label from common code path
Campbell Barton [Fri, 5 Oct 2018 03:55:08 +0000 (13:55 +1000)]
Cleanup: remove gpencil label from common code path

21 months agoTool System: prepare for showing non 3D view tools
Campbell Barton [Fri, 5 Oct 2018 03:47:04 +0000 (13:47 +1000)]
Tool System: prepare for showing non 3D view tools

21 months agoRNA: add access to tool mode
Campbell Barton [Fri, 5 Oct 2018 03:29:51 +0000 (13:29 +1000)]
RNA: add access to tool mode

21 months agoTool System: initial support for UV-sculpt
Campbell Barton [Fri, 5 Oct 2018 03:07:01 +0000 (13:07 +1000)]
Tool System: initial support for UV-sculpt

This currently conflicts with the UV-sculpt toggle being manually set,
ideally this would work more like other paint modes in Blender.

21 months agoCleanup: use PyModule_AddIntConstant
mano-wii [Fri, 5 Oct 2018 02:52:49 +0000 (23:52 -0300)]
Cleanup: use PyModule_AddIntConstant

21 months agoFix invalid flag passed to mesh batch dirty tag
Campbell Barton [Fri, 5 Oct 2018 01:20:12 +0000 (11:20 +1000)]
Fix invalid flag passed to mesh batch dirty tag

21 months agoUI: rename Border Select -> Box Select
Campbell Barton [Fri, 5 Oct 2018 00:27:04 +0000 (10:27 +1000)]
UI: rename Border Select -> Box Select

See: T56648

21 months agoUI: rename overlay: Ornaments -> Extras
Campbell Barton [Thu, 4 Oct 2018 23:41:48 +0000 (09:41 +1000)]
UI: rename overlay: Ornaments -> Extras

See: T56648

21 months agoGP: Move grid parameters to GP object data level
Antonioya [Thu, 4 Oct 2018 21:27:34 +0000 (23:27 +0200)]
GP: Move grid parameters to GP object data level

The grid now can be configured by object because this helps to identify objects and allows to define diferent grid parameters for each objects.

Also added a color option.

21 months agoFix T56268: display the correct rest shape for B-Bones in Edit Mode.
Alexander Gavrilov [Tue, 7 Aug 2018 18:08:16 +0000 (21:08 +0300)]
Fix T56268: display the correct rest shape for B-Bones in Edit Mode.

The rest shape of B-Bones is actually affected by custom handles or
the default connected parent/child mechanism. Ignoring these effects
thus leads to the edit mode shape being different from the actual
rest pose.

This splits the b_bone_spline_setup function that is used to compute
the correct rest and pose shape from pose channels into two parts,
and applies the data structure independent half to edit mode.

In order to access the custom handle settings in Edit Mode, they are
moved to Bone and EditBone, while the bPoseChannel fields are downgraded
in status to a cache for performance. Also, instead of flags, introduce
an enum to specify the handle operation modes, so that new ones could
be added later.

Reviewers: aligorith, brecht

Differential Revision: