Brecht Van Lommel
aa41c17d32
UI: add option for permanently allowing execution of scripts to dialog.
...
Ref T57197
2018-11-02 17:34:50 +01:00
Pablo Vazquez
d9dd20bcb3
UI: Rename Save User Settings operator to Save User Preferences.
...
The term Settings is not used anywhere, plus the menu entry and editor use the word Preferences.
2018-11-02 03:08:58 +01:00
Pablo Vazquez
2d6a10615d
UI: Typo
2018-11-02 01:19:34 +01:00
Campbell Barton
28f3f4da12
Cleanup: style
2018-11-02 07:44:26 +11:00
Brecht Van Lommel
c2bcde5c28
UI: show blocking popup when auto execution of scripts is disabled.
...
This is important information, and it was easily missed at the top/bottom of
the screen.
Ref T57197.
2018-11-01 19:44:03 +01:00
Brecht Van Lommel
77c126dd4c
Fix T57553: Python operator popup size does not follow UI scale and DPI.
...
Make it the convention to multiply by scaling factor inside the function, so
Python scripts that didn't add DPI scale start working correctly.
2018-11-01 12:33:27 +01:00
Sergey Sharybin
48f9e24f0c
Enable dependency graph update while rendering
...
It is a whole point of copy-on-write to make such updates safe.
If this causes an issues, we need to solve them.
Fixes T57302: Viewport (selection etc) not updated while rendering
2018-10-29 12:16:18 +01:00
Campbell Barton
4e6f5fabd4
Fix topbar UI being lost on undo w/ mode change
2018-10-29 20:20:16 +11:00
Dalai Felinto
009bfbf408
Fix crash when switching to Scripting workspace
...
Crash introduced on: a4a6ed1ba3 .
2018-10-26 15:33:20 -03:00
Campbell Barton
a4a6ed1ba3
WM: default tool was being set for space types w/o tools
...
Add mask for space types so we don't accidentally add tools
for space types that don't support it.
2018-10-26 10:46:35 +11:00
Campbell Barton
6c86e1a781
PyAPI: draw handlers now store args in the capsule context
...
Was using the handlers custom-data which crashes
when Blender frees the screen data before Python removes the handler.
2018-10-26 09:30:17 +11:00
Campbell Barton
6d49b623e2
WM: space, region type filtering for paint cursor
...
Avoids calling poll on mouse-move for unrelated space/region types.
2018-10-25 16:06:47 +11:00
Campbell Barton
f2c77558b4
Merge branch 'master' into blender2.8
2018-10-25 15:19:35 +11:00
Campbell Barton
2046817c08
WM: minor changes to cursor API
2018-10-25 15:18:24 +11:00
Jacques Lucke
650cdc6b2d
Drag & Drop: Support Open/Link/Append when dropping .blend file
...
When a .blend file is dropped into Blender a small menu opens.
In that menu the user can choose between three options: Open, Link and Append.
Reviewers: brecht
Differential Revision: https://developer.blender.org/D3801
2018-10-22 17:18:42 +02:00
Bastien Montagne
0e70feab22
Merge branch 'master' into blender2.8
...
Conflicts:
source/blender/windowmanager/intern/wm_init_exit.c
2018-10-22 10:55:16 +02:00
Bastien Montagne
32d66889e9
Tentative fix for T57066: Daily build of Blend 2.79 crashes on OSX Mojave.
...
Looks like we need to explicitly set i18n language to default value on
some OSs... Unless that 'need to create new translated-name IDs in
versionning code for startup file' situation is really seldom.
Anyway, hopefully that will fix the crash.
2018-10-22 10:39:57 +02:00
Campbell Barton
84eff5c126
Merge branch 'master' into blender2.8
2018-10-22 15:13:43 +11:00
Campbell Barton
24162c977c
Prevent G.fileflags changes when WM_OT_save_mainfile() is called from script
...
This is to solve an issue where a blend file could be compressed
unbeknownst to the artist. This happened in the following situtation:
- Artist edits an uncompressed blend file.
- Some script saves a compressed blendfile to a separate location.
- When the artist saves the file (s)he is editing (File>Save, or Ctrl+S),
it was silently compressed.
Cherry pick from: cd3b313d5f
2018-10-22 15:08:26 +11:00
Campbell Barton
71466cac1e
Merge branch 'master' into blender2.8
...
Reverts: 92fd931e53
2018-10-22 14:59:12 +11:00
Campbell Barton
64a6c78a9a
Fix T57328: 'Save As Copy' prints warning
2018-10-22 14:51:06 +11:00
Campbell Barton
16882ca535
Image Space: make 'UV Edit' a separate mode
...
This is needed for splitting UV into its own editor, see: T54744
2018-10-19 20:15:18 +11:00
Jacques Lucke
eba1b0487c
Event System: don't invoke operator that should only be executed
...
Problem was that the event was not `NULL` even though the `context` is `WM_OP_EXEC_*`.
I noticed this problem when dropping .blend files into Blender.
Instead of only executing `WM_OT_open_mainfile`, it was invoked (opening a file selector).
The `wm_operator_invoke`, which also executes operators, always invokes operators when `event != NULL`. So setting `event` to `NULL` tells `wm_operator_invoke` not to invoke but to execute the operator.
Reviewers: brecht
Differential Revision: https://developer.blender.org/D3799
2018-10-16 11:48:12 +02:00
Sybren A. Stüvel
cd3b313d5f
Prevent G.fileflags changes when WM_OT_save_mainfile() is called from script
...
This is to solve an issue where a blend file could be compressed
unbeknownst to the artist. This happened in the following situtation:
- Artist edits an uncompressed blend file.
- Some script saves a compressed blendfile to a separate location.
- When the artist saves the file (s)he is editing (File>Save, or Ctrl+S),
it was silently compressed.
2018-10-12 10:24:25 +02:00
Campbell Barton
e7218e7049
Cleanup: naming
...
- immAttrib* -> immAttr*
- immSkipAttrib -> immAttrSkip
Term 'attr' is a convention for GPU module.
2018-10-09 11:01:50 +11:00
Brecht Van Lommel
2ac65f6153
UI: new icon set by Andrzej Ambroz.
...
This is a monochrome icon set, with a more modern look and icons for
various features that did not have a proper icon before.
2018-10-08 19:46:00 +02:00
Campbell Barton
143ece7199
Tool System: initial support for UV-sculpt
...
This currently conflicts with the UV-sculpt toggle being manually set,
ideally this would work more like other paint modes in Blender.
2018-10-05 13:13:30 +10:00
Campbell Barton
0b98a679bb
UI: rename Border Select -> Box Select
...
See: T56648
2018-10-05 10:29:31 +10:00
Brecht Van Lommel
33d89e482b
Revert "UI: start maximized on X11 if possible, like other platforms."
...
This reverts commit ac0dfcced3 .
2018-10-04 18:52:55 +02:00
Campbell Barton
51d6d1d8fb
WM: fix non-undo operators stealing redo panel
...
Non-undo actions would move the redo panel into a different space.
2018-10-04 15:26:36 +10:00
Campbell Barton
165a83345a
UV: border/circle select/deselect support
2018-10-04 15:14:00 +10:00
Campbell Barton
4469ca7f3e
UV: rename circle select operator
...
Word order was swapped from all other operators.
2018-10-04 13:21:21 +10:00
Campbell Barton
8ba4dd389b
Fix gizmo tooltips ignoring preference
2018-10-03 08:20:07 +10:00
Campbell Barton
dce12293d0
WM: generalize tool property initialization
...
Prepare for storing different kinds of properties in tools.
2018-10-02 15:39:20 +10:00
Brecht Van Lommel
ac0dfcced3
UI: start maximized on X11 if possible, like other platforms.
2018-10-01 17:29:48 +02:00
Brecht Van Lommel
f40ff62647
Fix app template __init__.py not running without a userpref.blend.
2018-10-01 17:16:43 +02:00
Campbell Barton
8ee4fd0bdf
Cleanup: style
2018-10-01 09:20:31 +10:00
Sergey Sharybin
e26620337a
Merge branch 'master' into blender2.8
2018-09-28 09:47:02 +02:00
Sergey Sharybin
81f68bbba1
Fix compilation errors and warnings with Clang-6
2018-09-28 09:46:12 +02:00
Brecht Van Lommel
28324143c4
UI: draw mono icons with button type text color, instead of area text color.
2018-09-27 18:39:50 +02:00
Sergey Sharybin
4de1e673a4
Merge branch 'master' into blender2.8
2018-09-27 14:51:33 +02:00
Campbell Barton
250a377592
Partial revert of recent toolsystem defaults
...
- Use ctrl for de-select since we may want to use shift for extend.
- Use cursor tool by default,
it's agreed lasso select isn't accessible from a shortcut by default.
2018-09-27 21:19:45 +10:00
Brecht Van Lommel
2a63e062b0
Tests: add --no-window-focus to open window without focus.
...
This is useful to run OpenGL tests while continuing to do other tasks
without windows constantly popping up in the foreground.
2018-09-27 12:21:48 +02:00
Campbell Barton
ed83075402
Tool System: set a default tool for each mode
...
Also clear tools for the default startup file
so changes to defaults apply to new files.
2018-09-27 11:20:27 +10:00
Brecht Van Lommel
342e73f90f
Spelling fixes in comments and descriptions (2.8 changes), patch by luzpaz.
...
Differential Revision: https://developer.blender.org/D3719
2018-09-24 18:48:29 +02:00
Brecht Van Lommel
253dce07d7
Merge branch 'master' into blender2.8
2018-09-24 17:42:52 +02:00
Brecht Van Lommel
0cff044d84
Spelling fixes in comments and descriptions, patch by luzpaz.
...
Differential Revision: https://developer.blender.org/D3719
2018-09-24 17:28:40 +02:00
Brecht Van Lommel
8dfdd248b5
Fix T56895: crash loading template with Load UI unchecked.
2018-09-24 15:48:50 +02:00
Brecht Van Lommel
495c7463fc
UI: fractional DPI scaling of splash, instead of always 1x or 2x.
2018-09-21 10:46:08 +02:00
Brecht Van Lommel
edb6f192ee
UI: make new icon consistent with other places.
2018-09-19 16:19:26 +02:00