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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

2 years 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;`)

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

2 years agoMove B-Bone custom handle settings to Edit mode.
Alexander Gavrilov [Sun, 5 Aug 2018 15:48:05 +0000 (18:48 +0300)]
Move B-Bone custom handle settings to Edit mode.

Custom handle settings actually affect the B-Bone rest shape,
so they should be changed in Edit mode rather than Pose mode.
This is necessary to be able to display the correct rest shape
of the bone in Edit Mode.

Also, instead of flags, introduce an enum to specify the handle
operation modes, so that new ones could be added later.

Differential Revision:

2 years agoRevert "tmp"
mano-wii [Thu, 4 Oct 2018 16:53:39 +0000 (13:53 -0300)]
Revert "tmp"

This reverts commit 9d8c05f7ecf6c20d48c3b151653bab5cc1b988aa.

2 years agoCleanup: Remove some unneeded code
Jacques Lucke [Thu, 4 Oct 2018 16:53:40 +0000 (18:53 +0200)]
Cleanup: Remove some unneeded code

Reviewers: fclem

Differential Revision:

2 years agoRevert "UI: start maximized on X11 if possible, like other platforms."
Brecht Van Lommel [Thu, 4 Oct 2018 16:51:26 +0000 (18:51 +0200)]
Revert "UI: start maximized on X11 if possible, like other platforms."

This reverts commit ac0dfcced30a75fed4017c0b5e1dc8600e6f1dd8.

2 years agoGPU Python: rename methods "shader_from_builtin" and "shader_code_from_builtin" to...
mano-wii [Thu, 4 Oct 2018 16:51:21 +0000 (13:51 -0300)]
GPU Python: rename methods "shader_from_builtin" and "shader_code_from_builtin" to "from_builtin" and "code_from_builtin".

2 years agoGPU Python: Fix assert in PySequence_Fast_GET_SIZE
mano-wii [Thu, 4 Oct 2018 16:48:08 +0000 (13:48 -0300)]
GPU Python: Fix assert in PySequence_Fast_GET_SIZE

2 years agotmp
mano-wii [Thu, 4 Oct 2018 12:14:56 +0000 (09:14 -0300)]

2 years agoFix channels region showing in timeline editors in startup templates.
Brecht Van Lommel [Thu, 4 Oct 2018 16:12:03 +0000 (18:12 +0200)]
Fix channels region showing in timeline editors in startup templates.

2 years agoGizmo: Fix artifacts when having large angles
Jacques Lucke [Thu, 4 Oct 2018 15:53:05 +0000 (17:53 +0200)]
Gizmo: Fix artifacts when having large angles

Reviewer: brecht

Differential Revision:

2 years agoUnits: Change '1000 Kilograms' to 'Tonnes'
Jacques Lucke [Thu, 4 Oct 2018 15:52:17 +0000 (17:52 +0200)]
Units: Change '1000 Kilograms' to 'Tonnes'

Reviewers: brecht

Differential Revision:

2 years agoFix T57062: missing preview range drawing in graph editor.
Brecht Van Lommel [Thu, 4 Oct 2018 13:45:58 +0000 (15:45 +0200)]
Fix T57062: missing preview range drawing in graph editor.

2 years agoUI: duplicate X-ray option in popover, makes relation with alpha more clear.
Brecht Van Lommel [Thu, 4 Oct 2018 12:35:18 +0000 (14:35 +0200)]
UI: duplicate X-ray option in popover, makes relation with alpha more clear.

2 years agoFix T57040 Mesh Disappearing after exiting edit mode in sculpt
Clément Foucault [Thu, 4 Oct 2018 12:57:23 +0000 (14:57 +0200)]
Fix T57040 Mesh Disappearing after exiting edit mode in sculpt

2 years agoFix T56992 caused by typo in previous fix
Clément Foucault [Thu, 4 Oct 2018 12:56:51 +0000 (14:56 +0200)]
Fix T56992 caused by typo in previous fix

2 years agoFix T57059: "make deps" build error when sndio library is present.
Jorge Bernal [Thu, 4 Oct 2018 11:31:38 +0000 (13:31 +0200)]
Fix T57059: "make deps" build error when sndio library is present.

2 years agoTransform: fix glitch in the rotating gizmo drawing.
mano-wii [Thu, 4 Oct 2018 11:22:04 +0000 (08:22 -0300)]
Transform: fix glitch in the rotating gizmo drawing.

2 years agoFix T57011: Crash pressing Free Light Cache during Indirect Light Cache
Philipp Oeser [Thu, 4 Oct 2018 09:24:17 +0000 (11:24 +0200)]
Fix T57011: Crash pressing Free Light Cache during Indirect Light Cache

just kill the bake job prior to freeing

Reviewed By: fclem

Differential Revision:

2 years agoUV: support setting the cursor w/ non-cursor tools
Campbell Barton [Thu, 4 Oct 2018 07:07:05 +0000 (17:07 +1000)]
UV: support setting the cursor w/ non-cursor tools

2 years agoGizmo: UV transform cage now uses all edit-objects
Campbell Barton [Thu, 4 Oct 2018 06:46:20 +0000 (16:46 +1000)]
Gizmo: UV transform cage now uses all edit-objects

2 years agoUV: avoid redundant batch cache w/ UV select pick & all
Campbell Barton [Thu, 4 Oct 2018 06:16:53 +0000 (16:16 +1000)]
UV: avoid redundant batch cache w/ UV select pick & all

Only tag UV's as needing an update.
Also correct notifier for region redraw.

2 years agoFix UV select tools not refreshing
Campbell Barton [Thu, 4 Oct 2018 06:03:51 +0000 (16:03 +1000)]
Fix UV select tools not refreshing

Add BKE_mesh_batch_cache_dirty_tag option for resetting UV's.