Commit Graph

9178 Commits

Author SHA1 Message Date
Campbell Barton 6be7a98906 PyAPI: raise error when toolbar panels use tabs
Add-ons that register panels in the toolbar can
no longer use 'bl_categories' (tabs).
2018-10-26 15:05:07 +11:00
Campbell Barton 4c75cc488a Correction for Gizmo.draw_custom_shape utility API 2018-10-26 12:43:40 +11:00
Jacques Lucke 0264c050bf PyAPI: gpu utility module to create new batches
Support the common case of creating batches from python geometry,
a shader and optionally indices.

See D3779
2018-10-26 12:40:43 +11:00
Campbell Barton 0f0eafaa0e Cleanup: minor change to last commit 2018-10-26 11:48:42 +11:00
Campbell Barton 6d2897c7ed Update Gizmo.draw_custom_shape for API changes 2018-10-26 11:26:39 +11:00
Campbell Barton a4a6ed1ba3 WM: default tool was being set for space types w/o tools
Add mask for space types so we don't accidentally add tools
for space types that don't support it.
2018-10-26 10:46:35 +11:00
Campbell Barton 1d8ba9d618 PyAPI: Make GPUVertFormat() argument optional 2018-10-26 08:06:05 +11:00
Antonio Vazquez b445d57ccf GP: Add warning when mix Build and Time Offset 2018-10-25 19:15:32 +02:00
Antonio Vazquez 4c2561a877 GP: Include option to render layers by view layer
This allows to make composition getting each grease pencil layer in a different render output.
2018-10-25 16:50:42 +02:00
Inês Almeida 2b6253175e Cleanup: comments and unused code 2018-10-25 13:41:32 +00:00
Campbell Barton 869b1a8d6e Tool System: draw circle-select brush outline 2018-10-25 21:05:47 +11:00
Campbell Barton 9a6d8f809d Tool System: support custom cursor drawing 2018-10-25 21:05:47 +11:00
Campbell Barton f606ee7637 PyAPI: initial gpu_extras module (circle drawing utility) 2018-10-25 21:05:47 +11:00
Campbell Barton 05f2caa210 Merge branch 'master' into blender2.8 2018-10-25 12:26:08 +11:00
Campbell Barton c9e36e5434 Cleanup: unused vars, correct bad (unused) logic 2018-10-25 12:24:38 +11:00
Campbell Barton 23fdac8672 Cleanup: unused variables 2018-10-25 12:03:34 +11:00
Campbell Barton bf34f95a9e UI: move 2d paint panels to topbar & toolsettings
Removed 'Tool' and 'Options' panels,
both these settings are quite obscure and
already available in the 'Brush' menu.
2018-10-25 11:15:48 +11:00
Campbell Barton 03e0fd289d Fix top bar unified color & image paint brush 2018-10-25 09:54:18 +11:00
Antonio Vazquez 0ce8ee526f GP: Add missing title for Armature modifier 2018-10-24 17:10:51 +02:00
Antonio Vazquez 735d6cb8d8 GP: Add new Layer Pass Index filter to modifiers
Now the modifier can be filtered using the new layer index.

Also changed panels to put layers and passes filter always at the end of the panel.
2018-10-24 16:46:35 +02:00
Antonio Vazquez e1a66201da GP: Add layer pass index to time modifier 2018-10-24 11:03:09 +02:00
Antonio Vazquez 5af716620a GP: Add new modes to Time Offset modifier 2018-10-24 10:32:03 +02:00
Campbell Barton 901ccfab52 Fix T57366: Mesh.from_pydata invalid loose-edge state 2018-10-24 11:37:44 +11:00
Dalai Felinto 134db5618a Lattice UI: Add select more/less to menu 2018-10-23 20:40:19 -03:00
Antonio Vazquez 0d453d3c48 GP: Rename Offset to Frame Offset in Time modifier 2018-10-23 17:28:02 +02:00
Antonio Vazquez 3e9405e26d GP: Add new frame scale parameter to Time modifier
This new parameter allows to increase or decrease the animation speed to break animation patterns when reuse data blocks.
2018-10-23 16:47:09 +02:00
Antonio Vazquez f77eafed33 GP: Add transform tools to Toolbar 2018-10-23 13:03:46 +02:00
William Reynish 43c6aba670 Fix various icon related issues:
* Used correct icons for Tracking.
* Flip Copy/Paste icons so they are correct.
* Add correct icon for softbody modifier.
* Replace speaker icons for enabling F-Curves with checkboxes.
2018-10-22 19:28:24 +02:00
Antonio Vazquez e010d5e3b1 GP: New Time modifier
This modifier allows to offset the keyframe animated to get more variations in the animation when reuse the same datablock.
2018-10-22 18:30:26 +02:00
Jacques Lucke 650cdc6b2d Drag & Drop: Support Open/Link/Append when dropping .blend file
When a .blend file is dropped into Blender a small menu opens.
In that menu the user can choose between three options: Open, Link and Append.

Reviewers: brecht

Differential Revision: https://developer.blender.org/D3801
2018-10-22 17:18:42 +02:00
Campbell Barton 91b768ccb1 UI: remove mask toolbar, use menus instead 2018-10-22 18:08:19 +11:00
William Reynish 96fef7db5a Icons: update geometry icons
- Tweaked icons for Box Select, Circle Select & Lasso Select.
- Tweaked icons for Rip Region & Rip Edge.
- Added icons for Bone Envelope, Bone Size, Pose Breakdown,
  Pose Push & Pose Relax.
- Added icons for curve Extrude, Extrude Cursor.

Also removed grease pencil mirror tool which wasn't an active tool,
and is now consistent with regular Edit Mode.
2018-10-21 16:23:15 +11:00
Dalai Felinto 39ad5c3ef1 Rename BakeAction > NLA_OT_bake
This was already the bl_idname anyways.

Now this seems to be working, for single and multi-pose.
That said, the operator seems to fail on redo.
2018-10-19 16:35:09 -03:00
Brecht Van Lommel b2d495c2de UI: move reports / job back to status bar, but make it more visible with color. 2018-10-19 17:19:03 +02:00
Dalai Felinto d01e0d1ef1 CTX_DATA_BEGIN for active object only (..._from_active_object)
For now only `selected_pose_bones_from_active_object`, more options can
be added on demand.

Discussed this with Campbell Barton. We may need this only for selected
pose bones, time will tell.
2018-10-19 08:31:58 -03:00
Campbell Barton 16882ca535 Image Space: make 'UV Edit' a separate mode
This is needed for splitting UV into its own editor, see: T54744
2018-10-19 20:15:18 +11:00
Campbell Barton 3f542312cf Merge branch 'master' into blender2.8 2018-10-19 17:51:40 +11:00
Campbell Barton 0bbc6a903a Fix error disabling all addons 2018-10-19 17:49:48 +11:00
Campbell Barton 13a797466b UI: correct face center button active state 2018-10-19 17:10:40 +11:00
Campbell Barton 60d7740fe6 Tool System: option for transform drag action
See: T57203
2018-10-19 11:54:26 +11:00
Brecht Van Lommel 4925bb1ec3 Links: update development fund link to new URL. 2018-10-18 18:57:01 +02:00
William Reynish b3814d8645 UI: closure some more panels by default, leaving open mostly 1 per tab. 2018-10-18 12:14:25 +02:00
Campbell Barton 108475dc01 PyAPI: Support for custom tool registration
Added a module bpy.utils.toolsystem which only exposes ToolDef,
to avoid scripts referencing bl_ui internals.
2018-10-18 17:13:22 +11:00
Campbell Barton 321c8232bc Tool System: expose shear tool x/y option 2018-10-18 13:55:01 +11:00
Campbell Barton 3e0c87b27d Keymap: use tweak event for shear 2018-10-18 13:06:23 +11:00
Campbell Barton 678c200309 Gizmo: remove 'Click Anywhere' option
Having an invisible gizmo caused event handling problems (see: T56603).

This is hard to avoid since gizmos are similar to buttons in the way
they have priority over the regular keymap.

Transform events use tweak so events to fall though to the general
view 3d keymap (for cursor placement for eg).
2018-10-18 12:36:39 +11:00
Campbell Barton 4c1250570b Cleanup: style 2018-10-18 12:03:04 +11:00
Bastien Montagne 65ea9ec948 node_shader_utils: Proper fix for node_normalmap accessor returning ellipsis value.
Ellipsis value is internal ingredient only, to tag hidden _node_normalmap
'real' property as not yet initialized. Public node_normalmap accessor
should never ever have that value, it's either None or a valid node!
2018-10-17 20:18:40 +02:00
Bastien Montagne 5c038a6930 Revert "Fix error on FBX export after material changes"
This reverts commit ce4cfbe108.

Obviously wrong 'fix', please do not touch other dev’s code, especially
in active/WIP area, when you do not fully understand it.
2018-10-17 20:17:02 +02:00
Dalai Felinto ce4cfbe108 Fix error on FBX export after material changes
Update the addons repository as well.
2018-10-17 17:12:17 +00:00