Commit Graph

22967 Commits

Author SHA1 Message Date
Campbell Barton
9e2e528c36 - finally a way to force removal of images (Shift+Click on the X)
- generic modal operator now works with int's
2010-02-23 15:34:02 +00:00
Campbell Barton
78bb45931c scene.render_data -> scene.render
bpy.types.SceneRenderData -> bpy.types.RenderSettings

better do these changes before there are too many scripts out.
2010-02-23 12:48:35 +00:00
Daniel Salazar
2dc5713eb4 Nicer step size for lamp energy value 2010-02-23 12:22:22 +00:00
Campbell Barton
ca5e7113d3 allow python api to set values of library liked data (still checks editable flag)
+ improved exception messages.
2010-02-23 11:19:55 +00:00
Campbell Barton
0c89dcc25c matrix functions, to_3x3, to_4x4
force fixed time when recording in the BGE.
2010-02-23 09:39:47 +00:00
Joshua Leung
3fbd42e014 Various RNA defaults for more consistency when updating settings (scene changes), and incorrect default values for scale settings. 2010-02-23 05:02:00 +00:00
Daniel Genrich
01939f8472 Win64: Enable OpenAL for cmake + win64 2010-02-22 23:34:45 +00:00
Campbell Barton
97bdfe6f1b pep8 cleanup + correction for external player operator return value. 2010-02-22 23:32:58 +00:00
Martin Poirier
a8d364ce4a Move increment value into numinput structure.
Easier for transform to have different values per transform then (also different from gears values).

(Based on a bug reported by Jonathan Smith)
2010-02-22 23:25:34 +00:00
Daniel Genrich
8a31fab304 Win64: Bugfix for non working scons, thanks to matd for the fix!
jesterKing: please check if the win32 dll's aren't needed anymore. Seems that they are compiled into ffmpeg, right?
2010-02-22 22:56:28 +00:00
Daniel Genrich
a7d606a2ff Win64: Bugfix for missing include, reported + fixed by matd, thanks 2010-02-22 22:17:14 +00:00
Brecht Van Lommel
b7e7a0140b Fix dual quaternions flipping in case of stretched (not scaled) bones. 2010-02-22 18:53:46 +00:00
Nathan Vegdahl
2b9740bc3b Made a more generic rig type for giving animators direct control over shape keys. With this rig type you can attach shape keys both to the transforms of the bone and any number custom properties on the bone. 2010-02-22 18:07:16 +00:00
Damien Plisson
7777957521 OSX buildscripts update following ffmpeg precompiled libs update 2010-02-22 16:34:27 +00:00
Campbell Barton
960e45c42d - respect insert available with pose copy/paste (note: autokeyframe_pose_cb_func needs to be used for all cases I think)
- copy, paste ID properties with pose
2010-02-22 15:49:40 +00:00
Brecht Van Lommel
494538db13 Fix integer overflow problem in deep shadow buffer. 2010-02-22 15:03:13 +00:00
Campbell Barton
85b7e19805 game settings wasnt checking if the scene has a world set (giving python errors while drawing) 2010-02-22 14:04:04 +00:00
Daniel Salazar
f5cf555e6c Context for Object Align op = Object mode 2010-02-22 13:25:32 +00:00
Campbell Barton
d524f46335 [#21237] RAW triangle file importer
ported by Aurel W (aurel)

made adjustments to have this as a package in the extensions directory since this format isnt commonly used for interchanging data but still useful at times.
2010-02-22 13:21:09 +00:00
Campbell Barton
4ef1fd1078 game engine support for recording animation back & some other minor changes. 2010-02-22 12:25:58 +00:00
Damien Plisson
dd03793f4e OSX : Bugfix [#21293] add OpenMP apple gcc bug workaround for render preview
All openMP calls from a background thread need to have this thread var init workaround
2010-02-22 10:29:49 +00:00
Campbell Barton
b65a983d39 use BLI_findstring in more places & remove some warnings, no functional changes. 2010-02-22 09:22:36 +00:00
Campbell Barton
756dace6f5 fix for typo 2010-02-22 09:02:05 +00:00
Joerg Mueller
e722806cf7 - Jack transport update: Moving the playhead in another jack app when not playing back now triggers an update in blender.
- Missing stub fix from last commit by nazg-gul, blenderplayer works now atm.
2010-02-22 09:01:49 +00:00
Joerg Mueller
81847df968 Fix for the player by nazg-gul. 2010-02-22 08:27:45 +00:00
Campbell Barton
e31d0198e6 exclude self references from the ID search list when PROP_ID_SELF_CHECK is set, also raise an error from python if this is attempted 2010-02-22 08:27:45 +00:00
Elia Sarti
2bfee787a6 Fix for #21286, Trying to open the toolbox crashed blender 2.5 alpha 1
Added poll function for BUTTONS_OT_toolbox operator
2010-02-22 06:05:35 +00:00
Campbell Barton
bc3d96678d bugfix [#21233] Crash in pyapi, with new object.
pass the obdata as an argument rather then assigning later so as not to allow an invalid state.
2010-02-22 00:07:46 +00:00
Elia Sarti
835c353aaa Fix for #21209, Delete X for particle settings does nothing.
Disable ID default unlink button if the RNA property is set to never be null, as the unlink default action simply sets pointers to null
2010-02-21 22:55:35 +00:00
Benoit Bolsee
37b9c9fe4d VideoTexture: improvements to image data access API.
- Use BGL buffer instead of string for image data.
- Add buffer interface to image source.
- Allow customization of pixel format.
- Add valid property to check if the image data is available.

The image property of all Image source objects will now
return a BGL 'buffer' object. Previously it was returning
a string, which was not working at all with Python 3.1.
The BGL buffer type allows sequence access to bytes and
is directly usable in BGL OpenGL wrapper functions.
The buffer is formated as a 1 dimensional array of bytes
with 4 bytes per pixel in RGBA order.

BGL buffers will also be accepted in the ImageBuff load()
and plot() functions.

It is possible to customize the pixel format by using
the VideoTexture.imageToArray(image, mode) function:
the first argument is a Image source object, the second
optional argument is a format string using the R, G, B,
A, 0 and 1 characters. For example "BGR" means that each
pixel will be 3 bytes, corresponding to the Blue, Green
and Red channel in that order. Use 0 for a fixed hex 00
value, 1 for hex FF. The default mode is "RGBA".

All Image source objects now support the buffer interface
which allows to create memoryview objects for direct access
to the image internal buffer without memory copy. The buffer
format is one dimensional array of bytes with 4 bytes per
pixel in RGBA order. The buffer is writable, which allows
custom modifications of the image data.

v = memoryview(source)

A bug in the Python 3.1 buffer API will cause a crash if
the memoryview object cannot be created. Therefore, you
must always check first that an image data is available
before creating a memoryview object. Use the new valid
attribute for that:

if source.valid:
    v = memoryview(source)
    ...	

Note: the BGL buffer object itself does not yet support
the buffer interface.

Note: the valid attribute makes sense only if you use
image source in conjunction with texture object like this:

# refresh texture but keep image data in memory
texture.refresh(False)
if texture.source.valid:
    v = memoryview(texture.source)
    # process image
    ...
    # invalidate image for next texture refresh
    texture.source.refresh()

Limitation: While memoryview objects exist, the image cannot be
resized. Resizing occurs with ImageViewport objects when the
viewport size is changed or with ImageFFmpeg when a new image
is reloaded for example. Any attempt to resize will cause a
runtime error. Delete the memoryview objects is you want to
resize an image source object.
2010-02-21 22:20:00 +00:00
Benoit Bolsee
115fc34dd3 Update MSVC project files. 2010-02-21 22:15:25 +00:00
Elia Sarti
062d215b10 Fix #21214 Changing frame range on render panel doesn't update on timeline...
Was missing notifier

Also made a description slightly more consistent
2010-02-21 20:27:13 +00:00
Campbell Barton
3307d6d509 building without jack was broken 2010-02-21 19:54:18 +00:00
Campbell Barton
af835c52a9 correction pointed out by Moguri, logic button was accepting Text instead of actions. 2010-02-21 19:33:14 +00:00
Joerg Mueller
38ef2df8f7 2.5 Audio:
* Jack Transport support!
* Minor sequencer audio corrections.
2010-02-21 18:01:41 +00:00
Campbell Barton
ee12a5368a scale int number button sensitivity by the min/max range. 2010-02-21 16:43:25 +00:00
Campbell Barton
d85191bd2d modal operator python template 2010-02-21 16:20:32 +00:00
Martin Poirier
eb0bf10c9c [#21269] Alt E extrude options don't appear without Tool Shelf visible
Vertex selection count wasn't properly updated after extrude.
2010-02-21 15:54:41 +00:00
Campbell Barton
6589038350 python rna api now clamps values, (was fun to see the spot_size go backwards)
Vector callbacks still missing clamp checks
2010-02-21 14:48:28 +00:00
Peter Schlaile
d474fae9b9 == Sequencer ==
Made aspect ratio work again in sequencer preview
2010-02-21 14:19:53 +00:00
Martin Poirier
438b93dccc [#21265] Rotate behaves wrong with constraints
With new axis var for rotate, it wasn't reset properly when constraints are turned off.
2010-02-21 14:13:20 +00:00
Campbell Barton
0cc59b9bb7 generic modal operator to make adjusting almost any rna property with the mouse possible with a few lines.
Example which is similar to interactive lamp adjusting in 2.4x ...
  wm.context_modal_mouse(path_iter="selected_editable_objects", path_item="data.spot_size")

Added lamp Wkey menu back.
2010-02-21 14:05:02 +00:00
Campbell Barton
1bb37bc10e py api: bpy.props
new properties without any arguments were failing.
2010-02-21 12:15:38 +00:00
Campbell Barton
4cd088c19e modal python operator support. 2010-02-21 11:56:00 +00:00
Joshua Leung
ddc0c68a5c Bugfix #21234: Autokey "insert only available" userpref inserts keys for all bones in an armature
-- 

Bugfix: When autokey is enabled, notifiers to refresh the animation editors *after* transforms finished for objects were missing.
While I understand the need to limit these to not doing this during transform, after transform, this lead to lag/inconsistent UI problems.

-- 

* Added 'Damped Track' Option to 'Make Track' Operator
* Improved the code of the 'Clear Track' operator to include other types of tracking constraint too
2010-02-21 11:42:32 +00:00
Campbell Barton
02b2c2f39d bugfix [#21258] Select > Mirror causes segmentation fault. 2010-02-21 11:07:06 +00:00
Joshua Leung
f3b9ea066e Bugfix #21245: "Track to" (Ctrl + T) operator was missing notifier updates
Bugfix #21255: Clear track operator did not remove TrackTo constraints too. This could still be made to do Locked Track and other tracking constraints later too, but for now this will do.
2010-02-21 11:05:52 +00:00
Campbell Barton
e3dba7d6f4 remove pep8 warnings 2010-02-21 10:56:14 +00:00
Campbell Barton
dd04e25a14 improved euler conversion, make sure new eulers are always compatible with the previous ones, means it doesnt result in bad interpolation. 2010-02-21 10:30:39 +00:00
Campbell Barton
5dd8d10336 [#20116] calculation problem in bvh_importer.py
from Martin K (martinbk)
2010-02-21 09:43:09 +00:00