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-02-21I swear, it was just an innocence change in guardedalloc!Nathan Letwory
The butterfly wing flap, causing a nice storm in the rest of blender. Now all dependencies should point ok again. CMakers, do double-test.
2011-02-21Bugfixes:Joshua Leung
- Fix for crash with Keying Sets when a Keying Set path has no ID- block to target - Info window now indicates the types of the reports shown by colouring their entries if the entries are not selected.
2011-02-18Clear some compiler warnings by commenting some functions, adding others to ↵Campbell Barton
headers. left in warnings where functions obviously need to get ported to 2.5x still. Also, render stamp seq strip works again.
2011-02-16Marker Drawing Bugfix:Joshua Leung
Removed superfluous blend-mode change which was causing some weird white lines to appear, especially when using some markers that don't have any names.
2011-02-14made most variables which are only used in a single file and not defined in ↵Campbell Barton
header static for blenlib, blenkernel and editors.
2011-02-14misc small changes:Campbell Barton
- rename rna collection structs Main prefix to BlendData: eg, MainObjects --> BlendDataObjects - printing python collection now prints its type (when available) - renamed shadowed vars in bpy_rna.c. - when making functions static I also made debugging/test functions static, reverse and add definitions to headers instead.
2011-02-13many functions in blender are not marked static but should be.Campbell Barton
most local modifier,GPU,ImBuf and Interface functions are now static. also fixed an error were the fluid modifier definition and the header didnt have the same number of args.
2011-02-13fix for warnings from Sparse static source code checker, mostly BKE/BLI and ↵Campbell Barton
python functions. - use NULL rather then 0 where possible (makes code & function calls more readable IMHO). - set static variables and functions (exposed some unused vars/funcs). - use func(void) rather then func() for definitions.
2011-02-12fix for more warnings.Campbell Barton
- modifier code was using sizeof() without knowing the sizeof the array when clearing the modifier type array. - use BLI_snprintf rather then sprintf where the size of the string is known. - particle drawing code kept a reference to stack float values (not a problem at the moment but would crash if accessed later).
2011-02-10Small consistency fixupsJoshua Leung
2011-02-10Bugfix [#25831] Sorting channels brokenJoshua Leung
Recoded animation channel sorting code. In particular, the old code didn't handle "islands" of selected items well (i.e. a chain of several connected items in a row), with some of these cases having unpredictable results. There were also some bugs in the way some of the rearranging methods worked, allowing some invalid operations to be performed. Some of these probably triggered errors such as some channels getting stuck, and so on.
2011-02-09Bugfix [#25987] Duplicated markers naming issueJoshua Leung
One-liner fix - a missing "OPERATOR_FINISHED" on the select operator was causing problems renaming markers and potentially with other operations too! To find this bug, I added debug method to dump the list of markers to console. This has revealed some troublesome things about the way markers are organised, which IMO need to be addressed.
2011-02-07Argh! This code is haunted... (line 666) compiler here isn't barfingJoshua Leung
on these errors tonight :/
2011-02-07Compiling commit for previous commit...Joshua Leung
2011-02-07Visual Keying Code Tweaks:Joshua Leung
Moving this code to the same method as is used for Apply Visual Transform (for bones case), which uses standardised decomposition methods instead of the improvised ones used here before. This was in an attempt to get IK chains Visual Keyed correctly, though this doesn't seem to have improved the situation much. Also, the decompositon for objects here now takes care of euler rotation modes. TODO: other rotation modes should get included here too...
2011-02-04Moved Auto-Keying "Insert for KeyingSet only" option from UserPrefs toJoshua Leung
Scene (Toolsettings, i.e. alongside "layered" option for using NLA while doing auto-keying) This option makes all Auto-Keying operations use the active Keying Set to carry out keyframing operations instead of picking and choosing their own Keying Sets to use, thus cutting down on the number of unwanted keys. Warning: if the older userpref option was enabled in an old startup.blend, it may be difficult to turn this option off.
2011-02-02Bugfix [#25907] Impossible to "select all" on narrow action editorsJoshua Leung
Marker selection operators now use a special poll() callback which checks that there are some markers before trying to run them. This means that when there are no markers, the full screen range is available, instead of just those areas above the region masked off for markers which can be quite slim when trying to save space by only showing the summary channel.
2011-02-02"Batch-Edit" Code cleanup: Renaming ED_operator_ipo_active toJoshua Leung
ED_operator_graphedit_active
2011-02-02Bugfix [#25902] alt+a over 3D view don't up date dropesheet editorJoshua Leung
Migrating "redraws" settings from TimeLine view data to per Screen. The options are now still shown in the TimeLine "Playback" menu though. This means that whatever redraw settings you set in a TimeLine editor will be used throughout a screen (i.e. editor layout) to determine which editors will get updated during playback, instead of only certain editors doing certain things at vague times. --- Also, I moved some version patches pre 2.56 version bump into a version-check for 2.56. These must've been missed when doing the release...
2011-02-02Action Editor UI Tweaks:Joshua Leung
While animating, I realised that actually the 'only selected' and 'include hidden' DopeSheet filtering options are also useful in the Action Editor, especially while tweaking the animation for some characters, where you'd like to focus only on some of the character's control (i.e. eyelid tweaks, hand tweaks, etc.). The other DopeSheet filtering options aren't so relevant here, so I've excluded them from this.
2011-02-01New Keyframe Type: "Jitter"Joshua Leung
While doing some animation work over the past few days, I found that it would be useful to be able to tag keyframes as a another type yet: "jitter" for fill-in secondary motion (i.e. blinks/hand-keyed camera shake). Of course, what you really use these for is up to you, but this is one more option when you need it :)
2011-01-30remove nan-makefilesCampbell Barton
2011-01-18bad spelling; 'indicies' --> 'indices'Campbell Barton
2011-01-15remove/comment unused defines.Campbell Barton
2011-01-14Driver creation hack:Joshua Leung
Drivers created from the Properties Editor for Materials and Textures will now be created on Object-level instead of on their owner Material/Texture as for their keyframes. The intention of this hack is to allow users to be able to easily set up drivers for materials and textures. Without this hack, users would have had to do this manually via the Datablocks editor (I've described this method a few times in detail, though this still attracts complaints), as the way the depsgraph works does not allow ID blocks other than Objects and directly-linked Object data to be driven. As a result, although this hack can be done for these two cases, there are no workarounds possible for Scene and Scene-linked settings. There are 2 issues that will be noticed with this approach: 1) There may be confusion over why the drivers are found under Object level and not Material/Texture level. 2) Driver status will not be shown in the buttons, leading to attempts to try to keyframe the properties directly later and subsequent confusion when finding that that won't work. However, these are the sacrifices we'll need to make to get easy-setup working in the meantime until the proper fixes can be done.
2011-01-13Bugfix [#25597] Grease Pencil crash when undoing during a SketchingJoshua Leung
Session As the key combination for undo was unhandled by Grease Pencil operator and allowed to execute, some of the lingering Grease Pencil data would get corrupted by undo as some flags may still have been set. This commit attempts to fix.workaround this problem by catching undo events, using the internal "delete last stroke" functionality to emulate undo-like behaviour as expected but without the associated risks. The underlying functionality used was already part of the original 2.4 implementation, but was exposed via the GUI instead there where it was less useful. --- Other tweaks related to Grease Pencil: 1) Spacebar can be used to end Sketching Sessions too now 2) Grease Pencil animation editor now displays GP datablocks in light blue (i.e. "sub-id") colours as per dopesheet instead of them being presented like groups. This better reflects their true nature.
2011-01-11bugfix [#25542] do not work? "Bind camera to Markers"Campbell Barton
2011-01-11use size clamped string copying,Campbell Barton
also some compilers complain of using sprintf(val, str) so replace with BLI_strncpy().
2011-01-11tag unused vars.Campbell Barton
2011-01-11- Local Markers are now taken into account correctly for operatorsJoshua Leung
that used markers. I might've missed a few still, but at least a few more cases will work now - Accidentally broke keyframe selection on group channels in gpencil commit, after misreading a call name.
2011-01-11Todo #22395: Restoring Grease Pencil Editing Mode in DopeSheet EditorJoshua Leung
This commit restores some basic functionality for retiming Grease Pencil sketches. Some of the functionality that existed before still hasn't been restored (namely snap/mirror tools as well as copy+paste), though it should be possible to use this for basic retiming and sketch-frame management again. - There's still a lot of work required to get this up to the standard of the rest of the animation editor code, as some of this code was originally just hacked in based on the old-style code. - Work is already required to not have to directly access the main db global to get the list of Grease Pencil datablocks to show, but that can come along with pending cleanups of the filtering code.
2011-01-10Restoring "Pose Markers"Joshua Leung
These were markers which belonged to an action instead of the scene, and are used by PoseLib to keep track of where poses are. To restore this, I've made this only available in Action/Shapekey Editor modes, and only when an action is being shown and the "Show Pose Markers" option in the Markers menu has been enabled. Other than that, all the standard marker operators apply now (instead of using a separate set of special operators).
2011-01-10Bumping up margin for catching marker events in animation editors.Joshua Leung
Old value of 30 px was perhaps a bit too strict, given that scrollbars took up 16px and that standard icons are 16px, which in total would have been 32px from the bottom of the region. Having said that, the marker icons are only about half-size, though it seems that in general people (can) only aim quite loosely...
2011-01-07remove references to BKE_utildefines where its not needed.Campbell Barton
- move GS() define into DNA_ID.h - add BLI_utildefines as an automatic include with makesrna generated files.
2011-01-07split BKE_utildefines.h, now it only has blender specific defines like GS() ↵Campbell Barton
MAKE_ID, FILE_MAXDIR, moved the generic defines to BLI_utildefines.h. no functional changes.
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);