Commit Graph

7210 Commits

Author SHA1 Message Date
e2a5862e8f Two files missing in case conversion in r24816. 2009-11-23 17:27:00 +00:00
66a013b06a use decorators for python attributes, added bone.length 2009-11-23 16:04:19 +00:00
bd1de4b4e3 made release log link point correctly to the release log. 2009-11-23 15:41:57 +00:00
f4d3ce197b links to Python API docs from splash and help menu 2009-11-23 15:20:56 +00:00
c0e26df259 2.5: fix python error when showing 3d view properties panel
with no active bone.
2009-11-23 15:19:30 +00:00
f92524ab7d use lowercase filenames, they are prettyfied for the menu 2009-11-23 15:04:43 +00:00
cb51710f25 pose_bone attributes, children, children_recursive, parent_recursive & parent_index() function. 2009-11-23 14:58:27 +00:00
fbeca721a2 Typo, it's called Skim, not Skin. reported by Oxben. Thanks! 2009-11-23 13:19:30 +00:00
e9db9f2a91 - made properties in the view3d panel only show when there are some properties available since this the option to add props isnt in this panel
- remove print on startup
2009-11-23 13:06:26 +00:00
e0fc6d0c33 more ui api changes.
- remove functions such as operator_int(), operator_enum(), operator_string
  this mixed with keyword arguments in a way that made them hard to read.
  Instead, have operator() always return properties rather then needing an argument.

- rename prop_pointer() --> prop_object(), pointer is more a C thing.

- missed item_enumR(), rename to prop_enum()
2009-11-23 11:43:38 +00:00
7617736bd1 fix for py errors and missing return 2009-11-23 09:28:42 +00:00
8e09171d5b temp hack to make the popup show wider when running the edit description operator 2009-11-23 00:56:19 +00:00
caab05ec8c rna UI api rename...
note: this aims to follow pep8 however I chose to use 'prop/props' rather then 'property/properties' because it would make function names too long.

itemR() --> prop()
items_enumR() --> props_enum()
item_menu_enumR() --> prop_menu_enum()
item_pointerR() --> prop_pointer()
itemO() --> operator()
item_enumO() --> operator_enum()
items_enumO() --> operator_enums()
item_menu_enumO() --> operator_menu_enum()
item_booleanO() --> operator_boolean()
item_intO() --> operator_int()
item_floatO() --> operator_float()
item_stringO() --> operator_string()
itemL() --> label()
itemM() --> menu()
itemS() --> separator()

batch script used http://www.pasteall.org/9345
2009-11-23 00:27:30 +00:00
6555eca6fe 2009-11-23 00:03:51 +00:00
c4a71795f5 Bugfixes:
* Restored Center View to 3D Cursor. For now, I've mapped this to QKEY since all other nice combinations of CKEY have been taken now.

* Fixed bug introduced in commit last night where parenting lattice to armatures with deforms would no longer work.
2009-11-22 23:11:32 +00:00
d83b251486 Repair display of iTaSC IK constraint. Fix crash in GE with high priority action overwriting low priority action. 2009-11-22 22:42:57 +00:00
b351d7804b needed to assign some values as bool's 2009-11-22 22:09:06 +00:00
dc5b0c8b9c rna functions were getting away with passing the string "True" instead of True, changed get the integer value and test its 1 or 0.
allow rna function return values as an exception since so many poll functions do... "return (context.blah and context.foo)", that makign all return bool's isnt that nice.
2009-11-22 21:51:12 +00:00
9c602bd455 note:
for a single tuple the last comma is needed. ('SOUND', ), otherwise its just a string.
 
 string in "STRING"
...is the same as
 string in ("STRING")
...which checks the substring, its normally used like this
 if string in "maybe one of these words contains STRING"

in this case its better just to do ==
2009-11-22 21:47:55 +00:00
db164d8849 Sequencer:
* It's now possible to set the scene for a scene strip.
2009-11-22 21:16:04 +00:00
42f99939f6 == Sequencer ==
This should make animations in sequencer work again at most
places.

It removes facf0 and facf1 and replaces them by

* effect_fader (the fader position for transition effects
  limited 0-1 value range)
* speed_fader (full range fader for speed effect)

Also: default transitions should work again.

Still not working: non-IPO-locked curves. (Don't really know,
if we can / want to bring them back in new animation system.)
2009-11-22 20:22:35 +00:00
bdb8004165 use is rather then == when comparing with singletons (None/False/True), its faster and suggested by pep8 2009-11-22 17:41:35 +00:00
4ff3af612c == Sequencer ==
"reload" should be "refresh all" on the sequencer header.
2009-11-22 17:35:26 +00:00
1295a213a4 2.5: Emulate numpad works again. 2009-11-22 16:33:47 +00:00
1d7e4e84d0 fix for py error when no text is displayed 2009-11-22 15:15:11 +00:00
f4a0c9239f * Added fps and fps_base to some Render presets. They were missing there. 2009-11-22 14:10:58 +00:00
9fa2a9d18a merge with trunk/2.5 at r24463 2009-11-22 14:06:30 +00:00
247f9cfc04 - add cloth button wasnt working because it was set to execute the operator.
- for adding an operator, start with a blank name and dont write the default one. (still writes each name you type in, will need to fix this properly)
- move the AddPresetBase class into presets.py since all the presets are defined there.
2009-11-22 13:15:21 +00:00
8b84cc2ab6 use context member rather then modifier name in presets 2009-11-22 11:33:44 +00:00
771406df94 - hide members of bpy from dir() and autocomp.
- path functions bpy.utils.script_paths(), bpy.utils_preset_paths(subdir)
- further simplified presets, use a generic draw function for preset menus and define the preset subdir and operator in the class
2009-11-22 11:23:19 +00:00
02e99b9a43 * Minor cleanups.
* Added Cloth Presets. Patch by nudelZ. Thanks!
2009-11-22 10:32:37 +00:00
07db9033c9 * Minor Cleanup. 2009-11-22 10:06:08 +00:00
adb14a2247 remove template uiTemplate_view3d_select_faceselmenu 2009-11-22 10:02:32 +00:00
8e76e2d09c * Re-implemented/refactored 3D View hooks menu.
Now shares the same operators as the modifier buttons, works context-sensitive, and uses Python menu too.

* Cleanups/tweaks in 3D View vertex group menu
2009-11-22 06:20:56 +00:00
bb43bee5f5 Missing Transform Menus + Buggy Object Operators:
* Added missing menus, 'Transform' and 'Mirror'
- mirror menu seems to be resulting in some memory leaks with RNA_enum_items_add len: 160 038832F8

* Apply Rotation operator for Objects now takes into account the different rotation modes
2009-11-22 06:19:30 +00:00
9e2ed89105 SSS presets, Thomas and I added these at the same time, however I meant to make this a more general system.
this commit shows how to add a preset using the base preset class and menu with minimal effort.
2009-11-22 00:22:29 +00:00
6db600dddc moving this file back, sorry for the noise 2009-11-22 00:18:43 +00:00
d46e83e1c5 looks like we both added sss at once :) , removing since Im using the base class and a single presets file 2009-11-22 00:17:36 +00:00
e0e2c91879 Fixed minor sound UI errors. 2009-11-22 00:11:53 +00:00
4f6b95480f * Added Subsurface Scattering Presets.
Note: Add doesn't work, it writes some text into the file, not the values. (Maybe because the values are arrays?!)
Campbell, please check :)
2009-11-22 00:03:42 +00:00
1dfbf3a9f6 - aspectx wasnt saved in the render preset
- define a preset base class
- cleanup some comments and whitespace
2009-11-21 23:55:14 +00:00
2351d1c4d3 * Some cleanup for recent preset commit.
* Minor align fix for Frame Rate Buttons.
2009-11-21 22:54:02 +00:00
5e7debcecf render presets, select from a directory, button to add own presets 2009-11-21 21:39:20 +00:00
da2db4bc58 patch from Ronan Bignaux
use python3 print()
2009-11-21 17:41:09 +00:00
455866ecf9 - added back Shift+Tab to toggle snap
- added curve tilt and shrink/fatten buttons into the toolbar
- fix typo in last commit for view3d snap header button
2009-11-21 13:01:28 +00:00
6073bc9bc3 pep8 cleanup & default select axis to negative (artist requst, make sense if you model the RHS and spend most time looping at the models front) 2009-11-21 00:05:43 +00:00
d552c0ea5e Nodes Editor: Restored 'Show Cyclic Dependencies' Operator (CKEY) 2009-11-20 21:17:17 +00:00
03cfcc6007 Node Editor - More Cleanups (Reshuffling):
- removing duplicate chunks of code -> hide unused sockets now works
- moving some functions to the files that they get called from -> view all/home
- made duplicate a macro operator like the other places that work like this, eliminating the unnecessary transform-related property there still
- removed a few chunks of unused code
2009-11-20 21:04:41 +00:00
34e7eb1676 use a metaclass to have operator attributes register and display in the order defined. 2009-11-20 20:58:46 +00:00
b751bc5ef2 * More small modifier improvements by nudelZ.
* Code cleanup.
2009-11-20 20:40:29 +00:00