Joshua Leung [Fri, 13 Feb 2009 09:46:08 +0000 (09:46 +0000)]
Keying Sets: Insert/Delete Keyframe Operator Buttons
* Insert/Delete keyframe buttons in the TimeLine work again. These now use two new operators which only insert keyframes for the active Keying Set.
* Renamed the old insert/delete keyframe operators. These now have the "*_old" postfix on their names. What happens with these temp operators is yet to be seen.
* Added insert/delete keyframe buttons beside the operator buttons for Keying Sets in the Outliner->Datablocks view
Joshua Leung [Fri, 13 Feb 2009 06:33:07 +0000 (06:33 +0000)]
Animato: Various improvements
* Scene and World AnimDatas are now included in animation editors
* Keyframes for integer-value settings now get the FCURVE_INT_VALUES flag set for their F-Curves, which restricts those curves to only having integer-values. F-Curve displays have been altered accordingly, but some editing tools may still need tweaks to work with this.
* Fixed notifiers for Insert Keyframe -> Active Keying Set.
Joshua Leung [Fri, 13 Feb 2009 01:51:33 +0000 (01:51 +0000)]
Keying Sets: Wrapped KeyingSets in RNA
* The settings of KeyingSets can now be viewed/modified through RNA.
* Shuffled RNA wrapping for AnimData over to its own file
* Moved insert-key flags to DNA_anim_types.h, as they're now used for KeyingSets.
Joshua Leung [Thu, 12 Feb 2009 23:25:36 +0000 (23:25 +0000)]
KeyingSets: Fixing crash when adding KeyingSets and no group name is supplied
Joshua Leung [Thu, 12 Feb 2009 22:24:51 +0000 (22:24 +0000)]
Compilation fix: added missing ;
Brecht Van Lommel [Thu, 12 Feb 2009 22:12:21 +0000 (22:12 +0000)]
2.5: Most curve/surface editmode operators back:
* Hide, Reveal
* Separate, Duplicate, Delete
* Set Weight, Set Radius, Set Spline Type, Set Handle Type, Set Smooth
* Tilt, Clear Tilt
* Smooth, Smooth Radius
* De(select) First, De(select) Last, De(select) All, Select Inverse,
Select Linked, Select Control Point Row, Select Next, Select Previous,
Select More, Select Less, Select Random, Select Every Nth
* Switch Direction, Subdivide, Make Segment, Spin, Extrude, Toggle Cyclic
* Specials Menu
Not working correct yet:
* Add Vertex (ctrl click)
* Add Menu
Joshua Leung [Thu, 12 Feb 2009 11:04:08 +0000 (11:04 +0000)]
Dummy commit...
* Added comment for what needs to be done to get KeyingSets fully functional
* In previous commit, also made group-locking be taken into account when drawing curves as locked
Joshua Leung [Thu, 12 Feb 2009 10:41:57 +0000 (10:41 +0000)]
KeyingSets: First working prototype
To use KeyingSets, simply Outliner-select items in the Datablocks view and press K to add to the active KeyingSet. Then keyframes can be inserted by choosing the 'Active Keying Set' option when inserting keyframes.
Important notes on the current implementation:
* Only properties directly inside some ID-block that is close to the root (i.e. main -> objects -> "someobj" -> location, or main -> materials -> "somemat" -> colour) can be accessed for now, as I haven't got the code for building the inner-parts of the paths working yet. Help on getting this working is welcome (hint to Brecht).
* Properties that can be safely included include simple properties "object -> Dupli Verts", entire arrays "object -> Location" or individual array elements "object -> Location -> y"
---
Also added typo fix for KeyingSet freeing. It was freeing the KeyingSet instead of it's paths.
Ton Roosendaal [Thu, 12 Feb 2009 09:18:35 +0000 (09:18 +0000)]
2.5
Bugfix: node editor crashed when using bitmap fonts, still had a
call commented out, happened during migration to get things linked.
Campbell Barton [Thu, 12 Feb 2009 06:36:06 +0000 (06:36 +0000)]
own error in last commit.
Diego Borghetti [Thu, 12 Feb 2009 05:02:42 +0000 (05:02 +0000)]
Commit to continue tomorrow from work.
Campbell Barton [Thu, 12 Feb 2009 03:48:56 +0000 (03:48 +0000)]
reveil -> reveal
Campbell Barton [Thu, 12 Feb 2009 03:39:56 +0000 (03:39 +0000)]
* Added description string to operator types, should be set along with ot->idname when defining ops.
* User interface uses this as a tooltip when NULL or "" is given.
* Python doc generation includes this description
* Python defined ops take the description as an argument.
* NULL check to image_ops.c, was crashing on exit when there was an image open.
Joshua Leung [Thu, 12 Feb 2009 01:47:45 +0000 (01:47 +0000)]
Graph Editor: Experimental variations of curve display
* Uneditable F-Curves are drawn with dotted lines (and no handles)
* Muted F-Curves are drawn with a greyish colour. I'm not sure how visible this will be under some other colour schemes. Perhaps this needs as separate theme colour?
Joshua Leung [Thu, 12 Feb 2009 01:11:29 +0000 (01:11 +0000)]
KeyingSets: More work on preparing the UI
KeyingSets can now be added/removed. Next up, the code for the operators to add items to Keying Sets.
Michael Fox [Wed, 11 Feb 2009 23:50:06 +0000 (23:50 +0000)]
2.5
******
ported selection_invert for both edit armature and pose mode
Brecht Van Lommel [Wed, 11 Feb 2009 23:02:21 +0000 (23:02 +0000)]
2.5: Curve edit mode. Transform works again, and editcurve.c is
partly operatorized though nothing hooked up yet.
Brecht Van Lommel [Wed, 11 Feb 2009 19:16:14 +0000 (19:16 +0000)]
2.5: Image window, some small changes:
* Added notifier for edited images.
* Fix main region emboss drawing when showing render.
* Don't go fullscreen with fileselect for now to work
around context getting lost, so open/replace works.
* Save operators are more complete now, but still lack
confirmation and choosing image type.
* Pack operators work correctly now (but not unpack).
* Setting white/black point for curves.
* Time cursor for record composite.
Roland Hess [Wed, 11 Feb 2009 17:46:10 +0000 (17:46 +0000)]
One last bit of personal education -- added OPERATOR_CANCELLED on sanity check failures.
Ton Roosendaal [Wed, 11 Feb 2009 16:54:55 +0000 (16:54 +0000)]
2.5
Smaller jobs, all in one commit!
- Moved object_do_update out of view3d drawing, into
the event system (currently after notifiers).
Depsgraph calls for setting update flags will have to
keep track of each Screen's needs, so a UI showing only
a Sequencer doesn't do objects.
- Added button in "Properties region" in 3D window to set
or disable 4-split, including the 3 options it has.
(lock, box, clip)
- Restored legacy code for UI, to make things work like
bone rename, autocomplete.
- Node editor now shows Curves widgets again
- Bugfix: composite job increased Viewer user id count
- Bugfix: Node editor, not "Enable nodes" still called
a Job, which didn't do anything
- Various code cleaning, unused vars and prototypes.
Roland Hess [Wed, 11 Feb 2009 16:17:34 +0000 (16:17 +0000)]
First operator done as a test and to get to know the ropes. "Select Parent" in pose mode. Had to move the command to Shift-P, as naked P is taken up by some crazy person's script command.
Brecht Van Lommel [Wed, 11 Feb 2009 14:56:35 +0000 (14:56 +0000)]
2.5: fix crash due to keyingset commit, ot->idname should always be set.
Joshua Leung [Wed, 11 Feb 2009 12:19:42 +0000 (12:19 +0000)]
Keying Sets: Initial commit of skeleton code
When fully implemented, these will be the clearest demonstration of 'Everything is Animateable', as they will allow users to define an arbitary group of settings through selecting items in the Datablocks (RNA-Viewer) View of the Outliner to define custom 'sets'. Such Keying Sets are known as the 'absolute' ones, which are created for a custom purpose.
Of course, 'builtin' Keying Sets will still be provided. Such built-in ones will not work on any particular paths, but will use context info to maintain the legacy method of inserting keyframes (via IKEY menu).
Currently, KeyingSets cannot be created/edited through the UI, though the backend code is in place to do this.
Michael Fox [Wed, 11 Feb 2009 03:46:14 +0000 (03:46 +0000)]
2.5
******
-ported (de)select all for editarmature and pose mode
- please review my loops and notifiers as i think they are pretty ugly
Campbell Barton [Wed, 11 Feb 2009 02:09:41 +0000 (02:09 +0000)]
Names from uiMenuItemEnumO were not being used.
Changed some of the sequencer menus to use uiMenuItem's
Brecht Van Lommel [Tue, 10 Feb 2009 23:17:58 +0000 (23:17 +0000)]
2.5: Image window operators, quite a few of these still have
missing parts and are work in progress.
Set 3D Cursor
Set Tile
Sample Color
New
Open
Replace
Reload
Save (As)
Save Sequence
Pack
Unpack
Record Composite
The file select operators have context issues still. They need
to get the image space in the context on exec() but it's not
there currently, not sure how to solve that yet.
Also added name parameter to uiMenuItemEnumO, and fixed "mute"
argument in ED_update_for_newframe calls in fluidsim bake.
Joshua Leung [Tue, 10 Feb 2009 23:08:53 +0000 (23:08 +0000)]
DopeSheet/Action Editor: Fixed display and expand-widget of 'Group' channels
Joshua Leung [Tue, 10 Feb 2009 22:45:20 +0000 (22:45 +0000)]
Setting svn-property 'eol-style' to 'native' for all animation-related files. No more need to do save overs in text editors or with fancy UNIX tools.
Diego Borghetti [Tue, 10 Feb 2009 21:41:14 +0000 (21:41 +0000)]
commit to continue in my home.
Also I remove some of the #if 0.
Ton Roosendaal [Tue, 10 Feb 2009 18:50:40 +0000 (18:50 +0000)]
2.5
Fifth attempt! Previous commit was wrong file :(
Ton Roosendaal [Tue, 10 Feb 2009 18:36:34 +0000 (18:36 +0000)]
2.5
Fourth trial to get the invisible character gone!
(I have to add/remove enters to get it committed even)
Thanks to Thomas for retyping the faulty line entirely :)
Ton Roosendaal [Tue, 10 Feb 2009 18:33:32 +0000 (18:33 +0000)]
2.5
snprintf should be BLI_snprintf
Ton Roosendaal [Tue, 10 Feb 2009 18:06:26 +0000 (18:06 +0000)]
2.5
Made GE compile again
Ton Roosendaal [Tue, 10 Feb 2009 17:56:15 +0000 (17:56 +0000)]
2.5
Third attempt to get the invisible character going!
Ton Roosendaal [Tue, 10 Feb 2009 17:53:10 +0000 (17:53 +0000)]
2.5
File Window:
- Added PKEY parent directory
- Made "P" button work
- Removed confused theme colors for text, it caused
selected text to print greyish.
Kent Mein [Tue, 10 Feb 2009 17:06:43 +0000 (17:06 +0000)]
A few more files with dos line endings.
Kent
Ton Roosendaal [Tue, 10 Feb 2009 15:51:33 +0000 (15:51 +0000)]
2.5
Bugfix: Node operators were called in empty node editor, causing
NULL reading. Prevented it from happening with more strict poll()
Ton Roosendaal [Tue, 10 Feb 2009 15:38:00 +0000 (15:38 +0000)]
2.5
*** Proof of concept! ****
3D window Panels back, in own designated region for now.
Activate or hide it with Nkey.
Note that Background Image doesn't work yet, Transform
Orientations probably need tests by Martin, Sculpt options
have to be recoded there by Nicholas.
The UI design sessions will of course review all of this!
We'll have to solve a lot of related topics;
- navigation (where) and context (what)
- non-overlapping layouts vs floating panels/bars
- properties vs tools (toolbars)
- drop panels and make nice (semi-automated) list views?
I've also done experiments with making the main 3d view
stay 'behind' the buttons region. That makes popping buttons
in and out less distracting, but also makes it obscuring
the view... it's not in this commit, it didn't work proper :)
To get that work it has to be handled by the internal
compositor, then it even can have fancy transparency in back.
Anyhoo, time enough to play with this a while. Especially for
Image window (paint) it can work well too.
Joshua Leung [Tue, 10 Feb 2009 11:37:14 +0000 (11:37 +0000)]
Graph Editor: Visibility toggles
F-Curves can now be hidden/shown in the Graph Editor in one of 3 ways:
* Specialised VKEY toggle hotkey, which alters the visibility of all selected F-Curves
* The setting toggle operators (Shift-W, Alt-W, Ctrl-Shift-W)
* Checkmark (*1) boxes in front of names of F-Curves
This allows irrelevant curves to be hidden from the keyframes area only if you want them hidden. By default, all curves are visible. Also note that a separate hotkey is used now for toggling visibility (VKEY) instead of lumping it under select-all (AKEY) as in the past, which was a major cause of confusion.
Notes:
1) I've used the ICON_BLANK011 and ICON_BLANK012 icons, which in the current icon set are two states for a checkbox type thing. These defines should probably get renamed sometime, but I'll leave that up to Matt.
Joshua Leung [Tue, 10 Feb 2009 10:42:04 +0000 (10:42 +0000)]
Graph Editor: Restoring 'View All' (HomeKey) and Auto-Set Preview Range ('Ctrl Alt P')
Joshua Leung [Tue, 10 Feb 2009 09:55:46 +0000 (09:55 +0000)]
Armature Parenting: Fixing up this operator to use the new context iterators properly
Ton Roosendaal [Tue, 10 Feb 2009 09:49:36 +0000 (09:49 +0000)]
2.5
Bugfix: CTRL+W "Save file" still gave a 'save over' popup when the
file didn't exist yet. It then attempted to free the operator twice.
Joshua Leung [Tue, 10 Feb 2009 09:18:04 +0000 (09:18 +0000)]
2.5: Silencing MSVC warnings in a few files (many files still have many to clean out some other day).
Michael Fox [Tue, 10 Feb 2009 06:12:35 +0000 (06:12 +0000)]
2.5
*******
- ported make/clear parent for editbones (paent_set, parent_clear to align with naming conventions)
Aligorith and Kaito please look over this and make sure everything is right
Matt Ebb [Tue, 10 Feb 2009 03:27:33 +0000 (03:27 +0000)]
Some theme colour tweaks
Matt Ebb [Tue, 10 Feb 2009 02:39:19 +0000 (02:39 +0000)]
* Some more icon file updates (thanks jendrzych), and associated UI tweaks.
Joshua Leung [Mon, 9 Feb 2009 23:46:13 +0000 (23:46 +0000)]
Graph Editor - Drawing Tweaks
* Handles now draw with anti-aliased lines for a 'tidier' appearance at certain scales
* Added new drawing code for 'samples'
Joshua Leung [Mon, 9 Feb 2009 23:06:29 +0000 (23:06 +0000)]
2.5:
Added missing colour/theme entries from Graph Editor in RNA
Joshua Leung [Mon, 9 Feb 2009 22:59:26 +0000 (22:59 +0000)]
2.5 Bugfixes:
Adjusted ranges for subdivide operators (Mesh + Armature).
* The Mesh one was causing lockups as its range started from 0. Now it starts from 1.
* Tweaked the soft-limits for subdivide operators to be easier to use (1-10 instead of 0-100)
Brecht Van Lommel [Mon, 9 Feb 2009 20:58:31 +0000 (20:58 +0000)]
2.5: UV Editor module porting pretty much finished now, only missing
still is mirror transform. This commits adds the remaining operators:
* UV mapping operators (U key menu): cube, sphere, cylinder, etc.
* Hide/Show operators.
And solves most XXX's, including:
* Fix bad includes and calls into space image.
* Aspect ratio correction.
* Create UVs if they don't exist yet on unwrap.
* Assign image to UVs.
* Drawing proportional edit circle.
Ton Roosendaal [Mon, 9 Feb 2009 18:06:45 +0000 (18:06 +0000)]
2.5
Bugfix: enter editmode had wrong notifier reference pointer,
caused redraws to skip.
Ton Roosendaal [Mon, 9 Feb 2009 16:52:33 +0000 (16:52 +0000)]
2.5
- Render: scene buttons RENDER and ANIM now work
- Nodes: text drawing for socket names back
Ton Roosendaal [Mon, 9 Feb 2009 15:50:09 +0000 (15:50 +0000)]
2.5
- Added depsgraph tag for object-change in AnimData, so the
new animsys doesn't have to all objects anymore.
(Still WIP, depsgraph has to do this much better)
- Bugfix in notifiers; only 1 notifier was handled for
frame updates
Result: 2 windows, displaying 2 scenes, now can be edited
independently, and play independent. Not when they share
data, of course. :)
Joshua Leung [Mon, 9 Feb 2009 11:05:34 +0000 (11:05 +0000)]
Keyframe-related bugfixes:
* Deleting keyframes should be safer now
* Graph Editor no longer crashes on F-Curves with no keyframes/samples
* Silenced console prints that occurred when an F-Curve had now keyframes.
Joshua Leung [Mon, 9 Feb 2009 10:33:05 +0000 (10:33 +0000)]
Graph Editor: Drawing tweaks for previous commit
* Group channels are drawn with better indention now
* Colors for group channels in Graph Editor are now initialised properly
* When selecting individual keyframes in Graph Editor, it is now possible to see which curve it belonged to, as the 'active' and 'selected' flags are set on that curve only.
Joshua Leung [Mon, 9 Feb 2009 10:04:11 +0000 (10:04 +0000)]
Animato: Added 'experimental' grouping schemes for F-Curves
When inserting keyframes on previous un-animated Objects/bones, F-Curves will be added into Action Groups into either "Object Transform" or <PoseChannel Name>. Ob->Material settings are not grouped for now to illustrate what's possible.
Old files are currently not patched to use do this, as it's still not clear whether this will be ideal.
Diego Borghetti [Mon, 9 Feb 2009 07:15:22 +0000 (07:15 +0000)]
Just commit so I can continue tomorrow from work.
All the code have #if 0 / #endif so nothing to worry about.
Joshua Leung [Mon, 9 Feb 2009 04:47:34 +0000 (04:47 +0000)]
DopeSheet: Bugfix for View All (HomeKey)
Removing an old line of temporary code I forgot to remove
Joshua Leung [Mon, 9 Feb 2009 04:39:25 +0000 (04:39 +0000)]
2.5 - Assorted View2D-Related Cleanups
* Removed Sequencer's own 'border zoom' tool. There is a generic one in View2D that should be used instead.
* Changed the hotkey for View2D's version of borderzoom to Shift-B
* Fixed a few hotkey mentions entries in old menus
* Added set start/end frame operators for TimeLine. (SKEY and EKEY)
* Fixed various issues in Graph Editor
- channels area is now drawn wide enough to show the 'protect' toggles without needing to scroll
- new Graph Editors have 'auto-snap' enabled by default
Joshua Leung [Mon, 9 Feb 2009 03:06:52 +0000 (03:06 +0000)]
2.5 - Animation UI tweaks
* Frame-change (scrubbing) now works when using LMB select. It now uses ACTIONMOUSE, so it doesn't conflict with selection. However, the check for exiting the modal op currently needs to check for LEFTMOUSE and/or RIGHTMOUSE instead of ACTIONMOUSE otherwise errors occur.
* Renamed the 'DopeSheet Editor' entry to simply 'DopeSheet'
Matt Ebb [Mon, 9 Feb 2009 02:54:40 +0000 (02:54 +0000)]
* Some more 2.5 theme updates
Joshua Leung [Mon, 9 Feb 2009 01:33:50 +0000 (01:33 +0000)]
2.5
Fixed memory leaks when closing Blender without exiting Armature EditMode first.
Ton/Brecht - mesh editmode (and a few others I think) are still leaking in this case.
Joshua Leung [Mon, 9 Feb 2009 01:27:44 +0000 (01:27 +0000)]
Armature Editing: Subdivide Operators
* Added back the Subdivide tools. Use the Alt-S hotkey (for now) to get a menu with the subdivision options. There are also two standalone operators which are not used yet.
* Fixed the PoseMode checking callback to make sure that it doesn't override any tools in EditMode.
* Fixed an old comment in transform code, and a few warnings in editarmature.c
Joshua Leung [Sun, 8 Feb 2009 23:41:21 +0000 (23:41 +0000)]
Armature Tools - Ported Switch Direction (Alt-F)
This is one of the few armature tools where it is currently not that easy/desireable to port to use context-loops exclusively, since they depend on working with 'chains' of bones from the tips to the roots, which cannot be easily done using EditBones.
Ton Roosendaal [Sun, 8 Feb 2009 19:15:59 +0000 (19:15 +0000)]
2.5
Added CTRL+W save Blender file.
It's the first user of the uiPupMenuSaveOver() function,
which I've recoded to accept an operator pointer.
This is required because the operator property 'filename'
has to be set to work. Other 'save over' users will
require running operators too I guess.
Brecht Van Lommel [Sun, 8 Feb 2009 14:56:43 +0000 (14:56 +0000)]
2.5: RNA auto pointer type detection didn't find right types. If
two RNA structs have the same DNA structs it should use the first
defined one, could be smarter but for now this makes it work again.
Ton Roosendaal [Sun, 8 Feb 2009 12:16:35 +0000 (12:16 +0000)]
2.5
Scene browse button now works.
Note that animsys currently executes animation for the entire
database, so multiple scenes in multiple windows don't work yet.
Various fixes:
- crash on invoking filewindow when mouse outside (active) window
- removed obsolete error prints (set screen error, copy data error)
- displist fix for loading files with curve/nurbs, the select-outline
then didnt draw immediately.
- outliner allows scene activating
Joshua Leung [Sun, 8 Feb 2009 11:28:20 +0000 (11:28 +0000)]
Animato Conversions:
Added a few Material->Mode bitflag conversions as an example for Roland to extend to the remaining settings. There are currently still quite a few settings missing from RNA to be able to convert all of these.
Joshua Leung [Sun, 8 Feb 2009 11:06:26 +0000 (11:06 +0000)]
Action Editor - Tweaking code for refreshing.
Although there is currently code in place to listen to notifiers + tag updates for regions, these don't actually result in any changes yet. Everything still relies on 'manual' redraw tags for the entire area to have refreshes.
Joshua Leung [Sun, 8 Feb 2009 10:21:38 +0000 (10:21 +0000)]
Action Editor - Added back ID browsing buttons. Only browse/delete works for now.
Shaul Kedem [Sat, 7 Feb 2009 23:20:36 +0000 (23:20 +0000)]
edit_tools ops - starting from 4key up to 8key, ctrl and alt. ton: please check if working (especially uv and color functions)
Ton Roosendaal [Sat, 7 Feb 2009 19:37:29 +0000 (19:37 +0000)]
2.5
- Screen browse button back
- Several fixes in using screens in more windows.
Still has loose ends, but things are definitely more stable!
Ton Roosendaal [Sat, 7 Feb 2009 16:43:55 +0000 (16:43 +0000)]
2.5
F6 menu "redo last operation" now works, mostly :)
Try it in editmode on add-UV-Sphere, or Subdivide, those work
fine. Transform ops have some feedback issues or so.
This is a temporary commit; brecht will take this further with
nice code (event system doesn't make menus as active region
but sets the original context instead, as stored in ui handler.)
Ton Roosendaal [Sat, 7 Feb 2009 15:44:16 +0000 (15:44 +0000)]
2.5
Edit Mesh: Knife Cut back.
I've put it for now under ALT+CTRL+LMB, modeless direct cutting.
Options for polyline input and snapping is for later. At least
this works cool :)
Ton Roosendaal [Sat, 7 Feb 2009 14:03:34 +0000 (14:03 +0000)]
2.5
- Node editor: link cut back, now under ALT+LMB, to prevent
accidents. Note it now nicely intersects the real curved
noodles with a line you draw!
- To make above work, replaced ogl curve draw with own bezier
code.
- Added new WM standard operator callback for lines-gesture,
the Lasso gesture now draws a closed line.
- Both callbacks have optional property 'cursor' to make it
give modal info. For future also linestyle or color can be
defined.
- Changed 'pin' icon in Image header to something that looks
less scary... but there's no pin icon yet?
Ton Roosendaal [Sat, 7 Feb 2009 13:39:54 +0000 (13:39 +0000)]
2.5
Bugfix in ctx itterator: CTX_DATA_COUNT() didn't free memory.
Ton Roosendaal [Sat, 7 Feb 2009 11:04:13 +0000 (11:04 +0000)]
2.5
Hrmf; the patch provided for setting UserDef opengl lights didnt even
work. It was setting flags zero, which just disabled any saved light.
Joshua Leung [Sat, 7 Feb 2009 10:39:20 +0000 (10:39 +0000)]
View2D bugfix:
The previous fix for zooming only worked as lucky coincident. It was the flag that was wrong, not the var.
Ton Roosendaal [Sat, 7 Feb 2009 10:00:46 +0000 (10:00 +0000)]
2.5
- Added back CTRL+X "reload start-up file".
(Original name 'erase all' is a bit misleading, but we can
go over all naming conventions later :)
- Added memfree for triple buffer data.
Nicholas Bishop [Sat, 7 Feb 2009 03:21:28 +0000 (03:21 +0000)]
Started converting over the sculpt header menu to the new system. Added operator and menu items for brush curve presets.
Brecht Van Lommel [Sat, 7 Feb 2009 01:27:46 +0000 (01:27 +0000)]
2.5: UV Editor, more operators.
Border Select
Circle Select
Pin
Select Pinned
Unwrap
Minimize Stretch
Pack Islands
Average Islands Scale
Snap Cursor
Snap Selection
Andrea Weikert [Fri, 6 Feb 2009 21:18:36 +0000 (21:18 +0000)]
2.5 MSVC9 projectfiles
update for renaming space_ipo -> space_graph
Brecht Van Lommel [Fri, 6 Feb 2009 19:58:15 +0000 (19:58 +0000)]
2.5: fix triple buffer memory leak on exit.
Ton Roosendaal [Fri, 6 Feb 2009 18:38:10 +0000 (18:38 +0000)]
2.5
- Corner node 'size' widget works again
- Proper preview events added on linking nodes
Roland Hess [Fri, 6 Feb 2009 17:32:57 +0000 (17:32 +0000)]
Finish Material, Sound and World adr conversion sections. Moving on to particle adr codes, but I have to wrap particle dna first. Ugh.
Brecht Van Lommel [Fri, 6 Feb 2009 16:51:09 +0000 (16:51 +0000)]
2.5: Enable triple buffer drawing by default (if it doesn't work
or flickers, kick me). Also removed proxy texture test since it
does not seem to be implemented well by all drivers.
Brecht Van Lommel [Fri, 6 Feb 2009 16:40:14 +0000 (16:40 +0000)]
2.5: ID datablock button back, previously known as std_libbuttons. The
way this worked in 2.4x wasn't really clean, with events going all over
the place and using dubious variables such as G.but->lockpoin or
G.sima->menunr. It works as follows now, for example:
xco= uiDefIDPoinButs(block, CTX_data_main(C), NULL, (ID**)&sima->image, ID_IM, &sima->pin, xco, yco,
sima_idpoin_handle, UI_ID_BROWSE|UI_ID_RENAME|UI_ID_ADD_NEW|UI_ID_OPEN|UI_ID_DELETE|UI_ID_ALONE|UI_ID_PIN);
The last two parameters are a callback function, and a list of events
or functionalities that are supported. The callback function will then
get the ID pointer + event to handle.
Ton Roosendaal [Fri, 6 Feb 2009 16:34:05 +0000 (16:34 +0000)]
2.5
Node editor:
- Linking sockets back.
- Removed obsolete code
- Add node gives correct pointers for Render stuff
Ton Roosendaal [Fri, 6 Feb 2009 16:31:18 +0000 (16:31 +0000)]
2.5
View2D bug: zooming failed in node editor due to check for wrong
variable (keepzoom instead of keepofs :)
Ton Roosendaal [Fri, 6 Feb 2009 13:07:02 +0000 (13:07 +0000)]
2.5
Compo node fixes:
- adding new composite in scene crashed, wrong pointers passed on to
addnode function
- scene render-layer node now gets default scene ID pointer, which
can be viewed/edited with menu in node
- on using headerbuttons in node window, display refreshes now
Ton Roosendaal [Fri, 6 Feb 2009 12:33:15 +0000 (12:33 +0000)]
2.5
Bugfix for Bugfix for 2.5 - Bugfix #18251!
- the call to GPU_default_lights has to be done after windows opened,
in case you have no .b.blend saved it crashed
- further this function is only called on .B.blend reading, so it's
correct to reset the lighting to user-def.
Ton Roosendaal [Fri, 6 Feb 2009 11:11:42 +0000 (11:11 +0000)]
2.5
Bugfix: on reading multiple pre-2.5 files, the keymaps were generated
again, causing items to be added double.
Joshua Leung [Fri, 6 Feb 2009 10:48:00 +0000 (10:48 +0000)]
2.5 - Armatures Code
* Brought back recalculate bone roll (Ctrl N). This should be quite a straightforward example of a cleaned-up + ported armature tool.
* Cleaned up a few warnings
Joshua Leung [Fri, 6 Feb 2009 10:04:44 +0000 (10:04 +0000)]
2.5
Converted all countall() calls in armature code to armature_sync_selection()
Joshua Leung [Fri, 6 Feb 2009 01:39:55 +0000 (01:39 +0000)]
2.5 Armature Editing - Restored 'Align Bones' (Ctrl Alt A)
* I've had to remap 'Duplicate window' to Ctrl Alt W instead...
* Fixed some bugs with armature context iterators for X-Axis Mirroring. Now, the code there checks for mirrored bones in the right way.
For details on how to write tools that need to cope with this option, refer to the 'Align Bones' operator. I'll port another simple operator as another good example soon.
Additional notes:
Currently, armature_sync_selection() is really buggy (not part of this commit), and needs further attention.
Ton Roosendaal [Thu, 5 Feb 2009 19:28:28 +0000 (19:28 +0000)]
2.5
Safe method to move render results to the displayed image.
It now allocates a single image for display, and on each
refresh callback from render, it copies the refreshed
section over to this image, in 32 bits. While rendering
that image then only shows progress updates, as usual.
This also now works for scenes in composte and results
for composite.
This should solve reported crashes for MBlur or SSS.
Joshua Leung [Thu, 5 Feb 2009 05:51:21 +0000 (05:51 +0000)]
2.5 - Bugfixes for Pose 'Clear' Operators
* Fixed context iterators for PoseChannels. The actual selection test was missing (but layer visibility was getting checked). Also added check for hidden bones here too.
* Removed unnecessary defines added by mfoxdogg in BKE_context.h
* Removed the old hacks in 'Clear ...' operators for ensuring that object animation (ipos/actions) don't overwrite poses. These are no longer necessary, since normal animation calculation is only done in a separate step on frame-changes now.
* Removed the manual checks for layer visibility from 'Clear ...' operators, since that's taken care of by context iterators.
Michael Fox [Thu, 5 Feb 2009 05:13:08 +0000 (05:13 +0000)]
2.5
*******
-ported clear loc,rot,scale operators to pose mode operators
- for some reason when animated and you clear anything, the whole aramture clears. somthing to do with the depsgraph stuff that was directly ported from clear armature()
Joshua Leung [Thu, 5 Feb 2009 03:28:07 +0000 (03:28 +0000)]
2.5 - Context API access for Bones (EditMode and PoseMode)
* Added selected, selected+editable, and active to access EditBones for Armature Operators to use. These take into account X-Axis Mirror too, so there is really no need to check that sort of thing anymore in tools.
* Added a quick testing operator for verifying that these loops filter the data correctly. I've dumped this in armature_ops.c for now. It can be activated using the TKEY hotkey in Armature EditMode only. This should be removed once we have a few more functional tools.
* Ported over cleaned up roll-calculation tools from AnimSys2
* Removed a few ugly stubs from posemode code
Shaul Kedem [Thu, 5 Feb 2009 01:32:37 +0000 (01:32 +0000)]
flip_editnormals is back, alt+3key