Blender Git Commits

Blender Git commits from all branches.

Page: 889 / 2888

April 14, 2020, 17:24 (GMT)
UI: Layout changes for new checkbox layout possibilities

Follow-up to D7427.

Screenshots:
[TODO]

Main changes:
* Changes the split percentage from 50/50% to 40/60%.
* ... [TODO]

Most changes here are by @billreynish.

Maniphest Tasks: T65965

Differential Revision: https://developer.blender.org/D7430
April 14, 2020, 17:18 (GMT)
Merge branch 'master' into greasepencil-object
April 14, 2020, 17:06 (GMT)
Merge branch 'master' into greasepencil-object
April 14, 2020, 16:56 (GMT)
UI: Better split layout support for checkboxes

Makes these kinds of layouts possible:

Best test this in the `temp-checkbox-changes` branch which contains layout
tweaks all over to make good use of the changes here. These will be submitted
separately.
Patch on top of D7409.

Main changes:
* Add support for row and column headers (i.e.
`uiLayout.column(heading="Foo")`, `uiLayout.row(heading="Bar")). If the
first property added to this layout doesn't insert anything into the label
split column, the heading is inserted there. Otherwise, it's inserted as own
item.
* Add support for manually inserting decorators for an existing item
(`uiLayout.prop_decorator()`). That way layout creators can manually insert
this, which was the only way I saw to support these layouts:
* Autogenerated layouts for operator properties look bad if there are only
checkboxes (which only use half the region width). So before creating the
layout, we iterate over visible properties and disable split layout if all
are booleans. I think this is fine, if needed we could also add layout hints
to operators.
* `uiTemplateOperatorPropertyButs()` now handles macros itself, the caller
used to be responsible for this. Code that didn't handle these so far never
used macros I think, so this change should be visible.
* Remove manual property split layout from autogenerated operator properties
layout.
* Padding of checkboxes is tweaked to make their label visually more connected
to the checkboxes.
* Support split layout for menus (should work for `uiLayout.menu()`,
`.operator_menu_enum()`, `.prop_menu_enum()`, maybe more)
* Add `uiLayout.`

Maniphest Task: T65965

Reviewers: brecht pablovazquez billreynish
April 14, 2020, 15:32 (GMT)
Cleanup: PEP8 for python changes
April 14, 2020, 15:27 (GMT)
Merge branch 'master' into temp-node-socket-buttons
April 14, 2020, 15:26 (GMT)
Cleanup: PEP8 for python changes
April 14, 2020, 14:32 (GMT)
Merge branch 'master' into temp-checkbox-layout-tweaks
April 14, 2020, 13:33 (GMT)
EEVEE: Motion Blur: Fix crash when motion blur is not enabled
April 14, 2020, 12:39 (GMT)
Don't use split layout for operator properties if all are checkboxes

Having a split layout looks broken if all items are checkboxes and there
is no heading text, because it only uses half the width then.
So this checks if all visible properties are booleans and if so,
disables the split layout. A bit hacky but this should generally work.
If needed we can add more control in future (e.g. default layout hints
for operators).
April 14, 2020, 11:47 (GMT)
Add Boolean Math, Switch and Float Compare function nodes

Since those nodes did not exist for shader node trees before,
I implemented them directly as "function nodes". Those could later
be used in shader node trees as well.

Differential Revision: https://developer.blender.org/D7424
April 14, 2020, 10:50 (GMT)
Merge branch 'master' into greasepencil-object
April 14, 2020, 10:31 (GMT)
Use some shader nodes in the simulation nodes

This makes a subset of the shader nodes available in simulation node trees.
More can be made available in the future, but we might not be able to actually
implement all the nodes before the release.

For now, their name remains `ShaderNode...`. We should rename them to
e.g. `FunctionNode...` and move them to a separate folder in the future.

Differential Revision: https://developer.blender.org/D7422
April 14, 2020, 09:59 (GMT)
Merge branch 'master' into functions
April 14, 2020, 09:07 (GMT)
GPencil: Fix small issue in selection

The selection was not consistent inside fill
April 14, 2020, 08:10 (GMT)
Merge branch 'master' into greasepencil-object
April 14, 2020, 08:09 (GMT)
GPencil: Backport Random Layer color

Use a single color by object in grease pencil is not practical because is necessary to see all layers.

To tint by layer, the layer tint parameter is used and not the material color as is done in other modes.

This function has been backported from 2.82.
April 13, 2020, 20:00 (GMT)
Use PNL_ prefix for new panel type flags

This prefix should be changed, but it's best to be consistent for now
April 13, 2020, 17:57 (GMT)
Tweaks to layout for many modifiers

Bevel: Move to two new panels
Data Transfer: Add advanced panel for rarely used inputs
Mesh Sequence Cache: Don't use useless subpanels
Mirror: Clip in main panel, data panel instead of UVs
Multires: Advanced panel and add missing properties
Normal Edit: Offset in subpanel
Simple Deform: Orientation panel to restrictions panel
Solidify: Add normals subpanel
Subdivision Surface: Add advanced subpanel
UVWarp: Add transform subpanel
Wave: use_x and use_y as toggles on the same row
Wireframe: Don't use split layout
April 13, 2020, 16:22 (GMT)
Support using property split for menu items & use for output FPS setting

We could add an extra parameter for the label string, for now we can
just use the headings. So if a layout heading is available (set and not
already added) use that to enable the split layout.
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021