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-16Cleanup: rename GPU gawain functionsCampbell Barton
Were using Batch_ prefix still
2017-08-16Gawain: remove GWN_batch_discard_allCampbell Barton
Use ownership flags instead.
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-10Manipulator: grab3d option to align to viewCampbell Barton
Use for lamp-target, makes it easier to click on.
2017-08-10Manipulator: cage2d translate in 3D view supportCampbell Barton
Needed for moving image-empties.
2017-08-10Manipulator: apply cage2d scale before offsetCampbell Barton
Needed when offset takes factor into account.
2017-08-10Cleanup: don't abbreviate color w/ manipulator APICampbell Barton
2017-08-10Manipulator: rename grab enumCampbell Barton
We'll want some 3D shapes, so name existing shapes 2D
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: add sun-beam node manipulatorCampbell Barton
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-04Manipulator: fix cage2d cancel not resettingCampbell Barton
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: correct center-pivot clampingCampbell Barton
2017-08-03error in last commitCampbell Barton
2017-08-03Manipulator: disallow negative scale when resizingCampbell Barton
2017-08-03Manipulator: use matrix to convert view coordsCampbell Barton
Was doing this with property get/set but this made view operations require refreshing manipulator properties. Simplify by operating on properties in their own space. Also disable clamping for now since it assumes pixel-space.
2017-08-03Manipulator: render border widgetCampbell Barton
Note there are issues clamping & updating, will resolve as part of changes to cage2d widget.
2017-08-03Manipulator: Use 2D manipulators in the 3D viewCampbell Barton
Also split update flag into draw-steps, since drawing 3D manipulators was tagging 2D as being refreshed.
2017-08-03Manipulator: use default for cage2d dimensionsCampbell Barton
Also minor cleanuup, assign new vars for manipulator group.
2017-08-03Cleanup: warningsCampbell Barton
2017-08-03Cleanup: rename selectionbase -> select_idCampbell Barton
2017-08-02Manipulator: Make cage2d usable in the 3D viewCampbell Barton
2017-08-02Manipulator: correct cage-2d scale updateCampbell Barton
2017-08-01Fix typo in 2d-cage manipulatorCampbell Barton
2017-08-01Cleanup: double promotionCampbell Barton
2017-07-26Cleanup: typedef enumsCampbell Barton
Manipulator enum types are easy to confuse, use typedefs.
2017-07-25Cleanup: rename active to modalCampbell Barton
This matches operators naming and should avoid confusion in future if we want to use active as term for last-selected.
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-01Cleanup: unused definesCampbell Barton
2017-06-26Correct copy-paste error manipulatorCampbell Barton
2017-06-23Manipulator: disable GL state changes drawing geometryCampbell Barton
If there is case this is needed, we can enable and restore state for now it seems OK to disable.
2017-06-23Manipulator: rename struct membersCampbell Barton
Rename: - matrix -> matrix_basis - user_scale -> scale_basis - scale -> scale_final Match RNA names being added to custom-manipulator branch.
2017-06-22Manipulator: target property definitionsCampbell Barton
Changes from custom-manipulator branch. - use property type definitions. - add property free callback. - move properties into the wmManipulator struct (over alloc). - use array length from property types instead of arg passing.
2017-06-21Manipulator: edit_properties -> target_propertiesCampbell Barton
Naming was too confusing between properties of a manipulator and properties it edits.
2017-06-21Manipulator: Move types into their own directoryCampbell Barton
2017-06-21Manipulators: move settings to ID propertiesCampbell Barton
This makes manipulator access closer to operators, and allows Python access. This adds RNA for manipulators, but not Python registration yet. - Split draw style into 2x settings: `draw_style` (enum) & `draw_options` (enum-flag) - Rename wmManipulator.properties -> properties_edit, Use wmManipulator.properties for ID-properties. Note that this area of the API will need further work since manipulators now have 2 kinds of properties & API's to access them.
2017-06-19Gawain API naming refactorCampbell Barton
Use consistent prefix for gawain API names as well as some abbreviations to avoid over-long names, see: D2678
2017-06-19Manipulator: de-duplicate flags and scale optionCampbell Barton
2017-06-18Manipulator: use matrix for manipulator directionCampbell Barton
Remove type-specific axis functions.
2017-06-17Manipulator: use matrix instead of originCampbell Barton
This avoids having to use manipulator-type specific functions to set the orientation. And will make it simpler to access transformation from Python. Currently the matrix is still used as an offset in places. Also per-type orientation values still need to be removed.
2017-06-17Cleanup: use uintCampbell Barton
2017-06-17Manipulator: draw options for dialCampbell Barton
- Option to start helper angle lines based on a vector instead of the initial mouse coords (useful for bisect & spin). - Option to show 2x helper lines useful when dial is used to rotate an axis value.
2017-06-17Manipulator: correct dial angleCampbell Barton
Calculation was done in screen-space giving inaccuracy, making the angle incorrect for tool code. Cast mouse coords onto the dial plane to calculate the angle instead.
2017-06-17Manipulator: fix general purpose dial useCampbell Barton
Wasn't checking own location when checking if flip is needed.
2017-06-17Camera widget only drew 3 sidesCampbell Barton
2017-06-17Cleanup: minor consistency tweak for type nameCampbell Barton
2017-06-17Manipulator: remove type specific 'new' functionsCampbell Barton
Instead use generic 'WM_manipulator_new', adding a new 'setup' callback (like wmManipulatorGroup.setup) used to initialize type vars. This moves conventions closer to wmOperator and simplifies exposing to Python.