Jacques Lucke
4fbde56f51
Py API: Fix documentation/actual behavior missmatch in gpu.matrix
2018-11-15 17:10:32 +01:00
Jacques Lucke
4d04235d5f
Py API Docs: Fix formatting
2018-11-15 16:54:29 +01:00
Sergey Sharybin
7291996f3b
Fix T57825: Crash when assign material
...
We need to make sure that all the nested node trees are localized.
Because of this reason, we need to roll back to a bit older way
of dealing with materials.
Should be all safe now with the fixes from few moments ago.
2018-11-15 16:50:30 +01:00
Sergey Sharybin
637d5ab635
Depsgraph: Clear localization tag for CoW IDs
...
They are self-contained now, and should not cause any sync or
free happening when freeing them.
2018-11-15 16:38:20 +01:00
Sergey Sharybin
ba9bd979f1
Tag all localized ID types as such
2018-11-15 16:36:35 +01:00
Sergey Sharybin
9edff9ce9b
Remove legacy node tree localization tag
...
Is stored on ID level now.
2018-11-15 16:35:28 +01:00
Sergey Sharybin
c5219abd74
Followup to the previous commit
...
Thought this is to be fixed in master first. Turns out, nope :)
2018-11-15 16:33:00 +01:00
Sergey Sharybin
d546269de8
Cleanup: Double semicolon at the end of line
2018-11-15 16:32:18 +01:00
Sergey Sharybin
9d52ff1ced
Fix strict compiler warnings/errors
2018-11-15 16:31:26 +01:00
Sergey Sharybin
61ee2f0db8
Merge branch 'master' into blender2.8
2018-11-15 16:28:37 +01:00
Sergey Sharybin
74fdf68a41
Cleanup: Comments
2018-11-15 16:28:07 +01:00
Brecht Van Lommel
2aa0a69015
Splash: tweak quick setup to use single column style layout.
2018-11-15 15:26:53 +01:00
Brecht Van Lommel
8dbf0957f6
Keymaps: add select with left / right option to quick setup splash screen.
2018-11-15 15:12:48 +01:00
Dalai Felinto
098e807f9e
Viewport collections visibility popover
...
This brings the functionality currently in the H shortcut, to hide/show
individual collections.
In order to convey hierarchy, and to make justice to the originally
intended 1-10 shortcuts, we group the collections per siblings.
2018-11-15 11:52:00 -02:00
Dalai Felinto
b85886f8d5
LayerCollection RNA API util functions
...
* has_objects()
* has_visible_objects(view_layer)
* has_selected_objects(view_layer)
2018-11-15 11:51:57 -02:00
Dalai Felinto
570e37261d
Hide collections menu: ignore excluded collections
...
Note: I didn't change the shortcuts, I think this is a separate decision
to be made. I just want at the moment to have the H operator to mimic
the upcoming popover.
Personally if we are to keep the 1-10 shortcuts (and they do work) I
think we should skip the excluded collections altogether.
In fact we could have an option to hide them from the outliner too.
2018-11-15 11:51:57 -02:00
Jacques Lucke
bdca863956
Units: Identifiers in Python
...
I only specified the identifiers for the units that are actually accessible for now.
This way we can postpone some decisions for now. E.g. if it should be `METER_SQUARE`, `SQUARE_METER`, `METER_SQ`, ...
Reviewers: brecht
Differential Revision: https://developer.blender.org/D3945
2018-11-15 14:40:22 +01:00
Sergey Sharybin
cdfc128267
Fix T57848: Transforming large linked instances freezes Blender
2018-11-15 13:55:15 +01:00
Brecht Van Lommel
71fd7e610a
Keymaps: minor code refactor after adding tools to default preset.
2018-11-15 12:50:33 +01:00
Sergey Sharybin
9a9ca5e40b
Depsgraph: Build all type of IDs for modifiers and constraints
...
It was missing handling of collections there, which caused collection
used for smoke colliders to not be in the dependency graph.
2018-11-15 12:48:55 +01:00
William Reynish
c3e2b40a91
Icons: sculpt tool updates r62157
...
- Blue = Add/Subtract
- Yellow = Flatten/Contrast
- Red = Grab
- Grey = General/Other
2018-11-15 22:32:38 +11:00
William Reynish
165c447691
Tool System: add curve tilt tool
2018-11-15 22:31:47 +11:00
William Reynish
93b373060f
Icons: add tilt tool
2018-11-15 22:31:42 +11:00
Bastien Montagne
d2c41293a0
Fix T57831: Crash with multi-select / delete of the same object in Collection outliner.
...
Tssst… that piece of code should have been removed when we got rid of
bases here, kind of obvious it would break if object pointer itself is
NULL! And since deleting an object clears its ID pointers in outliner
tree, this fixes for free the issue of deleting several time the same
object (being selected in several collections at once).
2018-11-15 12:26:55 +01:00
Alexander Gavrilov
e318da5350
Remove unused parameter.
2018-11-15 14:19:35 +03:00
Sergey Sharybin
90cf9bcc7d
Depsgraph: Make drivers builder less noisy
...
Do early output when trying to add target relation with wrong rna_path.
We can't do anything reliably in that case anyway, so hopefully it is
a no-functional-change for artists, just avoids noisy error prints in
the terminal.
2018-11-15 12:13:28 +01:00
Alexander Gavrilov
a575c508fe
Stretch To: fix initialization of the constraint with copy-on-write.
...
The constraint is supposed to automatically initialize the rest
length when it is first evaluated, so now that evaluation is done
on a separate copy it also has to copy the value to the master
instance - or newly created constraints will be broken.
Since this is supposed to happen once at constraint creation,
implementing as a search for now instead of adding new fields.
2018-11-15 14:10:24 +03:00
Sergey Sharybin
773110f848
Depsgraph: Save memory by ignoring invisible objects
...
This finished old standing TODO which was attempting to
ignore objects of all invisible collections.
The difference here is that we remove invisible bases from
view layers. This guarantees that the evaluated state is
consistent and does not reference original objects.
2018-11-15 11:43:12 +01:00
Sergey Sharybin
156fe74f91
Depsgraph: Fix/workaround crash after recent point cache changes
...
For some reason relations can not always be found. This is to be
investigated, but doesn't hurt to be safe here. Also allows to
unlock production.
2018-11-15 11:43:12 +01:00
Sergey Sharybin
4a3a4eef14
Depsgraph: Use more human readable relation keys identifier
2018-11-15 11:43:12 +01:00
Campbell Barton
48c137ad5d
UI: remove node tree panels
...
This duplicates items in the add menu and uses a lot of vertical space.
This should be used for tools or disabled.
2018-11-15 19:36:32 +11:00
Campbell Barton
b8d21f9b9b
Cleanup: typo, whitespace
2018-11-15 18:50:18 +11:00
Campbell Barton
5ec1d709e7
WM: use Python bytecode cache to run presets
...
Key-maps can be very large, avoid parsing on every startup.
2018-11-15 18:46:00 +11:00
Campbell Barton
49cd13768f
UI: 'Add Object' rename dimensions
...
D3943 by @Zachman w/ edits
2018-11-15 17:44:50 +11:00
Campbell Barton
7c03365861
WM: use spacebar press event (not double click)
...
Functionality) is nicer but this uses a hack to make it work,
keep the code under a variable in case we want to remove.
2018-11-15 17:12:33 +11:00
Campbell Barton
02a21420e8
Fix gizmos in the node editor
2018-11-15 15:43:50 +11:00
Campbell Barton
8c7727946c
Gizmo: tweak navigation drawing for axis views
...
Axis aligned views now show both small/large handles,
this makes it possible to well if the view is in front or behind.
2018-11-15 14:11:08 +11:00
Campbell Barton
b3d84853ac
Keymap: remove keymap export that wrote API calls
...
Use new keymap format which defines data to be loaded.
2018-11-15 13:51:55 +11:00
Campbell Barton
8734a09379
Tool System: use preset keymap loading logic
...
The data structures for tool keymaps and presets were different,
use the same structure and expose function publicly.
2018-11-15 13:38:27 +11:00
Campbell Barton
349d85eb9e
Missed when moving tool keymaps
2018-11-15 13:34:47 +11:00
Campbell Barton
02d77e5bf5
Keymap: use parameters for tool keymap
2018-11-15 12:54:44 +11:00
Campbell Barton
27eba3867a
Keymap: move tool system keymaps into the default keymap
...
Note that tools can still define their keymaps,
since it's useful for add-ons.
2018-11-15 12:45:45 +11:00
Campbell Barton
c94f806dc7
WM: remove warning when toolbar not found
...
Not useful for general usage, so removing.
2018-11-15 09:51:37 +11:00
Campbell Barton
3ecc79fa1a
Gizmo: use color fading to show depth for navigate
...
Previously the positive axis was always brighter,
now use bright colors which face towards the view.
2018-11-15 09:44:03 +11:00
Campbell Barton
28e7c94de2
Gizmo: minor fix for navigation axis color
...
When view aligned, the near axis was hidden,
making it seem as if the opposite axis was at the front.
2018-11-15 08:17:16 +11:00
Campbell Barton
d04947b422
Gizmo: skip text drawing w/ select for navigate
...
Also use struct for storing extra args.
2018-11-15 07:59:03 +11:00
Jacques Lucke
78207eac9b
Py API Docs: New custom shader example
2018-11-14 18:41:33 +01:00
Brecht Van Lommel
6f08124fbd
Fix assert in bevel modifier with certain geometry.
...
This happened in in the barbershop_interior.blend benchmark file, seems
duplicate hash entries are ok for this algorithm.
2018-11-14 18:21:28 +01:00
Bastien Montagne
a4fccde67a
Fix some templates for 2.8.
2018-11-14 18:21:06 +01:00
Bastien Montagne
844c7440fc
Fix (unreported) bpy.ops.wm.read_factory_settings(use_empty=True) crash.
...
`BKE_blendfile_read_make_empty()` was not preserving workspaces...
2018-11-14 18:21:06 +01:00