Campbell Barton [Sat, 27 Feb 2010 12:01:10 +0000 (12:01 +0000)]
was using wrong global flag for python script disabling in recent commit.
Daniel Salazar [Sat, 27 Feb 2010 10:01:20 +0000 (10:01 +0000)]
One more decimal to the lamp distance and energy button... makes fine
tuning nicer
Joshua Leung [Sat, 27 Feb 2010 02:03:33 +0000 (02:03 +0000)]
* Renaming some Keying Sets API functions to make the terminology more consistent in the UI
* Fixed bug with hotkeys for adding properties to Keying Sets using the KKEY over the relevant buttons. Was calling the remove callback instead.
Campbell Barton [Sat, 27 Feb 2010 01:47:46 +0000 (01:47 +0000)]
rename flag for auto script execution since scriptlinks are no more.
Campbell Barton [Sat, 27 Feb 2010 01:27:22 +0000 (01:27 +0000)]
option to set the blend file as from a 'Trusted Source' on load.
Campbell Barton [Fri, 26 Feb 2010 23:56:16 +0000 (23:56 +0000)]
bugfix [#20694] Copy Paste to buffer missing in Console editor
- console selection working
- copy selection to clipboard
- paste selection from clipboard works with multiline paste
word-wrap is still not working with selection drawing.
Benoit Bolsee [Fri, 26 Feb 2010 22:14:31 +0000 (22:14 +0000)]
VideoTexture: optional arguments to ImageBuff constructor.
ImageBuff([width,height[,color[,scale]]])
width, height: size of buffer in pixel.
default: buffer not allocated.
color: initial value of RGB channels. Alpha channel is 255.
Possible values: 0(black=default) -> 255 (white)
scale: True or False to enable or disable fast scaling
default: False
This constructors eliminates the need to use the load function
when you just want to initialize the image buffer to black or white.
Joerg Mueller [Fri, 26 Feb 2010 21:08:06 +0000 (21:08 +0000)]
Fix for ffmpeg audio rendering being to long.
Campbell Barton [Fri, 26 Feb 2010 14:28:29 +0000 (14:28 +0000)]
rename extension to addon after discussion with meta-androcto & mindrones
Campbell Barton [Fri, 26 Feb 2010 12:28:44 +0000 (12:28 +0000)]
rna/py api
rename image.save() --> image.save_render() because it uses render settings for saving.
added image.save() which is like pressing save in the image view, saving to the images path and removing the dirty flag.
Martin Poirier [Fri, 26 Feb 2010 12:15:15 +0000 (12:15 +0000)]
Adding back decorator (metaclass registration not in trunk yet)
Campbell Barton [Fri, 26 Feb 2010 11:50:59 +0000 (11:50 +0000)]
remove rna functions image.get_export_path() and image.get_abs_filename(), filename functions should not be spesific to images.
rename BKE_get_image_export_path() to BKE_rebase_path() and take a filename arg rather then an image.
obj export file copy was also not working because of a missing import.
Joshua Leung [Fri, 26 Feb 2010 10:01:49 +0000 (10:01 +0000)]
Bugfix #21339: Grease Pencil operator weirdness
Fixed missing listener for Grease Pencil notifiers when drawing.
Campbell Barton [Fri, 26 Feb 2010 09:02:52 +0000 (09:02 +0000)]
use negate_v3 rather then multiplying a vector by -1.0 (no functional changes)
Campbell Barton [Fri, 26 Feb 2010 08:47:20 +0000 (08:47 +0000)]
fix for fly mode restoring non-euler rotations
Janne Karhu [Fri, 26 Feb 2010 03:24:21 +0000 (03:24 +0000)]
Few small hair dynamics goodies:
* Effectors now work with hair dynamics.
* Hair dynamics has a new "Collider Friction" parameter that works similarly to internal friction except now all collision objects effect the hair velocity. Useful for quick'n'dirty interaction with objects as the calculations are really fast, but doesn't really take away the need for proper hair-object collisions.
Martin Poirier [Fri, 26 Feb 2010 02:37:31 +0000 (02:37 +0000)]
Netrender: check if library and image files exist before adding as dependency.
Martin Poirier [Fri, 26 Feb 2010 02:33:04 +0000 (02:33 +0000)]
[#21338] B-Bone display size crash [27127]
EditBones pretending to be pose bone when doing bone resize need a valid object pointer.
Tsk, who thought this was a good idea...
Benoit Bolsee [Thu, 25 Feb 2010 22:12:16 +0000 (22:12 +0000)]
VideoTexture: fix a bug with AV sync that was causing a loss of sync in case of rewind to the begining of the file.
Campbell Barton [Thu, 25 Feb 2010 21:20:00 +0000 (21:20 +0000)]
fix for camera rig that has locking on the camera but not the parent.
Campbell Barton [Thu, 25 Feb 2010 21:10:43 +0000 (21:10 +0000)]
error in view3d math commit.
Campbell Barton [Thu, 25 Feb 2010 20:40:09 +0000 (20:40 +0000)]
support for flymode with camera rigs, so the parent most object is actually flying.
Campbell Barton [Thu, 25 Feb 2010 20:26:38 +0000 (20:26 +0000)]
use math functions in view code, no functional changes.
Campbell Barton [Thu, 25 Feb 2010 16:08:32 +0000 (16:08 +0000)]
support for relative file loading and python paths.
means you can do...
blender -P foo.py
where foo is $PWD/foo.py
Campbell Barton [Thu, 25 Feb 2010 15:41:46 +0000 (15:41 +0000)]
select parent/child in object mode with [] keys, like pose mode.
also needed to extend the RNA api to allow C to set enums without meaningful values.
Campbell Barton [Thu, 25 Feb 2010 15:10:27 +0000 (15:10 +0000)]
fix for warnings, add back pose relax into the pose menu.
Joshua Leung [Thu, 25 Feb 2010 12:01:43 +0000 (12:01 +0000)]
AnimViz (Motion Paths + Ghosting) panels are registered so that they will show up in a sensible location in the properties window. Also made these panels collapsed by default.
Dalai Felinto [Thu, 25 Feb 2010 06:05:56 +0000 (06:05 +0000)]
BGE Dome: BlenderPlayer Console arguments: warpdata working now (only with absolute path)
I forgot to say in the last commit that those arguments are only for the BlenderPlayer.
we can now set external warpdata files.
2Do:
(1) convert relative to absolute paths for warpdata files
(2) investigate weird bug on lack of light in blenderplayer with warpmesh
... [old 2Do]
(3) documentation
(4) preserve scene settings (at least scene->gm.dome) even if you load a new file inside the game (e.g. Yo Frankie loading new levels)
Daniel Salazar [Thu, 25 Feb 2010 03:13:50 +0000 (03:13 +0000)]
Added a Recovery space in splash so new users don't panic when they
loose work (close by mistake or a crash)
Janne Karhu [Thu, 25 Feb 2010 01:57:09 +0000 (01:57 +0000)]
Fix for [#20647] Children from particles on a subsurf mesh don't render correct
Janne Karhu [Thu, 25 Feb 2010 00:03:49 +0000 (00:03 +0000)]
Particles with "no physics" didn't stick to the emitter like they were supposed to.
Janne Karhu [Thu, 25 Feb 2010 00:03:16 +0000 (00:03 +0000)]
Fix for [#19955] 2.5 Particles are calculated wrong when object has any transform animation
* The exact location of particle birth wasn't cached if cache step was greater than 1, so the interpolation from an unborn particle to a living one wasn't accurate at all.
* Although not ideal, the current solution is to copy the birth location to the previous cached frame so it's always exact. This should work properly for memory & disk cache.
* This fix shouldn't cause any problems, but exhaustive tests of caching are difficult so be sure to let me know if there's strange behavior.
Dalai Felinto [Wed, 24 Feb 2010 23:01:49 +0000 (23:01 +0000)]
BGE Dome: Console arguments: angle, tilt, mode and warpdata (not working yet)
2Do:
(1) open external warpdata file
(2) documentation
(3) preserve scene settings (at least scene->gm.dome) even if you load a new file inside the game (e.g. Yo Frankie loading new levels)
otherwise it's a nightmare to update all your files every time you change your projection system. See note.
Maybe SYS_WriteCommandLineInt/Float/String can be used for that. Gotta investigate further.
* Note: an external warpdata file is a must ! Currently every time you need to calibrate your system you have to update the warp file in all your demo files. This is terrible. I'm glad I *now* have a dome near by to test it ;)
* FYI: A recent 'Yo Frankie in a dome' video if you want to see how it works: http://www.vimeo.com/
9629626 I'm going to record a better one tomorrow.
William Reynish [Wed, 24 Feb 2010 21:53:16 +0000 (21:53 +0000)]
Bugfix: FPS Frame Step had wrong minimum value. Animation rendering would fail if set to zero.
Campbell Barton [Wed, 24 Feb 2010 20:11:35 +0000 (20:11 +0000)]
view selected now uses boundboxes of dupli-objects and ignores centerpoints of the instance objects when it has duplis. view selected also working again for selected paint mask faces.
Campbell Barton [Wed, 24 Feb 2010 18:06:51 +0000 (18:06 +0000)]
hair was running collision functions (copy to/from collision arrays), even when collision could not be done.
Campbell Barton [Wed, 24 Feb 2010 17:14:16 +0000 (17:14 +0000)]
getting double frames problem, set the epsilon to 100th of a frame rather then 100,000th.
Campbell Barton [Wed, 24 Feb 2010 15:56:27 +0000 (15:56 +0000)]
[#21295] Escape key doesn't cancel python modal operators
also fix distance with lamps being negative for typed in values.
Campbell Barton [Wed, 24 Feb 2010 15:35:15 +0000 (15:35 +0000)]
allow cloth sim for linked duplicates, not many people use this but we need for using hair on linked characters, if there are bugs with this we'll need to fix so enabling for now with comments that its experemental.
Campbell Barton [Wed, 24 Feb 2010 15:03:28 +0000 (15:03 +0000)]
multi-multi modifier support.
Campbell Barton [Wed, 24 Feb 2010 11:03:22 +0000 (11:03 +0000)]
[#21324] mdd import script ported to 2.5
2.4x port by Ivo Grigull (loolarge)
from the tracker:
It should be working ok, but it does not have all options that the old script had. You can only specify the start frame
where to insert the animation, but not skip frames for have a different fps.
However, like the old script this will bloat the memory a bit, at some later point i would like to write a script that
only reads the current frame from the file when you move the timeline.
Daniel Salazar [Wed, 24 Feb 2010 03:58:26 +0000 (03:58 +0000)]
Empty draw size tooltip fix and added soft limits
Campbell Barton [Tue, 23 Feb 2010 19:59:07 +0000 (19:59 +0000)]
set the max soft resolution of nurbs surfaces to 64 rather then 1024
Campbell Barton [Tue, 23 Feb 2010 19:32:32 +0000 (19:32 +0000)]
- use search box for adding actions in the NLA
- use less complicated string conversion for saving keymaps
Campbell Barton [Tue, 23 Feb 2010 17:56:45 +0000 (17:56 +0000)]
added support for proxies as drivers back.
Campbell Barton [Tue, 23 Feb 2010 16:40:55 +0000 (16:40 +0000)]
- py-drivers were not using the name lookup cache.
- use manager context for keymap script.
Campbell Barton [Tue, 23 Feb 2010 15:34:02 +0000 (15:34 +0000)]
- finally a way to force removal of images (Shift+Click on the X)
- generic modal operator now works with int's
Campbell Barton [Tue, 23 Feb 2010 12:48:35 +0000 (12:48 +0000)]
scene.render_data -> scene.render
bpy.types.SceneRenderData -> bpy.types.RenderSettings
better do these changes before there are too many scripts out.
Daniel Salazar [Tue, 23 Feb 2010 12:22:22 +0000 (12:22 +0000)]
Nicer step size for lamp energy value
Campbell Barton [Tue, 23 Feb 2010 11:19:55 +0000 (11:19 +0000)]
allow python api to set values of library liked data (still checks editable flag)
+ improved exception messages.
Campbell Barton [Tue, 23 Feb 2010 09:39:47 +0000 (09:39 +0000)]
matrix functions, to_3x3, to_4x4
force fixed time when recording in the BGE.
Joshua Leung [Tue, 23 Feb 2010 05:02:00 +0000 (05:02 +0000)]
Various RNA defaults for more consistency when updating settings (scene changes), and incorrect default values for scale settings.
Daniel Genrich [Mon, 22 Feb 2010 23:34:45 +0000 (23:34 +0000)]
Win64: Enable OpenAL for cmake + win64
Campbell Barton [Mon, 22 Feb 2010 23:32:58 +0000 (23:32 +0000)]
pep8 cleanup + correction for external player operator return value.
Martin Poirier [Mon, 22 Feb 2010 23:25:34 +0000 (23:25 +0000)]
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)
Daniel Genrich [Mon, 22 Feb 2010 22:56:28 +0000 (22:56 +0000)]
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?
Daniel Genrich [Mon, 22 Feb 2010 22:17:14 +0000 (22:17 +0000)]
Win64: Bugfix for missing include, reported + fixed by matd, thanks
Brecht Van Lommel [Mon, 22 Feb 2010 18:53:46 +0000 (18:53 +0000)]
Fix dual quaternions flipping in case of stretched (not scaled) bones.
Nathan Vegdahl [Mon, 22 Feb 2010 18:07:16 +0000 (18:07 +0000)]
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.
Damien Plisson [Mon, 22 Feb 2010 16:34:27 +0000 (16:34 +0000)]
OSX buildscripts update following ffmpeg precompiled libs update
Campbell Barton [Mon, 22 Feb 2010 15:49:40 +0000 (15:49 +0000)]
- 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
Brecht Van Lommel [Mon, 22 Feb 2010 15:03:13 +0000 (15:03 +0000)]
Fix integer overflow problem in deep shadow buffer.
Campbell Barton [Mon, 22 Feb 2010 14:04:04 +0000 (14:04 +0000)]
game settings wasnt checking if the scene has a world set (giving python errors while drawing)
Daniel Salazar [Mon, 22 Feb 2010 13:25:32 +0000 (13:25 +0000)]
Context for Object Align op = Object mode
Campbell Barton [Mon, 22 Feb 2010 13:21:09 +0000 (13:21 +0000)]
[#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.
Campbell Barton [Mon, 22 Feb 2010 12:25:58 +0000 (12:25 +0000)]
game engine support for recording animation back & some other minor changes.
Damien Plisson [Mon, 22 Feb 2010 10:29:49 +0000 (10:29 +0000)]
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
Campbell Barton [Mon, 22 Feb 2010 09:22:36 +0000 (09:22 +0000)]
use BLI_findstring in more places & remove some warnings, no functional changes.
Campbell Barton [Mon, 22 Feb 2010 09:02:05 +0000 (09:02 +0000)]
fix for typo
Joerg Mueller [Mon, 22 Feb 2010 09:01:49 +0000 (09:01 +0000)]
- 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.
Joerg Mueller [Mon, 22 Feb 2010 08:27:45 +0000 (08:27 +0000)]
Fix for the player by nazg-gul.
Campbell Barton [Mon, 22 Feb 2010 08:27:45 +0000 (08:27 +0000)]
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
Elia Sarti [Mon, 22 Feb 2010 06:05:35 +0000 (06:05 +0000)]
Fix for #21286, Trying to open the toolbox crashed blender 2.5 alpha 1
Added poll function for BUTTONS_OT_toolbox operator
Campbell Barton [Mon, 22 Feb 2010 00:07:46 +0000 (00:07 +0000)]
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.
Elia Sarti [Sun, 21 Feb 2010 22:55:35 +0000 (22:55 +0000)]
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
Benoit Bolsee [Sun, 21 Feb 2010 22:20:00 +0000 (22:20 +0000)]
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.
Benoit Bolsee [Sun, 21 Feb 2010 22:15:25 +0000 (22:15 +0000)]
Update MSVC project files.
Elia Sarti [Sun, 21 Feb 2010 20:27:13 +0000 (20:27 +0000)]
Fix #21214 Changing frame range on render panel doesn't update on timeline...
Was missing notifier
Also made a description slightly more consistent
Campbell Barton [Sun, 21 Feb 2010 19:54:18 +0000 (19:54 +0000)]
building without jack was broken
Campbell Barton [Sun, 21 Feb 2010 19:33:14 +0000 (19:33 +0000)]
correction pointed out by Moguri, logic button was accepting Text instead of actions.
Joerg Mueller [Sun, 21 Feb 2010 18:01:41 +0000 (18:01 +0000)]
2.5 Audio:
* Jack Transport support!
* Minor sequencer audio corrections.
Campbell Barton [Sun, 21 Feb 2010 16:43:25 +0000 (16:43 +0000)]
scale int number button sensitivity by the min/max range.
Campbell Barton [Sun, 21 Feb 2010 16:20:32 +0000 (16:20 +0000)]
modal operator python template
Martin Poirier [Sun, 21 Feb 2010 15:54:41 +0000 (15:54 +0000)]
[#21269] Alt E extrude options don't appear without Tool Shelf visible
Vertex selection count wasn't properly updated after extrude.
Campbell Barton [Sun, 21 Feb 2010 14:48:28 +0000 (14:48 +0000)]
python rna api now clamps values, (was fun to see the spot_size go backwards)
Vector callbacks still missing clamp checks
Peter Schlaile [Sun, 21 Feb 2010 14:19:53 +0000 (14:19 +0000)]
== Sequencer ==
Made aspect ratio work again in sequencer preview
Martin Poirier [Sun, 21 Feb 2010 14:13:20 +0000 (14:13 +0000)]
[#21265] Rotate behaves wrong with constraints
With new axis var for rotate, it wasn't reset properly when constraints are turned off.
Campbell Barton [Sun, 21 Feb 2010 14:05:02 +0000 (14:05 +0000)]
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.
Campbell Barton [Sun, 21 Feb 2010 12:15:38 +0000 (12:15 +0000)]
py api: bpy.props
new properties without any arguments were failing.
Campbell Barton [Sun, 21 Feb 2010 11:56:00 +0000 (11:56 +0000)]
modal python operator support.
Joshua Leung [Sun, 21 Feb 2010 11:42:32 +0000 (11:42 +0000)]
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
Campbell Barton [Sun, 21 Feb 2010 11:07:06 +0000 (11:07 +0000)]
bugfix [#21258] Select > Mirror causes segmentation fault.
Joshua Leung [Sun, 21 Feb 2010 11:05:52 +0000 (11:05 +0000)]
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.
Campbell Barton [Sun, 21 Feb 2010 10:56:14 +0000 (10:56 +0000)]
remove pep8 warnings
Campbell Barton [Sun, 21 Feb 2010 10:30:39 +0000 (10:30 +0000)]
improved euler conversion, make sure new eulers are always compatible with the previous ones, means it doesnt result in bad interpolation.
Campbell Barton [Sun, 21 Feb 2010 09:43:09 +0000 (09:43 +0000)]
[#20116] calculation problem in bvh_importer.py
from Martin K (martinbk)
Daniel Salazar [Sun, 21 Feb 2010 08:25:14 +0000 (08:25 +0000)]
Emmit step size was too high
Martin Poirier [Sat, 20 Feb 2010 22:57:49 +0000 (22:57 +0000)]
Better code to prevent loading scripts from .blender/scripts
Treat user defined script dir (where loading from base dir is ok) differently than system dirs, where we only want to load from specific subdirs.
Campbell Barton [Sat, 20 Feb 2010 22:51:36 +0000 (22:51 +0000)]
BVH import working again.
- euler/quat rotation option
- scale, startframe options back.
- fix for adding an armature which used operators can could fail, use the data api instead.
- remove old junk
Martin Poirier [Sat, 20 Feb 2010 22:51:22 +0000 (22:51 +0000)]
No need for this change anymore (force include to get BLO_sys_types.h in GE)