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
2011-01-06use ED_markers_get_first_selected() where possible, simplify ↵Campbell Barton
ed_marker_rename_exec
2011-01-06Markers Todo: Adding back "Rename Marker" operator (Ctrl M).Joshua Leung
As we don't have any dedicated text-input boxes anymore, this is a bit more clunky than it should optimally be.
2011-01-06== Long-Standing 2.5 Todo - Markers fully working again in allJoshua Leung
animation editors (DopeSheet, Graph Editor, NLA, Sequencer) == === Usage Notes === In animation editors, marker operators will only be considered while the mouse is hovering near/over the horizontal scrollbar (i.e. where the markers usually appear). That means, in order to do something to the markers, just position your cursor in line with the row of markers, and then use the same hotkeys you'd use in the TimeLine (so, unlike in 2.4x, no more need to hold down extra modifier keys for this case). In the TimeLine, nothing changes, so you don't need to worry about mouse placement there :) === Technical Details === Since early 2.5 versions, this functionality has been disabled, as the markers were always getting evaluated first, and hence "swallowing" all the events before the editor's own keymaps could access them. In order to get this working again, I've had to give every marker operator a "wrapper" invoke callback which performs some checking to ensure that the mouse is close to the markers (vertically) before the operator will try to be run. This wrapper also makes sure that once the operator has finished running, that if it didn't manage to do anything, then the editor's own keymaps get to have a go. The vertical tolerance used is currently 30 pixels (as was used for the borderselect operator). === Other Assorted Changes === * Gave marker operators dependent on having selected markers to operate on suitable poll() callbacks. These new poll callbacks ensure that there are selected markers for the operator to operate on, further cutting down the number of places where markers may override standard hotkeys (and avoiding calls to the wrappers too) * Simplified some of the selection code * Made some formatting tweaks for consistency, and in one case so that my text editor's function-list display doesn't get confused
2011-01-05Marker Bugfixes ("Make Links to Scene" operator):Joshua Leung
Some tweaks for this operator, found while scanning through the current state of the markers code. These seem to be correct judging from the overall direction the code is going in, though the intention of this operator seems a bit unclear from the naming. - Fixed potential issue where with only some markers selected (and the last one selected not being the last marker in the source scene), you could end up chaining the source and destination marker lists together improperly. - Clarified description/error messages...
2011-01-05Bugfix #25494: Lattice keyframes can't be selected in dopesheetJoshua Leung
(summary) Oops.. missed one place
2011-01-05Animation data for lattices is now shown in the Animaton EditorsJoshua Leung
2011-01-04- use BKE_keyingset_free_path where paths were being freed inline.Campbell Barton
- rna_path was being freed when null, printing errors.
2011-01-04no need to define betz in editcurve.c, replace ob_get_key with inline check ↵Campbell Barton
for anim filter code.
2011-01-03Keyframing Operator Code Cleanup:Joshua Leung
Keyframing operators now use a dynamically-generated enum for their "type" property, which determines the Keying Set to use for keyframing instead of the obscure "index" values which were determined internally. Internally though, these same indices are still being used :) Notes: - I've kept the menu-building function and the special "menu" operator for now, since it's better to not "pollute" the actual insert keyframes operator with hardcoded menu-showing logic. Instead, the menu operator does that, so that if you like, you could write another such wrapper that works differently. - The 'type' properties could have the PROP_HIDDEN flags removed, though I think it's cleaner to leave these without this option for now.
2010-12-30revert part of Tons commit r33884.Campbell Barton
- rather then use unlink="None", just don't pass unlink as a keyword. This is more pythonic. - added an RNA flag for properties which cant be unlinked by setting to None.
2010-12-29DopeSheet Drawing Tweak:Joshua Leung
Keyframes for locked channels are now shown faintly so that it is possible to easily distinguish between keyframes for locked channels and unlocked channels. Hopefully this solves the problem where you have some keyframes selected, and try to move them but forget that those channels are locked (without any feedback other than a single icon). Thanks for pointing out this problem Ronan Zeegers!
2010-12-28Assorted commenting, formatting, and compiler warning fixes forJoshua Leung
keyframe pasting code
2010-12-28Drivers Code Cleanups and UI Tweaks:Joshua Leung
- Adding drivers from the UI (not from py-scripts though) will now automatically add a "Transform Channel" driver variable to the newly created drivers. This makes setting up drivers a bit more convenient for the most commonly used case. - Drivers now report their errors using the Reports system instead of writing these directly to the console. - Clarified some comments to be more insightful about the "why's" of some design decisions, and related formatting/cleanup tweaks - Reduced scope of "path" vars to just the scope they're required in - Removed some unused defines from a failed experiment in the original Keying Sets code ("templates" and "template flags") which was superseeded by the more flexible + nicer "Builtin KeyingSets"
2010-12-24Bugfix #25366Ton Roosendaal
Keyframe "Insert Visual" ignored new constraint type "Transform Like".
2010-12-23use ICON_NULL define rather then 0, makes UI calls less confusing. (no ↵Campbell Barton
functional change) eg: uiItemR(row, &dvar_ptr, "type", 0, "", 0); -> uiItemR(row, &dvar_ptr, "type", 0, "", ICON_NULL);
2010-12-23rename blenderlib to blender_add_libCampbell Barton
2010-12-21rename addlisttolist() to BLI_movelisttolist()Campbell Barton
name was misleading because the list items were removed from the source list. (no functional changes)
2010-12-20fix [#25283] Edge length display difficult to readCampbell Barton
- made theme colors for mesh edge len & face angle/area display. - use %g rather then %f for float display, trims unneeded zeros. - store cached 2d and 3d text color as bytes rather then floats, compare when drawing to avoid setting the context. - use unsigned char for more color functions, avoids casting to glColorubv().
2010-12-17no functional change: only check against OB_RECALC_ALL but don't use for ↵Campbell Barton
assignment. Makes adding new flags give ambiguous results and also makes it less easy to tell whats intended. In some places it looks like OB_RECALC_TIME should be left out too.
2010-12-15ensure pasted graph keys are always selected.Campbell Barton
2010-12-15missing check for keyframe paste, was crashing when no keyframes to paste into.Campbell Barton
2010-12-14Bugfix #21724Ton Roosendaal
Graph Editor: "make selected channels visible" VKEY didn't make unselected channels invisble. What is left is that the active channel remains visible still. Not sure if that's by design, for Joshua to answer.
2010-12-14graph editor & action keyframe paste options.Campbell Barton
- Offset, so you can paste at the same time of the original frames, at the current frame or relative to the current frame at time of copying. - Merge method, so the pasted keys can overwrite keys in their range or the entire curve. Currently there is no redo panel for these space types so the only way to access these options is with F6 redo popup.
2010-12-09Problem with FCurve pasting reported by Rob Garlington.Campbell Barton
- Pasting from 1 fcurve to any other fcurve now works (skip index and rna path checking). - Pasting multiple fcurves between bones now works. - If path checking fails, pasting matches indices so Scale XYZ can be pasted into Location XYZ for eg.
2010-12-08use lowercase for cmake builtin names and macros, remove contents in else() ↵Campbell Barton
and endif() which is no longer needed.
2010-12-05Dependency graph: changed DAG_id_flush_update to DAG_id_tag_update. Now itBrecht Van Lommel
only tags the ID and does the actual flush/update delayed, before the next redraw. For objects the update was already delayed, just flushing wasn't yet. This should help performance in python and animation editors, by making calls to RNA property update quicker. Still need to add calls in a few places where this was previously avoided due to bad performance.
2010-12-03Enabled GCC -Wwrite-strings warning for CMake and replaced many 'char's for ↵Campbell Barton
'const char's,. Only one functional change where Transform orientations passed "" to BIF_createTransformOrientation() which could then have the value written into.
2010-12-03- added GCC warning -Wstrict-prototypesCampbell Barton
- fixed bug in paste material, exposed by stricter warnings. - removed/renamed various shadowed vars. - removed BGE lamp.colour, only allow lamp.color attribute.
2010-12-03fix for some pedantic warnings.Campbell Barton
2010-12-02Adding some descriptions for animation-related operators that were missing them.Joshua Leung
2010-11-29include headers in cmake source, added a script to check for consistency, ↵Campbell Barton
reporting missing headers & C files. this is important so IDE's using CMake integration always get blender headers. - QtCreator & MSVC for eg, probably others too.
2010-11-23use zero initializers instead of memset(), also change PointerRNA_NULL from ↵Campbell Barton
an extern into a define.
2010-11-18fix [#24786] Setting Rotation Units to Radians doesn't affect the UI [33146]Campbell Barton
2010-11-17Keyframing Operators: Improved Error MessagesJoshua Leung
* Keyframing operators now use the reports system for displaying all its error messages. - The benefit of this is that users no longer need to check the console for error messages if keyframing fails. - Unfortunately, reports are not currently viewable in any space/view in Blender, so... * Added a temporary operator (UI_OT_reports_to_textblock), which can be accessed in the UI from the button which appears in place of the icon when more than one report exists. This dumps the current list of reports to a textblock "Recent Reports", from which they can be viewed. This isn't really nice, but at least we now have a way to view these again, which makes debugging some things a pain. * Bugfix #24606 - when trying to add keyframes to F-Curves with F-Modifiers already which alter the curve significantly enough that the keyframes will have no effect, there are now warnings which aim to alleviate any confusion.
2010-11-17use 'const char *' by default with RNA functions except when the value is ↵Campbell Barton
flagged as PROP_THICK_WRAP. Also use const char in many other parts of blenders code. Currently this gives warnings for setting operator id, label and description since these are an exception and allocated beforehand.
2010-11-12rename anim.channels_revive_fcurves --> anim.channels_fcurves_enableCampbell Barton
better matches existing VIEW3D_OT_enable_manipulator & ANIM_OT_channels_setting_enable also fixed warning.
2010-11-11Animation Editors: Experimental indicators + "fixup" operator for "Disabled ↵Joshua Leung
FCurves" F-Curves tagged as "disabled" now have their channels drawn with a red line underlining their names. "Disabled" F-Curves are skipped for evaluation, and typically result (for example) from assigning an action from one armature to another, but the new armature does not have some of the bones the action's F-Curves need in order for the datapaths (referring to the property the F-Curves affect) to be resolved. This is to prevent heaps of invalid channels slowing down animation playback. I've also added a new operator, found by: Channels -> Revive Disabled F-Curves in the Graph Editor and DopeSheet/Action Editors, which will clear all the disabled tags for all the F-Curves in the animation editor at the time (based on the filtering criteria). Use this operator to clear the disabled tags, allowing such channels to be able to be evaluated again (perhaps after adding the offending bones for example, or when using the action on the original armature again).
2010-11-08Second fix for [#24476] The driver is not displayed in GraphEditor.Janne Karhu
* Texture data still wasn't shown if material didn't have animation data. * Also unified the material/texture filtering logic a bit.
2010-11-08Bugfix: NLA Channel Borderselect works againJoshua Leung
2010-11-08compiler warning fixesCampbell Barton
2010-11-07Partial fix for NLA Channel-List Border Select. This part of the fix gets ↵Joshua Leung
the selection ranges right. The next part of the fix (for tomorrow) will involve setting up access for NLA-Track properties...
2010-11-07Animation Editors: Channel ReorderingJoshua Leung
This commit restores the ability to reorder channels in the animation editors (DopeSheet/Action/etc., Graph/Drivers, NLA). The hotkeys for this are: - Shift-PageUp = Move Up - Shift-PageDown = Move Down - Ctrl-Shift-PageUp = Move to Top of List - Ctrl-Shift-PageDown = Move to Bottom of List Do note that only animation data can get reordered using this. So, do not expect to be able to change the object order (that is actually taken from the order that Blender actually evaluates them per update/frame). --- In the process, I've fixed a couple of other bugs: * Removed 'optimisation step' check in anim_filter.c for dopesheet with no filtering options modified, since this meant that the ANIMFILTER_ANIMDATA data filter was not getting processed (and potentially there were other maintenance problems with that). * Made NLA Editor's channel list not totally duplicate the basic Animation Channels keymap. Instead, the "NLA Channels" keymap now only defines the parts that are different, and this then gets specified before the standard one so that these different parts will override the standard ones. * Attempted to fix BorderSelect on NLA Channels list. Still not totally working correctly yet though. * Moved "Euler Discontinuity" menu entry from "Channels" to "Keys". It really belongs in the latter, since it affects the keyframe values, rather than some aspect of the channel (i.e. ordering of channels or how they're displayed)
2010-11-07Fix for [#24476] The driver is not displayed in GraphEditor.Janne Karhu
* TSK! give_current_material(..) is used with index+1 * Also very bad practice to use same loop variable name in a loop inside a loop.
2010-11-04bugfix [#24009] Crash when switching area types and performing opsCampbell Barton
2010-10-31initialize structs to zero rather then using memset().Campbell Barton
2010-10-23use explicit file paths for CMake rather then globing, This is recommended ↵Campbell Barton
by cmake devs. globbing vs explicit is discussed here. http://www.cmake.org/pipermail/cmake/2008-December/025694.html Practical implications are: - developers need to keep CMakeLists.txt files up to date. - Users wont get strange linking errors if they build after a file is added, since CMake detects CMakeLists.txt is modified and automatically reconfigure.
2010-10-17- fixed remaining unused warnings.Campbell Barton
- omit render code from this warning (cmake only), until render branch is merged. - moved -Wunused-parameter warning to apply to all C code in blender (not just ./source/blender), (cmake only).
2010-10-16most unused arg warnings corrected.Campbell Barton
- removed deprecated bitmap arg from IMB_allocImBuf (plugins will need updating). - mostly tagged UNUSED() since some of these functions look like they may need to have the arguments used later.
2010-10-16- UNUSED macro wasn't throwing an error with GCC if a var become used.Campbell Barton
- made interface, windowmanager, readfile build without unused warnings. - re-arranged CMake's source/blender build order so less changed libs are build later, eg: IK, avi
2010-10-15tag UNUSED() for operator exec() and invoke() functions.Campbell Barton