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-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
2016-09-15Fix Py's IDs user mapping: do not consider proxy_from here.Bastien Montagne
This is internal pointer helper for scene evaluation and tools, it's not exposed to bpy API anyway, and can give false 'dependency cycles' in bpy.data.user_map() results. Found by sybren in his Splode work.
2016-09-14Fix T49342: TypeError when autocompleting bpy.app.something.Bastien Montagne
Regression from rB036c006cefe471. We can't use self here, self is bpy.app, not pydescriptor of python path getsetter... So for now, do not try to replace getsetter by actual value in bpy.app's dict, just return static var generated on first run. Should be safe for 2.78.
2016-09-13Fix bpy.data.user_map() ignoring unused datablocks.Bastien Montagne
Should be backported to 2.78. Found by Sybren here in studio, thanks!
2016-09-01pydoc: added missing 'compress' parameter to b.t.BlendDataLibraries.writeSybren A. Stüvel
2016-08-06Basic Alembic supportKévin Dietrich
All in all, this patch adds an Alembic importer, an Alembic exporter, and a new CacheFile data block which, for now, wraps around an Alembic archive. This data block is made available through a new modifier ("Mesh Sequence Cache") as well as a new constraint ("Transform Cache") to somewhat properly support respectively geometric and transformation data streaming from alembic caches. A more in-depth documentation is to be found on the wiki, as well as a guide to compile alembic: https://wiki.blender.org/index.php/ User:Kevindietrich/AlembicBasicIo. Many thanks to everyone involved in this little project, and huge shout out to "cgstrive" for the thorough testings with Maya, 3ds Max, Houdini and Realflow as well as @fjuhec, @jensverwiebe and @jasperge for the custom builds and compile fixes. Reviewers: sergey, campbellbarton, mont29 Reviewed By: sergey, campbellbarton, mont29 Differential Revision: https://developer.blender.org/D2060
2016-07-31Cleanup: reduce Vector_getseters size using macrosCampbell Barton
2016-07-31PyAPI: minor optimization for dictionary creationCampbell Barton
Pass size when its known.
2016-07-31PyAPI: fix leak in unlikely case converting idprops failCampbell Barton
2016-07-31PyAPI: Add PyC_UnicodeAsByteAndSizeCampbell Barton
Read the string length from Python directly when assigning id-properties
2016-07-31Docs: add initial idprop.types API docsCampbell Barton
2016-07-31Py-Driver: re-use self PyObject when its unchanged.Campbell Barton
2016-07-31Py-Driver: use intern stringsCampbell Barton
Avoids managing strings inline
2016-07-30Py-Driver: add 'self' optionCampbell Barton
Drivers can use this to refer to the data which the driver is applied to, useful for objects, bones, to avoid having to create a variable pointing to its self.
2016-07-23Cleanup: styleCampbell Barton
2016-07-18Docs: improve bpy.props.EnumProperty referenceCampbell Barton
2016-07-16Cleanup: spellingCampbell Barton
2016-07-14PyAPI: minor cleanup with library linkingCampbell Barton
2016-07-14PyAPI: Leak fix caused crash w/ attr swap trickCampbell Barton
Accessing `bpy.app.binary_path_python does search, then swaps its getset with the string it finds. This caused a freed pointer to be stored in bpy.app's dictionary. Fix by using the same string for get/set access.
2016-07-14PyAPI: fix leak linking library dataCampbell Barton
2016-07-14PyAPI: fix memory leaks in dictionary assignmentCampbell Barton
Thanks to Kévin Dietrich for spotting driver leak, checked other uses of PyDict_SetItem and found more.
2016-07-14PyAPI: Use module names on initializatonCampbell Barton
No need to re-convert from C strings to PyUnicode.
2016-07-07Cleanup: spelling, styleCampbell Barton
2016-07-02Fix typo in bgl.Buffer report functionThomas Szepe
A GL_INT buffer was reported as GL_BYTE.
2016-07-02Cleanup: comment blocksCampbell Barton
2016-07-01BMesh: make toolflags optionalCampbell Barton
Saves 8 bytes per vert/edge/face. Gives overall ~20-25% memory saving for dyntopo sculpting and modifiers that use BMesh.
2016-06-27Fix T48717: Modal operators called from Py omit reports from the UICampbell Barton
2016-06-22Cleanup: use proper RNA struct type for ListBase typeBastien Montagne
(otherwise all code using RNA has to link DNA_listbase.h, not clean at all!).
2016-06-12bmesh py api: expose BM_face_calc_tangent_*Campbell Barton
D1988 by @wisaac, with own edits and improvements. This improves on existing tangent calculation functions too. - BM_face_calc_tangent_auto: Chooses method based on number of sides, used by manipulator (not exposed to Python). - BM_face_calc_tangent_edge: from longest edge. - BM_face_calc_tangent_edge_pair: from longest edge-pair (most useful with quads). - BM_face_calc_tangent_edge_diagonal: edge farthest from any vertex. - BM_face_calc_tangent_vert_diagonal: vert farthest from any vertex. Also optimize BM_vert_tri_calc_tangent_edge* functions to avoid sqrt.
2016-05-31Cleanup: parenthesize definesCampbell Barton
2016-05-28PyRNA: Fix repr used /w arraysCampbell Barton
RNA arrays now display their index, with support for multi-dimensional arrays.
2016-05-21Python API: add material to uniforms from gpu.export_shader.Sebastian Ullrich
Reviewed By: brecht Differential Revision: https://developer.blender.org/D1457
2016-05-17C99/C++11: replace deprecated finite() by isfinite().Brecht Van Lommel
2016-05-11Cleanup: unused win32 headersCampbell Barton
2016-05-11Fix incorrect FLT_MIN useCampbell Barton
2016-04-29Fix T48290: Hook fails after deleting geometryCampbell Barton
Now CD_SHAPEKEY_INDEX customdata is stored in edit-mode when hooks and vertex parents are used. This also fixes a bug where undo would loose key-index data. Move to structs for BM_mesh_bm_to/from_me to avoid passing many argument, which mostly aren't used.