4eb9322eda
Cleanup: PyMethodDef formatting
...
Missed these changes in [0].
Also replace designated initializers in some C code, as it's not used
often and would need to be removed when converting to C++.
[0] e555ede626
2022-11-08 11:13:58 +11:00
afc091c3c4
Cleanup: spelling in comments
2022-11-01 12:24:58 +11:00
a3ddcc6b4d
Cleanup: correct PyModuleDef.m_slots reference
...
Changed in Python 3.5, match Python's internal name.
2022-09-08 15:32:33 +10:00
83c274ccfc
Cleanup: use "num" as a suffix in: source/blender/python
...
See T85728
2022-03-28 14:14:31 +11:00
a0ad8c57ef
License headers: use SPDX identifiers
2022-02-16 13:04:20 +11:00
c434782e3a
File headers: SPDX License migration
...
Use a shorter/simpler license convention, stops the header taking so
much space.
Follow the SPDX license specification: https://spdx.org/licenses
- C/C++/objc/objc++
- Python
- Shell Scripts
- CMake, GNUmakefile
While most of the source tree has been included
- `./extern/` was left out.
- `./intern/cycles` & `./intern/atomic` are also excluded because they
use different header conventions.
doc/license/SPDX-license-identifiers.txt has been added to list SPDX all
used identifiers.
See P2788 for the script that automated these edits.
Reviewed By: brecht, mont29, sergey
Ref D14069
2022-02-11 09:14:36 +11:00
Xavier Cho
62d64bec2a
Docs: Fixes and improvements in API documentation
...
Fixes several notable mistakes and missing information
regarding the API documentation (*.rst).
This will allow API stub generators like bpystubgen or
fake-bpy-module to produce more accurate result.
Differential Revision: https://developer.blender.org/D12639
2021-10-22 18:27:16 -04:00
ced94bc11c
Cleanup: code comments punctuation / spacing
2021-07-23 17:03:51 +10:00
f1e4903854
Cleanup: full sentences in comments, improve comment formatting
2021-06-26 21:50:48 +10:00
4b9ff3cd42
Cleanup: comment blocks, trailing space in comments
2021-06-24 15:59:34 +10:00
7cb20d841d
Cleanup: follow our code style for float literals
2020-11-06 12:32:54 +11:00
4a78a2774b
Cleanup: use bool argument in BLI_noise
2020-11-06 12:32:54 +11:00
29401f8ca2
Cleanup: BLI_noise
...
Use common prefix as this collided with existing API's (eg BLI_voronoi).
Also expand some non-obvious abbreviations:
- 'g' -> 'generic'
- 'vl' -> 'variable_lacunarity'
- 'V' -> 'v3'
2020-11-06 12:32:54 +11:00
029e1f066e
Cleanup: Add BLI prefix to some BLI_noise functions
2020-11-04 02:07:21 -05:00
c70650785b
Fix out of bounds array access in mathutils.noise
...
Regression in 0b2d1badec .
2020-10-22 14:03:00 +11:00
f9d138be51
Cleanup: compiler warning
2020-06-22 13:06:47 +02:00
2a6df7dfe5
Cleanup: use named unsigned types in the Python API
2020-02-20 15:40:05 +11:00
0b2d1badec
Cleanup: use post increment/decrement
...
When the result isn't used, prefer post increment/decrement
(already used nearly everywhere in Blender).
2019-09-08 00:23:25 +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
25ec4b437f
Cleanup: style, use braces for the Python API
2019-03-30 07:14:28 +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
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
8a61ea7296
Cleanup: add trailing commas
...
Prevents clang-format merging into a single line.
2019-01-19 13:58:35 +11:00
7ec5a68091
Fix T58240: mathutils.noise.voronoi crash
2018-11-30 11:22:17 +11:00
0cf12dfc14
Cleanup: indentation, style
2018-08-24 10:32:57 +10:00
dade2b7548
Python: Cleanup Noise Module
...
Implements the changes detailed in T56281
Reviewers: campbellbarton
Reviewed By: campbellbarton
Differential Revision: https://developer.blender.org/D3590
2018-08-22 15:34:10 +02:00
7719c11006
Cleanup: strip trailing space in Python module
2018-06-04 08:54:40 +02:00
75fc1c3507
Cleanup: trailing whitespace (comment blocks)
...
Strip unindented comment blocks - mainly headers to avoid conflicts.
2018-06-01 18:19:39 +02:00
a3b4c3823c
Fix T54966: mathutils.noise.voronoi Memory leak
...
C code was not correctly handling release of temp data, not technically
a memory leak, but indeed rather annoying bug! ;)
2018-05-07 11:07:11 +02:00
722d586257
Fix T47993: noise_vector ignores random seed
...
Replace hard coded values with offsets derived from the random seed.
2016-03-30 20:43:43 +11:00
8106a6b75d
mathutils: refactor instantiation
...
remove 'type' argument, very few mathutils objects are wrapped,
add new function for creating wrapped objects.
also fixes unlikely memory leak if the data-array can't be allocated.
2015-01-04 17:43:57 +11:00
915235c87a
Cleanup: unused headers
2014-11-28 22:16:14 +01:00
4ca67869cc
Code cleanup: remove unused includes
...
Opted to keep includes if they are used indirectly (even if removing is possible).
2014-05-01 04:47:51 +10:00
ab6157a06a
PyAPI: noise.seed_set(), note that zero is a special case.
2014-01-30 17:56:07 +11:00
55f7a4aebc
Fix T38104: mathutils.cell_vector() always returns (0,0,0)
...
Reviewed By: brecht
2014-01-08 23:03:09 +01:00
418011907c
remove nan copyrights from code added since blender become opensource (copy paste errors), also remove BKE_script.h
2013-07-02 10:14:59 +00:00
16b82845ee
code cleanup: add 'const' to headers to quiet msvc warnings, also remove (char *) casts that aren't needed now we're on Python3.3
2013-03-17 18:30:31 +00:00
40186a8c11
remove BLI_noise from BLI_blenlib.h, not that many files need this.
2012-10-12 00:18:32 +00:00
382ded688a
Spellcheck: minkovsky -> minkowski! (Only in comments/UI messages :/ ).
2012-07-17 18:14:59 +00:00
11d12d945e
style cleanup: python api
2012-03-26 06:55:09 +00:00
70d3d1aca6
style cleanup: py/capi
2012-03-16 21:39:56 +00:00
3590076193
style cleanup - comment formatting
2012-03-03 20:36:09 +00:00
6ca7d82932
code cleanup: white space, spelling & ';;' end of lines.
2012-02-25 16:04:03 +00:00
5a42ff381c
correct 2 sphinx warnings.
2012-02-08 16:36:04 +00:00
54dc5f1654
apply back changes made since moving this file.
2012-01-31 05:02:24 +00:00
427cde6f16
svn cp \
...
https://svn.blender.org/svnroot/bf-blender/trunk/blender/source/blender/python/generic/noise_py_api.c@r42248 \
https://svn.blender.org/svnroot/bf-blender/trunk/blender/source/blender/python/mathutils/mathutils_noise.c
2012-01-31 04:59:57 +00:00
b42feff554
previous move lost history on this file, restoring next commit.
2012-01-31 04:58:06 +00:00
f3ac865cc0
picky formatting of mathutils
2011-12-24 13:26:30 +00:00
9c9099a805
formatting edits in py api, no functional changes
2011-12-18 08:50:06 +00:00