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
2018-09-27Spelling fixes in comments and descriptions, patch by luzpaz.Brecht Van Lommel
Differential Revision: https://developer.blender.org/D3732
2018-08-31Cleanup: rename WM_keymap_find -> WM_keymap_ensureCampbell Barton
2018-07-02Cleanup: use bool for poll functionsCampbell Barton
2018-06-04Cleanup: strip trailing space in editorsCampbell Barton
2018-06-01Cleanup: trailing whitespace (comment blocks)Campbell Barton
Strip unindented comment blocks - mainly headers to avoid conflicts.
2018-02-15Cleanup: Style, braces with macrosSergey Sharybin
See https://wiki.blender.org/index.php/Dev:Doc/Code_Style#Braces_with_Macros
2018-02-15Cleanup: Remove BLI_ prefix from listbase macroSergey Sharybin
This is kind of doesn't matter where macro itself is defined. We should stick to the following: - If some macro is actually more an inline function, follow regular function name conventions. - If macro is a macro, type it in capitals. Use module prefix if that helps readability or it if helps avoiding accidents.
2017-11-19Fix: "Lock Markers" option was not being obeyed by the "Sync Markers (when ↵Joshua Leung
transforming)" option
2017-10-16WM: refactor gestures for use as toolsCampbell Barton
Border and circle select wait for input by default. This commit uses bool properties on the operators instead of magic number (called "gesture_mode"). Keymaps that define 'deselect' for border/circle select begin immediately, exiting when on button release.
2017-10-16Cleanup: modal operator border callback namesCampbell Barton
Use same convention as all others. Remove 'select' since these are used for zoom as well.
2017-09-27Math Lib: Add non-clamped round_* functionsCampbell Barton
Replace iroundf with round_fl_to_int, add other types
2017-07-18Cleanup: use WM_event prefix for modal_tweak_exitCampbell Barton
2017-05-20CMake: Use GCC7's -Wimplicit-fallthrough=5Campbell Barton
Use to avoid accidental missing break statements, use ATTR_FALLTHROUGH to suppress.
2016-05-14Fix T48426: Use same length for all header message strings.Bastien Montagne
Some languages like Chinese or Japanese take three or four bytes per char... Also fixed some missing translation markers for UI header messages.
2015-06-22Fixed compilation error in editor/animation/anim_markersJeroen Bakker
2015-06-22Fix T45148, stupid own mistake, the two functions are not the same,Antony Riakiotakis
shouldn't have collapsed them
2015-06-22Revert "Lock markers now also disallows selection of markers"Antony Riakiotakis
This reverts commit 37fd2628058f296153a21ad359fbcbc74e9141e5.
2015-06-17Lock markers now also disallows selection of markersAntony Riakiotakis
2015-06-10Correct typosCampbell Barton
D1337 by @lichtwerk
2015-04-27Cleanup: rename GRAB_POINTER -> GRAB_CURSORCampbell Barton
Term pointer is overloaded already.
2015-04-15RNA: use lock_ prefix for booleansCampbell Barton
2015-04-14Add flag that prevents editing of markers. Can be located in markerAntony Riakiotakis
menu. When active, all editing operators for markers will not fire up.
2015-04-02Fix: Crash when using "On Selected Markers" mode for Propogate Pose with no ↵Joshua Leung
markers present The function to get a list of markers was not clearing the list before it exited early, and with no way to tell that the method failed, callers could make the mistake of trusting that the list was now valid (i.e. either full of marker frames or empty, vs being invalid)
2015-02-02cleanup: style/spellingCampbell Barton
2015-01-20UI: cleanup UI_fontstyle_string_width, UI_draw_stringCampbell Barton
Both were maked as temp, but used often. Now pass uiFontStyle to both, rename UI_draw_string to UI_fontstyle_draw_simple, since its a variant of UI_fontstyle_draw that skips shadow, align... etc.
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-10-28Markers: optimize drawingCampbell Barton
- avoid 2x glScalef per marker - skip markers outside the view - merge drawing into a single loop
2014-10-28Cleanup: rename draw_markers_time -> ED_markers_drawCampbell Barton
2014-10-28Markers: show the area that handles marker eventsCampbell Barton
2014-10-28Fix T41041: 'Delete keyframe' removes markers tooCampbell Barton
Operators that trigger UI events (but nothing else) were using 'CANCELLED' making it impossible to tell if an invoke function failed, or opened a menu.
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-25Followup to previous commit: fix same wrong numinput handling in other modal ↵Bastien Montagne
ops. Also stumbled uppon 'move marker' code, was needing a bunch of fixes, cleanup and simplification, and added a candy feature - now you will enter numinput values in seconds when editor is in 'time' mode, instead of frames!
2014-07-30BLI_listbase: consistent name prefixCampbell Barton
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-05-29Cleanup: Use doxy for more structured commentsCampbell Barton
2014-05-05Fix: T40016 ID Names translated in menusCampbell Barton
2014-04-21Code cleanup: view2d api namingCampbell Barton
2014-04-21View2d: API Cleanup for view<->region conversionCampbell Barton
View2D had some inconsistencies making it error prone in some cases. - Inconstant checking for NULL x/y args. Disallow NULL args for x/y destination pointers, instead add: - UI_view2d_region_to_view_x/y - UI_view2d_view_to_region_x/y - '_no_clip' suffix wasn't always used for non-clipping conversion, switch it around and use a '_clip' suffix for all funcs that clip. - UI_view2d_text_cache_add now clips before adding cache. - '_clip' funcs return a bool to quickly check if its in the view. - add conversion for rectangles, since this is a common task: - UI_view2d_view_to_region_rcti - UI_view2d_region_to_view_rctf
2014-04-01Code cleanup: remove TRUE/FALSE & WITH_BOOL_COMPAT defineCampbell Barton
2014-03-16Code cleanup: naming conventionsCampbell Barton
2014-01-15Code Cleanup: use iroundfCampbell Barton
also increase precision of rctf print functions
2013-12-21Support units in modal numinputBastien Montagne
Summary: This completly changes the way modal numinput is handled. Now, edited expression is a string, which then gets unit- and py-evaluated to get a float value. We gain many power and flexibility, but lose a few "shortcuts" like '-' to negate, or '/' to inverse (if they are really needed, we still can add them with modifiers, like e.g. ctrl-/ or so). Features: - units (cm, ", deg, etc.). - basic operations from python/BKE_unit (+, *, **, etc.), and math constants and functions (pi, sin, etc.). - you can navigate in edited value (left/right key, ctrl to move by block) and insert/delete chars, e.g. to fix a typo without having to rewrite everything. - you can go to next/previous value with (ctrl-)TAB key. - As before, hitting backspace after having deleted all leading chars will first reset the edited value to init state, and on second press, the whole "modal numinput" editing will be cancelled, going back to usual transform with mouse. Notes: - Did not touch to how values are shown in header when modal numinput is not enabled (would do that in another commit), so this is still quite inconsistent. - Added back radian support in BKE_unit. - Added arcminute/arcsecond to BKE_unit. (those unit changes affect all angle UI controls, btw, so you can now enter radians or longitude/latitude values when in degrees units). Related to T37600. Reviewers: brecht, campbellbarton, carter2422 Reviewed By: brecht, campbellbarton, carter2422 Thanks everybody! Differential Revision: http://developer.blender.org/D61
2013-12-14Fix T37811: Delete key shortcut missing for deleting markersJoshua Leung
The keymap here used WM_keymap_verify_item(), which only allows for a single hotkey to be bound to an operator. In most cases, this really isn't justified.
2013-12-01Code Cleanup: replace ABS() with fabsf() when used with float expressions.Campbell Barton
2013-11-25Code Cleanup: rename vars for detecting change to be more consistentCampbell Barton
rename change/is_change/is_changed/modified -> changed also use bools over int/short/char and once accidental float.
2013-11-01code cleanup: spellingCampbell Barton
2013-10-31remove return argument from wmOperatorType->cancel, was only ever returning ↵Campbell Barton
OPERATOR_CANCELLED.
2013-10-21Followup to r60857: code was assuming markers were sorted, which is not ↵Bastien Montagne
guaranted. Also heavily simplified it (previous code was supposed to have optimizations, but ended just looping twice over the markers' list...). Many thanks to Brecht and Sergey for noting the quirk and reviews! :)
2013-10-19Fix [#37146] Dopesheet / Graph editor, select columns between markers ↵Bastien Montagne
doesn't appear to work. Init min/max values were just switched...