14897fb653
Cleanup: spelling
2019-04-29 14:14:14 +10:00
620b960d3d
Cleanup: style, use braces for editors
2019-04-22 19:48:16 +10:00
0ac990d088
Cleanup: comments (long lines) in editors
2019-04-22 06:30:04 +10:00
e12c08e8d1
ClangFormat: apply to source, most of intern
...
Apply clang format as proposed in T53211.
For details on usage and instructions for migrating branches
without conflicts, see:
https://wiki.blender.org/wiki/Tools/ClangFormat
2019-04-17 06:21:24 +02:00
758bb8c70d
Clenaup: odd use of ternary operators
2019-04-16 12:09:34 +02:00
b5d1e0ad1e
Cleanup: spelling
2019-04-10 00:38:47 +10:00
de13d0a80c
doxygen: add newline after \file
...
While \file doesn't need an argument, it can't have another doxy
command after it.
2019-02-18 08:22:12 +11:00
eef4077f18
Cleanup: remove redundant doxygen \file argument
...
Move \ingroup onto same line to be more compact and
make it clear the file is in the group.
2019-02-06 15:45:22 +11:00
65ec7ec524
Cleanup: remove redundant, invalid info from headers
...
BF-admins agree to remove header information that isn't useful,
to reduce noise.
- BEGIN/END license blocks
Developers should add non license comments as separate comment blocks.
No need for separator text.
- Contributors
This is often invalid, outdated or misleading
especially when splitting files.
It's more useful to git-blame to find out who has developed the code.
See P901 for script to perform these edits.
2019-02-02 01:36:28 +11:00
68cab3aff6
Cleanup: replace attrib w/ attr
...
Also rename GPUVertexAttribs to GPUVertAttrLayers,
avoids confusion with GPUVertAttr which isn't closely related.
2019-01-29 08:32:25 +11:00
b8e8c0e325
Cleanup: comment line length (editors)
...
Prevents clang-format wrapping text before comments.
2019-01-15 23:30:31 +11:00
6d89337257
Fix/cleanup typos and such in UI messages (and some comments).
2018-12-24 15:03:49 +01:00
Jonathan Merritt
410142caff
Fix T59722: stencil texture overlay not working on macOS.
2018-12-24 12:07:12 +01:00
2b3b481c3d
Merge branch 'master' into blender2.8
2018-11-14 11:27:42 +11:00
b97a2c3688
Cleanup: naming for paint modes
...
- Rename ePaint* -> PAINT_MODE_*.
- Use PAINT_OVERLAY_ prefix for eOverlayControlFlags.
2018-11-14 11:20:08 +11:00
101fd08348
Merge branch 'master' into blender2.8
2018-11-07 11:59:41 +11:00
59e70d5f8d
Cleanup: renmae ePaintTexture(Projective) -> 3D
...
Matches ePaintTexture2D, less verbose.
2018-11-07 11:52:14 +11:00
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
Dalai Felinto
ff9e0b6781
Fix sculpt curve stroke paint
2018-10-16 21:41:29 -03:00
e7218e7049
Cleanup: naming
...
- immAttrib* -> immAttr*
- immSkipAttrib -> immAttrSkip
Term 'attr' is a convention for GPU module.
2018-10-09 11:01:50 +11:00
477b4559ec
Paint Overlay: Fix blending of the brush overlay
2018-08-22 19:49:32 +02:00
38e08ec66b
Fix T56012: brush stencil overlay draws in the wrong location.
2018-08-15 17:16:21 +02:00
8cd7828792
GWN: Port to GPU module: Replace GWN prefix by GPU
2018-07-18 11:49:15 +02:00
57ab7daa2a
GPU_matrix: use Blender's naming conventions
...
Thanks to @sergey for review
2018-07-15 15:34:13 +02:00
6d72d3c862
Cleanup: abbreviate unsigned types (editors, wm)
2018-07-08 12:49:36 +02:00
e35f9f0408
Merge branch 'master' into blender2.8
2018-07-02 18:55:24 +02:00
dbe1b07e05
Cleanup: right shift
2018-07-02 18:45:26 +02:00
b076b3853c
Merge branch 'master' into blender2.8
2018-07-02 12:03:56 +02:00
b88e51dd55
Cleanup: use bool for poll functions
2018-07-02 11:51:31 +02:00
8e02106d0d
GLRefactor: partially remove gl calls from source/blender/editors.
...
This translates the gl calls to the new GPU_ wrappers from D3501.
Given it's tedious and repetitive work, this patch does as much as it can with search + replace, the remainder of the gl calls will need to be manually dealt with on a case by case basis.
This fixes 13 of the 28 failing editors when building without opengl.
For the list of substitutions see D3502
Reviewers: brecht
Differential Revision: https://developer.blender.org/D3502
2018-06-27 19:07:23 -06:00
95011f6d48
Merge branch 'master' into blender2.8
2018-06-04 09:39:04 +02:00
44505b38df
Cleanup: strip trailing space in editors
2018-06-04 09:31:30 +02:00
Dalai Felinto
c4bf936d53
Fix sculpt grab cursor
...
This was broken since 33bb8b785a (triple-buffer changes).
We need to account to the area limits when drawing the cursor.
2018-05-03 11:48:35 +02:00
b1c025d1e8
GPUTexture: Small refactor.
...
This includes a few modification:
- The biggest one is call glActiveTexture before doing any call to
glBindTexture for rendering purpose (uniform value depends on it).
This is also better to know what's going on when rendering UI. So if
there is missing UI elements because of this commit look for this first.
This allows us to have "less calls" to glActiveTexture (I did not
measure the final count) and less checks inside GPU_texture.
- Remove use of GL_TEXTURE0 as a uniform value in a few places.
- Be more strict and use BLI_assert for bad usage of GPU_texture functions.
- Disable filtering for integer and stencil textures (not supported by
OGL specs).
- Replace bools inside GPUTexture by a bitflag supporting more options to
identify texture types.
2018-03-25 20:06:11 +02:00
9342f55d12
Merge branch 'master' into blender2.8
2018-03-08 17:54:52 +11:00
ecab7bef69
Cleanup: Rename view3d context set function
...
Use common prefix so adding related functions share the prefix.
2018-03-08 17:30:24 +11:00
5d38c14116
Merge branch 'master' into blender2.8
2018-01-10 13:22:03 +01:00
5614193745
Task scheduler: Use restrict pointer qualifier
...
Those pointers are never to be aliased, so let's be explicit about this and hope
compiler does save some CPU ticks.
2018-01-10 12:49:51 +01:00
6deb908a5c
Merge branch 'master' into blender2.8
2018-01-09 16:15:33 +01:00
4c4a7e84c6
Task scheduler: Use single parallel range function with more flexible function
...
Now all the fine-tuning is happening using parallel range settings structure,
which avoid passing long lists of arguments, allows extend fine-tuning further,
avoid having lots of various functions which basically does the same thing.
2018-01-09 16:09:33 +01:00
d2708b0f73
Task scheduler: Get rid of extended version of parallel range callback
...
Wrap all arguments into TLS type of argument. Avoids some branching and also
makes it easier to extend things in the future.
2018-01-09 16:09:33 +01:00
0ffa64a45f
Merge branch 'master' into blender2.8
2017-10-17 14:06:49 +11:00
99520e3f92
Cleanup: use 'e' prefix for enum typedefs
...
Convention was only followed loosely,
apply to DNA where changes aren't likely to conflict.
(Skipped ModifierType for eg).
2017-10-17 13:49:20 +11:00
dc95c79971
Merge branch 'master' into blender2.8
2017-10-11 13:14:16 +05:00
caba67c2fa
Recent check for navigation missed NULL check
2017-10-10 02:43:56 +11:00
ea606a7847
Merge branch 'master' into blender28
2017-10-06 21:25:33 +11:00
82d6a30015
Disable cursor drawing while navigating
...
Was performing ray-casts in sculpt mode on every update.
2017-10-05 17:35:46 +11:00
775c773cf4
Fix sculpt secondary color missing some brushes
...
D2841 by @uvwxyz w/ edits
2017-10-05 12:59:22 +11:00
63dfb5bb97
Cleanup: naming (GPU immediate util)
2017-09-26 15:21:01 +10:00
6d359e4498
Cleanup: use explicit 2d suffix for imm utils
...
Avoid ambiguity between 2d/3d (which were already named).
2017-09-14 01:24:50 +10:00