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-19Fix compiler warningJoshua Leung
2017-09-18Merge remote-tracking branch 'origin/master' into blender2.8Dalai Felinto
2017-09-18Fix T52800: fix UI flickering with Mesa on Linux.Brecht Van Lommel
Use triple buffer by default now on all platforms, remaing ones where: * Mesa: seems to have been working well for a long time now, and not using it gives issues with the latest Mesa 17.2.0. * Windows software OpenGL: no longer supported since OpenGL 2.1 requirement was introduced. * OS X with thousands of colors: this option was removed in OS X 10.6, and that's our minimum requirement.
2017-09-13Cleanup: use explicit 2d suffix for imm utilsCampbell Barton
Avoid ambiguity between 2d/3d (which were already named).
2017-09-05Manipulator: missing exit() callCampbell Barton
2017-09-01Revert "Manipulator: remove unused event hack"Campbell Barton
This reverts commit 134e927965c9871df8a9e13806f1cd48f4d43f16. Writing into const event is very bad, but this change broke compositor manipulators. Will look into better solution eventually.
2017-08-30Manipulator: replace old cage2d manipulatorCampbell Barton
Mostly internal changes, keeping both manipulators could have worked but there was no point long term. There are still some glitches to resolve, will work on those next.
2017-08-30Manipulator: rename callback typeCampbell Barton
2017-08-30Manipulator: run callback when calculating the final matrixCampbell Barton
2017-08-28Merge branch 'master' into blender2.8Sergey Sharybin
2017-08-28Make GS macro return proper IDType typeSergey Sharybin
Previously it was returning short, which was really easy to (a) compare against non-ID type value (b) forget to handle some specific value in switch statement. Both issues happened in the nearest past, so it's time to tighten some nuts here. Most of the change related on silencing strict compiler warning now, but there is also one tricky aspect: ID_NLA is not in the IDType enum. So there is still cast to short to handle that switch. If someone has better ideas how to deal with this please go ahead :)
2017-08-27Manipulator: support operator per-partCampbell Barton
A single manipulator could only assign a single operator to each part. Now each part can have it's own. Also modify 2D selection callback, 2D started at 1, 3D at 0. Now use -1 for unset value, start both at 0.
2017-08-25Merge branch 'master' into blender2.8Campbell Barton
2017-08-25WM: initialize WM and deps before handling eventsCampbell Barton
This avoids obscure bugs where operators could run from events that happen before the UI and depsgraph have been initialized. See: D2809 for details.
2017-08-25Fix manipulator remove tag, it cleared all groupsCampbell Barton
2017-08-25Manipulator: zero grab offset w/o target propertyCampbell Barton
Some manipulators are used like on-screen buttons, in this case it doesn't make sense to keep track of their state, so zero the offset when its unused. Needed for lamp-target manipulator.
2017-08-24Fix crash handling manipulator events before drawingCampbell Barton
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-24Manipulator: remove unused event hackCampbell Barton
2017-08-23Merge branch 'master' into blender2.8Campbell Barton
2017-08-23Fix T52396: Crash loading template w/o config dirCampbell Barton
2017-08-23Merge branch 'master' into blender2.8Campbell Barton
2017-08-23RNA: use string-join to simplify operator registerCampbell Barton
Also sanity check macro-operator ID's.
2017-08-21Cleanup: rename manipulator API functionsCampbell Barton
- WM_manipulatorgrouptype_remove- > free - WM_manipulator_group -> WM_manipulator_group_type Naming here is still a bit confusing, now at least free/remove are differentiated.
2017-08-21Fix crash re-registering manipulatorsCampbell Barton
Duplicating strings caused problems using strings in both struct hash and manipulator group types own hash.
2017-08-18Audaspace: Moving audaspace 1.3 into extern.Jörg Müller
Deleting the old internal audaspace. Major changes from there are: - The whole library was refactored to use C++11. - Many stability and performance improvements. - Major Python API refactor: - Most requested: Play self generated sounds using numpy arrays. - For games: Sound list, random sounds and dynamic music. - Writing sounds to files. - Sequencing API. - Opening sound devices, eg. Jack. - Ability to choose different OpenAL devices in the user settings.
2017-08-16Pass EvaluationContext instead of bContextCampbell Barton
2.8x branch added bContext arg in many places, pass eval-context instead since its not simple to reason about what what nested functions do when they can access and change almost anything. Also use const to prevent unexpected modifications. This fixes crash loading files with shadows, since off-screen buffers use a NULL context for rendering.
2017-08-15Manipulator: grab3d use own vars to store offsetCampbell Barton
Was complicating general use case, also support for transforming with matrix_space set. Add matrix_space support for manipulator_window_project_2d too.
2017-08-15Manipulator: store initial-final matrix for reuseCampbell Barton
Also take matrix_space into account when calculating final pixel size.
2017-08-12Merge branch 'master' into blender2.8Campbell Barton
2017-08-12WM: load UI for new file, even when pref disabledCampbell Barton
Loading startup file always loads the UI now.
2017-08-12Code cleanup: fix various compiler warnings.Brecht Van Lommel
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-11Merge branch 'master' into blender2.8Campbell Barton
2017-08-11WM: don't load preferences on 'File -> New'Campbell Barton
User preferences are now only loaded on... - Initial startup. - Factory-settings. - Setting app-templates.
2017-08-10Merge branch 'master' into blender2.8Bastien Montagne
2017-08-10DPI: add back option to control line width, tweak default width.Brecht Van Lommel
Adds thin/default/thick modes to add -1/0/1 to the auto detected line width, while leaving the overall UI scale unchanged. Also tweaks the default line width threshold, so thicker lines start from slightly high UI scales. Differential Revision: https://developer.blender.org/D2778
2017-08-10Cleanup: don't abbreviate color w/ manipulator APICampbell Barton
2017-08-09Manipulator: disable cursor grabbing for 2D groupsCampbell Barton
We could make this a manipulator type flag, for now disable for all 2D manipulators since its annoying for cage2d.
2017-08-09Error in last commitCampbell Barton
2017-08-09Manipulator: Add function to calculate matrixCampbell Barton
Each manipulator was doing this slightly differently, use shared function which can optionally override each matrix.
2017-08-09Manipulator: grab3d - support for 2d viewsCampbell Barton
Also internal changes so arrow3d matches grab3d's behavior. Needed to add WM_MANIPULATOR_DRAW_OFFSET_SCALE flag so we can optionally apply offset in worldspace or screen scaled values.
2017-08-07Refactor ID copying (and to some extent, ID freeing).Bastien Montagne
This will allow much finer controll over how we copy data-blocks, from full copy in Main database, to "lighter" ones (out of Main, inside an already allocated datablock, etc.). This commit also transfers a llot of what was previously handled by per-ID-type custom code to generic ID handling code in BKE_library. Hopefully will avoid in future inconsistencies and missing bits we had all over the codebase in the past. It also adds missing copying handling for a few types, most notably Scene (which where using a fully customized handling previously). Note that the type of allocation used during copying (regular in Main, allocated but outside of Main, or not allocated by ID handling code at all) is stored in ID's, which allows to handle them correctly when freeing. This needs to be taken care of with caution when doing 'weird' unusual things with ID copying and/or allocation! As a final note, while rather noisy, this commit will hopefully not break too much existing branches, old 'API' has been kept for the main part, as a wrapper around new code. Cleaning it up will happen later. Design task : T51804 Phab Diff: D2714
2017-08-07Refactor ID copying (and to some extent, ID freeing).Bastien Montagne
This will allow much finer controll over how we copy data-blocks, from full copy in Main database, to "lighter" ones (out of Main, inside an already allocated datablock, etc.). This commit also transfers a llot of what was previously handled by per-ID-type custom code to generic ID handling code in BKE_library. Hopefully will avoid in future inconsistencies and missing bits we had all over the codebase in the past. It also adds missing copying handling for a few types, most notably Scene (which where using a fully customized handling previously). Note that the type of allocation used during copying (regular in Main, allocated but outside of Main, or not allocated by ID handling code at all) is stored in ID's, which allows to handle them correctly when freeing. This needs to be taken care of with caution when doing 'weird' unusual things with ID copying and/or allocation! As a final note, while rather noisy, this commit will hopefully not break too much existing branches, old 'API' has been kept for the main part, as a wrapper around new code. Cleaning it up will happen later. Design task : T51804 Phab Diff: D2714
2017-08-07Merge branch 'master' into blender2.8Bastien Montagne
2017-08-07Fix T52278: 'Default' application template failsCampbell Barton
Own error in 7398b3b7
2017-08-04Manipulator: add manipulator space matrixCampbell Barton
Render-border & crop-node 2d-cage manipulators where unreasonably complicated to implement because there was no good way to define the sub-region the manipulator was transforming in (render border within the camera's frame for example). Add matrix-space variable, remove scale property from cage2d manipulator, use matrix instead.
2017-08-04Manipulator: fix check for custom functionCampbell Barton
2017-08-04Manipulator: modal was drawing in wrong draw-stepCampbell Barton