Commit Graph

209 Commits

Author SHA1 Message Date
eeb08593ce Merged changes in the trunk up to revision 31442. 2010-08-18 14:10:28 +00:00
4fae911383 Merged changes in the trunk up to revision 31440. 2010-08-18 13:16:34 +00:00
399dda68d8 fix errors with recent commits. 2010-08-18 10:42:00 +00:00
7da5d9faec rna renaming, still only adjusting properties that wont be animated (at least its very unlikely). 2010-08-18 07:14:10 +00:00
f32a35fd9d apply rna naming for ToolSettings 2010-08-18 03:24:52 +00:00
3bd039eff9 apply rna rename most of the show_*, names. 2010-08-17 17:03:52 +00:00
7a31417f50 apply UserPrefs and Theme rna naming changes. 2010-08-17 13:14:41 +00:00
92478de0eb Merged changes in the trunk up to revision 31403. 2010-08-17 07:10:03 +00:00
04f619d8af - PyLineSpit() - used to print the filename and line number for internal errors now works when executing class functions in a module.
- replaced PySys_GetObject("modules") with PyImport_GetModuleDict()
- use defaults for keymap import/export rather then setting the same value every time from the UI scripts.
2010-08-14 05:33:20 +00:00
dd75ec4907 Merged changes in the trunk up to revision 31190. 2010-08-09 11:32:55 +00:00
a6f13f9d7b poll() as a python '@staticmethod' was too limiting and didnt allow useful base class poll functions in many cases.
now rna functions that dont have a 'self' are automatically assumed '@classmethods'.

de-duplicated poll functions and made some minor tweaks too.
2010-08-09 01:37:09 +00:00
015c23b86d display addons sorted by category then name (remove old commented code which loaded the modules for real) 2010-08-08 13:45:16 +00:00
057aac553b Experemental XML UI, define panels/menus/headers which load at startup like python scripts.
- 2 panels implimented in properties_render_test.xml (Render Dimensions and Stamp)
- only enabled in debug mode.
- poll() functions are not supported yet.
- as stated above experemental, we'll see if this is at all useful, remove if not.
- XML could be replaced with JSON or YAML.
2010-08-07 16:21:15 +00:00
acca04bf33 remove narrow ui feature
- re-arranged UI in a way that gave far too much vert scrolling.
- was added all over for simple things like making text="", layout engine should handle this.
- Ton and Brecht are ok with removing this now. Ton would like to work on the layout engine to make it better support these cases.
2010-08-06 15:17:44 +00:00
163f6055d2 bugfix [#23182] Using self.report() inside poll() gives crash
poll() function is now a static method in python, this is more correct, matching C where the operator is not created to run poll.


    def poll(self, context): ...

is now...

    @staticmethod
    def poll(context): ...

Pythons way of doing static methods is a bit odd but cant be helped :|

This does make subclassing poll functions with COMPAT_ENGINES break, so had to modify quite a few scripts for this.
2010-08-05 16:05:30 +00:00
0aef61caef Fix hang on opening addons tab, having a .py file without bl_addon_info
would go into eternal loop.
2010-08-04 15:52:59 +00:00
6d0769bc42 forgot to update addons with recent update to bpy.types 2010-08-03 06:36:07 +00:00
486e00a3ed py addons: much faster scanning of addons by only parsing the dictionary rather then the entire file. 2010-08-02 12:35:32 +00:00
200fb4a286 fix for parsing scripts 2010-08-02 12:07:50 +00:00
9e16c687a9 update userpref's addon code to support new register/unregister, now the modules are parsed rather then being imported since it become quite tricky to import once without registering the classes, then again in a way that registered the existing modules classes without a reload() - which had problems too. 2010-08-02 07:50:58 +00:00
5b345524ea RNA Types metaclass registration
See mailing list posts for details [1][2][3]

Addons still need to be fixed; Campbell said he'd do it today.

See any of the py files (outside netrender) in this commit for how to do it (it's rather simple).

[1] http://lists.blender.org/pipermail/bf-committers/2010-February/026328.html
[2] http://lists.blender.org/pipermail/bf-committers/2010-August/028311.html
[3] http://lists.blender.org/pipermail/bf-committers/2010-August/028321.html
2010-08-02 02:55:12 +00:00
174145be60 == addons ==
Loads addons from usual .blender/scripts/addons but also from .blender/scripts/addons_contrib if this folder exists

To get  latest contrib scripts, we can checkout
https://svn.blender.org/svnroot/bf-extensions/contrib/py/scripts/addons/
into release/scripts/addons_contrib/
2010-08-02 01:37:52 +00:00
a5692fd67b Merged changes in the trunk up to revision 30952. 2010-08-01 23:37:52 +00:00
3c0ed589c1 * moved Threaded Sculpt, Fast Navigate, and Show Brush back to Sculpt Options panel until they are properly moved in memory to the corresponding places they were in the UI.
Fast Navigate apparently needs to be made an option of the multires modifier

Threaded Sculpt and Show Brush need to be made UserPrefs

Some of these options were removed form UserPref panel without placing them anywhere else in the interface so this commit at least puts them somewhere so they can be used.
2010-07-28 07:19:54 +00:00
be2e221608 Merged changes in the trunk up to revision 30781. 2010-07-27 00:08:15 +00:00
432ec37965 Jason, from your merge 30325.
move toolsettings out of the userprefs into the sculpt menu, if these should be userprefs then they should be moved into that struct.
2010-07-26 23:49:23 +00:00
15e94823dd in debug mode report the time to load addon modules. 2010-07-26 09:09:53 +00:00
444d06af32 2.5: change a user preferences settings from .enabled to .active, it's nicer
if the button is grayed out but still editable.
2010-07-23 09:33:58 +00:00
e423e085f8 Merged changes in the trunk up to revision 30551. 2010-07-20 19:39:07 +00:00
beb98c9e0c Bugfix #22872: invert zoom direction doesn't work
The setting for this (IMO it should really be on by default, for reasons I've outlined recently) was not exposed at all. 

The setting that was shown was a new(?) option in 2.5 which dealt with Ctrl-MMB drag zoom.
2010-07-20 12:37:42 +00:00
fd31436897 spelling correction: alredy --> already 2010-07-17 18:08:14 +00:00
f588c49cb5 Merged changes in the trunk up to revision 30335. 2010-07-14 19:01:40 +00:00
5505697ac5 Merge GSOC Sculpt Branch: 28499-30319
https://svn.blender.org/svnroot/bf-blender/branches/soc-2010-jwilkins
See log of that branch for details.
2010-07-14 14:11:03 +00:00
41a6602547 2.5: remove user preferences to always snap for translate/rotate/scale,
with new behavior of the snap setting in the 3d view these are no longer
necessary.
2010-07-12 11:17:42 +00:00
0815fd4762 2.5: remove pin floating panels settings, there are no floating panels
at the moment so it shouldn't be there.
2010-07-12 10:55:05 +00:00
cf2ff0b03e Merged changes in the trunk up to revision 30167. 2010-07-10 00:37:42 +00:00
4059df91a4 == user preferences ==
- tooltips were showing numbers in the addons categories list
2010-07-09 09:46:22 +00:00
70b1baefc5 Merged changes in the trunk up to revision 30060. 2010-07-06 23:39:10 +00:00
d9f86e3c73 pedantic pep8 warnings, mostly white space. 2010-07-05 22:22:22 +00:00
b8de9bc5fb Merged changes in the trunk up to revision 29994. 2010-07-05 18:37:29 +00:00
003d69f9d4 use expanded enum for addons to give faster access (matches theme layout) 2010-06-27 19:04:44 +00:00
bb07503d89 remove filename and directory from python operators that dont need them 2010-06-26 22:32:47 +00:00
0d84ac375e more generic sorting of theme items by type (was adding all non color items last) 2010-06-26 22:23:54 +00:00
f6eed88a78 - changed recent commit from William to have enum in user preferences as an expanded enum (like it was before)
- rename 'no_bg' argument to 'emboss' (and negated)
- added 'emboss' option for operator buttons.
- Addon UI Layout slight modifications, changed enable/disable buttons for checkbox, grey out text of disabled addons to make it obvious at a glance whats enabled.
- column expanded enums now align text to the left.
- renamed ui_item_enum_row to ui_item_enum_expand since its used for columns and rows.
2010-06-26 20:00:45 +00:00
1c362019cd minor changes to Williams commit to be a bit less verbose. 2010-06-26 17:24:01 +00:00
bd03f26c3a Updated Themes user preference pane.
Layout is now simpler, more easy to scan. This commit also simplifies the Python code and gets rid of hundreds of wasted lines of code, making it much easier to make layout changes.
2010-06-26 17:06:55 +00:00
4d141cf808 Merged changes in the trunk up to revision 29550. 2010-06-18 22:53:49 +00:00
22bca493b2 == addons ==
- release/scripts/ui/space_userpref.py
  added the change to add a 'warning' field to bl_addon_info
  warning icons are used to show 'broken' scripts or warnings 
  asked permission to campbell and matt in blendercoders to apply this

- source/blender/python/doc/sphinx_doc_gen.py:
  small fix in the url
2010-06-17 02:38:49 +00:00
c2f36a4d6a naming changes
path -> filepath (for rna and operators, as agreed on with elubie)
 path -> data_path (for windowmanager context functions, this was alredy used in many places)
2010-06-14 03:52:10 +00:00
df0b629e24 Merged changes in the trunk up to revision 29409. 2010-06-11 17:17:02 +00:00