Commit Graph

9573 Commits

Author SHA1 Message Date
Bastien Montagne
91c9be7df3 Merge branch 'master' into blender2.8 2018-12-12 12:04:17 +01:00
Bastien Montagne
047d7d3b57 Fix T59213: Application menu links to outdated version of Python API.
Somehow those links were forgotten when we renamed API doc to simpler
names last year...
2018-12-12 11:56:25 +01:00
Campbell Barton
4357fb63db Keymap: event type filter w/ finding keymap items
Now its possibly to ask for only keyboard/mouse/ndof events
when finding key map items.
2018-12-12 21:43:26 +11:00
Philipp Oeser
f2796da2e5 PyTemplates operator_modal_timer: update to 2.8
use keyword argument

Fixes T59232
2018-12-12 09:36:46 +01:00
Campbell Barton
4ae68d6825 Fix T59170: Box select ignores modifiers-keys once tool option is set
- Key-map items properties now override tool-options
  so modifier keys can have different behavior to the default action.

- Box & circle select now have `wait_for_input` properties
  instead of detecting this based on selection options being set or not.
  This relied on the key-map setting properties which may need to be
  initialize from the tool settings.
2018-12-12 14:26:43 +11:00
Campbell Barton
805bf5d602 Keymap: add Shift-F1..3 editor shortcuts
Some frequently used editors didn't have F-key access.
2018-12-12 11:39:52 +11:00
Campbell Barton
c0b7bdd38b Revert "Tweak UI message of Ruler tool."
This reverts commit 1bf0a4f4d0.

This is a bug, clicks shouldn't remove rulers since it's too easy
to accidentally click instead of dragging.
2018-12-12 09:52:52 +11:00
Campbell Barton
220ab6290e Fix toolbar key-accelerator w/ LMB select
Tweak events were masking hotkey access.

Reported in T55162
2018-12-12 09:40:37 +11:00
Antonioya
18d354a5eb GP: Remove Object Onion Skin switch
It was confusing to have two switches.
2018-12-10 20:18:15 +01:00
Antonioya
2debee96ec GP: Replace Clamp icon 2018-12-10 20:18:10 +01:00
Bastien Montagne
1bf0a4f4d0 Tweak UI message of Ruler tool.
It's much simpler to just click on one end, than dragging it outside of
view. ;)

Related to T59084.
2018-12-10 15:53:53 +01:00
Lukas Stockner
e79bb957fc User Interface: Add button color for indicating that the value differs from the interpolated one
One issue that especially newer users often run into is that they accidentally reset changes to the scene by switching frame without creating a keyframe first.

Therefore, this commit adds a new color that is used to draw properties if their current value differs from the one that would be set when switching to this frame.
This works both for existing keyframes as well as for currently interpolated frames.

Unfortunately the flags in but->flag are full, so I had to move the new flag to but->drawflag and pass that to all relevant functions.

I went with orange for the color since afaics it fits with the green and yellow that are currently used for keyframe states and since it's somewhat reddish to signify that there might be something to look out for here.

Reviewers: campbellbarton, #user_interface, brecht

Reviewed By: campbellbarton

Subscribers: brecht, predoe

Differential Revision: https://developer.blender.org/D3949
2018-12-08 18:06:23 +01:00
Campbell Barton
1ddfd8c9ec Cleanup: style 2018-12-08 15:01:47 +11:00
Sybren A. Stüvel
e2d9166473 Metadata: add hostname to the available metadata options
Having the hostname allows us to identify which machine rendered which
frame in our render farm.

This simply uses the host's name, and doesn't do any DNS lookup of any
IP address of the machine. As such, it's only usable for identification
purposes, and not for reachability over a network.

Reviewers: sergey, brecht

Reviewed By: sergey

Differential Revision: https://developer.blender.org/D4047
2018-12-07 17:29:07 +01:00
Philipp Oeser
f034926dba add 'Control Points' and 'Segments' editmode menus for Surfaces
Fixes T58922

Reviewers: brecht, billreynish

Maniphest Tasks: T58922

Differential Revision: https://developer.blender.org/D4046
2018-12-07 15:15:52 +01:00
Campbell Barton
8f40fbad5b Add license headers for app-templates 2018-12-07 14:29:03 +11:00
Campbell Barton
8a5656caa9 Fix T58897: Show folders in video editing template
Show folders and start in the users home.
2018-12-07 14:27:22 +11:00
Lucas Boutrot
d40bffa17f UI: add material settings in shader editor sidebar.
Differential Revision: https://developer.blender.org/D3926
2018-12-07 00:57:20 +01:00
Brecht Van Lommel
5fdf739e7f Fix T58898: Python error clicking in empty space in text edit mode. 2018-12-06 23:44:21 +01:00
Brecht Van Lommel
234c112971 Fix T58223: curve tilt not working correct with left click select. 2018-12-06 19:26:39 +01:00
Jacques Lucke
828c4d1c54 Fix T58863: 'Smooth/Flat Shading' to 'Shader Smoot/Flat' in context menu 2018-12-06 16:19:29 +01:00
Campbell Barton
aeffaf75ab Fix knife project, add to mesh menu 2018-12-06 16:52:49 +11:00
Campbell Barton
6c19412ad1 Fix T58837: "Tab for Pie Menu" lags leaving gpencil edit mode 2018-12-06 16:23:01 +11:00
Campbell Barton
1cc0705062 Armature: support select-linked deselection
Matches edit-mesh mode.
2018-12-06 14:00:07 +11:00
Campbell Barton
75b739c969 Keymap: only use MMB workaround whe MMB is enabled
Using double-click with selection breaks selection cycling behavior
(making you have to wait to click again to cycle-select the next item).
2018-12-06 10:05:53 +11:00
Campbell Barton
5bc7b9c3c6 Cleanup: unused var, style 2018-12-06 08:45:41 +11:00
Bastien Montagne
5ad217fe0a Fix own mistake in recent rB74361eebe68c.
One cannot assign to Class.__dict__, that is not a 'real' dictionnary...

Thanks to @JacquesLucke for noting the issue.
2018-12-05 20:54:02 +01:00
Brecht Van Lommel
23688ec39a Fix T58794: extended shading pie menu wrong order in lookdev mode. 2018-12-05 15:22:20 +01:00
Bastien Montagne
74361eebe6 Fix T58772: Stray "forward" and "up" options in 2.8 import addons?
Nice side-effect of using new __annotations__ thingy to store
dynamically-generated fields in a class: __annotations__ dict is not
ensured to exist for a given class, so we may end up modifying on of the
parents' one!
2018-12-05 11:08:57 +01:00
Antonioya
8e31e67bf5 GP: Add missing pressure button to Topbar 2018-12-05 10:46:41 +01:00
Campbell Barton
5c8f1053b5 UI: split UV editor out of the image space 2018-12-05 14:38:58 +11:00
Campbell Barton
baf599610a Fix T58661: Shading pie doesn't highlight x-ray when on 2018-12-05 11:50:35 +11:00
Philipp Oeser
245065460f Remove the Draw Curve operator from the Add menu
this operator was only working in editmode and we now have a dedicated
tool for this.

Fixes T58495

thanx @billreynish for usability advice
2018-12-04 14:42:08 +01:00
Campbell Barton
9b933ccdf6 Fix error reloading scripts
Operator.is_registered needs to use RNAMeta class.
2018-12-04 17:54:54 +11:00
Campbell Barton
d8ed96a6a0 Cleanup: remove unused brush set by index 2018-12-04 17:33:47 +11:00
Campbell Barton
c631782542 Fix T58474: Gizmo Operator template fails on rerun 2018-12-04 10:17:42 +11:00
Charlie Jolly
2c19c9b2f6 GP: Draw Mode: Add Arc Primitive
This adds an elliptical arc primitive.
Press CKEY for toggling closed/open arc.
Press FKEY key for flipping arc.

Additional changes to gpencil primitives.
Increases default edges of circle to 64.
Keymap changes to allow primitives to be drawn with Shift or Alt key.
Allow Plus/Minus key to adjust number of edges.

Missing: Toolbar icon

Differential Revision: https://developer.blender.org/D4024
2018-12-03 22:11:38 +00:00
Bastien Montagne
dc26c5e1ad Fix T58635: 2.8 - "3D Markers to Mesh" error. 2018-12-03 20:06:50 +01:00
Bastien Montagne
4b8b369218 Fix T58448: Cloth presets fails to load due to missing attribute structural_stiffness.
Presets were not updated when parameter were changed in rBe3d31b8dfbdc.

Note that will also check on generating more resistent py code for that
kind of presets, since that will also affect any custom preset made by
users...
2018-12-03 17:46:39 +01:00
Brecht Van Lommel
63ac7c799c Fix T58566: Blender 2.7x keymap not correct for select all toggle and spacebar. 2018-12-03 00:40:09 +01:00
Campbell Barton
e1b8645c6a Keymap: use strict format for keymap definitions
Ensure we use lists for keymap items and item properties.

This means scripts can access keymap definitions from other layouts,
manipulating them without sometimes encountering a tuple that needs
to be converted into a list.
2018-12-02 14:02:03 +11:00
Campbell Barton
a56b024964 Cleanup: simplify poll function 2018-12-02 14:02:03 +11:00
Campbell Barton
7be9bf43a4 Cleanup: de-duplicate gpencil material UI
Top-bar and properties-editor were near duplicates.
2018-12-02 13:26:39 +11:00
Campbell Barton
4320adbf86 Cleanup: remove redundant gpencil material checks
Poll checks for an object, no need to check for non-object
materials in the draw function.
2018-12-02 13:12:06 +11:00
Antonioya
5d4073e248 Fix T58460: Proportional edit icon disappears 2018-12-02 00:05:01 +01:00
Antonioya
cedbaec468 Annotation: Replace ALT key to CTRL for Eraser
This makes the keymap consistent with Grease Pencil.
2018-11-30 16:23:36 +01:00
Clément Foucault
fe28554898 StudioLight Editor: Add copy settings and overwrite prompt
Copy settings let users create variations more easily.

Ovewrite prompt is there to be able to edit already existing studiolight.
2018-11-30 15:40:57 +01:00
Clément Foucault
9ccf27d1f7 StudioLight: Renaming stuffs 2018-11-30 15:40:57 +01:00
Clément Foucault
909fa08a76 StudioLight: Add a 4th light to adjust lighting
There was a bug due to non-aligned struct in the DNA that prevented us
to increase the size of the userdef light array.

Since the studio lights are now presets and stored in external files,
there is no need to keep backward compatibility with theses lights.

Remove the old array and create a new one.

Add blue tint light for specular.
2018-11-30 15:40:57 +01:00
Clément Foucault
e68c0bf76a Workbench: Add Shadow Focus and change Shadow Orientation
Shadow focus let the user choose how hard are is the shadows transition.
Harder shadow transition can be used for stylistic effects or more uniform
shading.

Make shadow orientation respect the same orientation as the studio light
(view from +Y direction aka. front view). Make the default shadow direction
more similar to the default light position (the default light object, not
the default studio lighting).
2018-11-30 15:40:57 +01:00