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-07-13Cleanup/rename etc. dashed line shaders.Bastien Montagne
Goal is to make them more modular, to allow more variants (variable single-color, thickness, ...) to be added without having to copy-and-change-one-line of whole chain of shaders.
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-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-01Reworked version of dashed line shader.Bastien Montagne
Using geometry shader allows us to get rid of the 'line origin' extra vertex attribute, which means dashed shader no longer requires fiddling with those vertex attributes definition, and, most importantly, does not require anymore special drawing code! As you can see, this makes code much simpler, and much less verbose, especially in complex cases. In addition, changed how dashes are handled, to have two 'modes', a simple one with single color (using default "color" uniform name), and a more advanced one allowing more complex and multi-color patterns. Note that since GLSL 1.2 does not support geometry shaders, a hack was added for now (which gives solid lines, but at least does not make Blender crash).
2017-04-27Getting rid of setlinestyle: transform code.Bastien Montagne
Note that I also made 'dash anchor point' consistent (the static one, not the mouse one), in previous code somtimes dashed were anchored to the static center point, in others, to the moving mouse position, the later was rather disturbing imho...
2017-04-07OpenGL: use PRIM instead of GL enum for immBeginMike Erwin
Getting ready for a Gawain API change... Part of T49043
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-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-03-21OpenGL: convert to new matrix API (part 4)Mike Erwin
Part of T49450, fixes a Push/Pop mismatch from part yesterday's 3.
2017-02-11OpenGL immediate mode: Convert leftover UI_ThemeColor callsLuca Rood
Some `UI_ThemeColor` calls were left in converted files, in some cases because they were just overlooked, and in the case of text drawing, because the new BLF color functions were not yet implemented at the time of conversion. Also converted one `drawcircball` call that was left in transform_constraints.c Part of T49043
2017-02-01OpenGL immediate mode: transform_constraints.cLuca Rood
Differential Revision: https://developer.blender.org/D2483 Part of T49043
2016-07-08Cleanup: use normalize_v#_lengthCampbell Barton
2016-05-17C99/C++11: replace deprecated finite() by isfinite().Brecht Van Lommel
2016-02-02Use simpler method to check the planes view alignedCampbell Barton
2016-02-01Fix T47238: Bug w/ view aligned constraint planeCampbell Barton
When constraining on 2 axis, it was possible the plane was view-aligned causing odd glitches.
2016-02-01Avoid duplicate getConstraintSpaceDimension callsCampbell Barton
2016-01-22OpenGL: cleanupMike Erwin
- LINE_STRIP to LINES when only drawing one - group state changes for easier reading - general cleanup
2015-11-24Fix T46805: Scale along axis fails w/ PythonCampbell Barton
't->value' no longer has constraint matrix applied for translate, fix for T46003 is no longer needed.
2015-11-01Cleanup: old commentsCampbell Barton
2015-09-22Cleanup: indentationCampbell Barton
2015-08-18Refactor translation code out of blenfontCampbell Barton
- Add blentranslation `BLT_*` module. - moved & split `BLF_translation.h` into (`BLT_translation.h`, `BLT_lang.h`). - moved `BLF_*_unifont` functions from `blf_translation.c` to new source file `blf_font_i18n.c`.
2015-06-30Fix for mistake in grid-snap patchCampbell Barton
2015-06-27Transform: absolute grid snappingCampbell Barton
D910 by @donfabio with edits New icon for menu is still TODO
2015-06-26Cleanup: transform centerCampbell Barton
store global center in transform struct, some code was calculating all the time, this is useful to keep available.
2015-06-26Cleanup: transform aspectCampbell Barton
Transform code had duplicate aspect checking, now store aspect in TransInfo.aspect for reuse.
2015-04-07Proportional editing support for the action editor.Antony Riakiotakis
There are a few things here which are not so nice: * Position of proportional edit circle is not centered on data (difficult to predict positions here since those are completely custom, will probably be positioned at center of area later instead) * Result is flushed to curve handles only at the end of the transform, so if people have the graph editor open they will see handles lagging behind.
2015-03-31Proportional editing for IPO editor - version ready for feedback by artists.Antony Riakiotakis
This works by using the distance in the x axis only (usually artists want to influence nearby keyframes based on timing, not value). Tweaking handles is the same as tweaking the central handle. It's a bit ambiguous if proportional editing is really meaningful for handles but will leave that for artists to decide.
2015-01-31Compiler warning: double-promotionCampbell Barton
2014-07-21GSOC 2013 paintAntony Riakiotakis
Yep, at last it's here! There are a few minor issues remaining but development can go on in master after discussion at blender institute. For full list of features see: http://wiki.blender.org/index.php/Dev:Ref/Release_Notes/2.72/Painting Thanks to Sergey and Campbell for the extensive review and to the countless artists that have given their input and reported issues during development.
2014-07-19Defines: replace ELEM3-16 with ELEM(...), that can take varargsCampbell Barton
2014-05-01Code cleanup: remove file handling headers where they arent neededCampbell Barton
2014-04-29Code cleanup: remove redundant matrix initializationCampbell Barton
2014-04-06Fix T39479: Transform mouse constraint fails in some situations.Bastien Montagne
Some more float precision issue...
2014-03-23Fix T39347: Pressing backspace during empty number input for translation ↵Bastien Montagne
results in 0.5828 increments Interesting one, took me hours to understand the issue - a stupid typo checking the wrong value against the wrong flag (present since 2008!).
2014-03-23Further tweaking to numinput - enhance 'Reset' behavior.Bastien Montagne
Ways how it was resetting its values (backspace) was far from satisfaying. Now, e.g. when scaling, it will reset at 1 (or whatever mouse-value it was before entering numinput), instead of some ugly 0.0 value. Implementation details: * Values passed to applyNumInput() are stored as default ones (val_org), if it is not EDITED. * applyNumInput() returns a boolean saying whether it actually set values or not. * When backspace hits its ultimate step (where it clears all EDITED flags and reset all default values), it sets a temp FAKE_EDITED flag that will be used to apply one last time values of numinput (so that default values actually get applied!). There are important things to note here for code using numinput: * Values passed to applyNumInput() should be valid and are stored as default ones (val_org), if it is not EDITED. * bool returned by applyNumInput should be used to decide whether to apply numinput-specific post-process to data. * *Once applyNumInput has been called*, hasNumInput returns a valid value to decide whether to use numinput as drawstr source or not. Those two steps have to be separated (so do not use a common call to hasNumInput() to do both in the same time!).
2014-01-16Code Cleanup: style and redundant castsCampbell Barton
2013-11-28Fix T37143: Wrong normal dir with individual origins + one vert selectedCampbell Barton
2013-11-20fix T37411: Transform mouse constraint could fail in some situations.Campbell Barton
Was caused by int rounding when an axis was < 1.0.
2013-11-06True grid snapping for nodes: This snaps nodes to the actual background grid ↵Lukas Toenne
instead of using incremental offset (which is not useful for nodes). Increment snapping has been disabled for nodes to avoid confusion, grid snap is now the default as it seems to be the most wanted and easy to use mode. Absolute grid snapping happens in a somewhat generic function 'applyGridAbsolute', which could also be used for objects and other transforms later on. It is conceptually similar to the 'project' snapping option, in that it calculates a delta vector for each element on top of the overall transform, which places each node on the grid. Node transform now uses the top-left node corner for TransformData->loc. The transform center is still the average of node centers, so that scaling and rotation works nicely. snapGrid*** functions have been renamed to snapGridIncrement*** to distinguish better between incremental and absolute grid snapping.
2013-10-23code cleanup: minor transform refactorCampbell Barton
redraw flag were mixing up types - int/char/bool, add enum type to use instead.
2013-10-23fix [#37179] All transformation normals drawn when proportional edit, ↵Campbell Barton
individual origins and normal transform orientation are set thanks to psy-fi for the initial patch.
2013-08-21Fix #36499: proportional edit circle was drawing behind objects in some cases,Brecht Van Lommel
now it always draws in front to ensure the circle is visible.
2013-07-19style cleanup: switch statements, include break statements within braces & ↵Campbell Barton
indent. also indent case's within the switch (we already did both of these almost everywhere)
2013-05-01use 'normal' orientation rather then 'local' with individual origins to use ↵Campbell Barton
the per-element axis-matrix.
2013-04-22fix for scaling on individual center in mesh editmode when the object has ↵Campbell Barton
non-unit matrix. (own error when adding support for axismtx in editmode)
2013-04-12fix for own recent addition of transform indervidual-axis in editmode, not ↵Campbell Barton
working if the object was rotated.
2013-04-11correction to own recent changes to exitmode using axis-matrix, fallback to ↵Campbell Barton
old behavior for editmodes where the axis-matrix isnt set (curve, surface, lattice)
2013-04-08fix for own mistake in recent adjustments to transform, local without ↵Campbell Barton
individual-origin wasn't working.
2013-04-05code cleanup: include orderCampbell Barton
2013-04-04fix [#34802] Individual Transformation Confusing in Edit ModeCampbell Barton
Individual transformation now works in editmode mesh faces/edge, armature bones and metaballs.