Commit Graph

12175 Commits

Author SHA1 Message Date
William Reynish
1aae42aa88 UI: move set origin operators into own object submenu. 2018-10-05 14:14:49 +02:00
Antonioya
23e9b35bf4 GP: Rename Canvas Grid to Canvas 2018-10-05 14:00:47 +02:00
Antonioya
8ce5f015dc GP: Remove decoration in Viewport Display panels 2018-10-05 10:39:02 +02:00
Antonioya
e8f135c2cf GP: Cleanup grid RNA settings moving to separated struct 2018-10-05 10:23:31 +02:00
Campbell Barton
b69301d4aa Context: add uv_sculpt_object
While this may be temporary, it avoids copy-pasting these
checks in Python code.
2018-10-05 17:10:27 +10:00
Campbell Barton
f36f029321 Cleanup: style 2018-10-05 15:01:58 +10:00
Campbell Barton
402bde39d1 UI: show uv sculpt options in topbar & toolsettings 2018-10-05 14:54:53 +10:00
Campbell Barton
9f7c7cb98e Cleanup: remove gpencil label from common code path 2018-10-05 13:55:08 +10:00
Campbell Barton
1b7b6d9060 Tool System: prepare for showing non 3D view tools 2018-10-05 13:48:43 +10:00
Campbell Barton
143ece7199 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.
2018-10-05 13:13:30 +10:00
Campbell Barton
0b98a679bb UI: rename Border Select -> Box Select
See: T56648
2018-10-05 10:29:31 +10:00
Campbell Barton
50cb8013eb UI: rename overlay: Ornaments -> Extras
See: T56648
2018-10-05 09:49:09 +10:00
Antonioya
3a1e9b9997 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.
2018-10-04 23:27:34 +02:00
Alexander Gavrilov
61a24c799b 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: https://developer.blender.org/D3588
2018-10-04 19:55:44 +03:00
Brecht Van Lommel
528a8bd788 UI: duplicate X-ray option in popover, makes relation with alpha more clear. 2018-10-04 15:26:38 +02:00
Campbell Barton
165a83345a UV: border/circle select/deselect support 2018-10-04 15:14:00 +10:00
Campbell Barton
f4e38974b3 UV: use circle select/deselect 2018-10-04 13:21:25 +10:00
Campbell Barton
98a10fd7de Tool System: add UV cursor & transform tools
Instead of showing the transform handles for all selections,
move this functionality into a tool as done for the 3D view.
2018-10-04 12:10:26 +10:00
Campbell Barton
3c8c1841d7 UI: use shared toolbar region callbacks
Image toolbar now starts with a single column width
and snaps to button increments.
2018-10-04 09:37:22 +10:00
Campbell Barton
851b2ac29f UI: remove toolbar UV panels
These duplicate existing menu items.
2018-10-04 08:32:26 +10:00
Antonioya
222ea72981 GP: Allow canvas grid with different scales in X/Y
Now it's possible create rectangular shapes and disable the subdivisions to get only a rectangle
2018-10-03 22:42:45 +02:00
Antonioya
8d26705b3e GP: Add z-depth offset parameter
This parameter allows to define the percentage of offset of a stroke when uses surface mode.

Before, this was a fixed value, but for some artists' purposes, it's good to have the option to change it.
2018-10-03 10:55:26 +02:00
Jacques Lucke
2d21eb79ad Units: Support for fixed units
Users can select the main unit they want to use now.
Previously the displayed unit always depended on the magnitude of the value.
The old behavior can be restored by switching to the "Adaptive" mode for length, mass and time units.

Meters, kilograms and seconds are the default units for new and old scenes.

The selected unit is also the default unit for user input.
E.g. if cm is selected, whenever the user inputs a unitless number into a field of type length, it will be interpreted as cm.

Reviewer: brecht

Differential: https://developer.blender.org/D3740
2018-10-03 10:20:16 +02:00
Campbell Barton
1c3411ac89 Keymap: expose tool keymaps in the preferences
Currently some modes share tool keymaps, we might want to disable
this since it's confusing editing one thing in multiple places.

However this should be resolved in the tool definitions.
2018-10-03 15:55:57 +10:00
Jacques Lucke
9d104f57b6 Addons: reactivate BVH and PLY format addons
Reviewers: brecht

Differential Revision: https://developer.blender.org/D3758
2018-10-02 17:51:39 +02:00
Clément Foucault
dcf1f891ea UI: Fix error in shading popover 2018-10-02 12:27:07 +02:00
Campbell Barton
9678bc3a29 Correct extrude shortcut and description
To get the toolbar Key binding, the same operator needs to be
referenced from the tool.
2018-10-02 18:51:43 +10:00
Campbell Barton
d2519c2aa1 Gizmo: option to switch between normal/xyz widgets 2018-10-02 18:17:25 +10:00
Campbell Barton
c14949e9ed Gizmo: move spin tool axis option into gizmo-group
Having this setting here wasn't correct (the operator ignores it).
2018-10-02 17:09:53 +10:00
Campbell Barton
5db328c063 Correct extrude tool operator references
Caused incorrect tooltips.
2018-10-02 15:17:00 +10:00
Clément Foucault
b77191c035 UI: Fix Xray alpha slider being incorrectly greyed out 2018-10-01 18:56:26 +02:00
Brecht Van Lommel
238d30169f Templates: tweaks to startup templates, add sculpting template. 2018-10-01 17:32:59 +02:00
Brecht Van Lommel
fd0250f1bc UI: collapse some paint / sculpt panels by default. 2018-10-01 17:16:43 +02:00
Antonioya
a3afcae39e GP: Add Blur to Shadow FX
The shadow needed a blur to make soft transitions and get a better effect.
2018-10-01 16:31:04 +02:00
Alexander Gavrilov
e38a0b3748 Shrinkwrap Constraint: implement projection features from the modifier.
Allow raycasting in two directions and culling front or back faces.

Also implement a new Invert Cull option in both constraint and
modifier that can be used to aim for faces aligned with the project
axis direction when raycasting both ways.

Reviewers: mont29

Differential Revision: https://developer.blender.org/D3737
2018-10-01 15:47:03 +03:00
Campbell Barton
1f2c4f8809 Cleanup: use standard prefix for boolean settings
Avoid using 'add' as a prefix, it reads like a method.
2018-10-01 12:00:08 +10:00
Campbell Barton
bda7a333a3 Cleanup: use tuple unpacking 2018-10-01 09:20:32 +10:00
Campbell Barton
0256d8b4e2 Cleanup: pep8, unused import 2018-10-01 09:20:32 +10:00
Bastien Montagne
0bb9ebd058 io_utils: remove orientation_helper_factory.
Now we only use orientation_helper decorator.
2018-09-30 17:30:29 +02:00
Antonioya
ec06532cef GP: New option to disable lasso while drawing
Now it's possible to disable the lasso effect of the fill color while drawing with a fill color.

This sometimes is required to see the lines and it's the first step to implement a new lasso brush.
2018-09-30 16:21:28 +02:00
Antonioya
8c3077ff94 Fix T56970 GP: Sculpt mode : Grap tool doesn't work 2018-09-30 13:54:23 +02:00
Antonioya
f1afa6f6a7 GP: implement Shadow FX (wip)
Initial implementation of effect to create a drop shadow of the strokes
2018-09-30 11:49:02 +02:00
Campbell Barton
d9f6fdae4b Add Image Operator: minor tweaks
- Use exception message on error.
- Use 3D view cursor location (for local view).
2018-09-30 17:55:39 +10:00
Antonioya
631ddc5acc GP: New parameters for instance modifier: Material and On Top
Now it's possible to define what material is used in the generated strokes and if the strokes are put in front of the original (default) or keep the original in front.

Before, the generated strokes have been always on top of the original because they were drawn later.
2018-09-29 16:54:16 +02:00
Dalai Felinto
1eb26680d4 Expose armature.dissolve to the menu
Following the vertice delete menu logic here, where delete needs no verb
and the special case (dissolve here) gets the full verb + noun)

Note: This operator wasn't even listed in the T54646 task. I suspect other
operators may share the same fate.
2018-09-28 18:53:29 -03:00
Dalai Felinto
fc96283c1c Fix painting clone ui/rna not working 2018-09-28 16:34:12 -03:00
Antonioya
0c6103557a GP: Fix Fx Wave options panel
The orientation was layout vertical
2018-09-28 18:56:15 +02:00
Dalai Felinto
8a06249058 Fix wireframe threshold not active on wireframe mode 2018-09-28 12:31:25 -03:00
Brecht Van Lommel
0e7742d604 Templates: tweaks to 2D animation template from grease pencil team. 2018-09-28 17:28:23 +02:00
Antonioya
a01afe04b0 GP: Remove Shader FX use_property_split to keep UI consistency
In order to get the same look and feel of modifiers, we need disable this single column option.
2018-09-28 17:25:35 +02:00