Philipp Oeser
474a145d78
Fix T55349: crash adding paint slot when object is on hidden layer
...
use better poll and get ob with 'ED_object_active_context' (instead of
'CTX_data_active_object')
Reviewed By: campbellbarton
Differential Revision: https://developer.blender.org/D3467
2018-06-11 09:12:29 +02:00
Campbell Barton
d0a16772ad
WM: add macros to check mouse button/gesture/wheel
...
Use to check click/drag,
fixes issue with mouse wheel triggering pie menu.
2018-06-10 12:08:09 +02:00
Campbell Barton
2e14b7fb97
RNA: remove Layout.introspect
...
This was added as an experiment to extract information for docs
but this was never all that useful for its intended purpose.
2018-06-09 18:55:51 +02:00
Campbell Barton
83cb34ccd1
Cleanup: unused functions
2018-06-09 18:47:39 +02:00
Bastien Montagne
638de72277
Cleanup: remove some G.main usages.
2018-06-09 15:17:04 +02:00
Campbell Barton
fb565ddb68
Cleanup: trailing space in RNA
2018-06-09 14:40:09 +02:00
Campbell Barton
56a47e58f4
Cleanup: style
2018-06-09 14:30:32 +02:00
Campbell Barton
5165d62931
WM: correct recent change to click/drag detection
...
fb1915d870 - caused click/drag events not to be detected.
Now check a key is a mouse or keyboard event.
2018-06-08 22:17:21 +02:00
Campbell Barton
1857823839
WM: fix panel drag event handling
2018-06-08 18:58:41 +02:00
Campbell Barton
2dc7555522
WM: fix node link & background drag
2018-06-08 18:55:47 +02:00
Campbell Barton
fb1915d870
Prevent wheel causing spurious click/drag events
2018-06-08 14:09:45 +02:00
Bastien Montagne
7b6af843c2
Cleanup: getting rid of G.main.
...
Sometimes one needs a *lot* of changes for a single G.main... :/
2018-06-08 12:17:22 +02:00
Campbell Barton
dff8a7db73
Fix regression in grease pencil drawing
...
Drag events finished drawing early.
2018-06-08 10:52:49 +02:00
Campbell Barton
20367898fe
Fix T55301: Transform confirm on release fails w/ MMB
2018-06-08 08:48:21 +02:00
Campbell Barton
e3fe8ce00b
WM: backport event/keymap type util from 2.8
2018-06-08 08:46:31 +02:00
Campbell Barton
a25c11fd8d
Cleanup: trailing space
...
Remove from blender/nodes, collada, blenfont & render.
2018-06-08 08:07:48 +02:00
Campbell Barton
009c38df53
Fix recently added drag events closing menus
2018-06-08 08:01:43 +02:00
Campbell Barton
8f49299134
WM: fix drag events applying after release
2018-06-07 20:39:17 +02:00
Bastien Montagne
80dcb2ced8
Cleanup: typo, and 0 -> false for booleans.
2018-06-07 18:36:16 +02:00
Campbell Barton
d274c64d22
WM: add support for drag events
...
This allows for a single key to be mapped to both release and drag,
useful for pie menus to share a key with a different action.
2018-06-07 17:06:01 +02:00
Campbell Barton
df4525d1d9
Fix key repeat events resetting the click timer
2018-06-07 16:52:40 +02:00
Campbell Barton
863e395ad8
Cleanup: trailing space for windowmanager
2018-06-07 16:43:52 +02:00
Campbell Barton
e19686a35a
WM: check for release instead of not pressed
...
Makes reasoning about events more predictable.
2018-06-07 16:19:59 +02:00
Bastien Montagne
8a2db3ed21
Fix crash due to missing init of new bAnimContext bmain member in transform code.
...
From own previous G.main-busting commit.
2018-06-07 15:38:31 +02:00
Campbell Barton
6242940639
Fix double free in dyntopo-sculpt mode undo
2018-06-07 14:54:09 +02:00
Campbell Barton
5330f1c5d1
Fix sculpt assert on initialization
2018-06-07 13:39:49 +02:00
Bastien Montagne
b3a7a75a26
Cleanup: remove moar G.main usages.
...
Notes:
* Really need to address RNA setters case, end up adding way too much
G.main here these days... :/
* Added Main pointer into bAnimContext, helps a lot in anim code ;)
2018-06-07 12:48:29 +02:00
Bastien Montagne
54f9cd5283
Cleanup: Nuke moar G.main usages...
2018-06-07 11:11:46 +02:00
Campbell Barton
409cfba1a3
Python API: Initial 'imbuf' API
...
Support only basic operations new/load/write & resize.
Add now so we can extend as needed & more easily accept patches.
2018-06-07 08:00:13 +02:00
Campbell Barton
0e68751b8a
Fix BLI_ASSERT_UNIT macro w/ non-finite numbers
2018-06-06 19:49:27 +02:00
Aaron Carlisle
70b705b5fe
UI: NLA: Influence should be a factor (RNA)
2018-06-06 12:09:13 -04:00
Sybren A. Stüvel
de702a4803
Alembic export: only free duplilists when not NULL
2018-06-06 15:54:03 +02:00
Campbell Barton
bfbd85e9d6
Fix error using freed bmain
...
Regression in 481cdb08ed
2018-06-06 09:36:50 +02:00
Bastien Montagne
1628a6858e
Fix crash in owmn previous commit.
2018-06-05 17:54:53 +02:00
Bastien Montagne
481cdb08ed
Cleanup: use new accessors to blendfile path (Main.name).
2018-06-05 16:33:46 +02:00
Bastien Montagne
1d97e948d2
Cleanup: add hleper functions to get filepath from Main.
...
This helps making things clearer and cleaner. Func returning filepath of
G.main is separate, so that we can easily track its usages, and
hopefully deprecate it at some point. Though that usage of G.main is
likely the less evil one, you nearly always want current blendfile path
in those cases anyway.
2018-06-05 16:33:46 +02:00
Campbell Barton
6fee105943
Cleanup: correct menu name
2018-06-04 19:09:52 +02:00
Campbell Barton
58e8c71cbd
Cleanup: strip ghost trailing space
2018-06-04 18:47:57 +02:00
Campbell Barton
747534af00
Particle System: move data creation into RNA update
...
Relying on evaluation to initialize data causes issues w/ 2.8.
2018-06-04 17:55:19 +02:00
Bastien Montagne
7277f8973b
Fix T55260: load Text File with Python from GUI Button results in 0 User
...
Let's just always ensure user_one when loading text from operator...
2018-06-04 12:46:59 +02:00
Campbell Barton
44505b38df
Cleanup: strip trailing space in editors
2018-06-04 09:31:30 +02:00
Campbell Barton
6654e109df
Cleanup: strip trailing space in GPU module
2018-06-04 09:09:12 +02:00
Campbell Barton
7719c11006
Cleanup: strip trailing space in Python module
2018-06-04 08:54:40 +02:00
Campbell Barton
854db8951b
Cleanup: strip trailing space in bmesh module
2018-06-04 08:49:47 +02:00
Campbell Barton
38eb91c848
Cleanup: correct variable name, doxy sections
2018-06-03 17:06:13 +02:00
Campbell Barton
335b193336
Cleanup: add argument names to screen callbacks
2018-06-03 15:11:31 +02:00
Campbell Barton
6221180963
Cleanup: remove blockscale & handler
...
Replace with link_flag, currently unused,
needed for dynamic space types which is planned.
2018-06-03 11:12:50 +02:00
Dalai Felinto
fec317de8d
--debug-gpu-shader: Dump GLSL shaders to disk
...
This is really convenient for development. Either for profiling the
generated shaders or to check if the generated code is correct.
It writes the shaders to the temporary blender session folder.
(ported over from blender2.8)
2018-06-02 20:29:27 +02:00
Campbell Barton
c140f11946
Cleanup: warning
2018-06-02 11:58:01 +02:00
Campbell Barton
75fc1c3507
Cleanup: trailing whitespace (comment blocks)
...
Strip unindented comment blocks - mainly headers to avoid conflicts.
2018-06-01 18:19:39 +02:00