mano-wii
ee6c8be183
GPU Python: rename methods "shader_from_builtin" and "shader_code_from_builtin" to "from_builtin" and "code_from_builtin".
2018-10-04 13:51:21 -03:00
mano-wii
b183f57a9e
GPU Python: Fix assert in PySequence_Fast_GET_SIZE
2018-10-04 13:49:06 -03:00
mano-wii
9d8c05f7ec
tmp
2018-10-04 13:49:05 -03:00
Brecht Van Lommel
fe47f6e56a
Fix channels region showing in timeline editors in startup templates.
2018-10-04 18:12:31 +02:00
Jacques Lucke
4933dd716c
Gizmo: Fix artifacts when having large angles
...
Reviewer: brecht
Differential Revision: https://developer.blender.org/D3765
2018-10-04 17:53:05 +02:00
Jacques Lucke
4388549124
Units: Change '1000 Kilograms' to 'Tonnes'
...
Reviewers: brecht
Differential Revision: https://developer.blender.org/D3766
2018-10-04 17:52:17 +02:00
Brecht Van Lommel
7bd5ba5019
Fix T57062: missing preview range drawing in graph editor.
2018-10-04 15:48:12 +02: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
Clément Foucault
d2f913a37a
Fix T57040 Mesh Disappearing after exiting edit mode in sculpt
2018-10-04 14:57:23 +02:00
Clément Foucault
9869e4ffe5
Fix T56992 caused by typo in previous fix
2018-10-04 14:56:51 +02:00
mano-wii
6bd60292da
Transform: fix glitch in the rotating gizmo drawing.
2018-10-04 08:23:52 -03:00
Philipp Oeser
cc92d83d39
Fix T57011: Crash pressing Free Light Cache during Indirect Light Cache
...
Baking
just kill the bake job prior to freeing
Reviewed By: fclem
Differential Revision: https://developer.blender.org/D3764
2018-10-04 11:24:17 +02:00
Campbell Barton
935b18ec75
UV: support setting the cursor w/ non-cursor tools
2018-10-04 17:07:05 +10:00
Campbell Barton
b7aeadcaa9
Gizmo: UV transform cage now uses all edit-objects
2018-10-04 16:46:20 +10:00
Campbell Barton
105f9e577f
UV: avoid redundant batch cache w/ UV select pick & all
...
Only tag UV's as needing an update.
Also correct notifier for region redraw.
2018-10-04 16:19:27 +10:00
Campbell Barton
d0b47ddd7d
Fix UV select tools not refreshing
...
Add BKE_mesh_batch_cache_dirty_tag option for resetting UV's.
2018-10-04 16:03:51 +10:00
Campbell Barton
69496bd843
Remove empty file added by accident
2018-10-04 15:29:30 +10:00
Campbell Barton
51d6d1d8fb
WM: fix non-undo operators stealing redo panel
...
Non-undo actions would move the redo panel into a different space.
2018-10-04 15:26:36 +10: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
4469ca7f3e
UV: rename circle select operator
...
Word order was swapped from all other operators.
2018-10-04 13:21:21 +10:00
Campbell Barton
d23447d8d5
UI: disable UV operator register
...
Was showing redo panel for cursor & selection operators.
2018-10-04 13:08:28 +10:00
Campbell Barton
46eb050c9d
Cleanup: remove single backtick quotes
...
This isn't valid RST.
2018-10-04 13:08:28 +10:00
mano-wii
ffa15f4b4a
Python GPU: GPUBatch and GPUShader refactor.
...
The changes are:
- The shader now is passed as a parameter of the batch `draw` method (batch.draw(shader)). Since the batch always has to set a shader before drawing;
- The batch methods to specify a value to a uniform have been removed. Uniforms are parameters of the program (here called shader). If you change a uniform, it changes in all batchs that use the same program;
- New methods were added to set uniforms by the shader;
- The `batch.program_set_builtin` was removed. It is a duplicate of `program_set` but without a shader object. We need the shader object to configure the uniform;
Differential Revision: https://developer.blender.org/D3752
2018-10-03 23:34:27 -03: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
a4530f59d2
Transform: support for 2D cursor editing
2018-10-04 12:04:23 +10:00
mano-wii
e30f32b5a3
Transform: make gizmo pie section start from where you drag.
2018-10-03 22:31:01 -03:00
Campbell Barton
b36f17b8c2
Fix missing free w/ UV-lasso
2018-10-04 11:03:53 +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
55f62b94f8
DRW: minor tweaks to mode checking
...
Avoid accessing object mode via the view layer active object
when drawing since it's done everywhere we store the active object mode
in the draw-context.
2018-10-04 09:37:18 +10:00
Campbell Barton
971ab57c7d
Cleanup: style
2018-10-04 09:33:49 +10:00
mano-wii
a04155dd52
ED_gizmotypes_dial_3d_draw_util: use a struct to hide most parameters.
2018-10-03 19:59:35 -03:00
Campbell Barton
851b2ac29f
UI: remove toolbar UV panels
...
These duplicate existing menu items.
2018-10-04 08:32:26 +10:00
Antonioya
ab8a64a5b9
GP: Show 3D cursor in draw mode
...
The cursor is used as location to draw new stroke
2018-10-03 22:59:52 +02:00
Antonioya
204ad852a6
GP: Hide different UI elements depending of mode
...
The 3D Cursor, origin and dummy are hidden depending of the mode to get a cleaner drawing space.
2018-10-03 22:56:23 +02:00
mano-wii
c52485c16a
Editor Transform: use the dial3d drawing in the rotation operation
2018-10-03 17:45:56 -03:00
mano-wii
dfce96dbf7
Dial3d Gizmo: Add the Incremental Angle option to snap.
2018-10-03 17:45:55 -03: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
77def38eab
GP: Allow 0 subdivisions for canvas grid
2018-10-03 22:14:56 +02:00
Ines Almeida
77787310ad
Cleanup: tiny improvement in error reporting for makesrna
2018-10-03 21:56:33 +02:00
Antonioya
5a4ff142de
GP: Hide the origin when enable origins
2018-10-03 20:30:13 +02:00
Antonioya
5f4d2be735
GP: Hide dummy and cursor in drawing mode
2018-10-03 20:25:14 +02:00
Bastien Montagne
9c09998530
UI strings: Fix asserts in 'middle-splitting' fitting string code.
...
The problem is that string width computing is performed in integers
(pixels), which can generate a rather annoying error (a few pixels)...
Simply work around that for now, by trimming an extra middle char when
needed.
2018-10-03 16:24:35 +02:00
Bastien Montagne
fb60fb055d
Improvements to internals blf_font's blf_font_width_to_strlen()/to_rstrlen()
...
`to_strlen` just benefits from using pre-computed kerning table for
ascii chars (gives about 30% speed improvements).
`to_rstrlen` was re-written and heavily simplified, basically using same
logic as `to_strlen`, and `BLI_str_find_prev_char_utf8()` to loop
backward in the string, instead of looping forwards the whole string,
storing each gliph's width in temp array, and looping backward on that
temp array to find final string matching expected width. Gives about 70%
speed improvements!
And both functions can now share their core logic.
2018-10-03 16:24:35 +02:00
Clément Foucault
89c30ff746
Pose Mode: Add back IK Degrees of freedom display
2018-10-03 15:44:12 +02:00
Clément Foucault
34a627f345
Fix T56992: OpenGL Render Engine ignores Transparent Background
...
Correct the outline blending for alpha 0 background.
2018-10-03 15:44:12 +02:00
Clément Foucault
36d457e887
DRW: Fix assert in texture paint
2018-10-03 15:44:12 +02:00
Dalai Felinto
b6c1443742
Silence warning
2018-10-03 12:06:11 +00:00
Brecht Van Lommel
a3d9e8edce
Merge branch 'master' into blender2.8
2018-10-03 12:56:44 +02:00
Brecht Van Lommel
44d47526af
Fix icon alpha theme option not working for monochrome icons.
2018-10-03 12:56:39 +02:00