Commit Graph

3743 Commits

Author SHA1 Message Date
Martin Poirier
70def5c247 [#24123] Network render gives black images
Error with buffer handling when reading response.

Also fix bug with blendfile relative path (wasn't converting them properly).
2010-10-05 23:14:31 +00:00
Campbell Barton
de1c5de708 bugfix [#24151] AddPresetBase class does not add Color import when saving color properties 2010-10-05 19:14:41 +00:00
Campbell Barton
e1878f7142 patch [#24146] UV layout selection menu in UV editor ala CTRL+TAB in edit mode 2010-10-05 15:29:06 +00:00
Janne Karhu
9c91affd6f "Fix" for [#24115] Offset animation on object with particules system doesn't work like 2.49
* Object time offset is not supported for particles anymore, something that enables similar functionality will have to be coded later.
2010-10-05 10:45:54 +00:00
Janne Karhu
6ca186fc5a Fix for [#24107] Hair/General particle glitch- Presets 2010-10-05 09:32:35 +00:00
Campbell Barton
e568ea668e revert r32284, turns out OpenSuse needs this for forkpty(), also fixed missing import with 3ds export. 2010-10-04 11:42:39 +00:00
Campbell Barton
ab8aa13b82 bugfix [#24087] Blender can not install add-ons unless running with root priviledges
now addon path is created using the same path functions and selecting where to save the startup.blend

also made some minor changes to path handling funcs.
2010-10-03 20:00:22 +00:00
Campbell Barton
ed7ffb111a bugfix [#24116] UV layout exporting doesnt work
in-fact this is unrelated to UV Layout script, just a missing check for an bad state.
2010-10-03 12:22:33 +00:00
Campbell Barton
05884e09be - rna bugfix where ints were not clamped and would overflow, now raise an error and print valid range.
- fixed WM_OT_context_cycle_int was causing problems with int overflow, now it cycles properly.
- rename QUOTE macro to STRINGIFY_ARG, and added STRINGIFY, which is used more often since it gives the value as a string.
2010-10-03 01:44:00 +00:00
Campbell Barton
491aebbf67 py/rna access to setting the header text - can be used in modal operators.
eg: context.area.header_text_set("Some Text")
 included example in the view3d modal operator template.
2010-10-02 21:02:40 +00:00
Thomas Dinges
4f6fc938a6 * Script wasn't updated after "Load Factory Settings" Operator decoupling. 2010-10-02 16:19:33 +00:00
Campbell Barton
db1b74654b - spec hardness was missing redraw update
- missed rna rename in image ui
- use BLI_math functions in gpu_draw.c (no functional changes)
2010-10-02 06:34:04 +00:00
Campbell Barton
ee84a5b082 fix for crash when using the console to load a file, when the UI changes dont attempt to add to the console's buffer. 2010-10-01 17:55:35 +00:00
Campbell Barton
ebca34a282 3d text added with the view align option didnt work. 2010-10-01 12:25:18 +00:00
Janne Karhu
84fe3ab081 Added RNA conversions to the fcurve/driver fix script from my sequencer speed effect commit. 2010-10-01 09:54:07 +00:00
Campbell Barton
3dea67a3fd bugfix [#24065] obj export (mtl image path) 2010-10-01 05:19:40 +00:00
Joshua Leung
b3c8efb3ef Action/Shapekey Editor Bugfixes:
* Shapekey editor now shows ID-box for showing and editing the action assigned here. This should help alleviate the misconceptions arising to #23823, where user tries to load shapekey action into Action Editor (context there is ob-action only). 

There are still a few minor update bugs that I still need to fix here (i.e. post keyframing) though. Those shouldn't take too long I think.

* Changing the action used in the Action Editor properly decrements the user counts now. This solves the bug where you could get actions with a high usercount, but not that many actual users.
2010-09-30 12:42:45 +00:00
Campbell Barton
3665257dbf bugfix [#24062] draw_view_icon() broken
icons needed adding to the new theme
2010-09-30 07:31:37 +00:00
Janne Karhu
c5157cda88 Cleanup of code and ui of sequencer speed effect.
* Sequence speed effect was functional in theory, but very difficult to actually use.
* Now the effect works as follows:
  - "Speed Factor" (formerly "speed fade") controls the current speed of the sequence (can be animated).
  - "Use as speed" (formerly "f-curve velocity") is now the default behavior so that the "speed effect" by default changes the "speed" of the sequence.
  - "Multiply Speed" (formerly "global speed") is a scale factor that's applied to the calculated frame (can't be animated).
  - Without animation "Speed Factor" and "Multiply Speed" work exactly the same (in this case "multiply speed" could perhaps be disabled in ui, but currently there's no easy way to check this).
  - If "Use as speed" is not checked the effect simply remaps the current frame to the given "Frame Number" (can be animated).
  - "Scale to length" (formerly "f-curve compress y")scales "Frame numbers" from 0.0-1.0 to the length of the target strip to allow easy animation.
* Tooltips added for all values and options.
* Code for frame blending was nowhere to be seen, so I commented the option out from ui.
* This should fix at least bugs #20979 and #21309.
2010-09-29 13:38:43 +00:00
Sergey Sharybin
2597377b5c Fix #24054: Shift+A add menu in Surface editmode shows curve items. 2010-09-29 11:48:03 +00:00
Janne Karhu
12be522cbe Fix for [#24031] Baked Physics with Phsics set to NO can't be freed
* Should fix the cause ("no physics" gets baked) and old files that are effected (ui allows freeing if cache isn't really used)
2010-09-28 08:47:59 +00:00
Nathan Letwory
ad1604e840 .B25.blend -> startup.blend 2010-09-27 23:33:10 +00:00
Janne Karhu
8bc0cfc1ca Fix: Smoke wasn't using pointcache properly.
* The cache was reset almost constantly because smoke didn't save the first frame into cache. Although not necessary for smoke, it's vital to pointcache.
* Added info message to smoke cache panel for non saved files.
* Now smoke also only updates with a framestep of 1, so that scrubbing the timeline doesn't mess up the simulation.
* Among other things fixes report #23731.
2010-09-27 12:24:12 +00:00
Campbell Barton
b4980165f1 invalid name [#23986] Camera->Lens->Pespective->Angle input 2010-09-27 05:16:45 +00:00
Thomas Dinges
1190f43830 * Fixing Link to Release Logs. 2010-09-26 08:27:59 +00:00
Campbell Barton
92954672dc bugfix [#23978] Error installing addon 2010-09-25 06:36:01 +00:00
Campbell Barton
3e4a2c7219 bugfix [#19096] FBX doubly rotated
bug was infact that un-animated bones pose transformations were not exported.
2010-09-24 11:08:55 +00:00
Campbell Barton
afc58c3bea a few bugfixes since porting from 2.4x and from rna renaming. 2010-09-24 09:39:32 +00:00
Campbell Barton
485bd68634 remove 2.4x commented lines 2010-09-24 09:15:24 +00:00
Campbell Barton
6a4b9298c8 patch [#23968] filter_filetypes property to allow operators to filter by file extensions in the file selector
modified the patch to store the string internally rather then an array of allocated string pointers, less hassle with memory allocation.
changed to use fnmatch, so *.foo is needed (not .foo as with the patch)
2010-09-24 07:05:43 +00:00
Campbell Barton
e90ad1d9ba Annoying hack to pretend that an operator and its properties are the same, when passing an operator to an rna function argument which accepts 'AnyType', then pass the properties instead.
This means we can do operator drawing without passing self.properties as an argument.

while this check if quite specific, if this gives problems later on we should probably change operators not to try to mix an operator and its properties, it looks nice to a scripter but internally is not easy to manage.
2010-09-24 03:48:26 +00:00
Campbell Barton
f866de1c9f missed this in recent commit. 2010-09-24 03:42:19 +00:00
Campbell Barton
57c4e9c8f7 [#23882] BrushTexture.Slot.size missing
missed with rna renaming
2010-09-23 12:50:45 +00:00
Campbell Barton
1c3f2354f8 bugfix [#23795] Insert Visual Loc/Rot Keyframe of Armature Bones Broken
- converted 3 options in keying sets to use bl_options like panels & operators
- removed function arguments for new keying sets, better adjust these after to avoid duplicating properties in function arguments (they were not used).
2010-09-23 08:15:53 +00:00
Campbell Barton
dab69c01a1 whitespace commit, tabs -> spaces 2010-09-23 07:50:52 +00:00
Campbell Barton
d135e63705 bugfix [#23945] obj export problems 2010-09-22 13:24:21 +00:00
Campbell Barton
12628b197d bugfix [#23935] Exporting to Unity3d .fbx Blender 2.5 2010-09-22 12:36:54 +00:00
Campbell Barton
0c7285b9ae minor UI change so blender built without fluids wont give a python error 2010-09-21 16:31:37 +00:00
Campbell Barton
69d72046e2 fix for error and other minor changes found while looking into bug [#23813]. 2010-09-20 05:01:31 +00:00
Campbell Barton
6ed4656604 map old/new rna & ui back 2010-09-19 13:38:45 +00:00
Campbell Barton
aaf328dc78 remove redundant []'s for list comprehension's, py2.4+ supports this. 2010-09-19 07:07:14 +00:00
Brecht Van Lommel
7c197b6849 Fix #23879: added undo/redo to object/paint/sculpt/pose menus as well,
and made some small modifications to object menu to make it a bit
shorter, still much too long though, but at least not worse now.
2010-09-18 16:17:32 +00:00
Brecht Van Lommel
de9c443ff0 Fix #23850: hide cloth cache step from the UI because it can only be set to 1
anyway, which is confusing.
2010-09-18 15:57:42 +00:00
Campbell Barton
868fdd80a2 use is rather then == when comparing against None. 2010-09-18 10:43:32 +00:00
Dalai Felinto
3e1ff2e590 UI fix: psys.hair_dynamics -> psys.use_hair_dynamics 2010-09-18 00:19:53 +00:00
Campbell Barton
5452f335d7 New optional operator function, check(), it takes the same arguments as execute().
This runs after changing a property and allows correcting incompatible options.
 Returning True will redraw the UI.

Currently this is used for setting the write extension when saving files, so changing the image format also corrects the extension.
The same is accessible from python where its used when saving SVG/EPS/PNG files.

This fixes: [#23828] obj export problems, [#23760] Exporting OBJ and filetype ending
also fixed document submission operator.


Now the filename in the file selector is the one used for writing this means we remove the "Save Over" popup which could be overlooked too easily.
Instead display the filename field with red tint, and a note in the tooltip.
2010-09-17 09:27:31 +00:00
Brecht Van Lommel
a0e1e9d1e1 Fix #23839: missing V shortcut for rip tool, now the rip & move operator
is in the menu instead of rip which is not as useful by itself. Location
of the problem pointed out by Sergej Reich, thanks!
2010-09-16 20:16:20 +00:00
Janne Karhu
e7a393d2e1 Tiny addition to boids functionality: pitch value
* Controls maximum rotation around side vector (as opposed to banking, which controls rotation around forward vector)
2010-09-16 20:06:10 +00:00
Brecht Van Lommel
7428e708ac Fix #23865: F8 reload scripts doesn't work with an addon enabled,
broken with bugfix for #23001.
2010-09-16 18:50:33 +00:00
Sergey Sharybin
2c79fa84b6 Fix #22603: Crash on launching external editor in texture paint [r29461] [WinXP 32bit]
Crash was caused by missed offscreen OpenGL buffer. Added checking around this stuff.
Also fixed crash of simple "Image from view operator".

Note: This commit fixes only crashing, you'll be still unable to use this tools.
2010-09-16 15:54:48 +00:00
Campbell Barton
f788c68b9c bugfix [#23831] Removing an IK Constraint in pose mode still draws bone with IK highlight
+ moved bone envalope scale into transform menu, pose menu is getting huge.
2010-09-16 07:14:48 +00:00
Campbell Barton
fb454bfe08 bugfix [#23802] addons panel empty
was using locale.getpreferredencoding() to read the file which depends on the system setup, better use 'UTF-8' always.
2010-09-15 16:42:10 +00:00
Campbell Barton
84c4062928 bugfix [#23833] Console Errors (Keymaps)
dont allow non-existing preset paths to be passed to the preset menu.
2010-09-15 13:41:38 +00:00
Campbell Barton
90bd472ef2 filling is used for 3D curves but not for filling, sigh. 2010-09-15 08:38:29 +00:00
Campbell Barton
46b61ccf21 in response to [#23812] bevel object, but no caps.
tweak the UI so fill options are only available with 2D curves and greyed out when bevel object is used.
2010-09-15 08:34:41 +00:00
Campbell Barton
31ddda3bf0 bvh import was broken for non euler-native rotations 2010-09-15 03:33:49 +00:00
Campbell Barton
8d0c01e6e2 keyconfig updates/changes
- use preset subclass with funcs for updating the keyconfig
- keyconfig filenames are used for the UI names as with presets (so separation anymore)
- keyconfig's are stored in the preset dir (scripts/cfg dir removed)
- only the active keyconfig script is loaded
- some bugfixes for saving keymaps
- user interactions no longer saves keyconfigs too, I think this needs to be re-worked.

developer note...
multiple keyconfigs at once are not really needed now that they are stored & accessed directly in python.
for now I left it alone but we could consider to remove this capability in the future.
2010-09-14 16:45:24 +00:00
Campbell Barton
74b2022a82 button to remove presets.
note: this is an option to the add preset operator which is a bit odd but easiest since these classes have all the info needed for removal as well.
2010-09-14 04:58:25 +00:00
Campbell Barton
1a58c6af7e revert 31916, while having the image name and the material name mixed, this is intentional else texface export breaks.
ideally this would only happen in cases where there are more then 1 image so we could avoid ugly names in common cases.
  svn merge -r31916:31915  release/scripts/op/io_scene_obj/export_obj.py
2010-09-14 01:10:20 +00:00
Nathan Letwory
a02e69064d Fix [#23761] OBJ exported materialname wrong
Reported by Reiner Prokein.

Just use the material name instead of concatenating with any image names to it.
2010-09-14 00:45:37 +00:00
Nathan Letwory
4dc52feb70 Fix one more case of z_transparency 2010-09-14 00:30:45 +00:00
Nathan Letwory
4554278a1c Apply patch [#23782] Fix typo in netrender UI
Submitted by Imran Syed (freakabcd)
2010-09-13 22:57:35 +00:00
Campbell Barton
55f7451c52 fix for sphinx doc generation 2010-09-13 13:29:54 +00:00
Campbell Barton
88fac85123 avoid re-creating and assigning addon UI properties for every redraw 2010-09-13 08:16:31 +00:00
Campbell Barton
18702a9eef bugfix [#23001] Addons do not unregister properly in Blender 2.5.3
Now reloading the user defaults also unloads/loads addons, resetting the state to the one set in the user preferences.

moved addon functions into bpy.utils
- bpy.utils.addon_enable(name, default_set=True)
- bpy.utils.addon_disable(name, default_set=True)
- bpy.utils.addon_reset_all(name, default_set=True)

the user preference operators now just wrap these.
2010-09-13 04:52:56 +00:00
Campbell Barton
7c9bf53bf1 bugfix [#23778] obj importing forgets to enable transparent into material 2010-09-13 02:35:59 +00:00
Joshua Leung
a82874c2ee Animation Editors: Added menu entry for deleting selected channels, as requested by animator working with Matt 2010-09-13 00:53:47 +00:00
Nathan Letwory
4038ca3e71 Fix import of material with z transp enabled.
Reported by Heikki Lehikoinen in #blender.fi
2010-09-12 20:24:15 +00:00
Martin Poirier
797bb93b21 bugfix for [#23737] reported by Mariusz Maximus
netrender client's functions to get slaves and jobs info didn't work anymore (was reading response content twice).

At the same time, I switched to json for the dump and load, instead of using eval and repr (for obvious security reasons). I should have done this much earlier.
2010-09-12 14:04:54 +00:00
Nathan Letwory
97964e5766 Fix [#23770] io_anim_bvh reloads the wrong module
Spotted and fixed provided by Tim Baker
2010-09-11 23:13:47 +00:00
Thomas Dinges
9ce624f6f6 Removed a "properties" too much. :/ 2010-09-11 15:33:30 +00:00
Campbell Barton
386bd71240 pyrna: replace method for operators forwarding getattr/setattr access from self.* to self.properties.* 2010-09-11 15:13:22 +00:00
Campbell Barton
38669bd5fd - added PNG image export option to UV layout (was only SVG and EPS which was annotying for some users)
- support for non utf8 paths when exporting UV layout.
2010-09-11 10:31:50 +00:00
Campbell Barton
63a8056839 - py api splash URL was old, use blender version (menu was ok in the menu)
- netrender reloading fix
2010-09-11 04:23:45 +00:00
Matt Ebb
1fe90ba049 Fixed the splash screen: previous had incorrect colour, typography, no transparent header. 2010-09-11 00:19:38 +00:00
Thomas Dinges
cd4fb20b73 Patch [#23759] more replace self.properties.foo --> self.foo for bf-extensions/trunk/py/scripts
by Filiciss Muhgue (filiciss). Thanks a lot!

Part 1: Trunk, second part of patch will be committed to Extensions.
2010-09-10 23:39:43 +00:00
Ton Roosendaal
f1df602048 Part 3 of 2.54 commits (1 more!) 2010-09-10 16:34:03 +00:00
Campbell Barton
bf18e89396 fix for error updating rigify UI classes 2010-09-10 16:07:18 +00:00
Campbell Barton
5559a0d52e rewrote python IDProperty metaclass in C, this was a quick hack to get it working.
The reason this didnt work is all sibclasses of pythons type() or PyType_Type in C, have to have their size set to sizeof(PyHeapTypeObject) rather then sizeof(PyTypeObject) as you might expect.
This is strange since its not a heap-class (defined in pythons runtime), but a static C type, so Im not sure about this, and cant find any documentation but it seems to work ok.
2010-09-10 14:54:50 +00:00
Campbell Barton
cf4e32a06c remove redundant buffer character positioning code & remove attr keyword argument from property definitions. 2010-09-10 04:04:48 +00:00
Martin Poirier
3d9cf8b916 Fix bug caused by someone else's error. 2010-09-09 22:39:27 +00:00
Campbell Barton
111965478a replace self.properties.foo --> self.foo 2010-09-09 18:03:57 +00:00
Campbell Barton
7bd1f9a234 - bugfix, operators were getting their properties registered twice.
- operator properties are now converted into python property() class members which bypass the operator 'properties' member.
  self.properties.mysetting
 ... can now be written as ...
  self.mysetting
- fix for error reloading rigify
2010-09-09 17:41:36 +00:00
Campbell Barton
49585914e2 fix for addons UI with recent rna changes,
also moved temp properties from the scene into the window manager since they are not saved there.
2010-09-09 14:22:03 +00:00
Campbell Barton
45cf7633fe remove class methods for defining properties
eg: bpy.types.Scene.BoolProperty()
2010-09-09 06:29:44 +00:00
Campbell Barton
f4be9a6393 support for defining rna class properties as class attributes
eg:
 bpy.types.Scene.myprop = BoolProperty()
 
note, this uses an ugly python metaclass, this should be replaced with a C implimentation which is included but commented out, causing crashes in pythons GC which gives no hint as to where the bug comes from.
2010-09-09 05:37:22 +00:00
Thomas Dinges
cc0d31b921 Fix for [#23736] Network render - error in file: release\scripts\io\netrender\client.py + patch.
Patch by Mariusz Maximus (mariuszekpl). Thanks!
2010-09-08 19:49:05 +00:00
Campbell Barton
b58f41e120 addon improvements/fixes
- better error reporting when an addon fails to load
- upload an addon which loads partly but then fails (eg, module loads but class register fails)
- bugfix addon loading, failier to load would leave _bpy_types._register_immediate = False
- added which change on disk are reloaded when enabling.
- bpy.path.module_names() now returns (module_name, module_path) pairs.
2010-09-08 07:30:20 +00:00
Campbell Barton
1a41d2fc29 new bpy function bpy.path.module_names(path, recursive=False)
addon's and python initialization both had this inline.
2010-09-08 04:55:37 +00:00
Nathan Letwory
20ca4b188d Fix [#23716] Add background image broken
Reported by Josh Wedlake
2010-09-07 20:27:40 +00:00
Campbell Barton
115b256738 ran through pep8 checker 2010-09-07 15:17:42 +00:00
Thomas Dinges
db775721c8 Windows Installer:
* Remove text "(Requires Windows 2000 or better)", as we don't support Windows 2000 anymore. 
* Fixed link in Help.url
2010-09-07 08:16:28 +00:00
Campbell Barton
e0aca888de bugfix [#23464] Crash on Tab
OBJ importing edges would produce corrupt meshes because face edges were not created.
2010-09-07 00:32:45 +00:00
Campbell Barton
0a2e0b28bf bugfix [#23631] Faces and edges missing in edit mode
there was no way to clear fgons.
2010-09-07 00:20:31 +00:00
Campbell Barton
59ac5b0930 in response to bug [#23701] Edit Mode: unable to bind vertex/edge/face select modes to keys
while not a bug, being able to cycle over vertex/edge/face modes is useful. added an operator to cycle an array, could be used for cycling the active layer or mesh edit mode.
2010-09-06 22:43:09 +00:00
Campbell Barton
67d2060450 bugfix [#23704] Background image does not support special german letters 2010-09-06 22:00:15 +00:00
Campbell Barton
8a6f6698d8 bugfix [#23697] New Empty Scene lacks World Settings 2010-09-06 10:25:38 +00:00
Campbell Barton
b60bc0ee85 display_properties was being re-defined for each keymap item. 2010-09-06 06:04:05 +00:00
Campbell Barton
ec1e038453 bugfix [#23552] keymaps big problem 2010-09-06 05:27:54 +00:00
Campbell Barton
04139a115c patch [#23671] [desktop file] add translations and remove deprecated key.
from Cosme Domínguez Díaz (cosme)
2010-09-05 15:15:27 +00:00
Thomas Dinges
916a466e15 Bugfix for [#23676] Obj Import fails again. 2010-09-04 11:11:37 +00:00
Campbell Barton
0cf0f5a622 rna api
- move: material.add_texture(tex, coords, mapto) --> material.texture_slots.add()
- added material.texture_slots.create(index), material.texture_slots.clear(index)
- texture slot functions also work for lamp and world now.

Other minor changes
- allow rna functions to set FUNC_NO_SELF and FUNC_USE_SELF_ID at once.
- [#23317] Changed some operators' RNA to accept lengths, a modification I made to this patch made it not work as intended, removed this edit so unit buttons appier in the UI for certain operators.
- Sphinx doc gen, 2 columns rather then 3, didnt quite fit in some cases.
2010-09-03 14:53:54 +00:00
Campbell Barton
52cefa4bc1 sphinx doc gen
- use 3 column lists for inherited props, funcs and for references to save on vertical space.
- use the blender version string for the upload path and PDF name.
2010-09-03 09:21:40 +00:00
Campbell Barton
d0c54d3d0e use set as a suffix (matches operators)
- set_frame() --> frame_set()
 - set_context_pointer() --> context_pointer_set()

material adding works for curves and metaballs, new function to remove materials.

materials.link() didnt well fit how this is used elsewhere
 - order matters
 - it can be linked more than once.
 - remove(material), isnt that useful since you need to manage indicies.

... use list style functions instead. materials.append(mat) / materials.pop(index)
2010-09-03 07:25:37 +00:00
Janne Karhu
b06abafe7a "Fix" for [#23640] particle system partially indifferent to vertex groups
* Some particle vertex groups haven't yet been reimplemented so commented these out in ui.
2010-09-03 05:48:19 +00:00
Guillermo S. Romero
a8269c8946 SVN maintenance. 2010-09-03 03:30:20 +00:00
Campbell Barton
de7f183f37 script for dumping rna api, to be used to generate api changes for release logs.
added to review function calls too.

output:
# * functions *
KeyConfig.keymaps.find(string name, enum space_type='EMPTY', enum region_type='WINDOW')  -->  KeyMap
KeyConfig.keymaps.find_modal(string name)  -->  KeyMap
KeyConfig.keymaps.new(string name, enum space_type='EMPTY', enum region_type='WINDOW', boolean modal=False)  -->  KeyMap
KeyConfigurations.new(string name)  -->  KeyConfig
KeyConfigurations.remove(KeyConfig keyconfig)

# * properties *
WorldMistSettings.intensity   <--  float
WorldMistSettings.start   <--  float
WorldMistSettings.use_mist   <--  boolean
WorldStarsSettings.average_separation   <--  float
WorldStarsSettings.color_random   <--  float
WorldStarsSettings.distance_min   <--  float
WorldStarsSettings.size   <--  float
WorldStarsSettings.use_stars   <--  boolean
2010-09-03 02:26:42 +00:00
Campbell Barton
d8d3cc69ef patch from venomgfx, show number of textures assigned to lamps and world in the context panel 2010-09-02 18:13:06 +00:00
Campbell Barton
0d12c77097 bugfix [#23635] property limits don't work when added via scripting\
also fix for bug where soft limits could be greater then hard limits with bpy.props.* functions.
2010-09-02 14:43:22 +00:00
Campbell Barton
b2ae9d825c - inconsistent rna names - use 'vertex_group_' as prefix, only ui scripts used this
- change curve offset to be 0.0 for its rest/default value (not 1.0)
2010-09-02 07:00:34 +00:00
Janne Karhu
35535c2cb9 Fix for [#23136] Particle display percentage "forgotten" after render
* The actual problem was that the total amount of particles was rendered at all, since only the displayed percentage was calculated correctly.
* New behavior is that before baking (baking is always done for full % of particles) the display % is used for rendering too for dynamic particles.
* Also added a warning below the display % slider to inform about the situation.
2010-09-02 06:58:54 +00:00
Campbell Barton
ddbfb05c84 rna context rename
* context.main & bpy.types.Main --> context.blend_data & bpy.types.BlendData
* context.manager --> context.window_manager
2010-09-02 04:53:05 +00:00
Thomas Dinges
4ddc61643a Renaming of Cylindric objects after a good proposal by Conz:
http://www.vrchannel.de/blender/cylinder_rename.png

Mesh Tube > Mesh Cylinder
NURBS Tube > NURBS Cylinder
Metaball Cylinder > Metaball Capsule

I know that naming is something not everyone agrees on, but these terms look geometrically correct.
2010-09-01 21:11:33 +00:00
Thomas Dinges
bd79d80b8a Internal Code Renaming:
Donut > Torus
2010-09-01 20:18:31 +00:00
Nathan Letwory
da31d2628e Fix [#23612] OBJ import with imports double textures
Reported by Reiner Prokein

A .obj file can have multiple mtllib statements with the same name. Ensure that only one occurance is saved, so we don't get multiple entries from same material.

Also fix tabs -> spaces
2010-09-01 14:49:34 +00:00
Campbell Barton
39cb1432d8 bugfix [#23285] Exporters not available whel using special characters in path name
- ID properties now suopport non utf-8 strings for their values but not their keys.
- moved utility functions into py_capi_utils.c from bpy_utils and bpy_rna.
- import/export paths have to be printed with repr() or %r, so non utf-8 chars are escaped.
2010-09-01 14:13:48 +00:00
Nathan Letwory
81d9a3de43 * add missing imports
* fix indentation: tabs -> spaces
2010-09-01 13:55:41 +00:00
Campbell Barton
a89c526a92 finished moving importers and exporters into python packages (as proposed on the mailing list).
- made operator dir's into python packages
- lazy loading of module which do the actual import and export (faster blender load times)
- general maintanance and small fixes.
- bugfix for exporting x3d materials
- leak fix for exporting 3ds
2010-09-01 12:11:34 +00:00
Campbell Barton
7532bc2325 poll function for py api operator access
eg:
 if bpy.ops.object.mode_set.poll():
     ...
2010-09-01 11:16:11 +00:00
Campbell Barton
66a4de07e0 excuse the noise, adding type's in format package names. 2010-09-01 03:06:28 +00:00
Campbell Barton
afe5c536fa moving import/export scripts into packages (just moving scripts, need to add __init__.py still, temp break import/exporters) 2010-09-01 03:02:30 +00:00
Campbell Barton
16d26b7eb1 cleanup duplicate GPL haeders, blender made 2.4x __bpydoc__ into __doc__, removed version info, (thats what svn logs are for).
also moved create_derived_objects & free_derived_objects into io_utils, used by x3d and 3ds.
2010-09-01 02:48:23 +00:00
Campbell Barton
5036a9d20c use mix-in classes for import export operators, these define the filepath property and invoke function at the moment. 2010-09-01 02:25:49 +00:00
Thomas Dinges
614eb41c56 RNA Renaming Fixes for particle UI. 2010-08-31 15:12:24 +00:00
Thomas Dinges
a51f31e9a5 Fixes for RNA Renaming in Texture Properties (Volume Material) 2010-08-31 14:54:04 +00:00
Thomas Dinges
a98b93be57 2.5 Fluid UI:
* Required memory is now shown on the Bake Operator, rather as an extra label.
2010-08-31 12:54:17 +00:00
Campbell Barton
dfb8c5974e rna support for passing dynamic sized arrays to rna functions
using this for object.vertex_groups.assign([index list ...], group, weight, mode)
2010-08-31 11:31:21 +00:00
Luca Bonavita
2492c12170 == userprefs: addons ==
- From now on addons bl_addon_info['name'] doesn't need to specifcy also the category, it is put automatically in the addon box title
  In some script category and the category in the title were not matching, this had to be fixed manually.

- The warning icon is at the right of the addon box title, so that it cant disalign the addon name anymore when we have a warning.

- After discussing with Campbell, I've added the field bl_addon_info['api'] where we should specify the Blender API version number the addon is 
compatible with.
  This is certainly useful for clarity, and also I need it in place while preparing the downloadable addons.
  
- Also, bl_addon_info['version'] is now assumed to be a tuple of integers as it is bl_addon_info['blender'].
  Any important text should be placed in the bl_addon_info['warning'] field, not in the script version anymore.
  I'm going to reflect this change in bf-extensions so that scripts won't suddenly break.
2010-08-31 02:41:33 +00:00
Guillermo S. Romero
eb7c02c2a0 Fix spelling. 2010-08-30 19:51:12 +00:00
Campbell Barton
d59304e8e4 another function moved, should be last of the simple cases.
km.item_from_id() --> km.items.from_id()
2010-08-30 14:48:12 +00:00
Campbell Barton
44eb9f5095 missed this one too
scene.add_keying_set() --> scene.keying_sets.new()
also removed the use_ prefix since argument names, since this is mainly for properties.
2010-08-30 14:33:46 +00:00
Campbell Barton
eab50148e2 - keymap import/export works again (broke with own api changes)
- function renames, move WM functions into collections wm.add_keymap() --> wm.keymaps.new()
  note: new is used for named items in a collection, which return the result.
- Action.get_frame_range() is now a readonly property 'frame_range', floats rather then ints.
2010-08-30 13:50:59 +00:00
Campbell Barton
e5b1e646e6 bugfix [#23573] object rotates when IMAGE_SEARCH is off 2010-08-30 08:44:36 +00:00
Campbell Barton
df4dd70d7b various utf8 compatibility fixes
- OBJ import/export now work with non utf8 paths. (all exporters and importers need changes like this)
- strip non utf8 chars from new ID blocks (also applies to renaming)
- set the file rename button to allow non-utf8 chars.
2010-08-30 08:28:48 +00:00
Thomas Dinges
52ca27cc45 Patch [#23524] UI cleanup for commit 31587 by Filiciss Muhgue (filiciss).
Thanks!
2010-08-30 07:15:54 +00:00
Campbell Barton
69949d730b added animation data update to the help menu as discussed in last meeting. 2010-08-29 15:40:48 +00:00
Campbell Barton
7a7076c878 obj export fix for meshes with no UV textures 2010-08-28 12:15:14 +00:00
Campbell Barton
24627daabb patch [#23522] UI fixing for recent Python API changes
from Filiciss Muhgue (filiciss)
2010-08-27 22:12:59 +00:00
Mitchell Stokes
44cbc14771 The duplicate Text option in the TexFace panel came from a bad rename of tex -> use_bitmap_text instead of use_image, so I'm adding the use_image (Tex) back to the TexFace panel. 2010-08-27 10:05:33 +00:00
Campbell Barton
3ccb30c161 missed this with rna renaming. 2010-08-27 08:21:11 +00:00
Campbell Barton
26e71929d8 bugfix [#23220] .x3d export not exporting UV correctly
- UV texture coords were never written.
- TexFace with no material resulted in an invalid XML file (unclosed tag)
- freewrl wouldn't parse "FALSE", needs to be "false"
- the ID data name was being written as the filename, so in many cases images wouldn't load.
2010-08-27 07:32:58 +00:00
Campbell Barton
b0b787ef38 bugfix [#23534] Custom Properties not showing in OBJECT panel 2010-08-27 06:11:42 +00:00
Joshua Leung
3912f55408 Bugfix #23504: Axis-Angle Rotation keyframes were not being inserted correctly when using the 'Rotation' Keying Set 2010-08-27 04:43:47 +00:00
Campbell Barton
fb66c93b90 OBJ export nurbs curves now export again. 2010-08-27 04:43:42 +00:00
Campbell Barton
3cdcff9859 OBJ Import support for nurbs curves back, remove some commented code. 2010-08-27 04:07:12 +00:00
Campbell Barton
b0aa8368fe rna api
obj.add_vertex_group() --> obj.vertex_groups.new()
  obj.add_vertex_to_group() --> obj.vertex_groups.assign()

note: obj.vertex_groups.assign() will be very slow, need to have this take a list rather then 1 vertex at a time.
2010-08-27 02:33:35 +00:00
Campbell Barton
6d195f6195 speedup for pyrna boolean checking.
if bpy.data.objects: ...

Would get loop over the entire collection, instead see if this collection has a single item.
2010-08-27 01:50:50 +00:00
Campbell Barton
9d2b1af0a1 move dopesheet UI template from C to python 2010-08-27 01:23:53 +00:00
Campbell Barton
240b164a87 fix some errors in rigify caused by recent api changes 2010-08-27 00:05:00 +00:00
Campbell Barton
50bce31dbb rna api changes
- mesh.add_geometry(v, e, f)  --> mesh.vertices.add(tot), mesh.edges.add(tot), mesh.faces.add(tot)
- mesh.add_material(mat) --> mesh.materials.link(mat)

changed material.link so it always adds a material even if it exists in the list, this behavior is good for users but not scripts since it can mess up indicies (some formats may have the same material set twice).
2010-08-26 22:44:05 +00:00