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
2016-04-16Experimental Drivers UI Tweak: Use icons for variable typesJoshua Leung
This commit aims to streamline the driver variables layout a bit * Each variable type now has an icon. (The loc diff and rot diff ones are placeholders, which could deserve something better/dedicated if we continue to use this) * Instead of taking up an entire row, the variable type dropdown now only shows an icon, and is located before the variable name field. Feedback wanted: Is this more/less confusing than it was?
2016-04-16Tweaks to Streamline Drivers UI - Don't use uiTemplateAnyID for properties ↵Joshua Leung
where only objects can be used
2016-04-15Drivers Editing: Added "Copy/Paste" buttons beside "Add Variable" for ↵Joshua Leung
copying all variables from one driver to another This was a feature request from a few years back (IIRC from ZanQdo?) to make it easier to reuse one set of driver variables across several different drivers. Dev Notes: * Finally it's done! All that trouble for two little buttons. * Grr... cmake... grrr!
2016-04-15FModifiers: "Add Modifiers" in Graph/NLA Editor buttons now uses a dropdown ↵Joshua Leung
instead of a button This brings the UI here more in line with the Constraints and Modifiers UI's. TODO: * The tooltips/descriptions on the operators now need fixing, as we can no longer use custom tooltips when defining these buttons. * The operators need to be fixed to only operate on the active data
2016-04-15Graph Editor: Move "View" panel to be the lastJoshua Leung
This change means that when going from having no FCurves active to having an active FCurve, the properties panels will not get stuck with only showing the "View" tab, which is not that useful a lot of the time.
2016-04-01Cleanup: style/spellingCampbell Barton
2016-03-31Usual ui messages fixes/tweaks.Bastien Montagne
2016-03-28Graph Editor UI: Experimental Tweak - Use tabs for properties region, to ↵Joshua Leung
make it easier to navigate
2016-03-26Driver Variable Name Validation: Added missing check for zero-length (i.e. ↵Joshua Leung
"blank") names
2016-03-24Drivers UI: Added name validation/linting for Driver VariablesJoshua Leung
When attempting to change a driver variable name to an "invalid" name, an indicator will now be shown beside the offending variable name. Clicking on this icon will show a popup which provides more information about why the variable name cannot be used. Reasons that it knows about are: 1) Starts with number 2) Has a dot 3) Has a space 4) Starts with or contains a special character 5) Starts with an underscore (Python does allow this, but it's bad practice, and makes checking security of drivers harder) 6) Is a reserved Python keyword
2015-10-26Graph Editor: Allow "cursor x" to have fractional values when working with ↵Joshua Leung
Drivers (T46004) When working is the Graph Editor it can be very important to be able to work with fractions (sub integers), especially when working with Drivers. Currently the "Cursor Y" is hooked up to "cursor_position_y" which allows fractions but "Cursor X" is directly hooked up to "frame_current" which is an integer. This commit adds initial support for this feature. * When in Drivers mode, the x-part of the cursor is mapped to a new "cursor_position_x" value which can have fractional values. Animation mode however remains mapped to frame_current * This commit only adds the UI/property/drawing tweaks needed to support this. Many operators still need to be modified to consider this value instead of the current frame, for this to be more useful.
2015-10-26Alternative presentation for interpolation indicator for discrete propertiesJoshua Leung
2015-10-26Graph Editor: Disable interpolation setting for enum/boolean FCurves, as no ↵Joshua Leung
interpolation is performed on those
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-07-29Gooseberry animation feature: Add toggle that disables modifiers on fcurves.Antony Riakiotakis
Feature is found as per channel option in graph editor.
2015-07-21Fix T45453: Driver button's ignore DPICampbell Barton
2015-07-09Curve selection, de-duplicate & cleanupCampbell Barton
2015-03-30Cleanup: use const for typeinfoCampbell Barton
2015-03-28Nla Strip Keyframes: Active FCurve Keyframes panel displays names properly ↵Joshua Leung
now (and doesn't disable the FCurves)
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-31Fix crash part of T41561: custom properties don't see in drivers windiwBastien Montagne
Do not try to access ID_OB data from an ID_MA one (or anything else)!
2014-05-14Fix for FCurve keyframe editing left handle from button failing if not selectedCampbell Barton
2014-04-28Fix T39911: Unpredictable behaviour when editing y-coordinate of right ↵Joshua Leung
handle via Active Key panel (for aligned handles) Editing the y-coordinate of the right handle of a keyframe via the Active Keyframe panel in the Graph Editor, while both handles are selected and are both of type "aligned" resulted in weird behaviours such as the x-coordinate of the right handle changing (and rapidly starting to overshoot) but nothing else. However, this problem doesn't occur when only a single handle is selected. It turns out that the "order of computation" logic in calchandleNurb_intern() gets confused in the case of both handles being selected, and results in a sub-optimal handling of the right handle being the one that's been changed. We hack around this here by temporarily making it so that just the right handle is selected when doing the updates here.
2014-04-28Graph Editor: Added buttons for editing handle types on the active keyframe ↵Joshua Leung
(from NKEY region)
2014-04-01Code cleanup: remove TRUE/FALSE & WITH_BOOL_COMPAT defineCampbell Barton
2014-03-22More driver linting messages - procedural animation and no-variables for ↵Joshua Leung
average,etc. Inspired by T39315, this commit adds a few more driver "linting" messages used for providing users with tips on how to use drivers better. This time, we specifically address 2 cases: 1) Drivers being abused for procedural animation, due to the misconception that procedurally generating F-Curves using F-Modifiers means that drivers are needed to wire such procedural motion-sources to properties. 2) Setting up Average/Sum/Min/Max driver types without any input variables - you can't expect anything to happen (unless of course, your intention was to lock the property to 0.0)
2014-03-21Patch T22084: Robert Penner Easing Equations for FCurvesJoshua Leung
This commit introduces support for a number of new interpolation types which are useful for motion-graphics work. These define a number of "easing equations" (basically, equations which define some preset ways that one keyframe transitions to another) which reduce the amount of manual work (inserting and tweaking keyframes) to achieve certain common effects. For example, snappy movements, and fake-physics such as bouncing/springing effects. The additional interpolation types introduced in this commit can be found in many packages and toolkits (notably Qt and all modern web browsers). For more info and a few live demos, see [1] and [2]. Credits: * Dan Eicher (dna) - Original patch * Thomas Beck (plasmasolutions) - Porting/updating patch to 2.70 codebase * Joshua Leung (aligorith) - Code review and a few polishing tweaks Additional Resources: [1] http://easings.net [2] http://www.robertpenner.com/easing/
2014-03-08Drivers UI: Add explicit warnings about use of bpy.data and bpy.context in ↵Joshua Leung
expressions In order to combat the problem of users frequently trying to use inlined bpy.data/bpy.context paths for data access in their driver expressions and then finding/complaining that these don't update correctly, the UI now flags these as the error conditions that they are (with suggestions on how to fix this). Also tweaked the "Add Variable" button to have more descriptive text about what exactly variables are and why to use these, along with some other visual tweaks (icons!).
2013-12-11User Interface: add colon separator for number buttonsCampbell Barton
2013-08-11display an error with python driver expressions when script execution is ↵Campbell Barton
disabled.
2013-07-28use '_exec' suffix for operator execute callbacks, also picky change to ↵Campbell Barton
sizeof() use in BLI_array.h
2013-07-28remove unneeded NULL checks, add one for give_matarar() return value.Campbell Barton
2013-07-27Code cleanup: Remove unused and unneeded codeJoshua Leung
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-06-27Fix a few DPI/retina scaling issues in the graph editor and movie clip editor.Brecht Van Lommel
Patch #35889 by David Jeske.
2013-05-08code cleanup: remove references to BLI_rand.hCampbell Barton
2013-04-22Bugfix [#34836] Crash when driver variable has path == 'data'Joshua Leung
Most of the places which relied on RNA_path_resolve() did so believing that if it returned true, that it had found a valid property, and that the returned pointer+property combination would be what the path referred to. However, it turns out that if the property at the end of the path turns out to be a "pointer" property (e.g. "data" for Object.data), this would automatically become the pointer part, while the prop part would be set to null. Hence, if a user accidentally (or otherwise) specifies a path for the single-property driver variable type like this, then Blender would crash. This commit introduces two convenience functions - RNA_path_resolve_property() and RNA_path_resolve_property_full() - which mirror/wrap the existing RNA_path_resolve() functions. The only difference though is that these include a check to ensure that what was found from resolving the path was in fact a property (they only return true iff this is the case), and make it explicitly clear in the name that this is what they will do so that there's no further confusion. It is possible to do without these wrapper functions by doing these checks inline, but the few cases that had been patched already were pretty hideous looking specimens. Using these just make it clearer and simpler for all. I've also beefed up the docs on these a bit, and changed these to using bools.
2013-03-27I18n fixes for C panels & menus (we have to specify the default bpyrna ↵Bastien Montagne
context here, else we get the horrible "empty" string (as translation_context of panels is an array, not a pointer, so it's never NULL).
2013-02-28LocDiff Driver Vars: Red-Alert is not needed on the space-selectorsJoshua Leung
2013-02-28Invalid Driver Targets are now indicated appropriately (using Red Backgrounds)Joshua Leung
in the UI This is the second part of the fixes for [#32492], making it easier to identify which part of a driver (i.e. which of its targets) is causing problems A number of additional/related changes needed to be made: * Red-alert status for layouts is now propagated down to child layouts when they are created. This is needed as otherwise some of the templates used in the Graph Editor driver settings won't actually get the red-alert status flushed down to them. Also, note that this status needs to be set before any widgets are added to the layout, or else the settings aren't applied when the relevant widgets get created. * "Single Property" RNA-Paths resulting in out of bounds array access will now trigger an error status and appropriate warnings TODO: * The error tagging doesn't get applied immediately after variables are created, or their types changed * There was also some other weirdness involved when a higher-value flag (1<<10) was used for this setting, which needs further attention
2013-02-21Dependency Graph: some refactoring which should have no user visible impactBrecht Van Lommel
besides performance in some cases. * DAG_scene_sort is now removed and replaced by DAG_relations_tag_update in most cases. This will clear the dependency graph, and only rebuild it right before it's needed again when the scene is re-evaluated. This is done because DAG_scene_sort is slow when called many times from python operators. Further the scene argument is not needed because most operations can potentially affect more than the current scene. * DAG_scene_relations_update will now rebuild the dependency graph if it's not there yet, and DAG_scene_relations_rebuild will force a rebuild for the rare cases that need it. * Remove various places where ob->recalc was set manually. This should go through DAG_id_tag_update() in nearly all cases instead since this is now a fast operation. Also removed DAG_ids_flush_update that goes along with such manual tagging of ob->recalc.
2012-11-23code cleanup: warning & styleCampbell Barton
2012-11-21Debug value in degrees (under parenthesis) for rotation driver variablesDalai Felinto
Specifically the Rotational Difference and XYZ Rotation Transform Channel Feature requested during BlenderPRO 2012 (Brazilian Blender Conference) and coded during my flight back :) Reviewed by Joshua Leung(Aligorith)
2012-10-26style cleanupCampbell Barton
2012-10-21style cleanup: trailing tabs & expand some non prefix tabs into spaces.Campbell Barton
2012-10-20Code cleanupJoshua Leung
2012-09-20code cleanup: remove unused macros, commet some which may be useful later - ↵Campbell Barton
or good to keep for completeness. quieted some warnings and add flags -Wmissing-include-dirs and -Wno-div-by-zero to cmake/gcc
2012-06-20style cleanup: use TRUE/FALSE for ui align args.Campbell Barton
2012-05-09style cleanup: graph & armatureCampbell Barton
2012-04-28style cleanup: changes to brace placement / newlines - for/while/if/switchCampbell Barton