Arystanbek Dyussenov [Fri, 8 May 2009 16:02:58 +0000 (16:02 +0000)]
First merge with 2.5 branch.
Kent Mein [Fri, 8 May 2009 14:05:17 +0000 (14:05 +0000)]
Added include dir for blenfont
Kent
Joshua Leung [Fri, 8 May 2009 12:51:36 +0000 (12:51 +0000)]
2.5 - Restored Various Tools using Markers
* Added back a few Marker-API tools
* Restored column select tools using markers (some of these aren't working right yet though).
Joshua Leung [Fri, 8 May 2009 10:50:32 +0000 (10:50 +0000)]
2.5 - Assorted animation code cleanups
* Replaced a few duplicated enums that were also defined for some RNA properties already with the RNA ones.
* Start of cleanup of markers code in preparation for getting the rest of the editing code involving markers working again
Kent Mein [Fri, 8 May 2009 03:49:48 +0000 (03:49 +0000)]
Tweaks to build systems. Just some small cleanups...
Kent
Michael Fox [Thu, 7 May 2009 01:20:43 +0000 (01:20 +0000)]
just a small tweak to the buttons window header buttons, seperating the global buttons like scene and world from the sub buttons like ob data and materials, also tweaked the object checks aswell
Andrea Weikert [Wed, 6 May 2009 18:51:58 +0000 (18:51 +0000)]
Blender 2.5
MSVC projectfiles updates
* removed WITH_FREETYPE2
* update for several missing or moved files rna_fcurve.c, gpencil.c,...
Joshua Leung [Wed, 6 May 2009 00:18:06 +0000 (00:18 +0000)]
2.5: Missing include was causing crashes on startup in the drawing code for scrollbars
Joshua Leung [Tue, 5 May 2009 23:25:12 +0000 (23:25 +0000)]
2.5 - Scons compiling fix for BDiego's commit
Was missing includes for blenfont module in a few places.
Diego Borghetti [Tue, 5 May 2009 23:10:32 +0000 (23:10 +0000)]
Big, big commit!!
1) Remove WITH_FREETYPE2 from code, so now blender always need freetype2
2) Remove the old bmfont
3) Remove ftfont and bFTGL library
4) Implement a new BLF_draw_default function for place that still need/use
the old BMF api.
I try to update both, scons and cmake, but I only can test with make, so
hope all work fine.
MSVC is broken, but I don't have Windows, things to search and fix are
any reference to WITH_FREETYPE2, FTGL and BMFONT (take in care that
blenkernel also have a BKE_bmfont.h, this don't have anything to do with bmfont).
Always have to link/include the freetype2 library
Remove any reference to libbmfont
Remove any reference to libftfont
Remove any reference to libbftgl (or libbFTGL)
Joshua Leung [Tue, 5 May 2009 09:56:22 +0000 (09:56 +0000)]
2.5 Buttons - Insert/Delete Keyframe Menu Tweaks
* Added 'Replace Keyframes' entry that appears in addition to delete, since it is often useful to be able to directly replace values instead of having to delete and reinsert keyframes. Internally, this just calls the Insert Keyframe operator.
* Separated the code to for Driver editing from the tests for keyframes, since they're independent.
* Added separators between keyframe and driver operations. This could be removed if the UI-mafia consider it overkill.
Joshua Leung [Tue, 5 May 2009 09:43:11 +0000 (09:43 +0000)]
Cycles FModifier - Repeat Mirrored now works for cycles before the start of the keyframe range
Thomas Dinges [Tue, 5 May 2009 04:07:08 +0000 (04:07 +0000)]
2.5 Buttons:
* Some minor code cleanup
* More tweaks to match the Layout Guidelines "Dependencies ".
Matt Ebb [Tue, 5 May 2009 02:24:58 +0000 (02:24 +0000)]
* More icon updates, thanks to Jendryzch. That's all the modifiers now, I think!
Thomas Dinges [Mon, 4 May 2009 18:45:58 +0000 (18:45 +0000)]
2.5 Buttons:
* Tweaked the scene buttons to be more consistent with the Layout Guidelines. http://wiki.blender.org/index.php/BlenderDev/Blender2.5/UIlayoutGuide
* Modifier panel is now also visible on non mesh objects, like curves, text etc.
Thomas Dinges [Mon, 4 May 2009 15:53:55 +0000 (15:53 +0000)]
2.5 Data Buttons:
* Added camera buttons.
* Added poll to check on active object type.
ToDo:
* Lens Unit "lens" and "angle" don't update each other. Needs RNA fix.
* Buttons only work for default camera now, needs better context.
Thomas Dinges [Mon, 4 May 2009 15:19:11 +0000 (15:19 +0000)]
2.5 RNA:
*Added missing notifiers for resolution and aspect ratio, so camera border updates while changing the values in camera view.
Joshua Leung [Mon, 4 May 2009 10:24:53 +0000 (10:24 +0000)]
2.5 - Bugfixes
* Loading files saved with 2.5 works again now without crashing. Was crashing when trying to load Grease Pencil data (even though there was none)
* Fixed some msvc compiler warnings in own code
Joshua Leung [Mon, 4 May 2009 10:04:46 +0000 (10:04 +0000)]
Cycles F-Curve Modifier: 'Mirrored' Option
Using this cycling mode option, the keyframe range will be repeated in reverse order every second repeat. Thanks for the idea mfoxdogg :)
Matt Ebb [Mon, 4 May 2009 07:04:48 +0000 (07:04 +0000)]
* Icon updates and fixes
* Made the buttons space listen to and update for new active objects
* Cleaned up the Add Object menu
Joshua Leung [Sun, 3 May 2009 13:00:59 +0000 (13:00 +0000)]
F-Curve Modifiers: Time-Modifying F-Modifiers Cleanup
Time-Modifying F-Curve Modifiers now get special callbacks to allow them to specify what frame they need to be evaluated on, instead of forcing a re-evaluation of the preceeding curve + modifier-stack. This should be more robust than the old way in general.
It still remains to be seen if some tweaks to this are still needed, as the full consequences of the propogation of modified time-spaces have yet to be fully explored.
For now though, evaluation works by finding the last modifier on the stack which modifies time, and asks it what time it modifies the given time to. This modified time is used to evaluate the F-Curve data only. The modifier stack gets evaluated using the original time instead.
Joshua Leung [Sun, 3 May 2009 02:27:36 +0000 (02:27 +0000)]
Fix for Bug #18658: | character in buttons allowing text input was being interpreted as the "menu-name | hotkey" delimeter used for menus, giving incorrect results.
This commit fixes the issue in 2.5 only. A similar fix will need to be backported/coded for trunk?
Joshua Leung [Sat, 2 May 2009 04:51:14 +0000 (04:51 +0000)]
F-Curve Modifiers - Per-Modifier Muting:
It is now possible to mute individual modifiers so that they will not contribute to the final result.
Matt Ebb [Sat, 2 May 2009 04:20:36 +0000 (04:20 +0000)]
* Added a new F-Curve modifier type: Noise
Thanks Aligorith for making such an easy to use system!
http://mke3.net/blender/devel/2.5/fcurve_noise_modifier.mov
Matt Ebb [Sat, 2 May 2009 03:09:40 +0000 (03:09 +0000)]
* Added a list of OS X volumes to the file selector bookmarks pane, consistent with the drive letters on Windows. Currently this list only gets refreshed on Blender startup, hopefully this can be worked on but for now at least it's better than having to manually navigate to /Volumes/...
http://mke3.net/blender/devel/2.5/fileselect_volumes.png
Joshua Leung [Fri, 1 May 2009 11:57:14 +0000 (11:57 +0000)]
2.5 - Restored access to the Image-Type setting
This has been wrapped under Scene.RenderData, and can currently be accessed under the 'Image' panel in the Scene settings.
As in the old code, image types are only included if they are enabled when compiling. Also note that image-type specific settings have not been wrapped yet.
Matt Ebb [Fri, 1 May 2009 06:24:52 +0000 (06:24 +0000)]
* Some tiny tweaks to the padding around buttons window
Ton Roosendaal [Thu, 30 Apr 2009 17:27:30 +0000 (17:27 +0000)]
2.5
Cleanup of conventions for icon placement in menus.
Old code only allowed 1 icon per menu, forcing to pass on the sublevel
menu icon with exception handling.
Now sublevel icons are drawn automatically, allowing to add an icon
before name too. (Check shift+a menu)
Ton Roosendaal [Thu, 30 Apr 2009 16:44:00 +0000 (16:44 +0000)]
2.5
Two fixes:
- objects in editmode now update data on saving .blend
- uifonts and uistyles were not freed yet on reading files
yet.
Ton Roosendaal [Thu, 30 Apr 2009 12:51:38 +0000 (12:51 +0000)]
2.5
Bug reported by Joshua: quitting Blender via window header quit widget
didn't free editmode stuff.
Martin Poirier [Thu, 30 Apr 2009 11:47:35 +0000 (11:47 +0000)]
2.5
Transform helpline and experimental drawing code to indicate direction of motion for specific transformations.
Ton Roosendaal [Thu, 30 Apr 2009 11:33:07 +0000 (11:33 +0000)]
2.5
Bugfix, thanks to report from M Fox: Saving file in editmode
could crash on load, because editobject pointer in scene was
not cleared on file reading.
Joshua Leung [Thu, 30 Apr 2009 10:22:28 +0000 (10:22 +0000)]
2.5 - Icons Add Object Menu
A little experiment in putting icons on this menu as per a mockup from William.
However, it appears that there is a minor bug here though with the menu drawing code. I've deliberately left the Mesh entry without an icon for now to illustrate part of the problem (note the placement of the icons for curves and surfaces)
Matt Ebb [Thu, 30 Apr 2009 02:14:03 +0000 (02:14 +0000)]
* trying out a little 'gripper' draw style for the screen splitter triangle
Matt Ebb [Wed, 29 Apr 2009 04:43:17 +0000 (04:43 +0000)]
* First pass updating the default theme for the new UI controls and darker colours
Matt Ebb [Wed, 29 Apr 2009 02:47:28 +0000 (02:47 +0000)]
* Updated icons from Jendryzch. Thanks!
Brecht Van Lommel [Mon, 27 Apr 2009 18:05:58 +0000 (18:05 +0000)]
UI:
* Made separator item work horizontal & vertical.
* Add colon (:) automatic for int/float/enum/string.
* Added space variables to uiStyle and use them in the
layout engine.
* Added initial World buttons by Thomas Dinges, thanks!
* Added some code for modifiers in the Object Data context.
This will become a template though.
* Use a common poll() callback in the scripts to reduce code.
Martin Poirier [Mon, 27 Apr 2009 15:43:35 +0000 (15:43 +0000)]
2.5
Fix repeat crash with transform. Just remove stupid twmat, don't need to cache results in view3d.
Made it more safe too.
Ton Roosendaal [Mon, 27 Apr 2009 13:55:38 +0000 (13:55 +0000)]
2.5
Forgot to add new file!
This is the toolbar, it get overlayed on top of view, not changing
main window display.
Ton Roosendaal [Mon, 27 Apr 2009 13:44:11 +0000 (13:44 +0000)]
2.5
Summary of ain features:
- Themes and Styles are now editable.
- CTRL+U "Save user defaults" now goes to new .B25.blend, so you
can use 2.4x and 2.5x next to each other. If B25 doesn't exist, it
reads the regular .B.blend
- Press Tkey in 3d window for (unfinished) toolbar WIP. It now only
shows the last operator, if appropriate.
Nkey properties moved to the other side.
A lot of work was done on removing old themes for good and properly
getting it work with the 2.5 region system. Here's some notes;
- Buttons now all have a complete set of colors, based on button classifications
(See outliner -> user prefs -> Interface
- Theme colors have been extended with basic colors for region types.
Currently colors are defined for Window, Header, List/Channels and
for Button/Tool views.
The screen manager handles this btw, so a TH_BACK will always pick the
right backdrop color.
- Menu backdrops are in in Button theme colors. Floating Panels will be in
the per-space type Themes.
- Styles were added in RNA too, but only for the font settings now.
Only Panel font, widget font and widget-label work now. The 'group label'
will be for templates mostly.
Style settings will be expanded with spacing defaults, label conventions,
etc.
- Label text colors are stored in per-space Theme too, to make sure they fit.
Same goes for Panel title color.
Note that 'shadow' for fonts can conflict with text colors; shadow color is
currently stored in Style... shadow code needs a bit of work still.
Brecht Van Lommel [Mon, 27 Apr 2009 10:00:22 +0000 (10:00 +0000)]
2.50: fix crashes in the text editor due to undo buffer.
Campbell Barton [Fri, 24 Apr 2009 11:36:48 +0000 (11:36 +0000)]
patch from Thomas Dinges, falloff out of the stars struct into the mist.
Michael Fox [Fri, 24 Apr 2009 01:27:17 +0000 (01:27 +0000)]
just some fixes in rna descriptions
Michael Fox [Fri, 24 Apr 2009 01:17:54 +0000 (01:17 +0000)]
Small comit, added the colour mode (BW,RGB,RGBA) and object type to rna, and added appropriate entries to the UI
Diego Borghetti [Thu, 23 Apr 2009 21:57:41 +0000 (21:57 +0000)]
Move texture draw to blf_util.c, now both font used it.
A little cleanup on the internal font, it's possible load the old
bmfont with: BLF_load_mem(name, NULL, 0) where name can be: helv,
helvb or scr.
Note that the internal font also support both draw, texture and bitmap,
by default always used texture.
Remove some old lang function that I left there and don't exist any more
because the locale are now in the RNA.
Small changes to Style's, so if we build without freetype2 by default
go back to the internal font, this is a little ugly (and have the old
problem of scale) but now blender always show text (need work a little
more there).
Ton Roosendaal [Thu, 23 Apr 2009 15:14:19 +0000 (15:14 +0000)]
2.5
Two small fixes;
- restrict collumns in outliner didn't work
- pulldown menu buttons had wrong AA color outline.
Ton Roosendaal [Thu, 23 Apr 2009 09:59:03 +0000 (09:59 +0000)]
2.5
Make: removing hidden directories from .app failed.
Campbell Barton [Thu, 23 Apr 2009 09:15:42 +0000 (09:15 +0000)]
- fix for python refcounting crashes, remember PyDict_GetItem and PyDict_GetItemString borrow a ref.
- the namespace dictionary wasn't being de-allocated for each run.
- clear every error after printing it to avoid stale PyObjects hanging about.
Ton Roosendaal [Thu, 23 Apr 2009 08:13:25 +0000 (08:13 +0000)]
2.5
Last commit from brecht with feature:
* Buttons window data context icon new changes depending on active
object.
Forgot to check for ob==NULL, crashed files.
Campbell Barton [Thu, 23 Apr 2009 06:58:02 +0000 (06:58 +0000)]
F8Key reloads all python scripts and redraws for quick testing
F7 runs test.py also for testing
Campbell Barton [Thu, 23 Apr 2009 05:56:09 +0000 (05:56 +0000)]
Small changes
- font->blur was uninitialized
- Use Ctrl+Alt+Shift+P to run scripts from the 3d view not Pkey. (still useful for testing)
Matt Ebb [Thu, 23 Apr 2009 01:53:11 +0000 (01:53 +0000)]
* Tiny UI tweak, moved the checkbox labels closer to the boxes.
Diego Borghetti [Wed, 22 Apr 2009 20:54:27 +0000 (20:54 +0000)]
Add clipping option for bitmap draw mode and remove the "test code" from
space_info.c
Shaul Kedem [Wed, 22 Apr 2009 19:13:07 +0000 (19:13 +0000)]
height=0;
Brecht Van Lommel [Wed, 22 Apr 2009 18:39:44 +0000 (18:39 +0000)]
UI
* Headers and menus can now be created in python.
* Replaced the uiMenuItem functions to create menus with equivalent
uiItem functions using a layout, removing duplicated code.
* More uiItem functions are now exposed to python.
* The text editor header, panels and one of its menus are now created
in space_text.py.
* Buttons window data context icon new changes depending on active
object.
Issues
* Icons are not wrapped yet, hardcoded ints at the moment.
* The ID browse template is unfinished.
Joshua Leung [Wed, 22 Apr 2009 10:07:12 +0000 (10:07 +0000)]
Assorted 2.5 fixes:
- compiling errors in outliner.c
- incorrect comments
Campbell Barton [Tue, 21 Apr 2009 20:03:39 +0000 (20:03 +0000)]
rna functions are now included in epydocs,
only write the functions into the base rna structs and let epydoc show the inheritance.
examples
http://www.graphicall.org/ftp/ideasman42/html/rna.Mesh-class.html
http://www.graphicall.org/ftp/ideasman42/html/rna.Panel-class.html
http://www.graphicall.org/ftp/ideasman42/html/rna.Header-class.html
http://www.graphicall.org/ftp/ideasman42/html/rna.UILayout-class.html
Brecht Van Lommel [Tue, 21 Apr 2009 15:30:54 +0000 (15:30 +0000)]
2.5:
* Changed the buttons window contexts to be like the mockups:
scene, world, object, data, material, texture, particles, physics
* Removed temporary C layout code for buttons and scene.
Ton Roosendaal [Tue, 21 Apr 2009 15:24:04 +0000 (15:24 +0000)]
bugfix #18543
Using feature XRay + Transparent could crash on undo/redo, the
view3d afterdraw was still storing data here whilst it shouldn't...
Reason was that object got added twice actually... but only freed
once. Also caused weird flashy display.
Martin Poirier [Tue, 21 Apr 2009 13:29:31 +0000 (13:29 +0000)]
branch from 2.5 for kazanbas
Brecht Van Lommel [Mon, 20 Apr 2009 16:53:50 +0000 (16:53 +0000)]
UI: more scene buttons tweaks by Thomas Dinges.
Martin Poirier [Mon, 20 Apr 2009 16:31:46 +0000 (16:31 +0000)]
Merge ICON_SNAP_PEEL_OBJECT and corresponding icon in blenderbuttons (need new icon though)
Brecht Van Lommel [Mon, 20 Apr 2009 15:06:46 +0000 (15:06 +0000)]
2.50: svn merge https://svn.blender.org/svnroot/bf-blender/trunk/blender -r19323:HEAD
Notes:
* blenderbuttons and ICON_SNAP_PEEL_OBJECT were not merged.
Brecht Van Lommel [Mon, 20 Apr 2009 13:16:17 +0000 (13:16 +0000)]
UI: fix for back buffer option in scene buttons, by Thomas Dinges.
Ton Roosendaal [Mon, 20 Apr 2009 12:03:55 +0000 (12:03 +0000)]
2.5
Node title and socket labels are now following Style/Font as well, and
scale correctly.
Ton Roosendaal [Mon, 20 Apr 2009 11:39:18 +0000 (11:39 +0000)]
2.5
Fixes:
- HSV picker didn't work. Old option "No Hilite" for buttons made it not
being checked for input anymore. Needs to be on attention list!
- Node editor wasn't drawing buttons correctly. Two things to keep track
off:
- Use wmLoadIdentity(), not glLoadIdentity()
- I've added a wmPushMatrix() and wmPopMatrix() version for correct
wm-compatible push/pop. Only one level for now.
Joshua Leung [Mon, 20 Apr 2009 10:45:25 +0000 (10:45 +0000)]
Drivers - Rotational Difference
Restored the code to get this working. I haven't tested this to verify it, but it 'should' work...
Also, deleted old gpencil.c file in editors, since it was causing compiling errors.
Ton Roosendaal [Mon, 20 Apr 2009 10:20:18 +0000 (10:20 +0000)]
Forgot to add the new gpencil files! :)
Ton Roosendaal [Mon, 20 Apr 2009 10:13:55 +0000 (10:13 +0000)]
2.5
Patch from Joshua, converting Grease Pencil to 2.5.
All GP data now is an ID block, allowing re-use, link and append.
For better contextual control within 2.5, these GP ID's will get
linked to actual data, like NodeTrees, Scenes, Images or Objects.
That will ensure Undo works, and opens up exciting new use cases
as well. :)
Patch note: on reading files, GPencils linked from editors will
get moved to the main library, using standard naming (indicating
where it was used), and with "Fake User" set. That way the user
can manually relink the pencils where appropriate.
We can check on just linking GP to some default, like 3d window
pencils to Scene? Nice to experiment with.
Notes for Joshua:
- for reading old GPencil, it has to use old code as well, meaning
to tread data as "indirect data, within another ID".
- Saving ID data means the chunk in file BHead needs the ID_GD code,
and not "DATA", which indicates 'indirect data'. That's the file
format spec.
- I've added do_versions_gpencil_2_50(), feel free to further tweak
things here, like linking things to scene or so.
- Formerly GPencil saved 2.50 files won't convert gpencil
Joshua Leung [Mon, 20 Apr 2009 09:17:43 +0000 (09:17 +0000)]
Drivers: "Scripted Expression" drivers (i.e. PyDrivers) work again
Now it is possible to write a Python Expression using the variable names for driver targets (see mockup from initial commit) to substitute the appropriate values into the expression.
In the __global__ namespace for PyDriver evaluation, the following modules are available:
* __builtins__ - i.e. the builtin Python functions
* bpy - new Python API
* math or m - math module
For example:
Consider a driver with three targets, named: A, B, C
Now, you could write an expression like:
C if A < 5 else B
or even:
2*C if A < 5 or A > 20 else m.PI*B
Of course, you don't have to have three targets, the above was just an example.
TODO:
* Bring back way to load pydrivers.py
* Blender.Noise equivalent would be nice to have
P.S. I hope I haven't made any terrible Python API coding errors here (i.e. mem leaks, etc.)
Michael Fox [Mon, 20 Apr 2009 04:58:22 +0000 (04:58 +0000)]
Added some missing rna entries for scene, and added them to the scene buttons with some missing elements aswell
Joshua Leung [Mon, 20 Apr 2009 03:52:13 +0000 (03:52 +0000)]
Drivers: Editing ops in the Outliner
In much the same way as Keying Sets are defined in the Outliner, you can now select items in the Datablocks view of the Outliner, and use the D/Alt-D hotkeys to Add/Remove drivers (repectively). This is useful for settings which don't have buttons yet (in the buttons window).
Joshua Leung [Mon, 20 Apr 2009 03:29:45 +0000 (03:29 +0000)]
A bit more F-Modifier wrapping...
Joseph Eagar [Sun, 19 Apr 2009 20:09:31 +0000 (20:09 +0000)]
changed some {} to {0}, these were causing errors on msvc. also got rid of some spurious prototypes I forgot to get rid off.
Brecht Van Lommel [Sun, 19 Apr 2009 17:12:16 +0000 (17:12 +0000)]
RNA:
* Wrapped HeaderType/Header.
* Some tweaks to get type properties wrapped with less code.
* Made Panel space and region types enum instead of string.
Brecht Van Lommel [Sun, 19 Apr 2009 13:37:59 +0000 (13:37 +0000)]
RNA: Generic Type Registration
The Python API to define Panels and Operators is based on subclassing,
this makes that system more generic, and based on RNA. Hopefully that
will make it easy to make various parts of Blender more extensible.
* The system simply uses RNA properties and functions and marks them
with REGISTER to make them part of the type registration process.
Additionally, the struct must provide a register/unregister callback
to create/free the PanelType or similar.
* From the python side there were some small changes, mainly that
registration now goes trough bpy.types.register instead of
bpy.ui.addPanel.
* Only Panels have been wrapped this way now. Check rna_ui.c to see
how this code works. There's still some rough edges and possibilities
to make it cleaner, though it works without any manual python code.
* Started some docs here:
http://wiki.blender.org/index.php/BlenderDev/Blender2.5/RNATypeRegistration
* Also changed some RNA_property and RNA_struct functions to not
require a PointerRNA anymore, where they were not required (which
is actually the cause of most changed files).
Joshua Leung [Sun, 19 Apr 2009 12:26:31 +0000 (12:26 +0000)]
Graph Editor: UI bugfixes
* Fixed a few alignment/size issues
* Number buttons work nicely again. Added temporary define for floating point limits here...
Joshua Leung [Sun, 19 Apr 2009 10:44:07 +0000 (10:44 +0000)]
RNA - F-Curve Modifier Wrapping
* Separated F-Curve specific wrapping out to its own file
* Wrapped some F-Curve Modifiers (others to follow shortly)
Andrea Weikert [Sat, 18 Apr 2009 10:08:19 +0000 (10:08 +0000)]
2.5 MSVC9 projectfiles
* long time due: copy the executables to the install/msvc9 or install/msvc9d dir instead of keeping them in the source tree in the bin folder!
* copy the new ui scripts to the install dir
Andrea Weikert [Sat, 18 Apr 2009 08:40:14 +0000 (08:40 +0000)]
2.5 MSVC9 projectfiles
- added editors/keyingsets.c
Nathan Letwory [Sat, 18 Apr 2009 00:26:15 +0000 (00:26 +0000)]
2.5 / win64
* make sure right libname is used for gettext.
Brecht Van Lommel [Fri, 17 Apr 2009 13:37:03 +0000 (13:37 +0000)]
UI: fix for mistake in last panel commit.
Brecht Van Lommel [Fri, 17 Apr 2009 11:59:25 +0000 (11:59 +0000)]
UI:
* Forgot to finish this code yesterday, dragging panels was
broken. This is fixed and new panels are now inserted after
the last added one, inbetween others rather than at the end.
Joshua Leung [Fri, 17 Apr 2009 02:13:35 +0000 (02:13 +0000)]
2.5 Animation UI Tweaks:
* Added back backgrounds behind buttons for modifiers and driver targets
* 'Protect' toggle doesn't draw for F-Curves with no keyframes to prevent editing on anymore
* Inserting keyframes on objects using builtin keyingsets now use the right names
Brecht Van Lommel [Thu, 16 Apr 2009 21:58:06 +0000 (21:58 +0000)]
UI:
* Broke loading buttons_scene.py in last commit.
* Fix issue with space not being distributed equally
in the layout engine.
Nathan Letwory [Thu, 16 Apr 2009 21:51:20 +0000 (21:51 +0000)]
2.5 / SCons
* ui layout scripts were not copied to bundle on OSX
patch by Stephan Kassemeyer on ML
Brecht Van Lommel [Thu, 16 Apr 2009 21:39:45 +0000 (21:39 +0000)]
UI:
* For new buttons spaces, automatically set horizontal/vertical
align depending on size, instead of free.
* Cleaned up the UI panel API. There's now a new uiBeginPanel
function which takes a panel type, and a uiEndPanel which takes
the final size. uiNewPanel* functions will be phased out.
* Animate the re-alignment when a panel size changes, e.g. when
enabling dupliframes.
* Load ui scripts from the release/ folder first if it is
available. This makes it easier to edit ui scripts, since it
will directly use the original files which avoids having to
run the build system.
* Improve editing of panel types while blender is open. That
means fixing some issues with lacking updates, overlaps, strange
ordering. It even does an animation now when the panel resizes.
Ton Roosendaal [Thu, 16 Apr 2009 15:49:31 +0000 (15:49 +0000)]
Removed space for target binary name
Diego Borghetti [Thu, 16 Apr 2009 15:01:51 +0000 (15:01 +0000)]
Remove ftfont from Makefile, it's not there anymore.
Campbell Barton [Thu, 16 Apr 2009 13:21:18 +0000 (13:21 +0000)]
merged pyrna_py_to_param and pyrna_py_to_prop since they are almost the same
Joshua Leung [Thu, 16 Apr 2009 13:10:08 +0000 (13:10 +0000)]
2.5:
* Added extra parameter to generic unique name finding function BLI_uniquename() for specifying the delimeter between non-unique parts of the name and digits.
* Driver target variables now get unique names by default.
Brecht Van Lommel [Thu, 16 Apr 2009 13:01:50 +0000 (13:01 +0000)]
2.5:
* Also look in ./release for scripts instead of next to executable.
* Some warning fixes.
Joshua Leung [Thu, 16 Apr 2009 12:49:12 +0000 (12:49 +0000)]
Drivers: Depsgraph building works again
Cleaned up the code for adding driver relationships in the Depsgraph (see! I said it was going to be easy). Now, adding drivers works nicely.
Joshua Leung [Thu, 16 Apr 2009 12:38:44 +0000 (12:38 +0000)]
Drivers: UI working + bugfixes
* The UI for adding and modifying drivers is now functional, and reflects the new way they work. It has also been tidied up a bit (from the previous incarnation), with RNA buttons starting to be used (currently limited to the 'Path' settings).
* Fixed errors in RNA wrapping for drivers
Brecht Van Lommel [Thu, 16 Apr 2009 12:17:58 +0000 (12:17 +0000)]
UI:
* Don't call generic layout hints templates anymore, i.e.
TemplateRow becomes Row, etc.
* Added more general layout nesting, using uiLayoutSplit()
and uiLayoutBox() functions, for which the sublayouts
can then be accessed using uiLayoutSub(), to put items
in those sublayouts.
* Some steps to make the layout decisions, like which items
to put in which columns, independent of the width of the
window or the text in the buttons. We want the layout to
be stable under resizes and translations.
* Added an "expand" parameter to uiItemR, used now to expand
enums into a row instead of using a menu.
Nathan Letwory [Thu, 16 Apr 2009 10:45:21 +0000 (10:45 +0000)]
2.5 / SCons
* make sure makesdna and makesrna work on windows in directories with spaces in them.
Joshua Leung [Thu, 16 Apr 2009 07:37:06 +0000 (07:37 +0000)]
Animato - Drivers with Multiple Targets:
Drivers now support multiple targets which act as 'variables'. The targets have a short 'name' (see later), and reference some property (in much the same way as F-Curves do, using RNA-Paths) which acts as the 'value'.
These named variables can then be used in a Python Expression which relates them to each other for more fine-grained control over the result of the driver. By using only the names of these variables in the expressions, we are able to define expressions/relationships in a much more readable way, as data access is separated from data use. This makes the underlying relationships easier to understand.
By default, if no Python Expression is given, the variables are simply averaged together, so old files won't break. :)
For example, check the following diagram (thanks Cessen/Nathan V from Peach team):
http://download.blender.org/ftp/incoming/250_drivers_mockup_cessen.png
TODO List:
* Depsgraph building for new driver relationships doesn't work yet. This needs to be recoded again, but this new system makes this much easier, since the targets are clearly defined (i.e. no need to parse py expressions to get list of objects)
* Graph Editor interface for editing these needs to be rewritten
* Python function for evaluating these expressions is needed (Campbell?)
Campbell Barton [Thu, 16 Apr 2009 01:42:53 +0000 (01:42 +0000)]
Need to update the RNA pointers before running scripts
Joshua Leung [Thu, 16 Apr 2009 00:53:22 +0000 (00:53 +0000)]
PoseLib: Fixed up RNA-properties for this operator so that it can be repeated using the exec() callback added in previous commit.
Joshua Leung [Thu, 16 Apr 2009 00:33:40 +0000 (00:33 +0000)]
2.5 PoseLib/KeyingSets bugfixes:
* Replaced a quicky hack needed to get PoseLib working with a proper new group-naming option for KeyingSets. Now, all builtin KeyingSets will use the name of the data (i.e. Object or PoseChannel) as the name of the group new channels are added to
* Fixed a bug with LocRotScale builtin KeyingSet, which meant that scale keyframes were not getting added.
* TAB key (toggle original pose) now works again. Previously, events were flying past too quickly.