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
2017-09-08Cleanup: remove useless `DM_ensure_looptri()`.Bastien Montagne
That one was doing exactly same thing as `dm->getLoopTriArray()`, no point in having twice the same code here...
2017-09-04Docs: BMesh.from_mesh behavior w/ multiple callsCampbell Barton
2017-09-04Fix error in PointerProperty argument listCampbell Barton
Regression in a7b3047
2017-09-04Fix bpy library load: invalid function signatureCampbell Barton
2017-09-04PyAPI: avoid redundant PyLong_AsLong callCampbell Barton
Assigning to an RNA array converted from Python to C twice.
2017-08-18PyAPI: Fix memory leak w/ empty, allocated enumsCampbell Barton
2017-08-17Fix T46329: scene_update_{pre,post} doc needs clarificationSybren A. Stüvel
The documentation for the bpy.app.handlers.scene_update_{pre,post} handlers states that they're called "on updating the scenes data". However, they're called even when the data hasn't changed. Of course such handlers are useful, but the documentation should reflect the current behaviour. Reviewers: mont29, sergey Subscribers: Blendify Maniphest Tasks: T46329 Differential Revision: https://developer.blender.org/D1535
2017-07-28Fix T52213: Enum drivers no longer workCampbell Barton
Regression in D1812: PyDriver variables as Objects Taking the Python representation is nice in general but for enums it would convert them into strings, breaking some existing drivers.
2017-07-25PyAPI: Skip user scripts w/ factory-startupCampbell Barton
Adds bpy.app.factory_startup, used to check if user scripts should be loaded.
2017-07-17Fix T52090: clarify meaning of EnumProperty number when using ENUM_FLAG.Brecht Van Lommel
2017-07-17PyAPI: don't use deprecated PyModule_GetFilenameCampbell Barton
Allows compiling with newer Python versions. Also add missing decref when compiling as a py-module.
2017-06-26Docs: correct doc-stringsCampbell Barton
2017-06-19Cleanup: doxygen commentsCampbell Barton
Also remove duplicate & mismatching comments from grease-pencil header. Keep comments close to implementation to avoid getting out of sync.
2017-06-16PyAPI: Fix warning about indentAaron Carlisle
2017-06-15PyAPI: Proper Solution to bpy.appAaron Carlisle
2017-06-14PYAPI: Fix mathutils doc structureAaron Carlisle
2017-06-12Cleanup: indentation, long linesCampbell Barton
2017-06-09RNA: remove static strings from registrationCampbell Barton
* Static strings aren't needed anymore, use stack memory. * Fix obscure leak on failed macro registration. * Use prefix for wrappers exported from bpy module.
2017-06-07Report OpenSubdiv version Blender is compiled againstSergey Sharybin
2017-06-05PyAPI: is_staticmethod used for classmethods's tooCampbell Barton
Add note to investigate this, don't change so close to release.
2017-06-05PyAPI: correct exception, expect 'staticmethod'Campbell Barton
2017-05-27Remove MinGW supportAaron Carlisle
The Issue ======= For a long time now MinGW has been unsupported and unmaintained and at this point, it looks like something that we should just leave behind and move on. Why Remove ========== One of the big motivations for MinGW back in the day is that it was free compared to MSVC which was licensed based. However, now that this is no longer true we have basically stopped updating the need CMake files. Along with the CMake files, there are several patches to the extern libs needed to make this work. For example, see: https://developer.blender.org/diffusion/B/browse/master/extern/carve/patches/mingw_w64.patch If we wanted to keep MinGW then we would need to make more custom patches to the external libs and this is not something our platform maintainers are willing to do. For example, here is the patches needed to build python: https://github.com/Alexpux/MINGW-packages/tree/master/mingw-w64-python3 Fixes T51301 Differential Revision: https://developer.blender.org/D2648
2017-05-26Fix T51287: Matrix.lerp fails w/ shearBrecht Van Lommel
Use interp_m4_m4m4 (wraps Eigen), `MATH_STANDALONE` will need to be updated to support this.
2017-05-25Fix T51444: Unit tests don't run on WindowsCampbell Barton
2017-05-20CMake: Use GCC7's -Wimplicit-fallthrough=5Campbell Barton
Use to avoid accidental missing break statements, use ATTR_FALLTHROUGH to suppress.
2017-05-06Fix PyAPI crash assigning/deleting id-propertiesCampbell Barton
Caused by D113.
2017-04-24Cleanup: styleCampbell Barton
2017-04-21Matrix.decompose(): changed terminology, "location" → "translation"Sybren A. Stüvel
Matrix.decompose() should either return "location, orientation, size" or "translation, rotation, scale". Since there are constructors for the former, I've replaced "location" in the documentation with "translation". The code is still the same, I just changed the documentation.
2017-04-13Datablock ID PropertiesAlexander Romanov
The absence of datablock properties "will certainly be resolved soon as the need for them is becoming obvious" said the [[http://wiki.blender.org/index.php/Dev:Ref/Release_Notes/2.67/Python_Nodes|Python Nodes release notes]]. So this patch allows Python scripts to create ID Properties which reference datablocks. This functionality is implemented for `PointerProperty` and now such properties can be created with Python. In addition to the standard update callback, `PointerProperty` can have a `poll` callback (standard RNA) which is useful for search menus. For details see the test included in this patch. Original author: @artfunkel Alexander (Blend4Web Team) Reviewers: brecht, artfunkel, mont29, campbellbarton Reviewed By: mont29, campbellbarton Subscribers: jta, sergey, campbellbarton, wisaac, poseidon4o, mont29, homyachetser, Evgeny_Rodygin, AlexKowel, yurikovelenov, fjuhec, sharlybg, cardboard, duarteframos, blueprintrandom, a.romanov, BYOB, disnel, aditiapratama, bliblubli, dfelinto, lukastoenne Maniphest Tasks: T37754 Differential Revision: https://developer.blender.org/D113
2017-04-10PyAPI: Fast buffer access to id property arraysJacques Lucke
Support Python's buffer protocol for ID-properties.
2017-04-04Cleanup: redundant castsCampbell Barton
2017-03-22Pydoc: Change Wikipedia links and grammar in mathutils matrix codeAaron Carlisle
2017-03-18Missing from recent commitCampbell Barton
2017-03-18PyAPI: add BPY_execute_string_as_stringCampbell Barton
Utility to execute a string and get the resulting string, matching BPY_execute_string_as_number. Not used just yet but generally useful function.
2017-03-18Cleanup: use return args last and 'r_' prefix.Campbell Barton
2017-03-04Cleanup: expose struct for ED_view3d_mats_rv3d_*Campbell Barton
2017-02-02Fix missing uniform type for python GPU uniform export.Michael Stahre
Reviewed By: brecht Differential Revision: https://developer.blender.org/D2379
2017-01-31Cleanup: Rename callback flags from library_query to `IDWALK_CB_...`Bastien Montagne
Better to have clear way to tell whether flag is parameter for BKE_library_foreach_ID_link(), parameter for its callback function, or return value from this callback function.
2017-01-31Optimization: pass Main to BKE_library_foreach_ID_link() and use its relations.Bastien Montagne
Use Main->relations in BKE_library_foreach_ID_link(), when possible (i.e. IDWALK_READONLY is set), and if the data is available of course. This is quite minor optimization, no sensible improvements are expected, but does not hurt either to avoid potentially tens of looping over e.g. objects constraints and modifiers, or heap of drivers...
2017-01-02Fix: Passed wrong last argument to functionJoshua Leung
2016-12-28Also apply similar fixes to .keyframe_delete()Joshua Leung
- T49816
2016-12-28Fix T49816: Keyframing NLA Strip influence from Python set keyframes in the ↵Joshua Leung
wrong place
2016-12-12Refactor RNA property: split flags in property flags, parameter flags, and ↵Bastien Montagne
internal flags. This gives us 9 flags available again for properties (we had none anymore), and also makes things slightly cleaner. To simplify (and make more clear the differences between mere properties and function parameters), also added RNA_def_parameter_flags function (and its clear counterpart), to be used instead of RNA_def_property_flag for function parameters. This patch is also a big cleanup (some RNA function definitions were still using 'prop' PropertyRNA pointer, etc.). And yes, am aware this will be annoying for all branches, but we really need to get new flags available for properties (will need at least one for override, etc.). Reviewers: sergey, Severin Subscribers: dfelinto, brecht Differential Revision: https://developer.blender.org/D2400
2016-11-29Fix T50029: BVHTree.FromPolygons memory leakCampbell Barton
2016-11-13BMesh: BM_face_exists no longer uses return argCampbell Barton
Just return the face or NULL, like BM_edge_exists(), Also for BM_face_exists_overlap & bm_face_exists_tri_from_loop_vert. No functional changes. Old code did some partial overlap checks where this made some sense, but it's since been removed.
2016-11-01Fix T49856: Blender 2.78 crashes after loading data from a blendfileBastien Montagne
Issue here was that py API code was keeping references (pointers) to the liniked data-blocks, which can actually be duplicated and then deleted during the 'make local' process... Would have like to find a better way than passing optional GHash to get the oldid->newid mapping, but could not think of a better idea.
2016-10-25API: Fix LinksAaron Carlisle
Self-explanatory. to find broken links run `sphinx-build -b linkcheck sphinx-in sphinx-out` Reviewers: mont29 Tags: #bf_blender, #python, #infrastructure:_websites Differential Revision: https://developer.blender.org/D2297
2016-10-20Fix T49797: Exception from scene update handler might leak external engine ↵Sergey Sharybin
descriptors This was causing memory leaks in Cycles. Some more detailed information in the comment in the code. Seems to be safe and nice enough for 2.78a.
2016-10-18Clarified warning in EnumPropertySybren A. Stüvel
Blender doesn't necessarily crash when Python doesn't keep references to the returned strings. As a result, someone that implements this incorrectly could be lulled into a false sense of correctness by Blender not crashing.
2016-09-15Fix Py's IDs user mapping: do not consider ShapeKeys' from here.Bastien Montagne
This is internal pointer helper for scene evaluation and tools, though exposed to bpy API, it can give false 'dependency cycles' in bpy.data.user_map() results. That's followup to rBe007552442634 really, both should be backported to 2.78