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-15Cleanup/refactor: no new general arg-less macros enforcing var names please!Bastien Montagne
We do have an history of those pieces of evil in our code, would be nice to get fully rid of it, but at the very least let's not add more of them in new code. :)
2017-08-10Cleanup: don't abbreviate color w/ manipulator APICampbell 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-07-27Manipulator: remove namesCampbell Barton
They weren't used anywhere, both C & Py manipulators better assign to vars (no lookup needed).
2017-07-26Cleanup: typedef enumsCampbell Barton
Manipulator enum types are easy to confuse, use typedefs.
2017-06-26Manipulator: add optional properties argumentCampbell Barton
Needed for RNA/Py API
2017-06-23Manipulator: flip scale flag usageCampbell Barton
Naming was confusing, while technically correct - the result is no scaling (manipulator ignores zoom-level). Also remove 3D from name since this can be supported for 2D views too.
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-19Manipulators: store operator type instead of idCampbell Barton
Avoids lookups on each access.
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-17Cleanup: use uintCampbell Barton
2017-06-17Cleanup: unused codeCampbell 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.
2017-06-15Updates to manipulator APICampbell Barton
While this is work-in-progress from custom-manipulators branch its stable so adding into 2.8 so we don't get too much out of sync. - ManipulatorGroupType's are moved out of the manipulator-map and are now global (like operators, panels etc) and added into spaces as needed. Without this all operators that might ever use a manipulator in the 3D view would be polling the viewport. - Add optional get/set callbacks for non-RNA properties Needed so re-usable manipulators can control values that don't correspond to a single properly or need conversion. - Fix divide by zero bug in arrow manipulator (when moving zero pixels).
2017-06-10Manipulator Update/RefactorCampbell Barton
Sync with custom-manipulators branch - Use identifiers for properties. - Property array index access. - Remove operator from manipulators (wasn't used and will likely add in a different way).
2017-06-08WM: move manipulator library into editorsCampbell Barton
As with operators, the window-manager has the API for defining, the editor can implement and register its own manipulators. This exposes wmManipulator, keeping it opaque isn't practical if editors and Python are to implement their own.
2017-06-07WM: add wmManipulatorType, from wmManipulatorCampbell Barton
Having the type in mixed in with each instance made it hard to expose types to RNA/Python.
2017-06-07Minor manipulator API changesCampbell Barton
Sync up with custom-manipulator branch
2017-06-07WM: remove unused return valuesCampbell Barton
2017-06-06WM: manipulator callback arg orderCampbell Barton
Use same arg order for C & RNA
2017-06-06WM: functions for assigning all manipulator callbacksCampbell Barton
- Move callbacks into type struct. - Rename render_3d_intersection -> draw_select. - Add header for function signatures (needed for types and api headers). - Add WM_manipulatormaptype_find
2017-06-01Move custom transform orientations to workspaceJulian Eisel
This commit moves the list of transform orientations from scenes to workspaces. Main reasons for this are: * Transform orientations are UI data and should not be stored in the scene. * Introducion of workspaces caused some (expected) glitches with transform orientations. Mainly when removing one. * Improves code. More technically speaking, this commit does: * Move list of custom transform orientations from Scene to WorkSpace struct. * Store active transform orientation index separate from View3D.twmode (twmode can only be set to preprocessor defined values now). * Display custom transform orientation name in header when transforming in it (used to show "global" which isn't really correct).
2017-05-20Merge branch 'master' into blender2.8Campbell Barton
2017-05-20CMake: Use GCC7's -Wimplicit-fallthrough=5Campbell Barton
Use to avoid accidental missing break statements, use ATTR_FALLTHROUGH to suppress.
2017-05-10Fix T51354: Final take on multi-view (single view) issuesDalai Felinto
We now handle selection and transform manipulators (kudos to Julian Eisel to help hunting down the latter).
2017-04-08Correct constraint manipulator colorsCampbell Barton
Widget show as color of constrained axis
2017-04-073D Manipulator: add back protected flags checkCampbell Barton
This used to be a separate pass
2017-04-073D View: manipulator from custom-manipulators branchCampbell Barton
Original code from @Severin with changes from @dfelinto & @hypersomniac. This doesn't cause many functional changes besides using new transform manipulators. Submitted as D2604
2017-04-07OpenGL: disable rotate manipulator clipping on MacMike Erwin
This fixes T51143. gl_ClipDistance is part of GLSL version 1.3 but Mac is stuck on 1.2 for now. This workaround uses GPU_SHADER_3D_UNIFORM_COLOR for the entire rotation widget, ignoring any clipping plane. The CLIPPING shader only works on GLSL 1.3+ so I removed its 1.2 cruft. A legacy implementation using gl_ClipVertex might be possible, but is not worth the effort. This problem (and workaround) goes away when all platforms move to 3.3 core profile.
2017-04-07fix rotation manipulator's Push/PopMatrix balanceMike Erwin
Was popping out the bottom of the stack.
2017-04-06Gawain: VertexFormat_add_attrib (function name change)Mike Erwin
See intern/gawain for the API change. Other files are updated to use the new name. Also updated every call site to the recommended style: unsigned int foo = VertexFormat_add_attrib(format, "foo", COMP_ ... )
2017-04-06Fix manipulator showing in pose & editmodeCampbell Barton
2017-04-06Merge branch 'master' into blender2.8Campbell Barton
2017-04-06Cleanup: function naming for manipulatorCampbell Barton
Rename 'stats_*' to 'protectflag_to_drawflags_*' (was too vague). Also remove NULL check from gimbal_axis
2017-04-06Merge branch 'master' into blender2.8Campbell Barton
2017-04-06Cleanup: minor changes to transform-manipulatorCampbell Barton
Match stats_editbone & stats_pchan behavior to avoid confusion.
2017-04-06Remove NULL check from gimbal_axisCampbell Barton
2017-04-05Fix rotation manipulators not clippingJulian Eisel
Added new shader for clipping, also cleaned up rotation manipulator drawing code a bit. This code should be replaced by new transform manipulators soon, just keeping this working in the meanwhile.
2017-03-23cleanup use of GPU matrix APIMike Erwin
Take advantage of 2D functions, rotation about the X Y or Z axis, uniform scale factors. We no longer need to call gpuMatrixBegin_legacy() before using the new API locally in functions. related to T49450
2017-03-09Merge branch 'master' into blender2.8Campbell Barton
2017-03-08OpenGL Select: integer rect for passing regionCampbell Barton
2017-03-07Once more T50565: Allow using planar constraints for scale manipulatorJulian Eisel
2017-03-02Merge branch 'master' into blender2.8Julian Eisel
Conflicts: source/blender/blenkernel/intern/scene.c
2017-03-02Remove all instance of OBACT from particle_edit.c and related changesDalai Felinto
2017-03-02Fix weird "use_planar_constraint" button in redo panelJulian Eisel
Issue was that the VIEW_OT_manipulator operator calls the transform operators and passes them it's own operator properties. That means the transform operator got properties passed that it doesn't have.
2017-03-02Fix another part of T50565: Planar constraints were always initialized to ↵Sergey Sharybin
accurate transform Now it is defined by keymap.
2017-02-19OpenGL immediate mode: transform_manipulator.cClément Foucault