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-08-18PyAPI: Gawain checks for rangeCampbell Barton
Raise error on vert-buffer data overflow. Also exception on attempting to fill data thats already on the GPU.
2017-08-18Cleanup: use lowercase prefix for local API'sCampbell Barton
Also some minor corrections.
2017-08-18PyAPI: Iniital gawain API for PythonCampbell Barton
Wraps vertex-format, vertex-buffer and batch's (enough for drawing). Doesn't yet expose index-buffers or shaders.
2017-08-18RNA: don't register manipulator properties by nameCampbell Barton
Matching behavior for operators.
2017-08-12Merge branch 'master' into blender2.8Campbell Barton
2017-08-11Cleanup: 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-08-11Merge branch 'master' into blender2.8Campbell Barton
2017-08-11RNA: Operators were excluded from struct mapCampbell Barton
Recent changes meant structs that were registered without a name wouldn't get added to the map. Now assigning identifiers manages the struct-map.
2017-08-08Fix 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-08-01Correct previous commit, instance should be clearedCampbell Barton
Clear instance in case creating creating new instance fails. In practice this shouldn't happen, but better not cause further errors if it does.
2017-08-01PyRNA: Ensure changed types creates a new instanceCampbell Barton
Changing lamp type for eg needs to create a new instance.
2017-07-28Merge branch 'master' into blender2.8Campbell Barton
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-26Fix crash in recent changes to instancingCampbell Barton
Registrable classes already handled their own instancing, changes to enable instancing everywhere conflicted.
2017-07-26PyAPI: Fix for instancing (Blender owns a reference)Campbell Barton
Also set newly created values to the instance pointer.
2017-07-25Merge branch 'master' into blender2.8Campbell Barton
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-21Fix function declaration of some modifiersSergey Sharybin
Those functions did not use evaluation context. Also fixed lots of unused variables warnings caused by commented out code which needs to be ported away from DerivedMesh and to evaluation context.
2017-07-21Pass EvaluationContext argument everywhereLuca Rood
Note that some little parts of code have been dissabled because eval_ctx was not available there. This should be resolved once DerivedMesh is replaced.
2017-07-20PyAPI: use instancing when supportedCampbell Barton
This means when a new data-type is returned it will use the same instance as the previously created one (if it exists).
2017-07-20BMesh face map layer accessCampbell Barton
2017-07-18Merge branch 'master' into blender2.8Campbell Barton
2017-07-17Fix T52090: clarify meaning of EnumProperty number when using ENUM_FLAG.Brecht Van Lommel
2017-07-17Merge branch 'master' into blender2.8Campbell Barton
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-07-17Manipulator: allow py manipulators w/o propertiesCampbell Barton
These could be used for manipulators that run operators.
2017-07-13Depsgraph: Begin work on making depsgraph per-scene-layerSergey Sharybin
This is a first step towards proper depsgraph "ownership", where we would allow scene to be in multiple states dependent on active workspace or scene layer. This commit introduces a basic API to get proper dependency graph for a given scene layer. It also renames scene->depsgraph to depsgraph_legacy, so it's easier to search0-n-replace in the future.
2017-06-26Used Py3.6 feature by accident, check versionCampbell 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-26Merge branch 'master' into blender2.8Campbell Barton
2017-06-26Docs: correct doc-stringsCampbell Barton
2017-06-21PyAPI: add intern stringsCampbell Barton
Avoid string conversion on each use.
2017-06-19Merge branch 'master' into blender2.8Campbell 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-17Merge branch 'master' into blender2.8Campbell Barton
2017-06-16PyAPI: Fix warning about indentAaron Carlisle
2017-06-15Merge branch 'master' into blender2.8Sergey Sharybin
2017-06-15PyAPI: Proper Solution to bpy.appAaron Carlisle
2017-06-14PYAPI: Fix mathutils doc structureAaron Carlisle
2017-06-12Merge branch 'master' into blender2.8Sergey Sharybin
2017-06-12Cleanup: indentation, long linesCampbell Barton
2017-06-09Merge branch 'master' into blender2.8Campbell 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-07Merge branch 'master' into blender2.8Sergey Sharybin
2017-06-07Report OpenSubdiv version Blender is compiled againstSergey Sharybin
2017-06-05Merge branch 'master' into blender2.8Campbell Barton
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-06-01Main Workspace IntegrationJulian Eisel
This commit does the main integration of workspaces, which is a design we agreed on during the 2.8 UI workshop (see https://wiki.blender.org/index.php/Dev:2.8/UI/Workshop_Writeup) Workspaces should generally be stable, I'm not aware of any remaining bugs (or I've forgotten them :) ). If you find any, let me know! (Exception: mode switching button might get out of sync with actual mode in some cases, would consider that a limitation/ToDo. Needs to be resolved at some point.) == Main Changes/Features * Introduces the new Workspaces as data-blocks. * Allow storing a number of custom workspaces as part of the user configuration. Needs further work to allow adding and deleting individual workspaces. * Bundle a default workspace configuration with Blender (current screen-layouts converted to workspaces). * Pressing button to add a workspace spawns a menu to select between "Duplicate Current" and the workspaces from the user configuration. If no workspaces are stored in the user configuration, the default workspaces are listed instead. * Store screen-layouts (`bScreen`) per workspace. * Store an active screen-layout per workspace. Changing the workspace will enable this layout. * Store active mode in workspace. Changing the workspace will also enter the mode of the new workspace. (Note that we still store the active mode in the object, moving this completely to workspaces is a separate project.) * Store an active render layer per workspace. * Moved mode switch from 3D View header to Info Editor header. * Store active scene in window (not directly workspace related, but overlaps quite a bit). * Removed 'Use Global Scene' User Preference option. * Compatibility with old files - a new workspace is created for every screen-layout of old files. Old Blender versions should be able to read files saved with workspace support as well. * Default .blend only contains one workspace ("General"). * Support appending workspaces. Opening files without UI and commandline rendering should work fine. Note that the UI is temporary! We plan to introduce a new global topbar that contains the workspace options and tabs for switching workspaces. == Technical Notes * Workspaces are data-blocks. * Adding and removing `bScreen`s should be done through `ED_workspace_layout` API now. * A workspace can be active in multiple windows at the same time. * The mode menu (which is now in the Info Editor header) doesn't display "Grease Pencil Edit" mode anymore since its availability depends on the active editor. Will be fixed by making Grease Pencil an own object type (as planned). * The button to change the active workspace object mode may get out of sync with the mode of the active object. Will either be resolved by moving mode out of object data, or we'll disable workspace modes again (there's a `#define USE_WORKSPACE_MODE` for that). * Screen-layouts (`bScreen`) are IDs and thus stored in a main list-base. Had to add a wrapper `WorkSpaceLayout` so we can store them in a list-base within workspaces, too. On the long run we could completely replace `bScreen` by workspace structs. * `WorkSpace` types use some special compiler trickery to allow marking structs and struct members as private. BKE_workspace API should be used for accessing those. * Added scene operators `SCENE_OT_`. Was previously done through screen operators. == BPY API Changes * Removed `Screen.scene`, added `Window.scene` * Removed `UserPreferencesView.use_global_scene` * Added `Context.workspace`, `Window.workspace` and `BlendData.workspaces` * Added `bpy.types.WorkSpace` containing `screens`, `object_mode` and `render_layer` * Added Screen.layout_name for the layout name that'll be displayed in the UI (may differ from internal name) == What's left? * There are a few open design questions (T50521). We should find the needed answers and implement them. * Allow adding and removing individual workspaces from workspace configuration (needs UI design). * Get the override system ready and support overrides per workspace. * Support custom UI setups as part of workspaces (hidden panels, hidden buttons, customizable toolbars, etc). * Allow enabling add-ons per workspace. * Support custom workspace keymaps. * Remove special exception for workspaces in linking code (so they're always appended, never linked). Depends on a few things, so best to solve later. * Get the topbar done. * Workspaces need a proper icon, current one is just a placeholder :) Reviewed By: campbellbarton, mont29 Tags: #user_interface, #bf_blender_2.8 Maniphest Tasks: T50521 Differential Revision: https://developer.blender.org/D2451
2017-05-28Merge branch 'master' into blender2.8Bastien Montagne