Antony Riakiotakis
a597a380bb
Properly fix T45477
...
Code was actually skipping setting color selection indices and previous
commit actually broke mask selection in texture painting.
All should work now.
2015-07-19 18:35:09 +02:00
Antony Riakiotakis
8f1c1ef3a9
Fix T45477 wrong edge selection.
...
Caused by own changes to framebuffer selection code, code was not
packing color ids correctly.
2015-07-19 18:04:21 +02:00
Campbell Barton
6568b6d1cd
Fix T45456: Error's in splash don't restore cursor
2015-07-16 17:28:20 +10:00
Campbell Barton
01a8216a4b
Disable check for recent-files.txt existing
...
slows startup on remote, network fs... etc.
2015-07-16 17:15:00 +10:00
Antony Riakiotakis
13c39e90b3
VBO offscreen selection drawing, cdderivedmesh
...
Get rid of legacy drawing, it's only used for selection,
in which case we can prepare a temporary color buffer and draw
at once. Code is not complete here because we still redundantly
set the draw color in the draw function and don't ommit hidden
faces automatically. Still it works 100% without immediate mode
now.
2015-07-15 18:50:02 +02:00
Campbell Barton
655f498ca7
Cleanup: headers (wm)
2015-07-14 22:29:31 +10:00
Campbell Barton
b7c42ef93e
Cleanup: use ascii as suffix (as with utf8)
2015-07-14 09:17:00 +10:00
Bastien Montagne
c1a5e6b2fd
Shortcut-to-string converter: add 'dbl-' in front of key when expecting a double-click.
...
I think this is the only Keymap value we really need to handle here...
2015-07-12 21:39:59 +02:00
Campbell Barton
5b0f674e09
Fix crash in redraw timer
...
Was modifying wrong regions flag, that could also be NULL.
2015-07-13 00:21:08 +10:00
Campbell Barton
8d48f8e0b0
Add ability for redraw timer to run for fixed time
...
Also avoid accessing context vars in timer loop.
2015-07-12 22:57:35 +10:00
Campbell Barton
114e7eaa09
Add WM_framebuffer_to_index_array
...
Convert buffer to index in one loop,
also minor cleanup to backbuf/selection functions.
- Use IMB_rectcpy instead of inline pixel copy.
- Redundant WM_framebuffer_to_index call.
2015-07-11 23:21:41 +10:00
Bastien Montagne
1ace3272aa
Walk mode: Add modal shortcuts in UI (header help message).
2015-07-03 15:55:22 +02:00
Bastien Montagne
9133f5a357
Cleanup: 'return' parameters to the end of functions, and use 'r_' prefix for them.
2015-07-03 15:55:22 +02:00
Bastien Montagne
947cdb3acd
UI: add ability to access/generate 'shortcuts strings' of modal keymaps.
...
We already had that for global keymaps (used e.g. to generate shortcuts for menu entries),
but this wasn’t possible for modal keymaps yet (e.g. help message in header during
transforms and other modal operation).
This commit only adds needing background code, it does not change anything from user PoV.
Modal operators will be updated to use it in comming weeks.
Thanks to Campbell for revisions & suggestions. :)
Differential Revision: https://developer.blender.org/D780
2015-07-03 15:55:22 +02:00
Antony Riakiotakis
00808eb39a
Make OpenGL debug contexts a flag --debug-gpu instead of a compile time
...
option.
This makes sense, since contexts get created at runtime, there is little
reason to require recompilation for this.
Only works on linux currently, will be doing more OSs later
2015-07-02 19:30:17 +02:00
Sergey Sharybin
84b8ce32a4
Fix crash in background mode after the NDof deadzone commit
2015-07-02 15:59:12 +02:00
Campbell Barton
45b2218341
User Prefs for NDOF dead-zone
...
D1344 with edits
2015-07-01 13:45:19 +10:00
Antony Riakiotakis
7ecb199d86
Fix stupid mistake
2015-06-23 12:58:33 +02:00
Antony Riakiotakis
cb5aecdae9
Code cleanup: Use enums for redraw timer operator, makes things more
...
readable
2015-06-23 12:53:33 +02:00
Bastien Montagne
1cf1f48893
Cleanup: fix mismatch in printf formating (int/unsigned int).
...
Noisy and annoying with new gcc5...
2015-06-19 12:31:25 +02:00
Antony Riakiotakis
05b2ab1109
Fix typo in previous commit
2015-06-15 15:40:40 +02:00
Campbell Barton
9090d64544
Fix T45060: Brush size snaps back to default max
2015-06-15 22:27:52 +10:00
Dalai Felinto
54b824106b
Multi-View: Some Stereo 3D modes require a special drawing all the time
...
some 3d methods change the window arrangment, thus they shouldn't
toggle on/off just because there is no 3d elements being drawn
The optimized solution would be to draw only the left eye in those
cases, but there is some issue going on with that, so this commit will
do for now.
2015-06-13 11:29:05 -03:00
Joshua Leung
7bac8348bf
Fix scons compilation
2015-06-13 17:40:50 +12:00
Campbell Barton
a9d3f663d3
UI: Use numselect for redo-popup (for move layers)
2015-06-13 00:39:19 +10:00
Campbell Barton
850bb80aef
Fix for building without audiospace
2015-06-12 15:29:56 +02:00
Antony Riakiotakis
6c44265bc9
Merge all changes to blenderplayer from gooseberry branch:
...
* Allows sound playback for movies
* Allow play-pause with space button
* Allow displaying a position indicator with the I button
2015-06-12 12:12:24 +02:00
Bastien Montagne
520fb5c8cd
Fix T45041: (2.75RC) blender crashes when I choose 'Refresh DataBlock Previews'.
...
Not sure where this sneaked in, but we for sure need a valid context (otherwise
we'd need to pass a Main alog too).
This is to be backported to final 2.75.
2015-06-12 09:55:04 +02:00
Campbell Barton
356afe0085
Fix possible NULL pointer use
2015-06-11 23:58:53 +10:00
Campbell Barton
af980a20a4
Fix T37746: Presets in splash failed to redraw
2015-06-09 21:55:35 +10:00
Dalai Felinto
e1b8ed8dd4
Multiview: fix Time Sequential crash when screen is fullscreen T44688
...
ED_screen_duplicate() was never written to support non-fullscreen modes.
This is prior to the hidden ui fullscreen commit, and it's quite ancient
in Blender's code (since Jan/08 - 1363134d )
That's why duplicate window, and new screen operators are disabled when
screen is full.
2015-06-08 18:48:52 -03:00
Campbell Barton
962f764d58
WM: refactor window code for stereo3d
...
Window copy code made it hard to test fixes.
2015-06-09 01:27:40 +10:00
Campbell Barton
f8385de5ed
Remove redundant NULL check
2015-06-09 01:27:40 +10:00
Julian Eisel
4f94947157
Fix T44976: 3D View turns into an Image Editor after saving render
...
result
Was a case of two stacked temporary fullscreens, so a quite extreme
situation.
2015-06-08 16:04:00 +02:00
Campbell Barton
b54e95a5c8
Alternative fix copying windows from popup dialogs
...
It could still crash if the window was freed and another was activated. see T44688.
2015-06-08 16:02:57 +10:00
Bastien Montagne
94e7ac5b97
Fix wrong usage of THB_NORMAL size when generating .blend file thumbnail at save time.
...
We do not use that size of preview anymore, only THB_LARGE...
2015-06-05 19:42:59 +02:00
Campbell Barton
c8711b6f6f
Fix T40621: Tablet in walk mode fails
...
Add support for walk mode /w absolute pointing devices.
2015-06-01 20:07:57 +10:00
Campbell Barton
07a6d4ed75
WM: include tablet data in WM_event_print
2015-06-01 17:40:52 +10:00
Campbell Barton
bfa7586ba3
Fix T44747: Drag toggle /w nodes (glitch)
...
It was possible to perform actions while performing a drag-toggle.
2015-06-01 16:40:43 +10:00
Campbell Barton
565faadd8e
Cleanup: doxygen comments
2015-06-01 14:56:07 +10:00
Campbell Barton
b147473f02
Fix T44892: Cursor warp, invoked outside the area
...
If an operator starts outside an area, don't use warping.
(problematic for menu's).
2015-06-01 12:03:02 +10:00
Campbell Barton
d9b6768521
Fix T44688: Stereo3D time-sequential crashes
2015-05-28 18:46:15 +10:00
Campbell Barton
4be7258f00
WM: remove windows if they fail to initialize
2015-05-28 18:46:15 +10:00
Antony Riakiotakis
930bf58478
Clamp min/max frame rate for player
2015-05-27 20:02:53 +02:00
Campbell Barton
718bc078a8
Fix T44740: Tweak events stuck (ignored release)
...
Tweak event was being added to the end of the event queue (out of order),
meaning any mouse releases already in the queue wouldn't be used to exit the gesture.
Gestures could get stuck (mostly when the system wasn't able to handle events fast enough).
Now tweak events are now added in order.
2015-05-26 20:07:58 +10:00
Campbell Barton
f01c6e185f
Cleanup: typos
2015-05-23 22:38:47 +10:00
Antony Riakiotakis
f6062638c1
Fix crash in blenderplayer when scrubbing off screen.
...
Was cache referencing deleted or NULL items.
Reported by Kopias on irc
2015-05-21 17:37:11 +02:00
Campbell Barton
183b643774
Building without Python works again
2015-05-19 11:38:07 +10:00
Campbell Barton
29aae4db38
UI: errors in buttons now show in info report
...
Mistakes in button expressions were previously only printed to the console.
2015-05-18 10:02:29 +10:00
Brecht Van Lommel
43ee3f4040
Fix T44739: OS X RMB emulation giving wrong mouse button release event.
2015-05-17 16:55:18 +02:00