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
2018-11-13Py API Docs: Remove older GPUOffScreen exampleJacques Lucke
I think this example does not belong into the api docs and certainly not in the place where it was until now. Maybe this can become a template in Blender but personally I don't see much value in it as an "official example" because it is hard to see what is going on exactly. There are a few other examples that show how to use the GPUOffScreen object now.
2018-11-13Py API Docs: New Example for off screen renderingJacques Lucke
2018-11-12Py API Docs: another use case for offscreen renderingJacques Lucke
2018-11-12Py API Docs: Another example for offscreen renderingJacques Lucke
2018-11-12Py API Docs: fix typos/wordingJacques Lucke
found by Omar Ahmad
2018-11-12Py API Docs: Restructure gpu module introductionJacques Lucke
2018-11-09Py API Docs: More gpu module documentationJacques Lucke
2018-11-09gpu.offscreen, fix pydoc, example and rename modelviewmatrix > viewmatrixDalai Felinto
Technically this is only the view matrix, not model view matrix. And view layer was missing from the pydoc.
2018-11-08RNA: Object.select_set use boolean, only selectCampbell Barton
- Was setting active state, making it necessary to backup/restore active object in cases where this isn't needed. Existing scripts are explicitly setting the active object when needed. - Use a boolean select arg (toggle selection wasn't used anywhere). - Add an optional view layer argument since scripts should be able to operate outside the user context.
2018-11-07Py API Docs: improve 2D image exampleJacques Lucke
2018-11-06Fix/cleanup RNA viewlayer API.Bastien Montagne
RNA's ViewLayer would present 'first level' of layer collection as a list (collection property), when it is actually now only a single item, same as the scene's master collection. Note: did not try to update view_layer python tests, those are already fully broken for quiet some time I guess (they still assume view_layer.collections to be mutable e.g.)...
2018-11-05Fix/Updated Object API example.Bastien Montagne
Was still 2.7x code... ;)
2018-11-05API Docs: gpu api introduction + examplesJacques Lucke
2018-10-26Update gpu offscreen PyAPI exampleCampbell Barton
2018-09-27Cleanup: pep8Campbell Barton
2018-09-21Fixup for gpu.types.GPUOffscreen.py exampleDalai Felinto
Addressing the changes introduced on: 43fa51835adee390aa4bcb9fe3bda1034480b7cf
2018-09-21gpu.types.GPUOffscreen.py example file: Move the shader reference removal ↵mano-wii
code to execute on __main__
2018-09-21gpu.types.GPUOffscreen.py example file: Delete the reference of the previous ↵mano-wii
shader. Strange that the `bpy.utils.register_class` utility does not remove the reference of the class with same name.
2018-09-21Updated gpu.types.GPUOffscreen.py example fileDalai Felinto
The image I get is a bit too dark, which is the same I get in the viewport itself when there is no Display Device. So I believe for cases like this we need to have color management on top of the buffer. Also, on EEVEE it looks like it needs to clear some extra buffers. You can see that, by rotating the camera view around. That said, this is the first step to bring back fun addons that use external offscreen buffers. Note: When using gpu offscreen with POST_VIEW (as oppose to POST_PIXEL) I get a crash with DST having 0xFF..
2018-09-19Merge branch 'master' into blender2.8Brecht Van Lommel
2018-09-19Spelling fixes in comments and descriptions, patch by luzpaz.Brecht Van Lommel
Differential Revision: https://developer.blender.org/D3700
2018-09-06UI / Python: rename X-Ray to In Front, Draw to Display.Brecht Van Lommel
See T56648.
2018-09-06Join the python modules `gpu` and `_gpu` into one.mano-wii
Maybe it's still early to set the new drawing api for python. But joining these two modules is an initial step. ``` >>> gpu. matrix select types ``` ``` >>> gpu.types.GPU Batch( OffScreen( VertBuf( VertFormat( ``` The creation of a new offscreen object is now done by the `GPUOffscreen.__new__` method. Reviewers: campbellbarton, dfelinto Reviewed By: campbellbarton, dfelinto Tags: #bf_blender_2.8 Differential Revision: https://developer.blender.org/D3667
2018-09-03Merge branch 'master' into blender2.8Bastien Montagne
Conflicts: source/blender/blenkernel/intern/collision.c
2018-09-03Spelling fixes in comments and descriptions, patch by luzpaz.Brecht Van Lommel
Differential Revision: https://developer.blender.org/D3668
2018-08-29Python / Cleanup: rename INFO_MT to TOPBAR_MT/VIEW3D_MT to reflect actual ↵Brecht Van Lommel
location.
2018-08-28UI: text keyword argument to labelCampbell Barton
Prepare for keyword only args
2018-08-14Cleanup: Update some links to new wikiAaron Carlisle
2018-06-26Merge branch 'master' into blender2.8Campbell Barton
2018-06-26Cleanup: pep8 function indentationCampbell Barton
2018-05-18Collections and groups unificationBrecht Van Lommel
OVERVIEW * In 2.7 terminology, all layers and groups are now collection datablocks. * These collections are nestable, linkable, instanceable, overrideable, .. which opens up new ways to set up scenes and link + override data. * Viewport/render visibility and selectability are now a part of the collection and shared across all view layers and linkable. * View layers define which subset of the scene collection hierarchy is excluded for each. For many workflows one view layer can be used, these are more of an advanced feature now. OUTLINER * The outliner now has a "View Layer" display mode instead of "Collections", which can display the collections and/or objects in the view layer. * In this display mode, collections can be excluded with the right click menu. These will then be greyed out and their objects will be excluded. * To view collections not linked to any scene, the "Blender File" display mode can be used, with the new filtering option to just see Colleciton datablocks. * The outliner right click menus for collections and objects were reorganized. * Drag and drop still needs to be improved. Like before, dragging the icon or text gives different results, we'll unify this later. LINKING AND OVERRIDES * Collections can now be linked into the scene without creating an instance, with the link/append operator or from the collections view in the outliner. * Collections can get static overrides with the right click menu in the outliner, but this is rather unreliable and not clearly communicated at the moment. * We still need to improve the make override operator to turn collection instances into collections with overrides directly in the scene. PERFORMANCE * We tried to make performance not worse than before and improve it in some cases. The main thing that's still a bit slower is multiple scenes, we have to change the layer syncing to only updated affected scenes. * Collections keep a list of their parent collections for faster incremental updates in syncing and caching. * View layer bases are now in a object -> base hash to avoid quadratic time lookups internally and in API functions like visible_get(). VERSIONING * Compatibility with 2.7 files should be improved due to the new visibility controls. Of course users may not want to set up their scenes differently now to avoid having separate layers and groups. * Compatibility with 2.8 is mostly there, and was tested on Eevee demo and Hero files. There's a few things which are know to be not quite compatible, like nested layer collections inside groups. * The versioning code for 2.8 files is quite complicated, and isolated behind #ifdef so it can be removed at the end of the release cycle. KNOWN ISSUES * The G-key group operators in the 3D viewport were left mostly as is, they need to be modified still to fit better. * Same for the groups panel in the object properties. This needs to be updated still, or perhaps replaced by something better. * Collections must all have a unique name. Less restrictive namespacing is to be done later, we'll have to see how important this is as all objects within the collections must also have a unique name anyway. * Full scene copy and delete scene are exactly doing the right thing yet. Differential Revision: https://developer.blender.org/D3383 https://code.blender.org/2018/05/collections-and-groups/
2018-04-17Removing Blender Game Engine from Blender 2.8Dalai Felinto
Folders removed entirely: * //extern/recastnavigation * //intern/decklink * //intern/moto * //source/blender/editors/space_logic * //source/blenderplayer * //source/gameengine This includes DNA data and any reference to the BGE code in Blender itself. We are bumping the subversion. Pending tasks: * Tile/clamp code in image editor draw code. * Viewport drawing code (so much of this will go away because of BI removal that we can wait until then to remove this.
2018-04-17Merge remote-tracking branch 'origin/master' into blender2.8Dalai Felinto
2018-04-17bpy blf api example updateDalai Felinto
With changes from Campbell Barton as well.
2018-04-01Merge branch 'master' into blender2.8Campbell Barton
- Undo that changes modes currently asserts, since undo is now screen data. Most likely we will change how object mode and workspaces work since it's not practical/maintainable at the moment. - Removed view_layer from particle settings (wasn't needed and complicated undo).
2018-03-30PyDoc: Merge manual docs for bge.textureAaron Carlisle
https://docs.blender.org/manual/en/dev/game_engine/python_api/videotexture.html Had a few things that this file did not while this file having things the other did not. To fix, I merged both documents into the python api.
2018-03-14Merge branch 'master' into blender2.8Bastien Montagne
2018-03-14Updated bpy.props getter/setter exampleSybren A. Stüvel
- The common name in computer science are 'getters' and 'setters', so by adding these names to the documentation (while 'get' and 'set are still also mentioned) we improve findability. Having 'Getters/Setters' as a title also makes it clearer that this example is not just about getting or setting the property value. - Added a little prefix to each printed value, so that print statement, expected output, and real output can be matched easier.
2018-03-14Fix T54286: bpy.props operator example misses property accessSybren A. Stüvel
The old example had two downsides: - It promoted a blocking UI design, where the user is shown a popup before actually executing the operator. - It didn't show how to actually use the property values. The new code avoids these mistakes. The properties are also shown in the redo panel in the 3D view. Note that I also changed the bl_idname, as this is an example about properties, not about dialogue boxes, and changed the class name to use the standard operator naming convention. I also extended the example to include a panel that sets multiple properties of the operator, since I see questions about this relatively frequently.
2018-02-01Merge branch 'master' into blender2.8Germano
2018-02-01Revert "tmp"Germano
This reverts commit ea31f0ac3b877eb0df4c47d0c908d11d1bff33e4.
2018-02-01tmpGermano
2018-01-28Merge branch 'master' into blender2.8Campbell Barton
2018-01-26Docs: invoke_search_popup uses bl_propertyCampbell Barton
Also add code example in docs.
2017-10-21Merge branch 'master' into blender2.8Campbell Barton
2017-10-21Cleanup: use relative imports in bl_uiCampbell Barton
2017-10-04Merge branch 'master' into blender2.8Sergey Sharybin
2017-10-04Fix T52923: Circle diameter is in fact radiusCampbell Barton
2017-06-26Manipulator: Python APICampbell Barton
Initial support for Python/Manipulator integration from 'custom-manipulators' branch. Supports: - Registering custom manipulators & manipulator-groups. - Modifying RNA properties, custom values via get/set callbacks, or invoking an operator. - Drawing shape presets for Python defined manipulators (arrow, circle, face-maps) Limitations: - Only float properties supported. - Drawing only supported via shape presets. (we'll likely want a way to define custom geometry or draw directly). - When to refresh, recalculate manipulators will likely need integration with notifier system. Development will be continued in the 2.8 branch
2017-06-17Merge branch 'master' into blender2.8Campbell Barton