Commit Graph

81144 Commits

Author SHA1 Message Date
Campbell Barton
43f46bb664 Tool System: add back layer selector
This was removed in 1b0c1c551a since most settings changes the
current stroke, however the layer selector is used for the next stroke.
2018-10-10 11:10:13 +11:00
Campbell Barton
1dd3b93d2f Revert "Cleanup: avoid for loop"
This reverts commit 390dc94562.

After testing this is approx half the speed of a for loop.

Add missing break and assign snap_elements to a variable.
2018-10-10 10:57:13 +11:00
Dalai Felinto
2a2858b30d Fix for ARMATURE_OT_layers_show_all in pose mode 2018-10-09 20:42:54 -03:00
Campbell Barton
4fa39d9df8 UI: show confirmation for metaball delete
Matches other modes.
2018-10-10 10:31:48 +11:00
Campbell Barton
390dc94562 Cleanup: avoid for loop 2018-10-10 10:31:48 +11:00
Dalai Felinto
7cf8eed5e0 Multi-Objects: ARMATURE_OT_layers_show_all 2018-10-09 20:30:29 -03:00
mano-wii
ae90dc19e7 View3D Header: Display the text "Mix" instead of an icon when more than one snap element is enabled. 2018-10-09 20:11:52 -03:00
Dalai Felinto
ba36e90170 Dissolve/delete dont need confirmation when called from menu 2018-10-09 19:41:04 -03:00
Dalai Felinto
396eba4533 Multi-Objects: ARMATURE_OT_reveal 2018-10-09 19:28:12 -03:00
Dalai Felinto
4c3578b6af Multi-Objects: ARMATURE_OT_hide 2018-10-09 19:28:12 -03:00
Campbell Barton
91ea42b8df Remove Align to View Operator
This only worked on new objects, which is no longer needed.
It didn't account for:

- Quaternion or axis-angle rotation.
- Parenting.
- Constraints.

If we support object rotation alignment, it might be best to
make it a more general set of alignment operators
(align transform, orientation - not limiting to view).
2018-10-10 09:21:37 +11:00
Campbell Barton
54967955bc Empty Image: use draw size instead of object scale
Object scale has implications for parenting, use draw size instead.

Also use add-empty view_align option instead of a separate operator.
2018-10-10 09:11:45 +11:00
Dalai Felinto
10a8786054 Removal of "extend" option for ARMATURE_OT_select_linked
This property (even in 2.7) was not working. In fact it behaves as extended
when extended was FALSE.

Besides all that, the operator is not affected my multi-objects, so it
is good to go.
2018-10-09 18:33:16 -03:00
Brecht Van Lommel
3f93091e8b UI: reduce greying out of icons in radio and toggle buttons.
With the monochrome icons this reduced the contrast too much.
2018-10-09 23:05:43 +02:00
Clément Foucault
195dd9888a Cleanup: Remove old shader reference 2018-10-09 20:22:40 +02:00
Clément Foucault
944e22115d Eevee: Lights: Bump the minimum area light size
This is to avoid visible artifacts with default lamps intensity.
2018-10-09 19:08:25 +02:00
Clément Foucault
65fee32324 Eevee: Volume: Fix incorrect Light intensity compared to cycles 2018-10-09 19:08:25 +02:00
Clément Foucault
bb83bd773c Cleanup: Remove old smoke drawing code 2018-10-09 19:08:25 +02:00
Antonioya
2c0f02dd0a GP: Add Shift+F to change Drawing Brush strength 2018-10-09 19:07:20 +02:00
Clément Foucault
c630ce3f6d Fix T57097: Crash when adding a Texture Slot in Texture Paint mode
Was caused by the use of a batch that was using a discarded index buffer.
2018-10-09 17:55:19 +02:00
Antonioya
d2eb7e8dfa GP: Add RNA path function for gp brush settings 2018-10-09 17:45:52 +02:00
Antonioya
a1dbd2bb6c GP: Minor changes to canvas panel 2018-10-09 17:45:51 +02:00
Clément Foucault
47e1e7212c Eevee: Fix crash with defered compilation and volumetric shaders 2018-10-09 17:34:04 +02:00
Clément Foucault
e234ce9b22 Eevee: Add support/Fix Object Info node
Caveat: Random output does not yet work with instance (dupli) objects.
2018-10-09 17:34:04 +02:00
Bastien Montagne
6d6e3869ce Fix T57122: Sample color during texture painting not working.
Stupid +1/-1 fiddling of mat indices (between MPolys and object...).

Initial investigation and patch by @dfelinto, thx.
2018-10-09 17:32:10 +02:00
mano-wii
b0b547bd1e Python GPU: Update shader.from_builtin and shader.code_from_builtin description. 2018-10-09 12:18:28 -03:00
mano-wii
8fc8131bc9 GPU Python: Use string literals in shader.from_builtin and shader.code_from_builtin.
Also, the gpu.shader.builtin submodule becomes obsolete, so it has been removed.
2018-10-09 12:07:06 -03:00
Antonioya
90e360c39f GP: Improve center object in viewport when press .
Before when press . (view_select) the object was centered at the dummy, but now it's centered with the strokes bounding box size.

Also fixed some problems in edit mode when the object origin was not in view origin.
2018-10-09 16:55:29 +02:00
Dalai Felinto
5cb633ce3f Cleanup 2018-10-09 13:38:25 +00:00
mano-wii
f81e8903b4 Fix T55202: 3D Cursor Snapping not working correctly in Edit Mode.
Use `mesh_eval_final` in this case.
2018-10-09 10:24:15 -03:00
Dalai Felinto
18be4d942b Fix build error on windows/MSVC 2018-10-09 12:45:00 +00:00
Dalai Felinto
9a670a67d2 Fix for assert when sampling color to non-existent palette 2018-10-09 12:43:11 +00:00
Jacques Lucke
85944a2d7e Image Empties: Usability improvements and fixes
- new "Align to View" option when loading a new image
- automatically align to view when dropping an image into a viewport
- larger default size for image empties
- fix image empty gizmo in orthographic view
- new "Align Objects to View" operator

Reviewer: brecht

Differential: https://developer.blender.org/D3778
2018-10-09 14:36:15 +02:00
Brecht Van Lommel
3e2422a947 Fix T57115: buttons drawing wrong after recent icon drawing changes. 2018-10-09 14:05:57 +02:00
Alexander Gavrilov
f1959f0999 Fix Weight Paint display with Subdivision Surface modifier.
The flag used to be set by the now removed old weight paint coloring code.
2018-10-09 14:21:23 +03:00
Clément Foucault
0749808d51 DRW: Fix volume visibility when object draw type is wire or bbox 2018-10-09 12:12:38 +02:00
Clément Foucault
9cf01d35be Workbench: Smoke: Add support for Color Mappping for smoke debugging 2018-10-09 12:12:38 +02:00
Clément Foucault
d4d6cbe0a7 GPUDraw: Smoke: Cleanup/Refactor 2018-10-09 12:12:38 +02:00
Bastien Montagne
2471b9c528 Fix crash in T56064: Blender crashes on selecting text-object.
The root of the issue remains though, see T56172, this is just a quick
bandaid to stop crashing on it, until we find a proper solution.
2018-10-09 11:35:21 +02:00
Jacques Lucke
9560fe60e4 Python API: new GPUShader.format_calc() method
Reviewers: mano-wii, fclem, campbellbarton

Differential Revision: https://developer.blender.org/D3772
2018-10-09 11:17:29 +02:00
Campbell Barton
1b910082a0 Edit Mesh: replace DerivedMesh w/ Mesh
DerivedMesh is now removed from edit-mesh modifier evaluation.
2018-10-09 17:48:28 +11:00
Campbell Barton
79ca13a745 Cleanup: naming
Use BKE_mesh_* prefix for mesh module.
2018-10-09 16:09:59 +11:00
Campbell Barton
72e90c5db3 Cleanup: remove unused EditDerivedBMesh 2018-10-09 15:57:38 +11:00
Campbell Barton
3c78763482 Edit Mesh: remove derived-mesh from crazy-space calculation 2018-10-09 15:38:06 +11:00
Campbell Barton
20fbe6bca8 Modifier: move edit-mesh calculation from DerivedMesh to Mesh 2018-10-09 15:11:06 +11:00
Campbell Barton
75ac83610b Modifier: add non derived mesh modifier wrappers
Rename modifier_deformVerts_ensure_normals &
modifier_applyModifier_ensure_normals with wrappers that match 2.7x
convention.
2018-10-09 13:20:20 +11:00
Campbell Barton
c8c3bbaade Cleanup: naming
Rename DerivedMesh modifier functions to make room for mesh versions.
2018-10-09 12:23:22 +11:00
Campbell Barton
e7218e7049 Cleanup: naming
- immAttrib*    -> immAttr*
- immSkipAttrib -> immAttrSkip

Term 'attr' is a convention for GPU module.
2018-10-09 11:01:50 +11:00
Campbell Barton
9b49a0d971 Cleanup: naming 2018-10-09 10:51:35 +11:00
Campbell Barton
d43c776a56 Cleanup: warnings 2018-10-09 10:41:36 +11:00