41d4a19865
ClangFormat: format '#if 0' code in source/
2019-04-17 08:24:14 +02: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
25ec4b437f
Cleanup: style, use braces for the Python API
2019-03-30 07:14:28 +11:00
3e07eac87b
Cleanup: use variable instead of define
2019-03-02 01:30:59 +11: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
2d1c14f036
Cleanup: rename SPACE_IPO -> SPACE_GRAPH
2019-02-16 16:42:11 +11:00
ec471a9b1c
DNA: rename SpaceButs -> SpaceProperties
2019-02-16 10:44:15 +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
744f633986
Cleanup: trailing commas
...
Needed for clan-format not to wrap onto one line.
2019-02-03 14:59:11 +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
1e4aab36c2
Cleanup: remove redundant BKE/BLI/BIF headers
2019-01-26 21:20:25 +11:00
63fcbfc3a7
RNA: naming, user-preferences -> preferences
2018-12-21 12:55:02 +11:00
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
35991d9990
PyAPI: Temp workaround for crash removing cursor
...
Opening a new file frees the cursors,
add check if the cursor is still valid.
This leaks a Python reference, so a better solution is needed.
2018-10-26 08:49:10 +11:00
1a827e0564
Cleanup: move params into their own struct
2018-10-25 17:20:26 +11:00
ce08b07a89
PyAPI: take paint-cursor space/region type args
2018-10-25 16:27:13 +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
46587b3ccb
PyAPI: support for Python paint cursors
2018-10-25 15:31:02 +11:00
031416c559
Merge branch 'master' into blender2.8
2018-06-12 17:36:24 +02:00
b00d840359
WM: remove sloppy region type access
...
Avoid accidentally operating on the wrong region type.
2018-06-12 17:34:44 +02:00
760e79d809
WM: rename BKE_regiontype_from_id
...
This returns the first as a fallback, causing confusing usage.
Renamed and added a version of the function that doesn't.
2018-06-12 17:26:38 +02:00
5b64301834
Merge branch 'master' into blender2.8
2018-06-04 09:06:14 +02:00
7719c11006
Cleanup: strip trailing space in Python module
2018-06-04 08:54:40 +02:00
5374865523
Dopesheet-Timeline: Removal of Timeline Editor!
...
This commit removes all references to the old timeline editor.
Unfortuantely, the removal of the Timeline spacetype defining
functions has ended up breaking the version patching code I'd
been working on earlier (as now, the editor gets marked as
"unknown/info" before we get a chance to patch it!)
2018-04-20 18:55:56 +02:00
Dalai Felinto
159806140f
Removing Blender Game Engine from Blender 2.8
...
Folders removed entirely:
* //extern/recastnavigation
* //intern/decklink
* //intern/moto
* //source/blender/editors/space_logic
* //source/blenderplayer
* //source/gameengine
This includes DNA data and any reference to the BGE code in Blender itself.
We are bumping the subversion.
Pending tasks:
* Tile/clamp code in image editor draw code.
* Viewport drawing code (so much of this will go away because of BI removal
that we can wait until then to remove this.
2018-04-17 17:51:28 +02:00
Dalai Felinto
a0ef147f29
bpy consistency fix handler_add(handle)
...
This doesn't change the API, so it doesn't affect any script.
However it give more consistent error messages.
2018-04-17 12:29:40 +02:00
e32cfb0743
Cleanup: rename bpy_util -> bpy_capi_utils
...
This is for internal CAPI use only, avoid confusion w/ bpy.utils module.
2017-11-29 21:11:29 +11:00
ab7ebf2b10
Cleanup: Use const for RNA EnumPropertyItem args
...
Practically all access to enum data is read-only.
2017-10-18 16:04:07 +11:00
676d790d29
Cleanup: use rna_enum_ prefix for RNA enums
...
Definitions could shadow local vars.
2015-11-23 17:40:09 +11:00
b098609186
Fix various compiler warnings.
2015-10-10 17:35:30 +02:00
e73d0f57a3
Code cleanup: use 'const' for arrays (python)
2014-04-27 00:25:15 +10:00
1b4afb161d
code cleanup: typos
2013-11-05 04:23:46 +00:00
1c99e6aa0b
pyapi internal api code: check for == -1 rather then < 0, for known error returns.
2013-01-10 15:22:19 +00:00
1bf5832dfb
code cleanup: warnings and use stdbool for bpy* funcs.
2013-01-07 05:26:12 +00:00
0e3d637ad0
Change region drawing callbacks to work much closer to how blender manages them internally.
...
- yes, this does break scripts, but the api is marked experimental.
ED_region_draw_cb_activate() adds a callback to a region type whereas the api made it look like the callback was being added to the region instance.
Use a class method on bpy.types.Space to manage region drawing, eg.
was:
self._handle = context.region.callback_add(draw_callback_px, args, 'POST_PIXEL')
is now:
self._handle = bpy.types.SpaceView3D.draw_handler_add(draw_callback_px, args, 'WINDOW', 'POST_PIXEL')
2012-12-20 13:29:58 +00:00
7b31c3c198
Fix cosmetic typos
...
Patch provided by Matteo F. Vescovi, thanks!
2012-05-15 16:11:04 +00:00
4f19c1a995
spelling cleanup
2012-03-18 07:38:51 +00:00
e17fd46c71
formatting edits only to use more consisted style
2011-12-26 12:26:11 +00:00
9c9099a805
formatting edits in py api, no functional changes
2011-12-18 08:50:06 +00:00
2b939904ab
documentation - brief descriptions for bpy api files.
2011-11-05 08:21:12 +00:00
4a04f72069
remove $Id: tags after discussion on the mailign list: http://markmail.org/message/fp7ozcywxum3ar7n
2011-10-23 17:52:20 +00:00
cadc1218c8
C, style changes (mostly white space edits), no functional change.
2011-03-19 11:12:48 +00:00
e2304a4dbb
move anim functions out of bpy_rna.c, its getting too big.
2011-03-02 04:51:43 +00:00
Nathan Letwory
5a760e22fc
doxygen: blender/python tagged.
2011-02-27 20:10:08 +00:00
Nathan Letwory
5b607701a7
doxygen: prevent GPL license block from being parsed as doxygen comment.
2011-02-23 10:52:22 +00:00
72bc3f22b7
python api renaming and added headers for some files which didnt have one, no functionality change.
2011-02-14 04:15:25 +00:00
0955c664aa
fix for warnings from Sparse static source code checker, mostly BKE/BLI and python functions.
...
- use NULL rather then 0 where possible (makes code & function calls more readable IMHO).
- set static variables and functions (exposed some unused vars/funcs).
- use func(void) rather then func() for definitions.
2011-02-13 10:52:18 +00:00
89c9aaaa25
remove references to BKE_utildefines where its not needed.
...
- move GS() define into DNA_ID.h
- add BLI_utildefines as an automatic include with makesrna generated files.
2011-01-07 19:18:31 +00:00
8f21a43535
split BKE_utildefines.h, now it only has blender specific defines like GS() MAKE_ID, FILE_MAXDIR, moved the generic defines to BLI_utildefines.h.
...
no functional changes.
2011-01-07 18:36:47 +00:00
96dafef228
minor edits to exception formatting (remove ... or \n from suffix)
2010-11-23 16:45:17 +00:00