Commit Graph

11454 Commits

Author SHA1 Message Date
Alexander Gavrilov
798cdaeeb6 Implement an Armature constraint that mimics the modifier.
The main use one can imagine for this is adding tweak controls to
parts of a model that are already deformed by multiple other major
bones. It is natural to expect such locations to deform as if the
tweaks aren't there by default; however currently there is no easy
way to make a bone follow multiple other bones.

This adds a new constraint that implements the math behind the Armature
modifier, with support for explicit weights, bone envelopes, and dual
quaternion blending. It can also access bones from multiple armatures
at the same time (mainly because it's easier to code it that way.)

This also fixes dquat_to_mat4, which wasn't used anywhere before.

Differential Revision: https://developer.blender.org/D3664
2018-11-06 10:56:08 +03:00
Campbell Barton
80109c976c Brush: split out vertex paint tool & blend mode
- Vertex & weight paint now use the 'blend' setting.
- Weight paint now has it's own tool setting,
  since weight paint doesn't deal with color - we'll likely
  support different tools eventually.
2018-11-06 18:06:33 +11:00
Campbell Barton
a90bcdf93d Tool System: use tool type enum to access brushes
Previously the brush names were used which had the limit that:

- Brush names that were deleted wouldn't show up in the toolbar.
- Naming collisions between user defined brushes and existing tools
  broke tool selection.

Now brushes are created as needed when tools are selected.

Note, vertex/weight paint combine tool and blend modes,
this should be split out into a separate enum.
2018-11-06 12:39:51 +11:00
Clément Foucault
946f9d8fb3 Eevee: Fix "Show Irradiance/cubemap" icons 2018-11-05 16:31:12 +01:00
Antonioya
83b3b540de GP: Change Lock icon and Popover title 2018-11-05 16:29:07 +01:00
Pablo Vazquez
72a23e6564 UI VSE: Use icon for Refresh Sequencer button in the header. 2018-11-05 15:34:23 +01:00
Pablo Vazquez
2d3493d50c UI VSE: Rename OpenGL Render to Sequence Render.
Follows change in the 3D Viewport.
2018-11-05 15:12:27 +01:00
Pablo Vazquez
69fcffb78f UI: Move Sync Markers from View to Marker menu.
In Dopesheet and Sequencer. Suggested by tintwotin in DevTalk, thanks!
2018-11-05 15:11:56 +01:00
Campbell Barton
8fcc04edce Cleanup: avoid using instance to get enum 2018-11-05 13:54:43 +11:00
Campbell Barton
642fe9e0f2 PyAPI: use keywords for ToolDef.from_fn.with_args
Enforces explicit names,
allows for keywords to be forwarded to the dictionary.
2018-11-05 11:58:23 +11:00
Brecht Van Lommel
4e37796976 Fix various Freestyle rendering bugs. 2018-11-05 00:22:33 +01:00
Campbell Barton
2f8a45e314 Tool System: support passing in args to ToolDef functions
Needed since class aren't yet defined
so we can't access their namespace.

This avoids intermediate draw functions.
2018-11-05 07:12:57 +11:00
Antonioya
5cfcee8c39 GP: Reorganize Canvas Grid
Now the grid is always controlled by the topbar selector and not in the canvas panel. To have two places to define orientation was confuse.

The orientation by default (no lock) is always to view plane.
2018-11-04 13:00:37 +01:00
Campbell Barton
179358e6c4 UI: Don't nest sculpt scrape/flatten
These are different enough not to be grouped.
2018-11-04 10:33:51 +11:00
Campbell Barton
628a0209a4 Cleanup: missed last commit 2018-11-04 10:32:04 +11:00
Campbell Barton
2402c56a67 UI: move gpencil tool-draw code to topbar
The grease pencil UI was showing twice in tool properties space.
Move to top-bar because this UI is meant as quick convenience access
which is expanded on in the tool properties editor.
2018-11-04 10:29:40 +11:00
Campbell Barton
bc870f17a7 Cleanup: style, shadow warning 2018-11-04 10:10:00 +11:00
Antonioya
d2b4eaa137 GP: New Time Offset custom frame range parameters
These parameters allow to define a frame range for the animation loop and make possible to loop a section while the scene is playing.
2018-11-03 17:11:38 +01:00
Campbell Barton
f267921774 UI: remove grease pencil icons
Grease pencil tool now uses an icon for each tool,
previously it mapped icons to tool icons which is now not needed
because for each tool a different brush can be selected which has it's
own icon.
2018-11-03 20:35:34 +11:00
Campbell Barton
e53cb83d07 UI: separate sculpt from smooth, flatten 2018-11-03 20:35:34 +11:00
Antonioya
270a6a6689 GP: Change presets for new stroke and fill switches 2018-11-03 10:01:28 +01:00
Campbell Barton
97336343c4 UI: show brush selector in topbar 2018-11-03 19:47:20 +11:00
Antonioya
628908a710 GP: New main switches to hide stroke and fill material
New parameters to switch visibility of stroke and fill
2018-11-03 08:51:36 +01:00
Pablo Vazquez
4affea081a UI: Move Simplify panel from Scene to Render properties.
It mainly contains properties that affect the final render/viewport and it's handy
to see if it's enabled or not while going through the render settings.
2018-11-03 05:12:45 +01:00
Pablo Vazquez
018d22fb7a UI: Sort panels in Properties.
* Viewport Display always last before Custom Properties.
* DoF panel second as it's changed more often than Camera sensor width.
* In scene, move Simplify higher up as it is changed more often than Gravity or Audio.
2018-11-03 03:25:51 +01:00
Antonioya
55a743fade GP: Add Draw Brush selector to topbar 2018-11-02 19:28:36 +01:00
Antonioya
fddf608e79 GP: Reduce space between draw option buttons
Using new separator parameter, reduce space. The default value was too much.
2018-11-02 16:35:53 +01:00
Brecht Van Lommel
00ef0a4d8e UI: disable decorators for color management and motion path panels. 2018-11-02 15:35:06 +01:00
Campbell Barton
ac8d787327 Tool System: brushes are now categorized by tool
The toolbar now shows brush types, the brush selector now
only shows brushes matching the current tool type.

Details:

- Add's Paint.tool_slots (used by the toolbar).
- Removed custom grease pencil brush tool code.
- Bumped subversion.

See T57526 for details.
2018-11-02 19:40:39 +11:00
Pablo Vazquez
37fc52cbc6 UI: Minor tweaks on User Preferences header.
* Move Save User Preferences to the right (matches file browser and quit prompt).
* Icons for Import/Export keyconfig
* Match order of install/reset of Themes section
* Rename "Install MatCap/HDRI" to "Add MatCap/HDRI"
2018-11-02 03:15:38 +01:00
Pablo Vazquez
034e777038 UI: Sort panels in Render and Output 2018-11-02 02:21:35 +01:00
Campbell Barton
c4c62e6df5 UI: tweak panels open by default 2018-11-02 12:04:04 +11:00
Brecht Van Lommel
86b2f8ef38 UI: add render output tab to properties editor 2018-11-02 11:58:56 +11:00
Brecht Van Lommel
10d7740e01 UI: show messages and progress in topbar when status bar is collapsed. 2018-11-01 19:44:03 +01:00
Brecht Van Lommel
c2bcde5c28 UI: show blocking popup when auto execution of scripts is disabled.
This is important information, and it was easily missed at the top/bottom of
the screen.

Ref T57197.
2018-11-01 19:44:03 +01:00
Brecht Van Lommel
c7752df86d Fix T57559: fix wrong disable/mute icons for particles and shape keys. 2018-11-01 19:31:20 +01:00
Antonioya
79ec5f5cb8 GP: Separate not related buttons on topbar 2018-11-01 19:03:06 +01:00
Antonioya
1237e50c9b GP: Reorganize origin popover and top area
- Draw on back buttons moves near mode
- zDepth offset moved from View Panel to Popover
- Target for Stroke mode moved to popover
- New First point snap mode
2018-11-01 17:05:04 +01:00
Pablo Vazquez
e6da49295c UI: Rename "Cursor to Center" to "Cursor to World Origin"
Center is misleading since it could mean the center of the objects, selection, etc.
Python API is left as is to not break compatibility. Maybe it could be renamed as well?
2018-11-01 16:12:52 +01:00
Campbell Barton
10d7ebc469 Merge branch 'master' into blender2.8 2018-11-01 16:20:52 +11:00
Campbell Barton
38f57734ea Cleanup: move progress utility module into bpy_extras
Try avoid having too many toplevel modules with generic names.
2018-11-01 16:19:49 +11:00
Dalai Felinto
95d4a6bdb1 Fix swapped on/off icons for brush overlays
This is the panels that you see when you invoke the painting tools from
the Image Editor.

If you do so from the viewport, the panels are different (and have it
properly swapped already, although the panels should be the same as
those ones I suppose - that said I like the one from the image editor
better, in regard to the overlay panel).
2018-10-31 19:27:49 -03:00
Dalai Felinto
679e0daaf8 Fix ui errors for brush toolbar 2018-10-31 19:23:58 -03:00
Antonioya
e3384800a1 GP: Change icon for draw on back 2018-10-31 19:36:22 +01:00
Pablo Vazquez
acecadf16a UI: Particles improvements
* Icons in specials menu (Copy and the new Duplicate icon)
* Remove redundant "Settings" label next to ID template widget.
* Remove "Type" label and expand dropdown, since it only has 2 options (emitter/hair), saves 1 click.
* Move "Seed" to and "Hair Segments" to Emission panel
* Rename "Duplicate Particle Systems" to "Duplicate Particle System", since it
only duplicates one (the active one) at a time.
2018-10-31 18:39:01 +01:00
Pablo Vazquez
f4bc205a32 UI: Detach Material specials menu from add/remove column. 2018-10-31 18:39:01 +01:00
Clément Foucault
cde64619ca Eevee: Implement Overscan option
This option make the internal render size larger than the output size in
order to minimize screenspace effects disapearing at the render edges.

The overscan size added around the render is the maximum dimension
multiplied by the overscan percentage.
2018-10-31 18:32:54 +01:00
Pablo Vazquez
1180363792 UI: Small tweaks to Shape Keys/Vertex Groups menus
Mainly added separators to the Vertex Group/Shape Keys specials menu,
separating items by type and removing redundant icons for better readability.
2018-10-31 18:14:05 +01:00
Alexander Gavrilov
748b89f124 Allow changing B-Bone custom handle references from Pose Mode.
@jpbouza was rather upset these were made read-only, and unlike
parents, it's not that hard to allow changing these Bone fields:
all is needed is to carefully refresh the matching fields in the
relevant bPoseChannel objects and properly tag update.

Reviewers: brecht

Differential Revision: https://developer.blender.org/D3870
2018-10-31 20:04:01 +03:00
William Reynish
9fbba61f4b UI: icon set updates by Andrzej Ambroz.
New icons for duplicate, driver types, window, hue/saturation.
2018-10-31 17:59:00 +01:00