Commit Graph

2720 Commits

Author SHA1 Message Date
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
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