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
2019-11-25CMake: support building without PythonCampbell Barton
Resolve linking issues, warnings.
2019-11-24Cleanup: doxygen commentsCampbell Barton
Also correct some outdated symbol references, add missing 'name' commands.
2019-04-21Cleanup: comments (long lines) in editorsCampbell Barton
2019-04-17ClangFormat: apply to source, most of internCampbell Barton
Apply clang format as proposed in T53211. For details on usage and instructions for migrating branches without conflicts, see: https://wiki.blender.org/wiki/Tools/ClangFormat
2019-02-18doxygen: add newline after \fileCampbell Barton
While \file doesn't need an argument, it can't have another doxy command after it.
2019-02-06Cleanup: remove redundant doxygen \file argumentCampbell Barton
Move \ingroup onto same line to be more compact and make it clear the file is in the group.
2019-02-01Cleanup: remove redundant, invalid info from headersCampbell Barton
BF-admins agree to remove header information that isn't useful, to reduce noise. - BEGIN/END license blocks Developers should add non license comments as separate comment blocks. No need for separator text. - Contributors This is often invalid, outdated or misleading especially when splitting files. It's more useful to git-blame to find out who has developed the code. See P901 for script to perform these edits.
2019-01-15Cleanup: comment line length (editors)Campbell Barton
Prevents clang-format wrapping text before comments.
2019-01-09Fix T60338: Allow user to input units of another systemJacques Lucke
2019-01-08Fix T60327: Value input with adaptive imperial units not working properlyJacques Lucke
2018-10-04Cleanup: styleCampbell Barton
2018-10-03Units: Support for fixed unitsJacques Lucke
Users can select the main unit they want to use now. Previously the displayed unit always depended on the magnitude of the value. The old behavior can be restored by switching to the "Adaptive" mode for length, mass and time units. Meters, kilograms and seconds are the default units for new and old scenes. The selected unit is also the default unit for user input. E.g. if cm is selected, whenever the user inputs a unitless number into a field of type length, it will be interpreted as cm. Reviewer: brecht Differential: https://developer.blender.org/D3740
2018-09-03Merge branch 'master' into blender2.8Campbell Barton
2018-09-03PyAPI: add optional imports to expression eval APICampbell Barton
Avoids having to use `__import__` to access modules.
2018-07-11Numeric Input: preference to default to advancedCampbell Barton
2018-07-11Revert removal of fake editing for numeric inputCampbell Barton
Revert changes from 785159e6e4dfc5c010baab626667132020e1ddc7 but keep 'ifdef'. @mont29 maintains this area and prefers to keep existing logic. Note that there was misunderstanding that '*' was intended only to be a backup key for '=' for keyboards which require holding a modifier.
2018-07-10Fix for recent numeric input checksCampbell Barton
2018-07-10Numeric Input: remove fake-editing optionCampbell Barton
Numeric input allowed mix of editing and hotkeys which were interpreted as modifiers instead of using as numeric input. This meant entering '1.0*3' needed to be typed as '1.0**3' ('*' to activate, and again to multiply). Pressing '/' gave the reciprocal of the current number which could be useful. Test removing this feature, so only full numeric input is supported.
2018-03-02Fix building w/o PythonCampbell Barton
Also minor cleanup.
2017-12-04Fix T53463: Rotation numerical input shows instable behaviour.Bastien Montagne
Inverting a number in radians when user is in degrees gives rather unexpected results. ;)
2017-05-20CMake: Use GCC7's -Wimplicit-fallthrough=5Campbell Barton
Use to avoid accidental missing break statements, use ATTR_FALLTHROUGH to suppress.
2017-03-18Cleanup: use return args last and 'r_' prefix.Campbell Barton
2016-02-19Fix T47477: Transform allows 'inf' inputCampbell Barton
Numeric input wasn't checking numbers were finite, could crash transforming with skin modifier.
2015-12-31Cleanup: Py API namingCampbell Barton
Use BPY_execute_* prefix for all Python execution commands
2015-08-06Cleanup: whitespace, unused varCampbell Barton
2015-05-05Math Lib: rename fill_*, to copy_*Campbell Barton
matching convention for fixed length api, eg: copy_v3_fl
2014-11-11UI Refactor T41640Campbell Barton
Make the UI API more consistent and reduce confusion with some naming. mainly: - API function calls - enum values some internal static functions have been left for now
2014-08-26Move bUnit_getScaleUnit -> BKE_scene_unit_scaleCampbell Barton
unit.c intentionally doesn't include DNA or BKE headers (except its own)
2014-08-26Fix T41590: When scene scale is not 1.0, and units are "None," Blender ↵Bastien Montagne
assumes translations are in meters. Turned out there were several issues in handling of scale parameter by numinput. Fixed that by factorizing more some code in common with 'usual' numbuttons eval code (new `bUnit_getScaleUnit()` helper will return valid scaled value, depending on given system and type). Now, numinput behaves as expected - using default unit amended by scale in case no unit is given (i.e. entering '20' with a scale of 0.01 will give you 20cm, and '20cm' as well!).
2014-08-25Fix T41534: Bevel practically unusable interactively if set to percent ↵Bastien Montagne
amount type. Turned out to be a clean/fix up of modal bevel tool, percentage mode handling was broken, numinput handling was broken, etc. Also added a way to switch between bevel types (modes) with M key, and tweaked a bit numinput code to return early in case of 'char' event with ctrl modifier.
2014-07-21Fix T40432: Scaling to zero with manipulate center points works precisely on ↵Bastien Montagne
second time Commented out the 'no zero' protection of scaling transforms for numinput. Issue is, once an axis has null scale, you can't regrow it from transform code (you have to directly edit the scale property). This is not ideal, but getting good behavior in this case is hairy... Yet, when using numinput, you type precise values, so if you want to set it to zero, set it to zero. User is assumed responsible, we should avoid too much 'invisible magic' when handling precise inputs. ;) Note: an idea for possible future feature would be to have an 'absolute' mode for numinput (allowing to type in real value, not factors).
2014-07-19Defines: replace ELEM3-16 with ELEM(...), that can take varargsCampbell Barton
2014-06-30Fix T40862: numinput transform did not take into account scale_length.Bastien Montagne
2014-06-17Support for building without PythonCampbell Barton
2014-05-06Fix for uninitialized unit_use_radians variable with inset and bevelCampbell Barton
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-03-21Possible fix for T39330 period key is ignored in transform operationsAntony Riakiotakis
Not 100% certain if this fixes, I will ask the user to verify through buildbot.
2014-03-21Fix T39312 Multipling two values in the Transform Tools Number Input not ↵Bastien Montagne
possible. There was actually a few bugs in new event handling of numinput :/ In case of 2.70 'a' release, this commit should be considered imho.
2014-02-27Hopefully definitively fix the "enter the advanced numinput mode" issue.Bastien Montagne
Hack around event code and check against ascii code, this way keyboards with "complex" access to '=' and '*' are still able to toggle numinput modes.
2014-02-22Followup for numinput: activate numinput when hitting pad* or =, this is the ↵Bastien Montagne
expected behavior from users!
2014-02-22Fix T38743: Modal input feature appears to be missing from 2.70 test buildsBastien Montagne
Add 'pad *' in addition to '=' to toggle basic/advanced numinput modes.
2014-02-20Transform: revert to 2.69 numeric input behavior by defaultBastien Montagne
This allows to get the same "quickies" as in previous (2.69) code, (XYZ, -/, etc.), yet keeping nice non-conflicting new stuff like cursor navigation or copy/paste. You can switch to full mode hitting '=', and back to simple mode hitting 'ctrl ='.
2014-02-03Fix T38424: modal number input ctrl - did not work, only ctrl numpad -.Brecht Van Lommel
Since there isn't always a numpad available this should work.
2014-01-08Fix issues with float precision in numinput, like 'R 123' who would show ↵Bastien Montagne
additional 'noise' digits. Expose float precision helper in UI_interface.h API, so that numinput can use this helper as numbuttons already do. Reviewed By: campbellbarton Differential Revision: https://developer.blender.org/D186
2014-01-08Code Cleanup: de-duplicate text pasting which only used the first lineCampbell Barton
2014-01-08Fix for inorrect use of BLI_utf8_invalid_strip, add assert to prevent it ↵Campbell Barton
happening again.
2014-01-08Much better solution for negate/inverse in numinput.Bastien Montagne
Previous one was way over complicated, and did not worked with units!
2014-01-07Fix a small glitch with string generated by numinput, they could cut ↵Bastien Montagne
multi-bytes utf8 chars (like the '°' of angle values), now call BLI_utf8_invalid_strip() to prevent this.
2014-01-04UI: Use bool rather then int/short's where possibleCampbell Barton
2014-01-02Add back - and / shortcuts in modal numinput (as other 'special' keys, you ↵Bastien Montagne
have to use ctrl to activate them)...