Campbell Barton
f2df520698
Preferences: disable reading preferences for regular file loading
...
Although the Auto-Run Python Scripts flag isn't used,
this is still a security risk since exclude paths list is.
Further this isn't what users would expect when loading a file &
only some preferences were being loaded so it's not useful.
2019-07-12 15:04:36 +10:00
Jacques Lucke
3c4f6399d9
Fix T66628: "Auto Saved Modified Image" not working
...
Reviewer: brecht
2019-07-11 12:06:21 +02:00
Campbell Barton
de203b26c2
Cleanup: quiet warning
2019-07-11 09:22:42 +10:00
Sergey Sharybin
a6ae53ef49
Fix strict compiler warning
2019-07-10 15:03:57 +02:00
Brecht Van Lommel
8d8ebc73b6
Splash: put version number in top right, refactor code for easier changes
2019-07-10 14:56:19 +02:00
Brecht Van Lommel
7a431d40e3
Fix splash screen margins not being even and buttons not centered
2019-07-10 14:51:14 +02:00
Dalai Felinto
d3e1782abc
Fix T66530: set_stereo_3d (pageflip) exists Blender
...
Note: Although this fixes the issue (as in, it prevents a crash)
BKE_reports are not working because of CTX_wm_window_set().
Reviewers: campbellbarton
Differential Revision: https://developer.blender.org/D5210
2019-07-10 09:11:33 -03:00
Sergey Sharybin
d3b42fc167
Fix T66626: Crash when using JACK audio device
...
Restore some context overrides which were originally happening in 2.79.
Made it a bit more paranoid, by storing old values and restoring them
afterwards, so the context is not being changed at the end of the function.
2019-07-10 11:58:37 +02:00
Brecht Van Lommel
db45aaafab
Fix T61474: laggy interaction on Windows/NVIDIA when gizmos are visible
...
Thanks to Sergey and Clément for helping to track this down.
2019-07-09 14:03:25 +02:00
Campbell Barton
084d545202
Cleanup: use BKE_packedfile prefix for function names
...
Avoid ambiguity with terms check & compare.
2019-07-07 23:57:35 +10:00
Campbell Barton
9e12d762a2
Fix crash running an operator from a popup,
...
Cell fracture redraw option was crashing.
Change operator popup behavior to close the UI before executing
since the operator may perform operations which change/remove the UI.
2019-07-07 22:35:52 +10:00
Campbell Barton
cd6b49f995
Cleanup: spelling
2019-07-07 15:38:41 +10:00
Campbell Barton
a3e2076bc4
Docs: update window/screen introduction
...
Include global region/areas.
2019-07-07 15:22:16 +10:00
Campbell Barton
15cc4c4cb3
Cleanup: use doxy comments for WM_types.h
2019-07-05 21:42:21 +10:00
Brecht Van Lommel
0a3e73a91f
Fix T65899, T66314, T61808: various issues appending workspaces
...
This fixes crashes, wrong names and inability to append workspaces in
edit mode. We now bypass the append operator so we can easily return
a datablock pointer and work in any mode.
2019-07-03 20:44:04 +02:00
Brecht Van Lommel
466cc3fbe4
Fix invalid state after calling append/link operator without any items
2019-07-03 20:44:04 +02:00
Campbell Barton
163996b681
Cleanup: move comments onto own lines to avoid breaking lines
2019-07-02 22:17:22 +10:00
Campbell Barton
10b694877b
Cleanup: spelling
2019-07-02 18:05:10 +10:00
Brecht Van Lommel
31b2c4c10a
Fix T60289: changing gizmo properties causes excessive redraws
2019-07-01 16:15:07 +02:00
Brecht Van Lommel
2698544db2
Fix T66262: slow preview icon loading
2019-07-01 15:36:02 +02:00
Campbell Barton
fc10a5cf9e
Fix T66229: gizmos overlap when switching modes
2019-07-01 13:51:13 +10:00
Campbell Barton
f021635bd5
WM: support window context override
...
This makes it possible to take a screenshot from any window in Python.
2019-06-29 18:21:53 +10:00
Campbell Barton
56d52466ef
Fix message subscriber using the wrong workspace
2019-06-28 19:38:44 +10:00
Campbell Barton
f35ef57c8c
Revert "Fix invalid area tool being set from message passing"
...
This reverts commit 9ec8887599 .
Causes assert when selection changes modes.
2019-06-28 19:38:44 +10:00
Campbell Barton
9bcab8050f
Fix T63694: Crash using tool gizmos with multiple windows
...
Gizmo group types now store a user count so they aren't unlinked
while other tools are using them.
The tool system now works with multiple windows.
2019-06-28 18:22:53 +10:00
Campbell Barton
37d5d10849
Fix T66200: Changing workspaces / modes doesn't update tools
...
Changing the workspace or mode from one window may need to change the
active tool in another window since two different workspaces
may share an object.
2019-06-28 17:43:14 +10:00
Campbell Barton
9ec8887599
Fix invalid area tool being set from message passing
...
This wasn't working with multiple windows,
WM_toolsystem_do_msg_notify_tag_refresh could use a workspace
from a different window to the screen that owned the area.
Instead of fixing, remove these since they aren't needed anymore
since changing modes now refreshes the tool system.
2019-06-28 17:38:42 +10:00
Campbell Barton
83d92f55b8
Fix error for tools that share gizmo types doubling up gizmos
...
Introduced in recent commit c93af8529d
2019-06-28 11:27:11 +10:00
Campbell Barton
219a10e46a
Cleanup: clarify WM_gizmoconfig function naming
2019-06-27 19:58:59 +10:00
Campbell Barton
c93af8529d
Tool System: don't unlink gizmos when changing tools
...
Needed for tools not to unlink each other with multiple windows.
2019-06-27 18:48:45 +10:00
Campbell Barton
3366b333e4
Fix switching tools with multiple windows & gizmos
...
The gizmo would only added if the gizmo type wasn't already linked.
2019-06-27 17:22:05 +10:00
Campbell Barton
d3f9a722fe
Cleanup: error in last commit
2019-06-27 16:48:48 +10:00
Campbell Barton
4758b4033e
Cleanup: remove unused context check in toolsystem_ref_link
...
Also comment corrections.
2019-06-27 16:40:25 +10:00
Campbell Barton
545610d3aa
Cleanup: un-wrap lines in headers, use doxy comments
2019-06-26 12:44:22 +10:00
Bastien Montagne
c8034993ff
Fix (unreported) call to wrong func in gizmos' keymaps code.
...
Found while investigating T65963.
2019-06-25 16:08:56 +02:00
Campbell Barton
1c94030238
Fix T65824: Span property ignored in mesh.fill_grid
...
The fix for T60777 caused this operator not to work from Python.
Add a repeat_last flag for operator execution.
2019-06-24 21:41:17 +10:00
Campbell Barton
829561c03c
Fix T66071: Navigation tooltip shows outside of 3D view
...
Clear gizmo highlight when the cursor leaves the region.
2019-06-24 17:06:44 +10:00
Campbell Barton
dd7e1c23ab
Cleanup: use doxy groups
2019-06-22 19:00:09 +10:00
Campbell Barton
2642ba13b4
GPU_matrix: Add GPU_matrix_unproject_precalc
...
Pre-calculates values needed for unprojecting to avoid
a matrix invert and extracting projection matrix dimensions for
every call to GPU_matrix_unproject.
Use for gizmo selection drawing.
2019-06-22 13:21:30 +10:00
Harley Acheson
a887e1ea43
UI: Restore minimized windows when raising them
...
Separate temporary windows, like Preferences, should be restored (if minimized) before bringing to top
Differential Revision: https://developer.blender.org/D5105
Reviewed by Brecht Van Lommel
2019-06-21 08:07:12 -07:00
Campbell Barton
2cad071761
Fix dashed line drawing
...
The dash_factor wasn't being set in many places, having the graph editor
open for eg, caused box-select in the 3D view not to show dashes.
2019-06-21 08:29:08 +10:00
Sergey Sharybin
a4c907af77
Fix T65806: Can't Access bpy.context inside Application Timer
...
Sound synchronization was messing a bit with the context, for, actually,
no reason.
Use more direct queries rather than relying on a context there.
2019-06-20 10:28:52 +02:00
Brecht Van Lommel
11c9702dd4
Fix T65902: save all modified images should not try to save .psd files
...
We can't save these without data loss, so don't try to do this.
2019-06-19 15:04:05 +02:00
Campbell Barton
e85635b882
Cleanup: comment spelling
2019-06-17 08:05:58 +10:00
Brecht Van Lommel
40a8c49088
Revert new grease pencil cursor for paint modes
...
This reverts commit a412f49e75 and 873c756e5d . The change was only
supposed to affect grease pencil, but also changed the cursor for sculpt mode,
where it's not clearly visible. Since this has not been quickly resolved I'm
reverting the commit.
Ref D5036.
2019-06-16 20:29:22 +02:00
Brecht Van Lommel
087a489867
Cleanup: simplify GHOST cursor API, no functional changes
2019-06-16 19:58:26 +02:00
Campbell Barton
aaf65749e9
WM: Remove Cmd-LMB for RMB emulation for apple
...
The default apple keymap now uses Cmd as Ctrl,
so the key isn't free to emulate RMB.
2019-06-15 13:38:43 +10:00
William Reynish
1e8b007d50
Set Node Editor to use Box Select tool by default
...
This makes Shift and Ctrl work properly to extend and subtract selections.
This also moves Cut Links to Ctrl-RMB, which doesn't conflict with the selection tool.
2019-06-13 14:41:21 +02:00
Bastien Montagne
27537daee1
Clear Datablocks Preview: add some more generic options.
...
Sometimes one may want to nuke all previews altogether, running the
operator for all eight individual ID types would be tedious then...
2019-06-13 11:11:32 +02:00
Campbell Barton
75958326ad
WM: re-enable auto-save after loading the users preferences
...
Minor change, only apples when loading factory settings,
then reverting to saved.
2019-06-12 17:53:18 +10:00