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
2019-01-22Fix T60643: BMesh operator enum args fail when unset from PythonCampbell Barton
Error introduced with bmesh operator enum support: 1e6a5eb087911
2019-01-19Cleanup: add trailing commasCampbell Barton
Prevents clang-format merging into a single line.
2019-01-17GPU: Rename GPU_shader_get_uniform to GPU_shader_get_uniform_ensureClément Foucault
This is in order to make the API more multithread friendly inside the draw manager. GPU_shader_get_uniform will only serve to query the shader interface and not do any GL call, making it threadsafe. For now it only print a warning if the uniform was not queried before.
2019-01-17PyAPI: minor change to bpy.app.debug_value exception handlingCampbell Barton
Use error from int conversion function.
2019-01-17PyAPI: Avoid redundant prefix for PyC_Err_Format_PrefixCampbell Barton
Only show the exception value type when it's not a string.
2019-01-17PyAPI: add PyC_Err_SetString_Prefix for internal useCampbell Barton
2019-01-16Cleanup/sanitize usages of G.debug_value.Bastien Montagne
There was no documentation at all, some very bad practices (like using G.debug_value > 0 as some sort of global debug print switch), and even an overlapping use of '1' value... Also, python setter did not check for valid range (since this is a short, not an int).
2019-01-16Expose batch IDs deletion in python API.Bastien Montagne
Follow-up to previous commit.
2019-01-11Cleanup: remove tabs after line startCampbell Barton
Allows expanding tabs before running clang-format.
2019-01-10Cleanup: end bgl macros w/ semicolonCampbell Barton
Needed for clang-format.
2019-01-07Cleanup: fix typo.Bastien Montagne
2019-01-07Cleanup: naming for return argsCampbell Barton
2019-01-07Fix T58964: drivers_remove fails w/ missing pathsCampbell Barton
2019-01-07Cleanup: add trailing commas to structsCampbell Barton
2019-01-03Cleanup: preprocessor indentationCampbell Barton
2019-01-02Cleanup: py-gpu error checksCampbell Barton
Move gpu initialization checks to the start of each function instead of mixing with argument parsing.
2019-01-02Revert file rename from T59773 fixCampbell Barton
Mixing file rename with other changes should be avoided. Using 'module_py_api' convention here is in keeping with imbuf, idprop, blf & bmesh. No reason for gpu to have a different convention.
2019-01-02Fix T59773: Raise exception if the gpu module is used in backgound mode.mano-wii
Instead of crashing, an error message is displayed if a function of the gpu module is called without a GPU context. Reviewers: brecht, campbellbarton, JacquesLucke, mont29 Subscribers: abdelmatinboulbayam, amir.shehata Differential Revision: https://developer.blender.org/D4143
2019-01-02Cleanup: indentation, namingCampbell Barton
Use rna naming conventions for unit-settings callbacks.
2019-01-02PyRNA: enum no longer returns first item when the value isn't foundCampbell Barton
This hides errors & makes it confusing to debug mistakes when the enum items aren't correct. Return an empty string instead.
2018-12-30Cleanup: remove non-existing function declarationsCampbell Barton
2018-12-27Fix T58734: bvhtree.fromObject - error ( returned NULL without setting an ↵Bastien Montagne
error) in blender 2.8. Would free evaluated mesh even when it was the one cached in runtime data by depsgraph evaluation! Also fixes the asserts about using non-eval object in some cases.
2018-12-21RNA: naming, user-preferences -> preferencesCampbell Barton
2018-12-20Merge branch 'master' into blender2.8Campbell Barton
2018-12-20PyAPI: don't truncate enums in exception messagesCampbell Barton
Not necessary and confusing when only some of the items are displayed. See: T59044
2018-12-20Cleanup: argument wrapping indentationCampbell Barton
2018-12-19Merge branch 'master' into blender2.8Campbell Barton
2018-12-19Cleanup: spellingCampbell Barton
2018-12-18Py Docs: documentation for draw_handler_add/removeJacques Lucke
2018-12-18Fix paste/append w/ local-viewCampbell Barton
Paste in local-view wasn't setting local-view bits.
2018-12-16Fix T58975: "@=" operator silently failsCampbell Barton
D4083 by @artfunkel
2018-12-14NLA: insert keyframes correctly for strips with non-Replace mode.Alexander Gavrilov
NLA strips support using the keyframe values in a variety of ways: adding, subtracting, multiplying, linearly mixing with the result of strips located below in the stack. This is intended for layering tweaks on top of a base animation. However, when inserting keyframes into such strips, it simply inserts the final value of the property, irrespective of these settings. This in fact makes the feature nearly useless. To fix this it is necessary to evaluate the NLA stack below the edited strip and correctly compute the raw key that would produce the intended final value, according to the mode and influence. Differential Revision: https://developer.blender.org/D3927
2018-12-14Merge branch 'master' into blender2.8Campbell Barton
2018-12-14Cleanup: naming (mean -> median) see T47811Campbell Barton
2018-12-12Merge branch 'master' into blender2.8Campbell Barton
2018-12-12Cleanup: use colon separator after parameterCampbell Barton
Helps separate variable names from descriptive text. Was already used in some parts of the code, double space and dashes were used elsewhere.
2018-12-11Implement BMesh.from_objectPhilipp Oeser
Fixes T59069 Reviewers: sergey, brecht Maniphest Tasks: T59069 Differential Revision: https://developer.blender.org/D4065
2018-12-07Update BVHTree.FromObject API, remove render argumentDalai Felinto
This information should come from the depsgraph.
2018-12-07Depsgraph: Remove duplicated sets of recalc/update flagsSergey Sharybin
There were at least three copies of those: - OB_RECALC* family of flags, which are rudiment of an old dependency graph system. - PSYS_RECALC* which were used by old dependency graph system as a separate set since the graph itself did not handle particle systems. - DEG_TAG_* which was used to tag IDs. Now there is a single set, which defines what can be tagged and queried for an update. It also has some aggregate flags to make queries simpler. Lets once and for all solve the madness of those flags, stick to a single set, which will not overlap with anything or require any extra conversion. Technically, shouldn't be measurable user difference, but some of the agregate flags for few dependency graph components did change. Fixes T58632: Particle don't update rotation settings
2018-12-05Implement bvhtree.fromObjectDalai Felinto
Passing depsgraph instead of scene, since a scene does not fully define the state of object you want to use for the BVH. Also, mesh_create_eval_final_view and mesh_create_eval_final_render are pretty much the same, so mesh_create_eval_no_deform and mesh_create_eval_no_deform_render are as well. Issue reported on: T58734 Reviewers: sergey https://developer.blender.org/D4032
2018-11-30PyAPI: add load_factory_startup_post handlerCampbell Barton
Needed so we can apply changes to the startup file, only in the case when it's load loaded from a user-saved startup.
2018-11-30Fix T58240: mathutils.noise.voronoi crashCampbell Barton
2018-11-26Timer: Generic BLI_timer with Python wrapperJacques Lucke
There is a new `bpy.app.timers` api. For more details, look in the Python API documentation. Reviewers: campbellbarton Differential Revision: https://developer.blender.org/D3994
2018-11-23Python API: restore bpy.app.autoexec_fail variables, some scripts use it.Brecht Van Lommel
2018-11-23Python API: bpy.app.handlers.depsgraph_update_pre/postJacques Lucke
Reviewers: brecht Differential Revision: https://developer.blender.org/D3978
2018-11-20Cleanup: style, unusedCampbell Barton
2018-11-19PyAPI: GPUOffscreen: Add context manager for the `bind` method to work with ↵mano-wii
the `with` statement. Differential Revision: https://developer.blender.org/D3918
2018-11-19Py API Docs: Fix wrong typeJacques Lucke
2018-11-15Py API: Fix documentation/actual behavior missmatch in gpu.matrixJacques Lucke
2018-11-15Py API Docs: Fix formattingJacques Lucke