Commit Graph

22384 Commits

Author SHA1 Message Date
Brecht Van Lommel
2d2339a709 Threads: added queue for passing data between threads. Includes a function
to wait for an item to be put in the queue and then pop immediately without,
this makes it possible to avoid sleep() while waiting for the results of a
thread.
2010-01-22 11:06:57 +00:00
Brecht Van Lommel
cbc4aae06a Fix crash rendering grass_wind.blend from regression tests. The real
problem is that where_is_object is being called from multiple threads
but is not thread-safe, added a note about this problem, this commit
only solves the crash. Also remove the pushdata/popdata mechanism
that was being used here, using this kind of system is bound to give
problems with threading.
2010-01-22 11:03:55 +00:00
Brecht Van Lommel
00318eaa2e RNA: added option to pass self ID to RNA functions. 2010-01-22 10:58:02 +00:00
Brecht Van Lommel
0c2d03e69f Fix MEM_testN not unlocking mutex correctly, unlikely to lead to
problems in practice but might as well fix.
2010-01-22 10:56:50 +00:00
Brecht Van Lommel
70d5215602 Workaround for crash when rendering particle systems, don't draw objects with
particle systems in the 3d view while rendering, this will recompute the particles
in the modifier stack, while these are being manipulated by the render engine
at the same time... a better fix is needed clearly but quite difficult.
2010-01-22 10:52:37 +00:00
Matt Ebb
38aacb92f3 Cleaned up some printfs in editors/ - converted some to reports, hid others behind G_DEBUG. 2010-01-22 06:48:29 +00:00
Matt Ebb
0de9b98a31 Fixed newly added group instances not getting any layers assigned. 2010-01-22 04:52:32 +00:00
Matt Ebb
96b5658d0c Fix [#20756] Texture painting on 3D tends to forget textures in the new texture menu.
Part of this fix (loading files with brushes/textures) will only apply for new files saved after this commit
2010-01-22 04:21:46 +00:00
Martin Poirier
0db45111ce Transform numeric input: increment initialize input if needed.
Reported by Aligorith on irc
2010-01-22 02:50:40 +00:00
Campbell Barton
e52084ced4 error message error 2010-01-22 02:24:58 +00:00
Matt Ebb
fe72f01d2f Added an icon for solidify modifier. Maybe if Jendryzch is around, he might
want to make a better one :)
2010-01-22 02:23:28 +00:00
Campbell Barton
7f1a8a947d initial sphinx doc generation support for python and C modules.
python modules bpy.app, bpy.utils are now included in docs.
C defined python module bpy.props has its docstrings extracted and written directly into sphinx docs since the C methods cant be inspected.

added docstrings to bpy.props and improved some in bpy.utils.

will update online docs tomorrow.
2010-01-22 02:04:25 +00:00
Matt Ebb
68874c9aa4 Fix [#20762] Problem When Font PreviewU resolution is set to 0 2010-01-22 01:30:06 +00:00
Matt Ebb
2c565ec48a Fix [#20538] exiting render turns my UV/image editor back to a 3d view 2010-01-22 01:02:11 +00:00
Matt Ebb
3e95d9cf65 Added Hue and Value modes to Hue Correct node, alongside existing
Saturation. Works the same way, selectively hue shifting or darkening/
brightening pixels based on their original hue.

Example:
http://mke3.net/blender/devel/2.5/hue_correct_hue_val.jpg
2010-01-21 22:23:57 +00:00
Martin Poirier
52858b7e66 [#20700] Transformation Increments
Patch by Jonathan Smith

When using numerical input, up and down arrow keys increment and decrement the value by the transform increment amount (grid for grab and so on).
2010-01-21 22:20:49 +00:00
Martin Poirier
b400703403 Macro operator properties using property groups in groups (initial code by brecht).
Works correctly with menu, keymap definitions and keymap export/import.

Properties set in the macro definition overwrite those set by the user (there's no way to see that in the UI at this point).

MISSING: Python operator calling code to fill in the properties hierarchy.

Also contains some keymap export changes by Imran Syed (freakabcd on irc): the exported configuration will use the name of the file and the exported script will select the added configuration when ran.
2010-01-21 21:58:40 +00:00
Martin Poirier
0d4583365a Fix bug in IDP_ReplaceGroupInGroup (it would sometimes add the same property twice).
Also simplify some other loops.
2010-01-21 21:01:18 +00:00
Campbell Barton
8f3f1da080 - temp marker rename in menu (using python or the outliner isnt fun)
- marker selected property
- rigify error formatting error
2010-01-21 19:43:27 +00:00
Campbell Barton
8c0dff6bc3 Continuous grab in X11 could give events to a different window if the mouse was moved very fast (before it warped) or if there was another blender window with the same process set to always on top.
call XGrabPointer with owner_events set to false so mouse events are given to the window that initiated the grab.
2010-01-21 18:32:34 +00:00
Campbell Barton
1425a9f6bc uninitialized value causing crashes when getting the image extension. 2010-01-21 14:08:07 +00:00
Brecht Van Lommel
48f48fa814 Fix crash in histogram in image window when image buffer contains
NaN values, now clamps integer instead of float to prevent this.
2010-01-21 13:06:44 +00:00
Brecht Van Lommel
e9b0956b55 Adjust material strand size ui range to show some more precision,
these values need to be very small for blender units.
2010-01-21 12:07:15 +00:00
Campbell Barton
ba8269c5f6 fix for baking crash 2010-01-21 11:49:02 +00:00
Campbell Barton
b33fd1cd1a bugfix, crash when rendering normally and then with the opengl view. 2010-01-21 11:34:36 +00:00
Joshua Leung
9d54d6ba4e Patch #20693: add parameters for FPS and wait timer for screen cast
This patch by Guillaume Lecocq (lguillaume) adds user preference settings for setting the playback frame-rate and delay between captured frames for the screencasting feature. 

-- 

I've made a few tweaks for a few minor issues
- Made DNA vars for these settings shorts instead of ints, reducing the number of unnecessary extra pad vars 
- Added version patching to ensure that these settings are initialised by default
- Made tooltips for the settings more descriptive
2010-01-21 10:28:19 +00:00
Matt Ebb
da3abc78a2 Fix [#20744] Turning on Shading in Themes adversely affects display of color swatches 2010-01-21 05:14:05 +00:00
Matt Ebb
1ad61f32aa Fix [#20750] adding Lattice object in Local space doesn't appears
Now add object operators take a layer parameter (hidden in UI) to determine their layer when created.
2010-01-21 04:54:52 +00:00
Joseph Eagar
7ad7820f7f Added a new notifyer, NC_SPACE_CHANGED, to signal an editor that
replaces another so it can do updates (e.g. dopesheet editor can
sync channel selection).

Also coded a simple optimization for allocating small objects,
based on mempools.  It's #ifdef'd out, you can enabled it by 
defining OPTIMIZE_SMALL_BLOCKS (e.g. adding -DDOPTIMIZE_SMALL_BLOCKS to
your compiler flags).

We suffer from a great deal of performance loss from the system allocator
(vgroups, ghash, edgehash, the singly-linked list implementation in blenlib,
editmesh, and likely a great many areas I'm forgetting), and this is the 
common solution for handling the many-small-objects problem.  It's not
really production-ready yet (it's long-term memory consequencers need to
be profiled first, and the implementation tweaked as necassary), but for
people on systems with slow system allocators it's worth trying.

Note that since this creates a guardedalloc<->blenlib link, the build systems
need to be updated accordingly (I've already done this for scons, though I'm
not sure if the player builds).
2010-01-21 03:08:57 +00:00
Matt Ebb
467cece2c1 Fix for key map python file export and load
Contributed by 'freakabcd' in IRC.
2010-01-21 02:10:50 +00:00
Matt Ebb
e74bc901d3 Fix [#20749] Mute doesnt refresh the compositor 2010-01-21 01:42:28 +00:00
Matt Ebb
6d06f54fbe Fix [#20742] splash screen: file names over 26 characters overlap with "Ctrl O" 2010-01-21 01:30:32 +00:00
Guillermo S. Romero
469a8d4537 SVN maintenance. 2010-01-21 00:25:01 +00:00
Matt Ebb
3e1783c715 New Compositor node: Hue Control
Was very quick to do, now re-aquainted with node editor.

http://mke3.net/blender/devel/2.5/hue_correct_node.jpg

Todo: modes for affecting hue and value on the vertical axis as well as just saturation - or if an enterprising coder wants to give it a go, let me know and 
I can help :)
2010-01-21 00:00:45 +00:00
Joshua Leung
946cdd8ff6 Proxy + Transforms Bugfix:
This commit fixes some update issues for some rig setups used for Durian, with proxies not updating correctly during transforms.

The setup involves an armature that has been proxified, which deforms a mesh in the group it came from. One of the bones in this armature is constrained to an empty that was added in the shot file.  
When the empty is moved around, the mesh does not deform in response to the armature until the transform is confirmed. 

This was because the depsgraph tagging was not comprehensive enough, since only a few cached tags got restored (but not all). For now, full depsgraph tagging is now performed for objects as they are transformed.
2010-01-20 22:21:10 +00:00
Martin Poirier
c781c3e6dc remove debug print 2010-01-20 21:21:05 +00:00
Campbell Barton
0568f608c4 Patch from Jochen Schmitt, (various distro's had patched this)
- modify the path in python rather then C
- filter returns an object in python 3, set using slice.

also import sys as _sys so it doesnt appier in aytocompleation.
2010-01-20 19:26:23 +00:00
Brecht Van Lommel
9857ffde31 Bugfix: copying drivers did not set compiled expression to NULL, also tweak
to set it to NULL on file read instead of write as is done usually.
2010-01-20 18:27:19 +00:00
Campbell Barton
a035dafd27 fix for error with text ui when there is no text loaded. 2010-01-20 17:41:41 +00:00
Campbell Barton
2ed547be4d bugfix [#20743] crash on box select and grab with this .blend 2010-01-20 17:02:24 +00:00
Brecht Van Lommel
0c3e5dec93 Fix action editor now updating when changing the active object. I can't work
out of this was an intentional change or not, but working with two objects
became quite tedious because action would have to be changed manually each 
time. Also fixed missing redraw of header.
2010-01-20 15:44:37 +00:00
Brecht Van Lommel
939c3ba9cb Fix for proxy fix: copy drivers on synchronize now does proper relinking
of driver targets, sharing code with make proxy.
2010-01-20 14:28:49 +00:00
Arystanbek Dyussenov
9790647ce6 BPY: fixed iteration over and slicing of multidim. arrays. 2010-01-20 14:06:38 +00:00
Campbell Barton
e7686b4cdb use a search popup for the add group menu item when there are more then 10. 2010-01-20 13:38:17 +00:00
Matt Ebb
973128dc66 Fix for crash in file selector using the 'Open' button - button was using old UI
code, changed it to operators
2010-01-20 12:28:33 +00:00
Brecht Van Lommel
1e7858f5a0 Proxy Fix: drivers are now copied on proxy synchronization. Also for bones
on non-proxy protected layers, not sure if these should be done or not, it
depends a bit on preference.
2010-01-20 12:20:34 +00:00
Campbell Barton
d99d68684b only reallocate memory for child particles if the size changes. 2010-01-20 11:32:11 +00:00
Joshua Leung
6307c65534 Animation Editors: Restored 'Realtime Updates' toggle
- In 2.4x, this setting was the lock button in the headers. 
- Now, this option can be found in the View menus of all relevant editors

- Basically, this option toggles whether objects (using animation data that's being edited) get updated during animation editor transforms to give realtime feedback on the effects of tweaks. 
- By default, this is enabled, since this fits in nicer with 2.5's everything 'live' paradigm. However, it is recommended to disable this on slower computers or when updates for heavy rigs are causing too much workflow lag

- Also, removed some old crufty settings from action editor data
2010-01-20 11:20:20 +00:00
Campbell Barton
09424badda bugfix [#20726] "Export UV Layout" creates invalid SVG files
- use xml.sax.saxutils.escape() to give an XML compatible string.
- in some cases material indicies could be invalid. use the default material rather then throwing an error.
2010-01-20 11:08:50 +00:00
Matt Ebb
22ca6f69ca Fix for own bug, voxel data texture was freeing smoke data when it shouldn't
have been.
2010-01-20 09:57:47 +00:00