Sergey Sharybin
81e0973dec
Cleanup: Remove unneeded texture nodes update function
...
The function was calling update() on the time curve, but there
is no update callback on that node. So, effectively the function
was doing nothing.
2019-04-19 15:16:33 +02:00
Campbell Barton
d892f1037c
Fix error in recently added STR_ELEM macro
...
Very bad oversight, using pointer comparison instead of strcmp
for all but the first item.
2019-04-19 14:52:58 +02:00
Campbell Barton
9ade9d247d
CMake: fix Cycles linking with OpenCL
2019-04-19 14:00:16 +02:00
Campbell Barton
eb844fc1da
CMake: fix building without smoke enabled
...
Was removed when removing sorted libs however it's needed for stubs.
2019-04-19 13:55:31 +02:00
Campbell Barton
60d733c563
Fix/workaround crash using ED_area_do_msg_notify_tag_redraw
...
Temporary workaround for crash when refreshing the active tool.
Currently ED_region_tag_redraw fails, use notifiers until
this is resolved.
2019-04-19 12:44:28 +02:00
Brecht Van Lommel
98e2713e94
UI: minor layout tweaks to 3D viewport gizmo menu
2019-04-19 12:27:16 +02:00
Brecht Van Lommel
a277804c25
UI: tweak header context menu, gray out items when they have no effect
2019-04-19 12:26:45 +02:00
Campbell Barton
d297927958
Keymap: add 'Adjust Last Operation' as F9
...
Adding this back was a frequent request.
Now the panel can be hidden - some users may prefer only to access this
via a shortcut.
Unfortunately this uses an F-Key we'd intended to keep free for users.
This still keeps the middle block of F-Keys (5..8) free.
2019-04-19 09:57:15 +02:00
Campbell Barton
65e21888b5
Keymap: add set start/end shortcuts to graph editor
2019-04-19 09:36:44 +02:00
Campbell Barton
f604e46780
Keymap: restore Ctrl-Tab in the dopesheet (removed by accident)
...
Mistake in 6aef124e7d
2019-04-19 09:35:53 +02:00
Campbell Barton
a1feea48be
Correct cleanup marking keyword args unused
2019-04-19 08:29:38 +02:00
Campbell Barton
54d8faa93a
Cleanup: remove redundant poll functions
2019-04-19 08:13:56 +02:00
Campbell Barton
ad4cbc5a58
Cleanup: logical checks in UI scripts
2019-04-19 08:10:39 +02:00
Campbell Barton
548fb81035
Cleanup: trailing commas
2019-04-19 08:07:46 +02:00
Campbell Barton
fb9fcaa507
Cleanup: unused vars
2019-04-19 07:52:53 +02:00
Campbell Barton
082d7e8d5f
Cleanup: use staticmethod where appropriate
2019-04-19 07:51:14 +02:00
Campbell Barton
ba44602b23
Missing from last commit
2019-04-19 07:49:49 +02:00
Campbell Barton
3633a79789
Cleanup: correct misleading classmethod arg
2019-04-19 07:36:07 +02:00
Campbell Barton
5b0f0421ef
Cleanup: mark unused arguments in UI scripts
...
Quiet's pylint W0613 warning, also remove some unused args.
2019-04-19 07:32:24 +02:00
Campbell Barton
9573bf432c
UI: move top-bar into the spaces header
...
Currently this is only in the 3D viewport however all spaces
that use the tool-system will have this region added.
D4680 by @brecht with own updates.
2019-04-19 06:53:38 +02:00
Alexander Gavrilov
638938e5a8
Armature: remove remains of the object-level deformation data cache.
...
Now that B-Bone shape data is kept in bPoseChannel_Runtime, the
armature level cache only holds one quaternion value per bone.
It can also be moved to runtime, and the structure removed.
This has an additional effect that, as far as I can tell, now
the Armature modifier can run as soon as all of the bones it
actually needs are done, thus making T59848 a purely depsgraph
level problem.
2019-04-18 23:19:44 +03:00
Campbell Barton
e8c9e85401
UI: Revert fix T37463: Y-clamp for header-only spaces
...
This reverts 91d8519c47 since I can't redo the reported error
which was in the old header-only info space.
2019-04-18 21:29:22 +02:00
Bastien Montagne
bd7d39f0b9
PyTests: do not load addons in load_py_modules test.
...
It makes no sense to load add-ons here, we already do that (in a more
complete way) in load_addons test, this is only adding overhead and
doubling code to maintain).
Also do not try to load-as-modules add-ons that are not 2.8-ready, and
some other misc fix.
load_py_modules test should be passing again now.
Thanks to @sergey who did part of the work here as well.
2019-04-18 21:14:14 +02:00
Alexander Gavrilov
7ec6bca92f
Fix T63332: backup and restore bPoseChannel_Runtime data during COW.
2019-04-18 21:32:17 +03:00
Brecht Van Lommel
64bcdd65bf
Images: support packing edited images as OpenEXR or PNG.
...
This way float and multilayer images can now be packed without data loss. This
removes the as_png option and always uses the appropriate file format depending
on the image contents.
2019-04-18 20:07:55 +02:00
Campbell Barton
690ed63eb5
Cleanup: unused region init functions
2019-04-18 20:02:09 +02:00
Brecht Van Lommel
da1b519d82
UI: collapse 3D view collections visibility panel by default.
2019-04-18 19:53:18 +02:00
Brecht Van Lommel
8326d59dbb
OpenEXR: add support for writing EXR files to memory.
2019-04-18 19:42:20 +02:00
Brecht Van Lommel
624d010fe5
Cleanup: deduplicate single/multiview image packing code.
2019-04-18 19:42:20 +02:00
Brecht Van Lommel
54f420ec46
Cleanup: move image saving code to blenkernel.
2019-04-18 19:42:20 +02:00
Brecht Van Lommel
c2f75c7008
Cleanup: make image saving code reusable outside operator.
2019-04-18 19:42:19 +02:00
Brecht Van Lommel
0a4cded91e
Cleanup: deduplicate image user initialization, make consistent.
2019-04-18 19:42:19 +02:00
Antonioya
4dce18fb51
GPencil: Add option to mix color with texture
...
This was already supported in Fill, but not in Strokes. This adds more artistic options when use textured strokes.
2019-04-18 19:33:06 +02:00
Campbell Barton
4439e5d0ba
Cleanup: add trailing commas to avoid right shift
2019-04-18 17:19:44 +02:00
Bastien Montagne
098f75897e
PyTests: do not try to load non-2.8-ready add-ons.
2019-04-18 17:14:51 +02:00
Antonioya
d6f9379149
GPencil: Fix Drawing Path follow error while drawing
...
The strokes was aligned to drawing path only when the stroke was completed. Now, the stroke is aligned while drawing too.
2019-04-18 16:59:18 +02:00
Antonioya
84d237ee97
GPencil: Initialize variable to remove console warning
2019-04-18 16:59:18 +02:00
Campbell Barton
364ec17fb3
Missing 2.7x keymap update from last commit
2019-04-18 16:42:02 +02:00
Campbell Barton
cfed33f738
UI: replace toggle header with a property
2019-04-18 16:39:46 +02:00
Bastien Montagne
9954cce59f
Alembic: catch weird exceptions from library instead of aborting Blender.
...
Similar to what is done e.g. in AbcMeshReader::read_mesh()...
2019-04-18 16:20:19 +02:00
mano-wii
7d78474941
AMD glitch: missing changes in f41ab375f3
...
It was committed an earlier version of the patch which missed these changes.
Differential Revision: https://developer.blender.org/D4700
2019-04-18 10:54:03 -03:00
Campbell Barton
4c11e57316
Cleanup: add 'if 0' comment why code is repeated
...
Avoid potentially adding back the problem in the future.
2019-04-18 15:19:47 +02:00
mano-wii
f41ab375f3
Fix T62792: AMD glitch when clipping region in edit mode.
...
The `AMD Radeon HD 7600M` compiler is usually buggy for Geometry Shaders.
In this case, indexing was causing problems in `gl_in[i].gl_ClipDistance[0]`.
Reviewers: fclem
Differential Revision: https://developer.blender.org/D4700
2019-04-18 10:09:34 -03:00
Campbell Barton
dc8dd24351
PyAPI: remove support for importing text blocks as modules
...
Allowing direct import of text blocks isn't especially useful,
instead add `text.as_module()` script authors can do this
explicitly if it's needed.
Now the text "Register" option executes
instead of loading as a module.
This removes the need to keep track of the current Main,
and C code to override Python's import & reload.
2019-04-18 15:00:43 +02:00
Sergey Sharybin
6f087be9f9
Fix T63590: Blender crashes when deleting particle hair keys
2019-04-18 14:43:45 +02:00
Brecht Van Lommel
5cfeba72f1
Python API: allow passing integer to some BGL functions instead of bgl.Buffer
...
These parameters can be both pointers and offsets into a bound buffer, so we
need to support both even if it's possible to cause crashes this way.
2019-04-18 14:28:37 +02:00
Maruf Sarker
713f961727
Fix Embree link error after recent cmake changes
...
Differential Revision: https://developer.blender.org/D4704
2019-04-18 14:28:37 +02:00
Campbell Barton
8587679a25
UI: option to toggle 'Adjust Last Operation'
2019-04-18 14:02:08 +02:00
Campbell Barton
6154d07f40
Cleanup: comments, wrapping
2019-04-18 14:02:08 +02:00
Jeroen Bakker
2d171d873c
UI: Expand Enum Items Over Multiple Rows
...
Expanding enum items in a small area would render the names with
dots, what is a bad solution. When you use expand directly on a
`grid_flow` or `column_flow`, it will render the items on multiple
lines, giving more control to the developer.
Reviewers: campbellbarton, brecht, mont29
Differential Revision: https://developer.blender.org/D4698
2019-04-18 13:35:14 +02:00