Campbell Barton
f1bc9331b1
Fix T55491: Double click fail in menu popups
2018-06-21 10:07:18 +02:00
Campbell Barton
3995b33a42
WM: don't make LMB a special case for double click
2018-06-21 09:49:30 +02:00
Campbell Barton
d312dbea2d
Cleanup: naming (make it clear vars are squared)
2018-06-20 15:58:46 +02:00
Campbell Barton
372754c164
Screen: split ED_area_actionzone_find_xy
...
Add ED_area_actionzone_refresh_xy which can tag redraw
find no longer changes changes to the action zone.
2018-06-20 15:34:20 +02:00
Campbell Barton
5cad6afac6
Cleanup: rename is_in_area_actionzone
2018-06-20 15:34:20 +02:00
Campbell Barton
daaf315bf2
Cleanup: quiet warning
2018-06-20 15:34:20 +02:00
Bastien Montagne
fd48e685c3
Cleanup: remove some G.main from BKE's node.c
...
Validate some cases using G_MAIN instead (I don't think we want to work
on any other Main than G.main one when registering/unregistering nodes
etc.).
And when freeing, all ID not in Main shall now be tagged accordingly, so
we *should* not need to do that stupi search over all ntrees in G.main
to check wether we have to free it ourself or not!
2018-06-20 12:27:26 +02:00
Campbell Barton
d4519f54b3
UI: only show "Edit Translations" when addon used
2018-06-20 10:45:03 +02:00
Bastien Montagne
0a8af46707
Final cleanup of G.mains in render area.
2018-06-19 19:25:06 +02:00
Stefan Werner
9ff135d85d
Cycles: Fixed crash when the camera was inside 16 volumes or more. It still won't render those volumes correctly, but at least the crash is addressed.
2018-06-19 16:35:18 +02:00
Bastien Montagne
b5893b1ba3
Fix (unreported) passing CDLayer 'ID' instead of bitflag to a cdlayer mask!
...
Probably harmless, since I bet CD_ORIGINDEX is nearly always generated,
but still...
2018-06-19 16:25:24 +02:00
668f39519c
Fix T55528: Cycles AO node should default to 1 if radius is 0.
2018-06-19 11:45:05 +02:00
Bastien Montagne
b09a8203e9
Cleanup DM generation code for ProjPaint.
...
Two branches were actually doing essentially the same thing here, no
need to artificially complicate things. ;)
2018-06-19 10:48:37 +02:00
Bastien Montagne
64a2f98062
Fix (unreported) unauthorized relesing of derived_final DM in paint projection code.
...
NEVER free yourself DM returned by mesh_get_derived_final(), it's always
to one assigned to ob->derived_final!
2018-06-19 10:43:54 +02:00
Campbell Barton
751189e9d6
Vertex Paint: set sculpt object mode immediately
...
SculptSession.mode_type wasn't initialized until painting,
making it unreliable for checks in other parts of the code.
Also remove unnecessary initialization,
matching sculpt mode more closely.
2018-06-19 08:50:35 +02:00
Campbell Barton
f0c6f5ee77
editorconfig: correct C/C++ using space
2018-06-19 07:48:12 +02:00
Ray Molenkamp
38b72fb64b
make.bat: Fix msvc-2017 detection.
...
D3485 by @manung
Differential Revision: https://developer.blender.org/D3485
2018-06-18 13:39:12 -06:00
Campbell Barton
ab59f9e65d
editorconfig: add rst
2018-06-18 18:53:49 +02:00
Campbell Barton
b7b7468bef
editorconfig: add line length, glsl
2018-06-18 18:21:35 +02:00
Campbell Barton
ce7c87fbda
Add .editorconfig file
...
This is a fairly well supported file-type configuration
for indentation and trailing space stripping.
See editorconfig.org for details.
2018-06-18 18:09:45 +02:00
Bastien Montagne
579631819f
Fix T55503: File browser filter not working correctly.
...
There were two issues here, introduced by rB66aa4af836:
* Forgot to change length of some filter_glob var deep in filebrowser code.
* Truncating filter_glob in general can be dangerous, generating
unexpected patterns.
Last point was the root of the issue here, truncating to 63 chars string
left last group as 'match everything' `*` pattern.
To fix that to some extent, added a new BLI_path_extension_glob_validate
helper to BLI_path_util, which ensures we do not have last
wildcards-only group in our pattern, when there are more than one group.
2018-06-18 12:26:47 +02:00
Campbell Barton
b66ae8259e
RNA: disable animation for file output options
2018-06-18 07:31:21 +02:00
Campbell Barton
86e20a2e63
Cleanup: trailing space cmake, make.bat
2018-06-17 20:18:09 +02:00
Campbell Barton
e7a68ef843
Cleanup: trailing space in CMake files
2018-06-17 20:15:24 +02:00
Campbell Barton
2ceff8bd63
Python: Allow untrusted py-drivers to run limited expressions
...
Limit to a restricted set of built-ins, as well as the math module.
Also restrict of op-codes, disallowing imports and attribute access.
This allows most math expressions to run
without any performance cost once the initial check is done.
See: D1862 for details.
2018-06-17 20:01:05 +02:00
Campbell Barton
a24b4e6090
Cleanup: trailing space for remaining source/
2018-06-17 17:06:28 +02:00
Campbell Barton
76c2203f9c
Cleanup: trailing space for blenloader
2018-06-17 17:06:07 +02:00
Campbell Barton
6fc8a74886
Cleanup: trailing space for blenkernel
2018-06-17 17:05:51 +02:00
Campbell Barton
a262ea8c47
Cleanup: trailing space for compositor
2018-06-17 17:05:29 +02:00
Campbell Barton
410880552b
Cleanup: trailing space for freestyle
2018-06-17 17:05:14 +02:00
Campbell Barton
e74bd46ede
Cleanup: trailing space for imbuf module
2018-06-17 17:04:54 +02:00
Campbell Barton
1eed46c788
Cleanup: trailing space for modifiers
2018-06-17 17:04:27 +02:00
Campbell Barton
78fbd146f3
Cleanup: trailing space for DNA headers
2018-06-17 17:04:09 +02:00
Campbell Barton
4be752a93c
Cleanup: trailing space in source/gameengine/
2018-06-17 17:03:10 +02:00
Campbell Barton
5513da65b2
Cleanup: trailing space for BLI
2018-06-17 16:32:54 +02:00
Campbell Barton
f19ecdeec6
Cleanup: remove unused BLI_rebase_path
2018-06-17 16:26:47 +02:00
Campbell Barton
a0a1fc8938
Cleanup: BLI path extension API
...
Use BLI_path_extension_* prefix.
2018-06-17 16:13:24 +02:00
Campbell Barton
6453814ec0
BLI_path: add string size debug define
...
Off by default, only for debugging.
2018-06-17 15:35:00 +02:00
Campbell Barton
42103a3eb8
CMake: add missing headers
2018-06-17 11:56:20 +02:00
Campbell Barton
2f1e34cfcc
Cleanup: use clamp_* from BLI_math (replace macro)
2018-06-17 11:50:56 +02:00
Ray Molenkamp
36e82b7759
make.bat: Fix make showhashes
not working.
...
broke in recent refactor.
2018-06-16 12:29:38 -06:00
Bastien Montagne
ace8ad861d
Fix T55427: Removing Vertex Group used by Data Transfer Modifier results in crash.
...
Only fixing crash, proper handling (a.k.a remapping) of all
possible cases here, for all possible data layers, is rather involved...
2018-06-16 16:22:00 +02:00
Campbell Barton
35c71aed25
UI: refactor drag-toggle for other button types
2018-06-16 16:04:26 +02:00
Campbell Barton
73abca1da0
UI: minor changes from 2.8
...
- Option to skip multi-data edits.
- Open hold buttons on drag.
- Utility function to set default value.
2018-06-16 15:44:13 +02:00
Lukas Stockner
b955747875
Cycles Cleanup: Remove unneccessary color management call
2018-06-16 13:47:49 +02:00
Lukas Stockner
799779d432
Cycles: change Ambient Occlusion shader to output colors.
...
This means the shader can now be used for procedural texturing. New
settings on the node are Samples, Inside, Local Only and Distance.
Original patch by Lukas with further changes by Brecht.
Differential Revision: https://developer.blender.org/D3479
2018-06-15 22:16:06 +02:00
Campbell Barton
2b9edbc98b
WM: suppress drag events if motion is handled
2018-06-15 19:09:43 +02:00
Bastien Montagne
d645b1a78a
Cleanup: some more G.main removal.
...
We are really starting to scratch the last bits here...
2018-06-15 17:42:17 +02:00
Bastien Montagne
49915e3241
Cleanup: validate G.main's in creator code.
...
Using G_MAIN here is valid!
2018-06-15 17:36:44 +02:00
Bastien Montagne
da9b1b14ed
Cleanup: some more G.main removal/validation...
2018-06-15 17:21:07 +02:00