Commit Graph

66212 Commits

Author SHA1 Message Date
Sergey Sharybin
fc830ce78f Fix T57616: Deleting particle system instance object leads to crash
Explicitly tag copy-on-write form library remap. Previously, this
tag was used implicitly via geometry/transform tagging, which worked
ok for objects. For non-objects we do need to ensure all copies has
correct pointer and the only way to do so is to pass tag explicitly.

There is probably more places in the library remap where this is
needed, but not being familiar with the code makes it difficult to
spot where possible tags are missing.
2018-11-23 12:03:26 +01:00
Jacques Lucke
4b06d0bf51 Python API: bpy.app.handlers.depsgraph_update_pre/post
Reviewers: brecht

Differential Revision: https://developer.blender.org/D3978
2018-11-23 11:52:09 +01:00
Campbell Barton
2ded8fca79 UI: initialize drag-lock x/y axis from region type
When dragging in a vertical or horizontal region,
there is no need to detect the drag axis.

Gives minor usability improvement for dragging over vertical tabs.
2018-11-23 19:12:34 +11:00
Campbell Barton
4ed7c10a32 Correct missing NULL check in recent changes 2018-11-23 18:12:28 +11:00
Campbell Barton
7a7c9ee71a Fix uv lasso/box multi-object select logic
Was de-selecting all UV's on each iteration.
2018-11-23 18:06:50 +11:00
Campbell Barton
a6eb9a3e21 Tool System: uv lasso/box select options
These tools now support (new, add, subtract),
(xor, and) could be supported but are complicated by UV's sticky
selection modes.
2018-11-23 17:52:52 +11:00
Campbell Barton
dcf359b15a Error in last commi 2018-11-23 16:28:50 +11:00
Campbell Barton
93c143ecf3 Fix wire-toggle restoring previous shading mode 2018-11-23 16:27:54 +11:00
Campbell Barton
cfffe615f4 Keymap: add Keymap.keymap_items.new_from_item
Needed to copy keymap items from other keymaps.
2018-11-23 15:16:13 +11:00
Campbell Barton
d56c0a0a6a Cleanup: rename bone-select to xray
This shows bones in font and uses the xray toggle binding.
Also 'bone select' isn't very meaningful on it's own.
2018-11-23 13:48:21 +11:00
Campbell Barton
1ffb2bf917 Pose: make pose-bone xray usable in wpaint mode
Update UI, draw-manager and operator to support with pose-bone-xray
when in weight paint mode.
2018-11-23 13:19:22 +11:00
Campbell Barton
5f2ac43b5f UI: allow inaccurate swipe motion to switch tabs
Removes the need to keep your cursor over tabs while dragging.
2018-11-23 12:11:18 +11:00
Campbell Barton
60865ccefd Fix for weight paint object occluding pose bones
This makes it so weight paint + pose mode can't switch to other
weight paint objects.
2018-11-23 10:38:15 +11:00
Campbell Barton
73547952a9 Pose: support wpaint+pose w/ object-lock enabled
Mode locking made it nearly impossible to enter wpaint + object mode.

Now enter pose mode when entering wpaint mode
when the pose object is selected.
2018-11-23 10:19:12 +11:00
Campbell Barton
7b4f545e28 Fix bone selection w/ mixed wpaint & pose mode 2018-11-23 10:03:04 +11:00
Campbell Barton
7c74f5006a Cleanup: newlines in error prints 2018-11-23 07:29:21 +11:00
Brecht Van Lommel
3fb77591f4 UI: fix wrong icons after recent update.
This cleans up old icon .data files that were still hanging around,
but not in the SVG anymore.
2018-11-22 21:27:20 +01:00
Brecht Van Lommel
a7f9b57983 UI: activate tabs immediately on press, and drag to quickly cycle through. 2018-11-22 21:10:12 +01:00
Brecht Van Lommel
14b60c620f Fix T55535: N panel in sequencer breaks display of preview.
This preview region should not have been part of region overlap.
2018-11-22 21:03:50 +01:00
Clément Foucault
f30271e3d4 Image Empties: Potential Fix for T57696
So far this makes a new pass for image empties that does not write to the depth buffer.

Todo:
- Sort empties using `DRW_pass_sort_shgroup_z`.
- Calculate correct bounding boxes.
- fix bounding box memory leak.

Reviewers: fclem

Differential Revision: https://developer.blender.org/D3922
2018-11-22 18:31:03 +01:00
Clément Foucault
e16ef56a0d Fix T57980: Assert failure in draw manager when opening file 2018-11-22 16:55:29 +01:00
Sergey Sharybin
ce6d1e890c Cleanup: Use proper module prefix in function names 2018-11-22 16:35:12 +01:00
Antonioya
76ea125c2e GP: Keep activated the same Brush in toolbar 2018-11-22 16:26:39 +01:00
Sergey Sharybin
6a3451fe4e Depsgraph: Ensure solver cleanup order
Ensure that pose cleanup is never run before all IK solvers are finished.
2018-11-22 16:17:18 +01:00
Sergey Sharybin
60857cdb79 Depsgraph: Cleanup, line wrapping 2018-11-22 16:17:18 +01:00
Sergey Sharybin
447cfdca01 Fix missing newline in error print 2018-11-22 16:17:18 +01:00
Sergey Sharybin
a20d350dd5 Depsgraph: Cleanup, make it easier to create relations with flags 2018-11-22 16:17:18 +01:00
Clément Foucault
3d77517ad5 Eevee: Reflection Plane: Small UI fix and invert facing fading 2018-11-22 16:15:14 +01:00
Clément Foucault
3280adc0aa Fix T57977: VSE: Markers lines get highlighted when using box select
Was caused by a missing uniform.
2018-11-22 16:15:14 +01:00
Brecht Van Lommel
e815784aa6 Keymaps: make click event detection use a larger distance threshold.
Previously this was hardcoded to 2 pixels, which is too low for tablets and
not taking into account DPI. Now we set it equal to the tweak threshold, so
you either always do click or drag.

The default distance of 10 pixels may be quite far for something to be
considered a click, and we'll need to see how well it works. But I find this
to help a lot when selecting vertices in quick succession.

Thanks to Julien for spotting this.
2018-11-22 14:33:07 +01:00
Philipp Oeser
783b0809b6 Fix T57578: Vertex Connect crash with less than two verts selected 2018-11-22 13:28:53 +01:00
Antonioya
a0d7d3187b GP: Cleanup old TODO comments
These ToDo were ported when 2.7x code was ported to 2.8, but now they are not needed.
2018-11-22 10:44:06 +01:00
William Reynish
dcf4bf8db9 Icons: use newly added icons 2018-11-22 15:31:19 +11:00
Campbell Barton
4b9d242be5 Merge branch 'master' into blender2.8 2018-11-22 15:16:45 +11:00
Campbell Barton
c66570f519 Fix T57989: File loaded as startup
The file contents was used to check if the file was a startup file.

Now pass in an argument from startup loading code instead.
2018-11-22 15:06:14 +11:00
Campbell Barton
1844ccd521 UI: disable screen edges for full-screen areas 2018-11-22 12:34:15 +11:00
Campbell Barton
3e625a7a06 UI: hide shortcut from gizmo tip when none found 2018-11-22 12:19:07 +11:00
Pablo Vazquez
fb8aa611d0 UI: String tweak for "UnLock" and Un-Mute in VSE 2018-11-22 02:02:11 +01:00
Campbell Barton
1a4595618c Fix factory-settings using stale preferences
We need to reload defaults on factory startup because the defaults
now have preferences that may have changed.
2018-11-22 10:51:27 +11:00
Bastien Montagne
ce137699f9 Cleanup: Move debug warning message about panels missing category from drawing code to registering code.
In drawing it was pretty stupid (since we did not know *which* panels were
affected), and really, really annoyingly noisy!
2018-11-21 22:03:24 +01:00
Campbell Barton
7d985fcc1b 3D View: move x-ray toggle to operator
Allows binding to a key.
2018-11-22 06:44:32 +11:00
Brecht Van Lommel
0a3cf08364 Keymaps: take into account DPI for tweak/drag/pie thresholds.
The intention is to fix a too low default threshold on high DPI screen.
Users with high DPI screens that have increased the threshold to fix this
or liked the lower threshold will need to lower it again.

This is still somewhat of a guess, ideally this would be based on the
physical distance travalled, and maybe different per type of input device.
However we do not have access to this information, and hope this gives a
better default.
2018-11-21 19:31:20 +01:00
Campbell Barton
f5df1efa2f Cleanup: warnings 2018-11-22 05:26:18 +11:00
Antonioya
146f6cea55 GP: Set Vertex opacity default for templates 2018-11-21 19:19:10 +01:00
Pablo Vazquez
79ef6f30f0 UI: Use primary gizmo color for loopcut edge pre-select.
Instead of hardcoded pink.
2018-11-21 19:14:56 +01:00
mano-wii
2ab798feb0 transform_snap_object: Use the texture space bound box to test the need to snap to meshes in edit mode.
Before a value for bound box was stored in a local cache.
2018-11-21 14:38:56 -02:00
Antonioya
2261aed031 GP: Init new Eraser Hard 2018-11-21 18:04:08 +01:00
mano-wii
96e39af948 transform_snap_object: Fix snap to curves.
Use `BKE_curve_texspace_get` instead `BKE_curve_boundbox_get`.
The snap to curve, even out of edit mode, is not done on the displist. So test a boundbox that covers the points seens in edit mode.
2018-11-21 13:07:51 -02:00
Philipp Oeser
cec83e92e6 Fix T57884: Triangle count is incorrect when above around 2 billion
Maniphest Tasks: T57884

Differential Revision: https://developer.blender.org/D3962
2018-11-21 16:34:32 +01:00
Sergey Sharybin
d3e686d61e Depsgraph: Update comment 2018-11-21 16:29:22 +01:00