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-08-28UI: text keyword argument to labelCampbell Barton
Prepare for keyword only args
2018-07-24Fix incorrect active object setting in scripts.Brecht Van Lommel
2018-07-15Gizmo: update Python templatesCampbell Barton
2018-07-15Cleanup: use variable names based on term gizmoCampbell Barton
2018-07-15WM: rename manipulator to gizmo in Python APICampbell Barton
2018-07-15WM: rename files, manipulator -> gizmoCampbell Barton
Edit doxy files and header guards only.
2018-07-11PyAPI: Use annotations for RNA definitionsCampbell Barton
- Logical use of fields since they define type information. - Avoids using ordered-dict metaclass. Properties using regular assignments will print a warning and load, however the order is undefined.
2018-07-06UI/Python: rename Lamps to Lights, to follow more standard terminology.Brecht Van Lommel
Internally it's still mostly named lamps, though some modules like Cycles were already calling them lights.
2018-06-28UI: keep some operator text in headers.Brecht Van Lommel
Key shortcuts and explanation about how to use the tool should go to the status bar, but other info can in the header so it's near where the user is working. This distinction has not been made yet for all operators.
2018-06-26Merge branch 'master' into blender2.8Campbell Barton
2018-06-26Cleanup: pep8 function indentationCampbell Barton
2018-06-26UI: move modal operator text from headers to status bar.Brecht Van Lommel
Python API is context.workspace.status_text_set()
2018-04-19Remove Blender Internal and legacy viewport from Blender 2.8.Ton Roosendaal
Brecht authored this commit, but he gave me the honours to actually do it. Here it goes; Blender Internal. Bye bye, you did great! * Point density, voxel data, ocean, environment map textures were removed, as these only worked within BI rendering. Note that the ocean modifier and the Cycles point density shader node continue to work. * Dynamic paint using material shading was removed, as this only worked with BI. If we ever wanted to support this again probably it should go through the baking API. * GPU shader export through the Python API was removed. This only worked for the old BI GLSL shaders, which no longer exists. Doing something similar for Eevee would be significantly more complicated because it uses a lot of multiplass rendering and logic outside the shader, it's probably impractical. * Collada material import / export code is mostly gone, as it only worked for BI materials. We need to add Cycles / Eevee material support at some point. * The mesh noise operator was removed since it only worked with BI material texture slots. A displacement modifier can be used instead. * The delete texture paint slot operator was removed since it only worked for BI material texture slots. Could be added back with node support. * Not all legacy viewport features are supported in the new viewport, but their code was removed. If we need to bring anything back we can look at older git revisions. * There is some legacy viewport code that I could not remove yet, and some that I probably missed. * Shader node execution code was left mostly intact, even though it is not used anywhere now. We may eventually use this to replace the texture nodes with Cycles / Eevee shader nodes. * The Cycles Bake panel now includes settings for baking multires normal and displacement maps. The underlying code needs to be merged properly, and we plan to add back support for multires AO baking and add support to Cycles baking for features like vertex color, displacement, and other missing baking features. * This commit removes DNA and the Python API for BI material, lamp, world and scene settings. This breaks a lot of addons. * There is more DNA that can be removed or renamed, where Cycles or Eevee are reusing some old BI properties but the names are not really correct anymore. * Texture slots for materials, lamps and world were removed. They remain for brushes, particles and freestyle linestyles. * 'BLENDER_RENDER' remains in the COMPAT_ENGINES of UI panels. Cycles and other renderers use this to find all panels to show, minus a few panels that they have their own replacement for.
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-01-10Fix color for manipulator drawingCampbell Barton
Was drawing black after the first draw call. For now set the shader before each draw call, noted as TODO to investigate a nicer way to handle.
2018-01-10Merge branch 'master' into blender2.8Campbell Barton
2018-01-10Fix background_job templateCampbell Barton
Update attribute and use empty file operator
2017-12-11PyAPI: Correct manipulator templateCampbell Barton
2017-11-29Merge branch 'master' into blender2.8Campbell Barton
2017-11-29Cleanup: Python importsCampbell Barton
Split over lines to diff more easily.
2017-09-07Merge branch 'master' into blender2.8Campbell Barton
This discards node drawing changes which need to be written as shaders.
2017-09-06Cleanup: custom nodes templateCampbell Barton
- Use conventional (pep8) prop names - Simplify class registration
2017-08-24Manipulator: modal callback can now cancel & pass eventsCampbell Barton
Re-use operator return flags for manipulator modal & invoke, this means manipulators can allow navigation or other events to be handled as they run - see T52499
2017-08-22Manipulator: template for Python manipulatorCampbell Barton
This is an example of a manipulator that defines it's own geometry.
2017-07-27Merge branch 'master' into blender2.8Campbell Barton
2017-07-26Minor template code patch. (objectHitList =/= hitObjectList)Aaron Carlisle
The Blender text editor's built in python template "Gamelogic" has a reference near the bottom to "objectHitList" as an alleged attribute to the KX_TouchSensor. This name is incorrect, it's correct name is "hitObjectList." Attempting to access the suggested objectHitList returns error... ``` AttributeError: 'KX_TouchSensor' object has no attribute 'objectHitList' ``` The provided diff corrects this minor error. Reviewers: kupoman, moguri, campbellbarton, Blendify Reviewed By: Blendify Tags: #game_engine, #game_python Differential Revision: https://developer.blender.org/D2748
2017-07-17Manipulator: split alpha out of color propertyCampbell Barton
Gives more convenient access from Python: `mathutils.Color` Also correct some copy-paste error w/ property subtypes.
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-02-07Render Layers and Collections (merge from render-layers)Dalai Felinto
Design Documents ---------------- * https://wiki.blender.org/index.php/Dev:2.8/Source/Layers * https://wiki.blender.org/index.php/Dev:2.8/Source/DataDesignRevised User Commit Log --------------- * New Layer and Collection system to replace render layers and viewport layers. * A layer is a set of collections of objects (and their drawing options) required for specific tasks. * A collection is a set of objects, equivalent of the old layers in Blender. A collection can be shared across multiple layers. * All Scenes have a master collection that all other collections are children of. * New collection "context" tab (in Properties Editor) * New temporary viewport "collections" panel to control per-collection visibility Missing User Features --------------------- * Collection "Filter" Option to add objects based on their names * Collection Manager operators The existing buttons are placeholders * Collection Manager drawing The editor main region is empty * Collection Override * Per-Collection engine settings This will come as a separate commit, as part of the clay-engine branch Dev Commit Log -------------- * New DNA file (DNA_layer_types.h) with the new structs We are replacing Base by a new extended Base while keeping it backward compatible with some legacy settings (i.e., lay, flag_legacy). Renamed all Base to BaseLegacy to make it clear the areas of code that still need to be converted Note: manual changes were required on - deg_builder_nodes.h, rna_object.c, KX_Light.cpp * Unittesting for main syncronization requirements - read, write, add/copy/remove objects, copy scene, collection link/unlinking, context) * New Editor: Collection Manager Based on patch by Julian Eisel This is extracted from the layer-manager branch. With the following changes: - Renamed references of layer manager to collections manager - I doesn't include the editors/space_collections/ draw and util files - The drawing code itself will be implemented separately by Julian * Base / Object: A little note about them. Original Blender code would try to keep them in sync through the code, juggling flags back and forth. This will now be handled by Depsgraph, keeping Object and Bases more separated throughout the non-rendering code. Scene.base is being cleared in doversion, and the old viewport drawing code was poorly converted to use the new bases while the new viewport code doesn't get merged and replace the old one. Python API Changes ------------------ ``` - scene.layers + # no longer exists - scene.objects + scene.scene_layers.active.objects - scene.objects.active + scene.render_layers.active.objects.active - bpy.context.scene.objects.link() + bpy.context.scene_collection.objects.link() - bpy_extras.object_utils.object_data_add(context, obdata, operator=None, use_active_layer=True, name=None) + bpy_extras.object_utils.object_data_add(context, obdata, operator=None, name=None) - bpy.context.object.select + bpy.context.object.select = True + bpy.context.object.select = False + bpy.context.object.select_get() + bpy.context.object.select_set(action='SELECT') + bpy.context.object.select_set(action='DESELECT') -AddObjectHelper.layers + # no longer exists ```
2017-01-24Use new manual URLAaron Carlisle
2016-12-28Update manual links in 'add object' py template.Bastien Montagne
Patch D2328 by @blendify, thanks.
2016-06-27Rename script stubCampbell Barton
Was clear from name this is to run external scripts.
2016-04-01Hide layers from UI in templateCampbell Barton
2016-03-22Fix add mesh templateBassam Kurdali
2016-01-27Fix T47252: FileBrowser: buffer overflow with scripts defining too long ↵Bastien Montagne
'filter_glob' string. Fixed this with three changes: * filter_glob is now 255 char max (63 could be a bit limited in some rare cases). * IO templates now explicitely define max len of that property (such that scripters are aware of the limit). * ED_fileselect_set_params() is now safe regarding too long strings from a 'filter_glob' op property.
2015-12-02Update template for changes in ray-castCampbell Barton
2015-11-20Correct error in background job templateCampbell Barton
Remove check for the path being writable, the operator raises error in this case.
2015-06-07Cleanup: pep8Campbell Barton
2015-05-25Fix T44842: Modal Timer (template) should return {'CANCELLED'} when cancelled!Bastien Montagne
2015-05-25Fix T44822: python enums' itemf callback did not handle 'NULL' context case.Bastien Montagne
Enum's itemf callback can be called without context in some cases (UI, doc generation...). Python's enum properties did not handle this at all - it's kind of odd this did not cause more trouble and wasn't notice earlier... Probably dynamic enums using context are not much used in py code. Note about nodes: those are heavy users of dynamic enum with context. Now, we expect `NodeCategory.poll()` and `NodeItem.poll()` to always be called with a valid context (since when there is no context available, we can assume `poll()` is always True). `NodeCategory.items()`, however, must accept NULL context, so if you use custom `items` callable for your custom node categories, you may need to update it (as was done here for builtin `node_group_items()`).
2015-05-12Minor tweaks to preview templatesCampbell Barton
2015-05-12Doc: correct rst syntaxCampbell Barton
also remove some API docs from example
2015-05-12Doc: replace addons -> scripts in docstringCampbell Barton
Theres nothing add-on specific here.
2015-05-11Expose PreviewImage & custom icons to py API.Bastien Montagne
This commit mainly: * Exposes PreviewImage struct in RNA, including ways for user to set images data. * Adds a new kind of PreviewImage, using a file path and IMB_thumb to get image. * Adds a new kind of custom icon using PreviewImage, unrelated to ID previews system. * Adds a python API (utils.previews) to allow python scripts to access those custom previews/icons. Note that loading image from files' thumbnails is done when needed (deferred loading), not when defining the custom preview/icon. WARNING: for release addons who would want to use this, please keep it to a strict minimum, really needed level. We do not want our UI to explode under hundreds of different flashy icons! For more info, see also the release notes of Blender 2.75 (http://wiki.blender.org/index.php/Dev:Ref/Release_Notes/2.75/Addons) and the example/templates featured with Blender. Patch by Campbell (ideasman42), Inês (brita) and Bastien (mont29). Differential Revision: https://developer.blender.org/D1255
2015-04-22Cleanup: pep8, spellingCampbell Barton
2015-03-05Correction to previous commitJulian Eisel
Calling ensure_lookup_table for each face is stupid! :/ (Noted by Sergey - thx)
2015-03-05Fix T43900: "Operator Mesh Add" template failsJulian Eisel
Another script that was missing the lookup_table call.
2015-01-12Fix T43206: region_2d_to_origin_3d has no ortho offsetCampbell Barton
With ortho views the value would be aligned to the 'rv3d->ofs' Now it works in camera ortho & regular ortho views.
2014-10-29Fix T42389: Removed outdated comment from custom_nodes.py example script.Lukas Tönne
There was some confusion about the bl_icon attribute being optional. In fact the functionality for hiding a tree type in the editor header is now controlled by writing a poll function for the tree type instead, which is more flexible and clean. http://www.blender.org/documentation/blender_python_api_2_71_6/bpy.types.NodeTree.html#bpy.types.NodeTree.poll
2014-09-22Fix T41902: Flipped persp/ortho region_2d_to_vector_3dCampbell Barton
- Ortho result from view3d_utils.region_2d_to_vector_3d was flipped. - Persp result wasn't normalized. - operator_modal_view3d_raycast.py failed for ortho views. Thanks to Philipp Oeser for the initial fix.