Commit Graph

3015 Commits

Author SHA1 Message Date
Peter Schlaile
49320e697f Probably bugfix for [#25050] Outputing mpeg (audio in AC3 format) causes
audio to become buggy.

Added sensible audio preset settings for ffmpeg rendering
2010-12-05 16:14:34 +00:00
Ton Roosendaal
2011442931 Render UI: added the very important "free unused nodes" in the
Performance panel. This should actually be default on background
render...
2010-12-05 14:13:57 +00:00
Daniel Salazar
57d1d4f78c Object transparency setting should only show on MESH type 2010-12-05 10:38:45 +00:00
Campbell Barton
55e3d499ae correction to r33469, operators return sets so string comparison isn't valid. 2010-12-05 00:08:25 +00:00
Ton Roosendaal
282910fdae Bugfix #21893
Python Operator "Delete Edge Loop" (which keeps mesh connected)
changed selection if sliding operator failed. Simply added a
check for return value. Gosh, that Python code is not bad ;)
2010-12-04 13:46:25 +00:00
Ton Roosendaal
471d304df1 Bugfix #25033
Texture face options like "two side" were invisible, unless the
top bar "render engine" was set to Game Engine.
This is confusing, since 3d window does draw these options well.

Added back panel to show default, but with a label warning that
the options are not supported for render.
2010-12-04 11:34:26 +00:00
Campbell Barton
627e56b614 minor changes to bone UI script. 2010-12-04 06:21:08 +00:00
Daniel Salazar
9295a53022 Align Objects operator was broken due to incorrect order of vector by
matrix multiplication
2010-12-03 11:05:36 +00:00
Campbell Barton
9e5577db47 fix [#25015] Ctrl+L linking to scene list does not scroll when the list is larger than screen resolution 2010-12-02 22:58:23 +00:00
Doug Hammond
3a88d96aa2 extensions_framework: fix bug that would create extra UI space when entire row is hidden. May not be the most efficient implementation, however it is working properly now. 2010-12-02 19:03:24 +00:00
Janne Karhu
7b5696c866 Fix for [#25001] Enable Smoke High Resolution is greyout after baking
* Was a bit too eager to disable stuff
2010-12-02 04:47:40 +00:00
Campbell Barton
f801b2bcba bugfix [#23406] DPX Images load darker then saved, UI broken.
- a linear float buffer was being created and saved into a non-linear DPX/Cineon file.
- removed the UI since the settings are not used at the moment.

added a utility function IMB_float_profile_ensure(), which returns a float buffer in the requested profile, using the existing if needed or returning an allocated buffer if the profile is different to that of the ImBuf. - Useful this case where the save function has its own linear setting.
2010-12-01 02:54:10 +00:00
Janne Karhu
17cd5811e7 Smoke now uses only one point cache where both normal and high resolution smoke are stored together:
* Separate caches were causing quite a lot of problems both in principle and practice.
* For example it doesn't really make sense to have different frame ranges for normal and high resolution smoke, but this was fully possible before.
* Also to fully bake the smoke you had to do a "Bake All Dynamics", which completely defeats the whole point of the feature!
* As a result of this change the smoke cache usage is much much simpler and less error prone.
* This is quite a big change, but hopefully there should be less rather than more problems as a result :)

Some other related changes:
* Changing the cache name now works for disk caches properly too, it now just renames the cache files so should be faster too!
* Smoke is now always forced to disk cache with step 1 on file load as there were some strange cases where smoke was trying to use memory cache.
* Disabled smoke debug prints from console.
* Disabled changing smoke parameters when smoke is baked.

Note to users: The unfortunate side effect of this is that old high resolution simulations have to be baked again, but in return you get much better and more logical functionality. Sorry none the less!
2010-11-30 21:31:18 +00:00
Campbell Barton
050e863560 bugfix [#24798] Texture panels are shown in wrong order 2010-11-30 01:03:17 +00:00
Ton Roosendaal
c8422f0de3 False should be with capital in Py
(IRC report by dsavi)
2010-11-29 18:58:49 +00:00
Campbell Barton
2dcec22627 bugfix [#24947] Animations data replaced by the first animation (fbx exporter)
this feature was ported from 2.5x but not tested, referring to the wrong object when assigning actions.
2010-11-28 23:07:49 +00:00
Peter Schlaile
510920a299 == Sequencer ==
This fixes Orig Dimension display (mostly).
* orx, ory both didn't get calculated, if dimension already matched
* putting them into Strip instead of StripData ment, that using images
  of different dimensions in one strip could lead to incorrect results

Still TODO: on file open, timeline display happens before preview 
display which means: orig_width and height are calculated after the 
first draw of N-keys dialog. You have to hit refresh (or scrub one 
frame) to get the right values displayed.
2010-11-28 18:23:21 +00:00
Luca Bonavita
3f6eb67b77 == addons ==
After discussing with campbell, I'm adding a menu in the addons panel to help people to find the addons development pages
This should give more visibility to the bf-extensions project so that people know where they can share their scripts "officially".
2010-11-28 18:22:23 +00:00
Campbell Barton
6b4e7e8def bugfix "Export UV Layout" stalls when saving file in 2.55b
remove duplicate UVs on export to avoid long ztransp filling times - common on faces which have no assigned UV coords.
2010-11-28 13:39:39 +00:00
Michael Fox
d47a519cbb added option to turn off Text anti-aliasing in the UI
(userpref->system), with a great help from brecht (its been way too long
for me).

However as brecht pointed out that the non-AA text is slightly lareger
then AA'ed Text :S, i did not do anything about this as this commit was
just the option not the text drawing.

this commit also makes it possible to do all kinds of UI textrender options
2010-11-26 22:12:46 +00:00
Janne Karhu
782d7b312f "Fix" for [#24934] Particle single user crash
* Changing anything related to particle settings shouldn't be allowed when in particle mode, so disabled the buttons in ui.
2010-11-26 15:37:08 +00:00
Sergey Sharybin
d2a2cab975 Fixed bug with Text menu in font edit mode 2010-11-25 18:22:59 +00:00
Luca Bonavita
56f8ced34f == console ==
- banner formatting

== sphinx doc ==

- bpy.data: put the example below the documentation itself
2010-11-25 14:55:03 +00:00
Martin Poirier
728ad84c66 Fix polling order for ui panels in netrender.
Was broken by r33071 but order wasn't optimal even before. Should be snappier now (at least only check if correct render engine is selected).
2010-11-25 01:25:47 +00:00
Campbell Barton
315879db11 bugfix [#24884] Loading any preset leads to crash
caused by own recent commit. update uv operator template too.
2010-11-24 18:37:54 +00:00
Campbell Barton
82f019e954 close addon files, Py3.2 now complains when files are left open. 2010-11-24 17:29:22 +00:00
Campbell Barton
0daee3b8ed bugfix [#24882] fbx exporter Krash, screw objects and animations
fixed remaining issue with win32 paths.
2010-11-24 15:57:59 +00:00
Campbell Barton
97488b0934 bugfix [#24871] Unwrapping with Smart Project give a bad result. 2010-11-23 16:10:20 +00:00
Janne Karhu
c51d075b0e Changed some ui names for smoke parameters to make things less ambiguous. 2010-11-23 15:16:19 +00:00
Campbell Barton
0e9b664fce Changes to the ortho grid drawing based on discussion with Ton.
- ortho grid now draws scaled by the view3d 'Scale' setting, venomgfx noticed this was missing.
- so as not to confuse add scale next to unit display text, so rather then "Metres" it shows "Metres x 1.5" otherwise its confusing that grid lines are not in exact units.
- changed grid spacing to grid scale (needed for more logical behavior with units)
- when units are enabled grey out subdivisions.
2010-11-23 14:14:06 +00:00
Doug Hammond
225be0cf30 extensions_framework: fix UI drawing logic 2010-11-23 00:23:57 +00:00
Doug Hammond
8a4b42bee7 extensions_framework: fix UI drawing bug and some redundant code 2010-11-23 00:06:09 +00:00
Campbell Barton
6f90a38a54 error in own recent commit 2010-11-22 23:41:00 +00:00
Campbell Barton
166980b6fe fix [#24866] object/transform/align objects error 2010-11-22 20:54:26 +00:00
Campbell Barton
1d468c75e7 bugfix [#24805] bpy operator runs in wrong order or is ignored at all 2010-11-22 17:21:18 +00:00
Campbell Barton
d43b55a200 fix for triangulate OBJ export option.
reworked fix from Radu Danciu
2010-11-22 16:20:59 +00:00
Campbell Barton
bb36378a3a rename hide_tooltips_python to show_ ..., tag unused variable with recent sequencer commits. 2010-11-22 05:36:49 +00:00
Elia Sarti
19e091ec5e User preference to hide Python references in Tooltips. 2010-11-22 00:10:32 +00:00
Peter Schlaile
a0517e6338 == Sequencer ==
* documented and rewrote the render interface of the sequencer.
  (now, the geometry / render_type / etc. settings are stored within a
  seperate structure called SeqRenderData that is passed within the code.)

* that fixes
  * cache problems, since the caching system didn't keep track of
    proxy files vs. final renders.
  * is a necessary step, to bring back frame blending in speed effect
    (the SeqRenderData structure elements are already there)
  * will make motion blur render options available within the sequencer!

* this patch also fixes:
  * "easy retiming" using speed effects. (in Blender 2.49, you could 
    add a speed effect and resize the source track to retime it to that
    length)
  * adds labels for the Original dimensions for Image + Movie tracks
    (worked in 2.49, too)
2010-11-21 20:00:31 +00:00
Thomas Dinges
6aea182b1e Bugfix for [#24768] 6DoF Constraint options missing.
* Added the options in UI and RNA 

Funny Note: This was on my own to-do list (see commit 20577 in the py file from 2009-06-02 when I ported the UI from C to Python) :P
2010-11-20 09:48:51 +00:00
Campbell Barton
35014aa741 - add python/rna function region.tag_redraw()
- removed print which was before NULL check, (possible crash)
- add execute hooks for the python console (not used by any scripts yet)
2010-11-20 05:11:10 +00:00
Campbell Barton
593815b23f reloading addons wasn't working. 2010-11-20 04:18:06 +00:00
Campbell Barton
03d8fd4616 - use relative imports for packages
- reload() has been removed from pythons builtins. use imp.reload() instead (still need to apply globally).
- fixed own mistake, not ignoring 'filter_glob' as a keyword argument (broke fbx, obj, 3ds export)
2010-11-20 02:56:58 +00:00
Campbell Barton
7689ac75ad fix for error in recent commit. 2010-11-19 11:57:10 +00:00
Campbell Barton
506e692263 fix [#24804] filetring of files doesnt work for import/export 2010-11-19 10:33:44 +00:00
Janne Karhu
ba36dd3cc5 "Fix" for [#24743] Strand Shading: Distance slider gives different results even when greyed out
* The actual flag was set at render time, was not supposed to be editable manually.
2010-11-19 08:37:19 +00:00
Campbell Barton
c1664dd78e [#24802] Invert vertex group not inverting armature modifier influence
the armature vertex group options only apply to Multi-Modifier, rename and edit the UI to make this clear.
2010-11-19 03:09:51 +00:00
Campbell Barton
23fbce5a5f bugfix [#22615] Opening a blend file in python (bpy.ops.wm.open_mainfile() (r29489)
[#22557] bpy.ops.wm.read_homefile() causes segfault (r29372)
2010-11-18 16:33:13 +00:00
Campbell Barton
3ae670fc02 fix [#24786] Setting Rotation Units to Radians doesn't affect the UI [33146] 2010-11-18 14:10:09 +00:00
Campbell Barton
8d77002ae7 patch [#24736] 3ds import hierarchy
from Dominique Lorre (dlorre)
- fixes [#24626] 3ds import assigns wrong positions to objects
- spec info http://www.the-labs.com/Blender/3dsspec.html, http://www.martinreddy.net/gfx/3d/3DS.spec

This patch adds parent/child support to the 3ds importer.
2010-11-18 10:36:14 +00:00
Doug Hammond
9183f20fb4 extensions_framework: lots of docs and code formatting to be more pep8-like 2010-11-17 21:28:22 +00:00
Campbell Barton
376d129dc6 bugfix [#24671] Operators called from Python Leak Memory
This problem is caused by returning Modal from a non-modal operator.
2010-11-17 12:32:39 +00:00
Campbell Barton
acc883da83 - move cmake file for python.
- move bpy_array.c to bpy_rna_array.c
- minor syntax changes
2010-11-17 07:22:20 +00:00
Campbell Barton
fbcf01f9f7 cleanup the operator template and rename to operator_export 2010-11-17 07:00:14 +00:00
Sergey Sharybin
d0d16ecaee Fix #22645: Texture paint: soften tool does draw brushes
Disable projection painting for soften tools.

Also it looks like smear tools support projection in the code, so
enabled project paint menu for such tools
2010-11-17 06:30:06 +00:00
Campbell Barton
cf3d6d63ee bugfix [#24462] UV Layouts saved as PNG results in two files (rename bug)
renaming failed in some cases, now we can just render to a file.
2010-11-16 14:45:27 +00:00
Sergey Sharybin
3ad21a8b4c Curve's UI minor fix:
- "Use Deformed" replaced back with "Fill Deformed"
- Use a bit more informative tooltip for this option
2010-11-16 13:25:21 +00:00
Campbell Barton
92ee3658d3 UV Layout Export was missing UV Layer check. 2010-11-16 12:54:44 +00:00
Ton Roosendaal
2de1c1fe1b Fixed wrong rna name for the old "UV Orco" option.
It was called "map on length", but it actually makes the UV
values of curves/nurbs to become used as "Generated" texture 
map input.

Sorry; this might break own local UI py script saves... :)
2010-11-16 12:10:57 +00:00
Campbell Barton
f48f8d3bbc FBX Export, small changes made while looking into reported bug. (no functional changes)
- Warn for armature deformed meshes which are scaled, these don't work quite the same as in blender, reported as [#24663].
- Use matrix.decompose() to convert a matrix to loc/rot/scale.
- get vert/edge/face lists for each mesh only once.
- faster euler rad -> deg conversion function.
2010-11-16 04:32:35 +00:00
Campbell Barton
efcf1ac357 fix for matrix * vector rotation order. 2010-11-16 03:11:22 +00:00
Campbell Barton
070f38a6d0 bugfix [#24696] Export OBJ - Selection Only toggle button has the wrong default state.
Added convenience function to operators, 'as_keywords()', so operator settings can be passed directly to a function as keyword arguments.

The problem in this case was that dictionary access to operator properties was not returning rna-property defaults, so as_keywords() ensures all defaults are set.
2010-11-15 13:11:40 +00:00
Campbell Barton
db16310386 - 'matrix_basis' for objects and pose bones, this is an alternative access to directly adjusting the loc/scale/rot.
- pose bone 'matrix_local' wasn't well named since it didn't work like object or regular bones.
- pose bone matrix values for rna had array access rather then 4x4 matrix access.

 note: for pose bones update scripts by renaming 'matrix_local' --> 'matrix_basis'
2010-11-15 06:38:07 +00:00
Campbell Barton
1a12d6d1d8 revert change from r32955.
This added a poll function to the Panel base class but this means that all panels register as having a poll() function which is called a lot and does nothing, raising an exception and removing it because of how python implements hasattr().

Found when checking why exceptions were continuously raised on redraw.

Martin, can you check on netrender?
2010-11-15 03:13:28 +00:00
Campbell Barton
7be25eba13 fix [#24712] 3ds_import fix
Rather then applying the proposed fix, enabling 'Apply Transform' works in almost all cases including the reported one.

There are some files that don't work with 'Apply Transform', which is why the option is worth keeping.

also remove unneeded calls to paint_facesel_test()
2010-11-15 00:07:38 +00:00
Campbell Barton
e0209b593b unreported fixes for 3ds import
- non ASCII names would break loading.
- meshes with no faces would break loading too.
2010-11-14 22:30:51 +00:00
Martin Poirier
2d2a96a334 netrender
Adding retries on initial slave connection.
2010-11-14 22:11:56 +00:00
Campbell Barton
e4e79f4aa3 update for mathutils vector/matrix order change. 2010-11-14 07:02:55 +00:00
Janne Karhu
3c4b1c0d60 Hide "active" checkbox in ui for "fluid" type fluid objects as it's not used by fluidsim.
* Response to report [#24670] Keyframe fluid on/off does not work
2010-11-12 14:54:40 +00:00
Campbell Barton
fd9afa7431 rename anim.channels_revive_fcurves --> anim.channels_fcurves_enable
better matches existing VIEW3D_OT_enable_manipulator & ANIM_OT_channels_setting_enable
also fixed warning.
2010-11-11 21:49:40 +00:00
Campbell Barton
43f396218f move report/operator view out of the 'Console' into the 'Info' space (file menu).
Ton will work on moving the File menu out of the Info space before release.

notes.
- reply Operator isn't working anymore.
- UI for reports is commented out so its not mixed with the file menu.
2010-11-11 13:36:57 +00:00
Joshua Leung
c1a74d9bd6 Animation Editors: Experimental indicators + "fixup" operator for "Disabled FCurves"
F-Curves tagged as "disabled" now have their channels drawn with a red line underlining their names. 

"Disabled" F-Curves are skipped for evaluation, and typically result (for example) from assigning an action from one armature to another, but the new armature does not have some of the bones the action's F-Curves need in order for the datapaths (referring to the property the F-Curves affect) to be resolved. This is to prevent heaps of invalid channels slowing down animation playback.

I've also added a new operator, found by:
Channels -> Revive Disabled F-Curves
in the Graph Editor and DopeSheet/Action Editors, which will clear all the disabled tags for all the F-Curves in the animation editor at the time (based on the filtering criteria). 

Use this operator to clear the disabled tags, allowing such channels to be able to be evaluated again (perhaps after adding the offending bones for example, or when using the action on the original armature again).
2010-11-11 11:56:50 +00:00
Thomas Dinges
e6f6a0a6e2 Nurbs Curve UI:
* Fixed an alignment issue in resolution buttons.
2010-11-10 19:37:58 +00:00
Sergey Sharybin
f529e10951 Fix #24632: Sculpt Mode Context Set hotkeys (1..0, Shift+1..0) don't work
- Totally get rid of old active_brush_index stuff
- Use operator to set n-th brush as active in specified paint mode
  thans to Cambo for it's optimization :)
2010-11-10 08:11:58 +00:00
Campbell Barton
99396da62c [#24627] [minor] Object type is TEXT, but icon names are FONT
change object.type enum name TEXT for FONT to match icon and ID type names.
2010-11-10 07:44:48 +00:00
Elia Sarti
1b513838a8 Add a "Save user settings" operator entry in the File menu, avoids having to open User Preferences to save layout changes. 2010-11-09 07:49:15 +00:00
Martin Poirier
cd71a6d12b [#24602] Netrender master node IP information is reset to [Default] no matter what
[#24601] Net rendering master node fails to send/retrieve files to/from slaves

Both Reported by Dan McGrath

The second might not actually be fixed with this, but now there is better error checking and reporting.

Misc: add poll method in Panel base class, to better support mixins with different inheritance order.
2010-11-09 03:37:51 +00:00
Campbell Barton
4d743796fd bugfix [#24583] Mesh.from_pydata does not properly construct faces 2010-11-08 07:59:34 +00:00
Thomas Dinges
6de12ac853 UI Scripts World:
* Remove poll, not needed anymore.
2010-11-07 20:48:09 +00:00
Joshua Leung
db4609eb08 Animation Editors: Channel Reordering
This commit restores the ability to reorder channels in the animation editors (DopeSheet/Action/etc., Graph/Drivers, NLA). The hotkeys for this are:
- Shift-PageUp = Move Up
- Shift-PageDown = Move Down

- Ctrl-Shift-PageUp = Move to Top of List
- Ctrl-Shift-PageDown = Move to Bottom of List

Do note that only animation data can get reordered using this. 
So, do not expect to be able to change the object order (that is actually taken from the order that Blender actually evaluates them per update/frame).

---

In the process, I've fixed a couple of other bugs:
* Removed 'optimisation step' check in anim_filter.c for dopesheet with no filtering options modified, since this meant that the ANIMFILTER_ANIMDATA data filter was not getting processed (and potentially there were other maintenance problems with that).

* Made NLA Editor's channel list not totally duplicate the basic Animation Channels keymap. Instead, the "NLA Channels" keymap now only defines the parts that are different, and this then gets specified before the standard one so that these different parts will override the standard ones.

* Attempted to fix BorderSelect on NLA Channels list. Still not totally working correctly yet though.

* Moved "Euler Discontinuity" menu entry from "Channels" to "Keys". It really belongs in the latter, since it affects the keyframe values, rather than some aspect of the channel (i.e. ordering of channels or how they're displayed)
2010-11-07 12:09:15 +00:00
Campbell Barton
fbcaa502ca bugfix [#24574] setting location gained from a matrix_world.copy().translation_part() (visual loc) after constraints causes NAN in object location after python script ends
shrinkwrap constraint was dividing by zero. also the shrinkwrap UI was incorrectly trying to draw a subtarget.
2010-11-07 05:59:35 +00:00
Campbell Barton
231cceaa46 patch [#24577] MESH_OT_noise. Adds missing 2.4x noise vertex displace functionality.
from Dan Eicher (dna) 

Also added a factor option so you can adjust the amount of noise applied.
2010-11-07 03:56:58 +00:00
Campbell Barton
801c79e938 remove line which wasnt supposed to be committed. 2010-11-06 21:42:27 +00:00
Campbell Barton
e9fa964315 Rename BG image Transparency to Opacity, Since 100% transparency is actually 100% opaque and this matches grease pencil. 2010-11-06 21:40:09 +00:00
Thomas Dinges
09980065b7 Do not hide the Indirect Lighting tab, caused some confusion.
Now print an info that Indirect Light only works with Approximate in Trunk atm. 

If someone knows a better solution, feel free to change.
2010-11-06 21:37:11 +00:00
Andrea Weikert
d475448bdd == filebrowser ==
Added two user preferences for filebrowser:

1. Hide Recent Locations
Requested by Kernon Dillon. Reason: People doing video tutorials might not want to expose the name of other projects they are working on.

2. Open Filebrowser in thumbnail view for images and movies
Requested by Sebastian König at the Blender Conference. Reason: In the past (and most likely still) some corrupt images or movies could crash the filebrowser when generating thumbnails. (crashes in ffmpeg, libtiff, libjpg). While many of those were solved, artists in a production environment might want to use this setting to prevent any crashes.

NOTE: the second setting should probably be set next time we create a new default startup.blend. Until then users need to switch this on manually in the User Preferences.
2010-11-06 18:54:15 +00:00
Campbell Barton
64ff9d6de4 fix to allow [#24009] to be fixed.
WM_operator_poll() could fail in cases WM_operator_name_call() would succeed because calling the operator would setup the context before calling poll.
this would result in python raising an invalid error or menu items being greyed out.

now python can also check with an operator context:
  bpy.ops.object.editmode_toggle.poll('INVOKE_SCREEN')
2010-11-04 12:59:03 +00:00
Campbell Barton
b9c3bfa053 bugfix [#24392] 2d Image paint editor: no clone/smear/soften tools etc 2010-11-02 22:04:41 +00:00
Thomas Dinges
55ad862386 UI:
* Sampled Motion Blur Panel missed check for compatible engines, causing the panel to appear in Game Engine and Netrender as well.
2010-11-02 11:10:21 +00:00
Campbell Barton
8221ed36d0 patch [#24496] Fix for exporting animations to OBJ format.
from Keith Astoria (kastoria)
2010-11-02 04:12:00 +00:00
Campbell Barton
8503bcde23 bugfix for exporting an FBX animation for an object that was the child of an armature deformed mesh. 2010-11-02 01:12:00 +00:00
Campbell Barton
0e588cbf10 use __slots__ for fbx exporter classes, no functional change. 2010-11-02 00:39:07 +00:00
Campbell Barton
010106a1f6 [#24491] not possible to create a new Rendering preset than "add render preset.py"
- Setting operator properties was broken because of bpy_types.py meta-classing (surprising this wasn't noticed before!)
- Presets now use a dialog with an OK button.
- Presets use a check function on the filename so invalid chars are replaced editing.
- Submit docs operator was broken.
2010-11-01 21:07:25 +00:00
Janne Karhu
3a8c37bb24 "Fix" for [#22537] motion blur render result incorrect when full sample anti-aliasing is selected
* FSA and motion blur can't work nicely together the way they're currently implemented, so I disabled this in the ui and code.
* FSA is used if both are selected.
* Also changed the name "Full Sample Motion Blur" to "Sampled Motion Blur" to avoid confusion with full sample anti-aliasing.
2010-11-01 13:51:11 +00:00
Campbell Barton
184b5fd6db bugfix [#24466] Selecting of object with pattern leads to strange behavior
The undo problem was caused by python operators returning 'RUNNING_MODAL' rather then the return value from wm.invoke_props_popup(self, event) - 'FINISHED'.

This was done because returning FINISHED would free the operator causing the buttons redo handler to try and run a freed operator and crash.

So the real fix is to disallow any operators to use wm.invoke_props_popup(self, event) if they dont have the REGISTER option enabled, fixing the crash and redo problem.
2010-10-31 14:43:30 +00:00
Campbell Barton
0876fce009 rename and negate DISABLE_PYTHON --> WITH_PYTHON 2010-10-31 04:11:39 +00:00
Nathan Letwory
73f21f20b7 Lock to Cursor
Patch by Dan Eicher. In 3dview properties you can enable this. Rotating view then uses cursor as pivot point. Note that with this option enabled just relocating the 3d cursor also changes the 3dview.

Sebastian König: "Now the 3d cursor is actually useful" (sitting next to me while applying patch at bconf hostel)
2010-10-31 01:18:26 +00:00
Janne Karhu
ae9c4b1649 Info text for scene strips showing the frame range that's set in the scene
* Related to bug report [#24329] scene length not updated in VSE
* This data is nice to have in the sequencer without having to go the actual scene that's added as a strip.
2010-10-30 13:09:31 +00:00
Janne Karhu
ef3e5a3d71 Fix for [#24374] VSE: Reassign Inputs ignores selection order.
* No way currently to know the order of effect inputs, so I added a swap operator for the inputs.
* Also added the effect inputs to the strip property panel (weren't even in rna before). These are not yet editable, but can be very helpful in determining what the inputs are if the strip is too short to see the name in the timeline.
2010-10-30 12:04:00 +00:00
Doug Hammond
b4a6418518 extensions_framework: minor string change 2010-10-28 21:20:57 +00:00
Campbell Barton
ab404a0f66 patch [#24424] Python scripts update for API changes
from Filiciss Muhgue (filiciss)
2010-10-27 22:15:55 +00:00
Martin Poirier
58a1ddcc9e netrender
New Feature:
VCS job type
	Render a file (with dependencies) from a version control system (currently only supports subversion, but system is already generic).
	On client, working path, server path and current revision can be guessed from data on disk or entered manually.
	On slave, a working copy is created (if needed) where specified by the job and updated to the proper revision.
	On master web page, job types now appear in the job lists. The job page shows the list of dependencies for "normal" jobs or versioning information for VCS jobs.

	Limitations: Need to have command line tools "svn" and "svnversion". Working copy path must be the same on client and slaves (the client gets the job path relative to the working copy). When guessing, working copy path is set to the folder where the current file is (this can be changed manually after). On the slave, it will update the working copy AS SPECIFIED to the revision, so if that path is too deep, some dependencies will not be updated properly. Doesn't support mixed revisions (and will not give any warnings for that), it will always use the first revision specified by "svnversion"

Bugfix:
Thumbnail generation doesn't chew down memory anymore and always gives correct result (thumbnail on master especially could mess up between jobs with the name result filename)
2010-10-27 18:24:58 +00:00
Campbell Barton
05bb6b5d6c bugfix [#24419] Console Autocomplete Error [Patch to fix attached]
patch provided by Justin Dailey (dail) in report.
2010-10-27 16:47:25 +00:00
Nathan Vegdahl
30b4fa2aa8 Removed old rigify code, as it is starting to interfere with the newer Rigify addon.
The newer addon currently resides here: bzr://bzr.cessen.com/rigify
But will eventually be included in svn.
2010-10-26 05:07:09 +00:00
Campbell Barton
3264ced377 move geometry python module into mathutils.geometry, since it provides utility functions using mathutils types. 2010-10-25 22:44:01 +00:00
Luca Bonavita
406fd33a86 == addons ==
- new (and temporary) directory addons_extern/ to store external projects addons
2010-10-24 16:01:21 +00:00
Campbell Barton
989a610fc8 rna rename: use_inherit_rotate -> use_inherit_rotation, noticed _rotate is not used like this much elsewhere in rna. 2010-10-24 08:06:19 +00:00
Campbell Barton
563e3c9405 rename rna property Bone.use_hinge to use_inherit_rotate because use_hinge was inverted - Enabled by default but not a hinge.
this also matches 'use_inherit_scale'
2010-10-23 10:06:40 +00:00
Campbell Barton
f4415ce84a - CMake now only uses SOURCE_GROUP with MSVC lib configuration, saves recursive header search when not using msvc.
- uv layout export wasn't setting the default filename.
2010-10-23 04:18:53 +00:00
Doug Hammond
a77301839d Add release/scripts/modules/extensions_framework (formerly known as exporter_framework). 2010-10-22 18:55:10 +00:00
Campbell Barton
e41ef09563 change to Nathan's fix which also works with empty material slots. 2010-10-22 12:35:31 +00:00
Nathan Letwory
7b573e0f26 Export UV Layout to PNG would fail if original mesh didn't have materials assigned.
Reported in #blender.fi by Mats Holmberg
2010-10-22 11:51:10 +00:00
Janne Karhu
cfcf82803a Temporary fix for sequencer bugs #22925, #21429, #21783, #24165
* This fix is really only a bandage, as the underlying issue is that sequencer preview render doesn't yet use the job system.
* The sequencer preview can start a full render of the scene, and this can collide with other preview/actual renders in many cases.
* Drawing the sequencer preview is now disabled when an other render is in progress, but the sequence preview rendering could have already been started before the other render, so this doesn't really fix anything.
* For now only OpenGL rendering can be used for the sequencer preview reliably until it's reimplemented using the job system.
* Using the job system in the future can handle the clashes between different renders properly and will give users a nice progress bar to indicate something is happening while the preview is recalculated.
2010-10-21 17:00:38 +00:00
Nathan Letwory
2a89fb887e * Enable compile and link flags to build info also on Windows and in SCons.
* Added build_system SCons or CMake
* Write the new build info also to system-info.txt
2010-10-19 05:00:36 +00:00
Nathan Letwory
b743454ce1 Add Toggle System Console entry to Help menu on Windows systems. 2010-10-18 22:37:21 +00:00
Campbell Barton
b1e8d168d7 recent fix for relative imports broke autocomp. 2010-10-18 13:16:43 +00:00
Peter Schlaile
7415c967ff This fixes HDV render presets:
* according to wikipedia HDV1080p 24p has a framerate of 24/1.001
* HDV comes in NTSC in PAL versions, too (30/1.001 and 25/1)
2010-10-16 19:29:48 +00:00
Nathan Letwory
d170a959d2 Add System Info function to the Help menu.
Users can use this to quickly get info about their system for bug reports.
2010-10-16 17:26:40 +00:00
Joshua Leung
7cc5aaf18a Added panel for accessing the "delta transforms" for Objects (this is closed by default to not clutter that much).
This should help silence complaints from some about "dloc",etc. not being easily keyable. 

It's also a nice way to have instances of animated objects located in different places, by animating either the standard transforms or the deltas, and then modifying by not animating the other version to keep the instances from going to a single point. This was a common newbie problem in 2.4x.
2010-10-16 11:52:30 +00:00
Luca Bonavita
99bd5f2f3b == rna info ==
changing from __repr__ to __str__ after discussing with campbell
was annyoing me when testing things, huge printouts :)
2010-10-15 13:09:38 +00:00
Campbell Barton
2755129fb6 nodes were being ignored by api update script. 2010-10-15 11:43:34 +00:00
Campbell Barton
9f81104b29 patch [#24251] Add missing tooltips for image operatios
from Sergej Reich (sergof), with minor edits.
2010-10-15 08:41:58 +00:00
Campbell Barton
d3fcc2d0b4 bugfix [#24256] Wrong bone subdivision number in tweak panel.
there were 3 operators for armature subdivision, now only have 1 (as with mesh).
+ remove unused warnigns.
2010-10-15 03:24:47 +00:00
Campbell Barton
201fd16df9 [#24250] wavefront import/export defaults
match operator and internal default arg defaults.
2010-10-15 02:40:11 +00:00
Campbell Barton
01733ecd6e [#24243] wavefront animation export
fix from dan grauer (kromar)
2010-10-14 09:09:41 +00:00
Nathan Letwory
a90f876948 Fix for fix, not UnicodeEncodingError (where did I get that from?) but UnicodeDecodeError. 2010-10-13 22:20:34 +00:00
Nathan Letwory
a97af1449c Fix UnicodeEncodingError, which prevents netrender, reprojection and playback from working on Windows in certain situations.
Users can set their machine name to something containing non-ascii characters. In Python this currently causes problem due to
socket.gethostname() throwing UnicodeEncodingError. Work around this by not using platform.system() (which uses internally socket.gethostname()).

See http://www.pasteall.org/16215 for backtrace
2010-10-13 21:53:37 +00:00
Campbell Barton
118e0426f1 patch [#24221] Creating graph from armature doesn't work with unsaved .blend files (with fix).
from Sergej Reich (sergof)

Made some corrections to the patch as well as using bpy.app.tempdir with tempfile python module.
2010-10-13 00:08:24 +00:00
Campbell Barton
5790deb4df bugfix [#23899] renderlayers are not working properly
was missing button for single layer rendering.

also renamed Object.show_shape_key to Object.show_only_shape_key since this pin's the shape key so others are disabled.
2010-10-12 22:20:10 +00:00
Campbell Barton
0143a8c6e5 update for gamelogic templates 2010-10-11 22:25:28 +00:00
Campbell Barton
6ebe7b8c5d [#24226] small inconsistency in user preferences
also made setting the temp dir more consistent, slash is always added on the end and if the user-pref dir is invalid its not used.
2010-10-11 22:05:45 +00:00
Sergey Sharybin
9fa74e5c59 Fix #24215: Bad shorcut indication for Bezier curve handles.
All existing handle type manipulation hotkeys replaced with unified V-menu
where you could directoly set type you need.
2010-10-11 18:53:11 +00:00
Campbell Barton
3d3d9bf235 bones were not being metaclassed properly so that custom rna prop's couldn't be set. 2010-10-11 04:52:40 +00:00
Campbell Barton
db4a205fa0 bugfix [#24190] Extrude Faces called from Alt+ E_key menu don't works well 2010-10-11 02:05:44 +00:00
Campbell Barton
e02439d2f3 fix for operator cheat sheet, recent description order change broke it. 2010-10-08 21:18:08 +00:00
Janne Karhu
86e77bc532 "Fix" for [#23863] Smoke Voxel Data Still Frame Number doesn't work
* Not supported currently so hidden in ui.
* Could be a nice option for later, but will need some proper thought put into the implementation.
2010-10-08 08:56:04 +00:00
Campbell Barton
8bb75bb5b6 bugfix [#24155] Operator Cheat Sheet doesn't work properly 2010-10-06 22:29:34 +00:00
Campbell Barton
2cabb498dc bugfix [#23988] The Maya preset as default 2010-10-06 20:29:00 +00:00
Campbell Barton
c02526bdf9 bugfix [#24157] AddPresetBase class writes incorrect values for float_vector properties 2010-10-06 18:51:07 +00:00
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
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