Brecht Van Lommel
44d47526af
Fix icon alpha theme option not working for monochrome icons.
2018-10-03 12:56:39 +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
e44dfbbba5
Transform: enable shrink-wrap even offset by default
...
Holding Alt now disables.
2018-10-03 13:10:11 +10:00
Campbell Barton
fb8d268f62
Fix T56975: Transform incorrect w/ constraint
2018-10-03 12:23:55 +10:00
mano-wii
65e577d222
Dial 3d Gizmo refactoring.
...
Transform the gizmo's drawing function into a generic function for use in other parts of the code.
2018-10-02 23:00:29 -03:00
Campbell Barton
6a4bed75b2
RNA: Make various .add(count) a required arg
2018-10-03 10:20:55 +10:00
Campbell Barton
2de21113b9
RNA: curve points add(count) a required arg
2018-10-03 09:08:54 +10:00
Campbell Barton
2d37901941
RNA: fcurve keyframe add(count) a required arg
...
This matches mesh add methods, and doesn't force it to be a keyword arg.
2018-10-03 09:04:51 +10:00
Campbell Barton
9596dfc261
Extrude: add normal flip to mesh.extrude_context
...
Was giving errors on each access.
2018-10-03 08:34:50 +10:00
Campbell Barton
2497b2d202
Shrink/Fatten: change default 'even-thickness'
...
Accessing from the tool and keyboard had different defaults,
disable by default for both.
2018-10-03 08:28:36 +10:00
Campbell Barton
8ba4dd389b
Fix gizmo tooltips ignoring preference
2018-10-03 08:20:07 +10:00
Campbell Barton
4c22807e69
Cleanup: style
2018-10-03 08:10:48 +10:00
Dalai Felinto
00c0e55227
Multi-Objects: TRANSFORM_OT_vertex_random
...
This was listed under the armature task yet it is used for meshes too.
Also make sure all the UI names are capitalized (normal > Normal).
2018-10-02 20:11:59 +00:00
Dalai Felinto
1fd8e183d0
Multi-Objects: Select similar armature: SIMEDBONE_LAYER
...
And final one as well.
2018-10-02 19:54:19 +00:00
Dalai Felinto
ecce4f49bb
Multi-Objecs: Select similar armature: SIMEDBONE_PREFIX and SIMEDBONE_SUFFIX
2018-10-02 19:47:10 +00:00
Dalai Felinto
6b3ff1ec75
Multi-Objects: Select similar armature: SIMEDBONE_DIRECTION
...
Also added epsilon into the mix.
2018-10-02 19:46:16 +00:00
Dalai Felinto
e39d17096f
Multi-Objects: Select similar armature: SIMEDBONE_LENGTH
...
Also added epsilon into the mix.
2018-10-02 19:46:16 +00:00
Dalai Felinto
821379e58d
Multi-Objects: Select similar armature initial commit
...
This includes all the modes that don't need multi-object support:
* SIMEDBONE_CHILDREN
* SIMEDBONE_CHILDREN_IMMEDIATE
* SIMEDBONE_SIBLINGS
* SIMEDBONE_GROUP
* SIMEDBONE_SHAPE
Unlike the mesh select similar operator, in this case we take
only the active bone in consideration, not all the selected ones.
I decided not to change that, and keep this 2.79 behaviour.
We could though if we want to.
2018-10-02 19:45:46 +00:00
Dalai Felinto
dcc623e7e7
Multi-Objects: ARMATURE_OT_select_hierarchy
2018-10-02 17:39:11 +00:00
Dalai Felinto
27f2108e8a
Multi-Objects: ARMATURE_OT_select_less and ARMATURE_OT_select_more
2018-10-02 17:39:11 +00:00
Dalai Felinto
2a7ccf6e88
Fix for POSE_OT_select_mirror
...
It was not taking duplicated objects into consideration, so the operator would
only work if you had an off number of objects with the same armature.
2018-10-02 17:39:11 +00:00
Dalai Felinto
8b2bcce3d2
Multi-Objects: ARMATURE_OT_select_mirror
2018-10-02 17:39:10 +00:00
Bastien Montagne
9c02f6b1ed
Fix (unreported) memleak with legacy IKsolver.
...
Looks like new depsgraph may initialize some IK trees, without ever
executing them (which also frees them with legacy IKSolver code)...
2018-10-02 18:00:42 +02:00
Bastien Montagne
c71577d195
RNA ID: add accessors to original ID, and a boolean stating whether it is evaluated or original data-block.
...
Since RNA depagraph API mostly returns evaluated data, it is mandatory
to have access to original datablocks now...
2018-10-02 14:14:50 +02:00
Bastien Montagne
038c7a7f1e
Depsgraph/RNA: add warning that all data from object instances iterator are COW data.
...
It is crucial that scripts do not write, and even more importantly, do
not store any references to those. Otherwise, that’s a rather straight
path to crash.
2018-10-02 14:14:50 +02:00
Alexander Gavrilov
0ec6ad027e
Fix weight drawing in Edit Mode by using the Weight Paint shader.
...
After rB3da46a8d8df2 the vertex color shader can't draw the raw
weight data produced by DRW_cache_mesh_surface_weights_get.
2018-10-02 12:38:26 +03:00
Campbell Barton
ee05143078
Keymap: disable alt-comma for origin only transform
...
This is quite an obscure option only useful in rare cases,
when enabled by accident it's confusing since single objects
can't be transformed.
Also, w/ 2.8x you don't see the option change in the header.
2018-10-02 19:11:50 +10:00
Antonioya
dc689fe407
GP: Redo blur z-depth fix
...
The problem with previous fix was that only the original pixels were blurred, but the surrounding pixels no.
2018-10-02 11:09:44 +02:00
Campbell Barton
c03ceb0f61
Gizmo: scale xyz axis to 1.0
...
The normal and xyz no longer overlap so can be the same size.
2018-10-02 19:05:15 +10:00
Antonioya
03b8d6ce54
GP: Cleanup shader
2018-10-02 10:31:49 +02:00
Antonioya
1a9d1317aa
GP: Fix blur FX z-depth error
...
The z-depth must not be blurred, but use the original value.
2018-10-02 10:22:40 +02:00
Campbell Barton
d2519c2aa1
Gizmo: option to switch between normal/xyz widgets
2018-10-02 18:17:25 +10:00
Campbell Barton
6b51e15973
Cleanup: split extrude gizmo into own file
2018-10-02 17:34:27 +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
07d4580f64
Gizmo: support for gizmo-group properties
...
This allows gizmo groups to store properties in the tool.
This makes sense for gizmo options which only control gizmo display and
don't control operator execution.
Unlike similar kinds of properties,
this isn't accessible via the gizmo-group-type instance.
For now the it's only stored in the workspace tool as can be done for
operator properties, so each instance doesn't have different settings
which would be confusing from a user perspective and complicate access
from the top-bar.
Later we could add gizmo-group properties if needed.
2018-10-02 17:03:23 +10:00
Campbell Barton
dce12293d0
WM: generalize tool property initialization
...
Prepare for storing different kinds of properties in tools.
2018-10-02 15:39:20 +10:00
Campbell Barton
0e7a592c3c
WM: report error w/ unknown operator name
2018-10-02 15:28:14 +10:00
Campbell Barton
1e526de9bd
Merge branch 'master' into blender2.8
2018-10-02 11:19:11 +10:00
Campbell Barton
bf37c93533
Correct tooltip
2018-10-02 11:17:31 +10:00
Philipp Oeser
60d4d58376
Fix T56990: AutoIK fails
...
Regression from 5d628c519
2018-10-02 10:10:26 +10:00
mano-wii
3aed08377d
GPY Python: program_use_begin and program_use_end.
...
The user has to be encouraged to use the `program_set` or `program_set_builtin` before drawing.
This avoids problem with gl_context.
2018-10-01 13:58:51 -03:00
Clément Foucault
8ed17c37c5
DRW: Fix unselectable wire object in solid mode
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
ac0dfcced3
UI: start maximized on X11 if possible, like other platforms.
2018-10-01 17:29:48 +02:00
Brecht Van Lommel
f40ff62647
Fix app template __init__.py not running without a userpref.blend.
2018-10-01 17:16:43 +02:00
Brecht Van Lommel
057f2a1878
UI: use backdrop circle for navigation icons, make clickable area bigger.
...
This will look a bit better once the icon outline is gone.
2018-10-01 17:13:08 +02:00
Antonioya
ffcc4be3bb
GP: Change Blur default parameters for Rim and Shadow effects.
2018-10-01 16:42:12 +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
Pablo Vazquez
832f5d36e5
UI: Color the inside of pie menu items when selected
...
Follows the same as other selected/active items in the UI.
Tested in Default theme, 2.7x, 2.4x, Flatty Light and Amaranth
all seem to work fine.
2018-10-01 15:28:47 +02:00