Blender Git Loki

Git Commits -> Revision e7d3039

Revision e7d3039 by Willian Padovani Germano (master)
September 21, 2004, 05:28 (GMT)
- Blender: added option 'scriptsdir' to Blender.Get();
- small updates to the docs;
- Object: small fix to getMatrix: check during_script() to avoid undesired loops; added old behavior (pre 2.34) as option: .getMatrix('oldlocal');
- tentative fix for bug #1275: scene REDRAW scriptlinks were not being executed (the call to do so was missing):
http://projects.blender.org/tracker/index.php?func=detail&aid=1275&group_id=9&atid=125
added the call in drawview.c, in drawview3dspace(). This causes the scriptlink to be called for each visible view3d, but that's what happens with object redraw scriptlinks, too. Anyway, this is still a test. The place was chosen based on the idea that a scene redraw scriptlink is like an object redraw one, but for all objs in the scene at once.

- Window.Theme: new submodule, to get/set theme options in Blender;
- Added the script save_theme.py (Help menu for now), to save the current theme in Blender as an executable script (currently shown in the Scripts->Misc menu).

There's more work to do for themes, like defining a proper place for them in the interface, adding documentation (for now the added script and the ones it generates can give a pretty good idea of how to use the new module), probably extending themes to support SpaceScript and so on.

Commit Details:

Full Hash: e7d3039d127d8bb4a57c6baeb883d0cf32fd21f3
SVN Revision: 3098
Parent Commit: e5e621a
Lines Changed: +1441, -59

5 Added Paths:

/release/scripts/save_theme.py (+75, -0) (View)
/source/blender/python/api2_2x/charRGBA.c (+398, -0) (View)
/source/blender/python/api2_2x/charRGBA.h (+60, -0) (View)
/source/blender/python/api2_2x/windowTheme.c (+706, -0) (View)
/source/blender/python/api2_2x/windowTheme.h (+60, -0) (View)

12 Modified Paths:

/source/blender/python/api2_2x/Blender.c (+8, -0) (Diff)
/source/blender/python/api2_2x/doc/API_intro.py (+3, -3) (Diff)
/source/blender/python/api2_2x/doc/Blender.py (+6, -5) (Diff)
/source/blender/python/api2_2x/doc/Object.py (+10, -9) (Diff)
/source/blender/python/api2_2x/gen_utils.c (+21, -4) (Diff)
/source/blender/python/api2_2x/gen_utils.h (+8, -6) (Diff)
/source/blender/python/api2_2x/Image.c (+36, -0) (Diff)
/source/blender/python/api2_2x/modules.h (+1, -0) (Diff)
/source/blender/python/api2_2x/Object.c (+9, -2) (Diff)
/source/blender/python/api2_2x/Window.c (+4, -1) (Diff)
/source/blender/python/SConscript (+30, -28) (Diff)
/source/blender/src/drawview.c (+6, -1) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021