Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2020-11-06Cleanup: follow our code style for float literalsCampbell Barton
2020-11-06Cleanup: use bool argument in BLI_noiseCampbell Barton
2020-11-06Cleanup: BLI_noiseCampbell Barton
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-06Cleanup: clang-formatCampbell Barton
2020-11-05Spelling: Predefined, Look Up, No OneHarley Acheson
Fixes 18 misspellings of 'predefined', 'Look Up', 'Lookup', and 'No One'. Differential Revision: https://developer.blender.org/D9466 Reviewed by Hans Goudey
2020-11-04Merge branch 'blender-v2.91-release'Campbell Barton
2020-11-04Cleanup: Add BLI prefix to some BLI_noise functionsAaron Carlisle
2020-11-04PyAPI: add Struct.is_property_set(..., ghost) optionCampbell Barton
This exposes the use_ghost argument to RNA_property_is_set_ex.
2020-11-02Revert "Cleanup: store results of function calls in const values."Bastien Montagne
This reverts commit 20c4aa13de7ba403e113df8ec69c632b6815eac8. Wrong buggy commit breaking tests, and not actually adding anything to code quality.
2020-11-02Cleanup: store results of function calls in const values.Bastien Montagne
2020-11-02Cleanup: use logging for "Found bundled Python" messageCampbell Barton
This was added when Python was initially bundled so any problems finding Python could be investigated. Move this to use logging so we can show this information when needed.
2020-11-01Revert "PyAPI: remove bpy.app.binary_path_python"Campbell Barton
This reverts commit 6527a14cd2ceaaf529beae522ca594bb250b56c9. Some 3rd party scripts made use of this so scripts can work with 2.90 to 2.92, although eventually this can still be removed.
2020-11-01Merge branch 'blender-v2.91-release'Campbell Barton
2020-11-01PyAPI: set sys.executable to None when Python can't be foundCampbell Barton
Without this, sys.executable may be set to Blender's executable instead.
2020-10-29Merge branch 'blender-v2.91-release'Philipp Oeser
2020-10-29RNA properties subtypes enum: sync definitions everywherePhilipp Oeser
Some subtypes never made it to all neccessary places when they were introduced. This was throwing warnings when accessing such a properties subtype from python. The sub_type enums were also defined in 4 different places: - RNA_types.h 'PropertySubType' - rna_rna.c 'rna_enum_property_subtype_items' - rna_rna.c 'subtype_items' - bpy_props.c as multiple enums This patch syncs the definitions across all places so that they are the same everywhere. It also looks redundant to define these twice in rna_rna.c, now just use 'rna_enum_property_subtype_items' there (and get rid off 'subtype_items'). Also moved 'POWER' & 'TEMPERATURE' to number enum in bpy_props (these were defined in the array enum). Fixes T82167. Maniphest Tasks: T82167 Differential Revision: https://developer.blender.org/D9371
2020-10-29Merge branch 'blender-v2.91-release'Campbell Barton
2020-10-29PyAPI: point sys.executable to the Python binaryCampbell Barton
`sys.executable` is documented to be a Python interpreter or None. This was set to Blender's executable which caused the multiprocessing module to spawn new instances of Blender instead of Python on WIN32. See issue described in D7815. Deprecate 'bpy.app.binary_path_python' & warn when using. Blender's executable remains accessible via `bpy.app.binary_path`. Modified 04c5471ceefb4, setting `sys.executable` instead of using Py_SetProgramName, which is needed for a bundled Python installation.
2020-10-28Merge branch 'blender-v2.91-release'Campbell Barton
2020-10-28Revert "PyAPI: point sys.executable to the Python binary"Campbell Barton
This reverts commit 04c5471ceefb41c9e49bf7c86f07e9e7b8426bb3. This causes Blender not to start on some systems.
2020-10-28PyAPI: remove bpy.app.binary_path_pythonCampbell Barton
This is deprecated in 2.91, remove for 2.92 in favor of 'sys.executable'.
2020-10-28Cleanup: update old comment for why we can't use PySys_SetArgvCampbell Barton
2020-10-28Merge branch 'blender-v2.91-release'Campbell Barton
2020-10-28PyAPI: point sys.executable to the Python binaryCampbell Barton
`sys.executable` is documented to be a Python interpreter or None. This was set to Blender's executable which caused the multiprocessing module to spawn new instances of Blender instead of Python on WIN32. See issue described in D7815. Deprecate 'bpy.app.binary_path_python' & warn when using. Blender's executable remains accessible via `bpy.app.binary_path`.
2020-10-22Merge branch 'blender-v2.91-release'Campbell Barton
2020-10-22Fix out of bounds array access in mathutils.noiseCampbell Barton
Regression in 0b2d1badecc48.
2020-10-22PyAPI: expose the file version via bpy.app.version_fileCampbell Barton
This exposes the version saved to the file, compatible with `bpy.data.version`. This is needed to write out version information into key-maps.
2020-10-19Spelling: Loose Versus LoseHarley Acheson
Corrects incorrect usages of the word 'loose' when 'lose' was required. Differential Revision: https://developer.blender.org/D9243 Reviewed by Campbell Barton
2020-10-19Spelling: Then Versus ThanHarley Acheson
Corrects incorrect usages of the words 'then' and 'than'. Differential Revision: https://developer.blender.org/D9246 Reviewed by Campbell Barton
2020-10-19Spelling: It's Versus ItsHarley Acheson
Corrects incorrect usage of contraction for 'it is', when possessive 'its' was required. Differential Revision: https://developer.blender.org/D9250 Reviewed by Campbell Barton
2020-10-15Cleanup: rename BPy_GetContext -> BPY_context_getCampbell Barton
Matching BPY_context_set.
2020-10-15Cleanup: remove duplicate context variable (__py_context)Campbell Barton
The context was stored both in __py_context & bpy_context_module. This avoids duplicate functions to update them too.
2020-10-14Fix T81688: BPY_thread_save crashes with Python 3.9Campbell Barton
Calling PyEval_ReleaseLock() was crashing with Python 3.9 because it accessed the NULL pointer set by PyThreadState_Swap(). This happened when calling ViewLayer.update() for example. While the existing logic could be fixed by swapping the thread-state back before calling PyEval_ReleaseLock(), this depends on functions which are tagged to be removed by v4.0. Replace use of deprecated functions by calling PyEval_SaveThread(), instead of inlining the logic, using _PyThreadState_UncheckedGet() to prevent Python aborting. The call to PyEval_ThreadsInitialized has been removed as threads are now initialized with Python. This could be replaced with Py_IsInitialized() however it doesn't look like this is necessary. This is compatible with Python 3.7 & 3.9.
2020-10-14Cleanup: reduce indentation level in bpy_class_validate_recursiveCampbell Barton
2020-10-14Fix crash starting Blender with Python 3.9Campbell Barton
In 3.8 and older the class held a reference to methods, this is no longer the case in 3.9.
2020-10-14Cleanup: multi-line comment blocksCampbell Barton
2020-10-13Cleanup: use BKE_fcurve_ prefix for keyframing bezier functionsCampbell Barton
- BKE_bezt_subdivide_handles -> BKE_fcurve_bezt_subdivide_handles - binarysearch_bezt_index -> BKE_fcurve_bezt_binarysearch_index These functions are specific to F-Curves and don't make sense for other uses of BezTriple (curve-object data for e.g.) Also: - Move detailed doxygen comment above code, following code-style. - Mark bezt_add_to_cfra_elem unused.
2020-10-12Pydoc: Move builtin GPU shader information to codeAaron Carlisle
This fixes a compile warning for sphinx. This commit includes some reformating of the information.
2020-10-12Cleanup: Pydoc stringsAaron Carlisle
2020-10-10Cleanup: use C comments for descriptive textCampbell Barton
Follow our code style guide by using C-comments for text descriptions.
2020-10-09BGL: fix issues with addons using BGL at startupClément Foucault
This was an issue for Cycles. This also makes the `GPU_bgl*` functions less fragile by checking for null pointers.
2020-10-09Revert "Revert "BGL: Workaround broken bgl usage caused by GPU refactor""Clément Foucault
This reverts commit f23bf4cb109cb8f39f873c4f80acbec3f33b098c.
2020-10-09PyDoc: resolve duplicate module warningsCampbell Barton
Remove submodule listings from the module docstring, as this information already exists in the generator.
2020-10-09Cleanup: use real-module for 'bmesh.ops'Campbell Barton
Replace module-like object with Python module, this simplifies checks for generating API docs and is more correct.
2020-10-08Revert "BGL: Workaround broken bgl usage caused by GPU refactor"Clément Foucault
This reverts commit f12b0373f322b710b9fa5cebb67bdf363ff90e9f.
2020-10-08BGL: Workaround broken bgl usage caused by GPU refactorClément Foucault
This directly adress the issues caused by rB536c2e0ec916. Since the state tracking is done at a lower level, using the bgl functions needs to be safegarded by the state manager. The current workaround is to bypass `apply_state` when inside a callback that used a `bgl` function. Related to T80730. This fix T81003. Also this fix the default blend equation for callbacks. Fixes T80169 T81289.
2020-10-03Cleanup: Remove/replace C standard library assert() and header usagesJulian Eisel
We have our own assert implementation, `BLI_assert()` that is prefered over the C standard library one. Its output is more consistent across compilers and makes termination on assert failure optional (through `WITH_ASSERT_ABORT`). In many places we'd include the C library header without ever accessing it.
2020-10-02Cleanup: Use enum for return values in context callbacksSybren A. Stüvel
Define enum `eContextResult` and use its values for returns, instead of just returning 1, 0, or -1 (and always having some comment that explains what -1 means). This also cleans up the mixup between returning `0` and `false`, and `1` and `true`. An inconsistency was discovered during this cleanup, and marked with `TODO(sybren)`. It's not fixed here, as it would consititute a functional change. The enum isn't used everywhere, as enums in C and C++ can have different storage sizes. To prevent issues, callback functions are still declared as returning`int`. To at least make things easier to understand for humans, I marked those with `int /*eContextResult*/`. This is a followup of D9090, and is intended to unify how context callbacks return values. This will make it easier to extend the approach in D9090 to those functions. No functional changes. Differential Revision: https://developer.blender.org/D9095
2020-10-01Cleanup: clang-formatBrecht Van Lommel
2020-09-30Cleanup: convert gforge task ID's to phabricator formatValentin
Cleanup old tracker task format to the new. e.g: [#34039] to T34039 Ref D8718