Commit Graph

23674 Commits

Author SHA1 Message Date
Dalai Felinto
a8bca52d09 BGE fix #20456 - 2.5: mouse position problem (offseted by 1 vertically)
In Blender 2.49 the win width and height were been calculated including an extra pixel (e.g. a fullscreen editor would be (width + 1) by (height + 1) )
In opposite to that, Blender 2.5 window/editor code were fixed to have the exact width,height size.
So although the BGE canvas code was still the same as 2.49 it was producing a wrong result.

I'm also adding some commentaries in the setViewport code. BGE is setting the viewports 1 pixel larger.
the setViewport command is been used as if one should pass (minx, miny, width, height), while it should be (minx, miny, maxx, maxy). I will take care of that later, if any one has extra comments on that, please let me know.
2010-04-11 01:53:21 +00:00
Campbell Barton
4d2f5a275d Solidify Modifier
- vertex normals were not being flipped (though faces are)
- rim faces didnt influence edge vertex normals

apply solidify on top of solidify modifier now works correctly
2010-04-10 22:12:10 +00:00
Campbell Barton
9eb838ce24 bpy.app was writing members more then once. 2010-04-10 19:06:18 +00:00
Campbell Barton
6e3920e8fa rna/py/reference doc improvements..
- vectors now respect min/max settings.
- keyframing and adding drivers raises an error in an index is set on a non array, keyframing raises an error if it fails.

reference docs...
- added docstrings for remaining python bpy_struct functions
- added fake class for docs, bpy_struct, which is the base class of everything in bpy.types
- improved inherictance references for struct classes, include bpy_struct members.
2010-04-10 18:35:50 +00:00
Damien Plisson
c939331a6c QTKit (OSX 64bit): Add audio export to Quicktime
Supports default OSX codecs : Linear PCM, Apple Lossless and AAC

Note that AAC codec doesn't support sample rates above 48kHz. If a python/rna guru knows how to easily enforce this limit, he is welcome!

Enjoy making Quicktime movies now with audio!
2010-04-10 09:31:41 +00:00
Campbell Barton
c3ab6bc509 rna reference docs, list inherited properties and functions at the bottom of each type. 2010-04-09 20:43:58 +00:00
Campbell Barton
c169c5ddfe dont document parent classes funcs and properties 2010-04-09 20:04:37 +00:00
Ton Roosendaal
7e29154751 Reversion of commit that changes order for keymaps. I thought it
would work for all cases, but greasepencil broke! Needs to get
a bit more thinking or design.
2010-04-09 13:16:17 +00:00
Matt Ebb
9cea4b3658 Fix for previous commit - better to just use NewRender rather than GetRender 2010-04-09 07:47:57 +00:00
Matt Ebb
4333027a1d Fix [#21529] Operator.report() has inconsistent behaviour with newlines 2010-04-09 07:00:27 +00:00
Matt Ebb
d776172cf7 Attempted fix for [#21491] rendering from the api does not work
Render was hanging on to old callbacks from interactive wmJob render when used 
as a blocking render from py API.
2010-04-09 04:57:50 +00:00
Matt Ebb
e695dced72 Fix [#21949] View center seg fault
Operator needed a better poll function
2010-04-09 01:44:24 +00:00
Matt Ebb
77833847ee Patch from Xavier Thomas: Use vertex arrays for drawing image editor vector scope
too, making it a lot more efficient.

Also fixed issue with scopes height not being stored in file properly.
2010-04-09 00:44:35 +00:00
Dalai Felinto
c1a9d4d7a3 Bugfix: 21586 - UI problems with Tiled Textures (animatable for GE)
The problem was present in Blender 2.49, but it didn't produce any side effect.
glScale was changing the texture matrix and the matrix was never been reset. That messes up with UI drawing.
2010-04-08 20:58:18 +00:00
Ton Roosendaal
42db34b126 three things:
- ALT+Scrollwheel zooms backdrop in node editor
- Blender -d debug print will also print every event except mouse moves
  (needed to debug WM, some events are catched by OS)
- Changed order of keymaps... the default maps now are evaluated *after*
  the own custom maps, so you can make overrides or defaults.
2010-04-08 16:36:50 +00:00
Campbell Barton
39d3ff135f no functional change
- convert solidify edge crease values into chars once rather then for each edge.
- sort vertex was checking the array all the time when it wasnt needed.
2010-04-08 16:08:06 +00:00
Campbell Barton
d8b2b388a7 bugfix [#21812] Crash with -b -P on blend files saved with older blender versions.
from Elia Sarti
2010-04-08 14:39:16 +00:00
Ton Roosendaal
eedce6b322 Bringing back code style to how WM was made.
Check this diff to see difference... mixed styles in 1 file are not OK!
2010-04-08 13:12:53 +00:00
Arystanbek Dyussenov
1c031d968b Merge -c 28089 from COLLADA branch into trunk. 2010-04-08 11:57:23 +00:00
Campbell Barton
23e6ada74f bugfix [#21929] linking in groups into a linked in scene is possible and those groups can't be deleted
- Disallow this and report a warning in the console when it happens.
 - File selector operators now report in the global report console.
 - Cleared some warnings.
2010-04-08 11:46:52 +00:00
Matt Ebb
df395faf22 Fix 'Region to Loop' not updating mesh selection modes properly 2010-04-08 11:26:10 +00:00
Matt Ebb
be3abe7b68 Fix for previous FFMPEG commit, needs extra version ifdefs 2010-04-08 06:10:41 +00:00
Matt Ebb
7693bbf484 Fix [#21890] YUV->RGB: Color clamping 16-235 in all motion pictures (ffmpeg)
Patch by Troy James Sobotka - this uses options in newer FFMPEG versions to 
convert the full 0-255 YUV range of imported imagery to RGB, rather than 
clipping at 16-235.

This functionality is not available yet in an official FFMPEG release 
(current precompiled version in /lib for osx at least is v0.5.1 from 2009) so this 
won't take effect in that situation, but if you've got a newer ffmpeg on your system
it will work.
2010-04-08 03:26:49 +00:00
Thomas Dinges
b2330d44d2 * Texture Mapping Panel could raise an error, missed check for an active texture slot. 2010-04-07 18:08:30 +00:00
Ton Roosendaal
11b52ae30a The daily node commit: brought back panning background image.
For now it is on ALT+MiddleMouse. The view2d code eats the shift+mmb,
which is not necessary, but will have to ask Joshua to be sure. 

Probably tomorrow it's shift+mmb as for 2.49.
2010-04-07 17:06:22 +00:00
Nathan Vegdahl
54b12df3bc Added tongue and neck rigs. The neck rig is quite solid, I think, and is working well in production on Durian. The tongue rig is a bit hacky, but I'm adding it for now since we're using it in Durian.
Also added pupil dilation to the eye rig type, and made the finger rig type work with two-digit fingers.
2010-04-07 14:46:06 +00:00
Joshua Leung
8bf6e2d09c Auto Keyframing:
Made 'PoseLib', 'Pose Paste', and 'Transforms' use the active KeyingSet instead of a hardcoded one if there is an active KeyingSet and the 'Only Insert for Keying Set' option is enabled in the User Prefs.

Also, made sure that for transforms, the active KeyingSet is provided with the data being modified instead of having them retrieve this from the context (which may miss a few items).

---

While making the changes for pose paste, made pasting poses not destroy the existing properties on the bones if the buffer bones didn't have any properties to replace the old ones with. IMO, this seems a bit too destructive if they don't get replaced, but perhaps in some cases not removing causes some problems with bad poses?
2010-04-07 11:27:59 +00:00
Brecht Van Lommel
e81c198e9a Disable part of commit #28064, this also clears the path on any file giving
problems with file saving, proper fix will come later.
2010-04-07 10:25:43 +00:00
Brecht Van Lommel
c66b0a32ca Fix crash in file with image editor that was saved after using scopes. 2010-04-07 10:12:24 +00:00
Matt Ebb
9bf395e7cd Fix [#21940] Hotkeys conflict in Edit mode between (fill, beauty fill) and (make/clear F-gon)
Removed make/clear f-gon hotkeys, rarely used and people who want them can bind it 
themselves anyway.
2010-04-07 09:35:14 +00:00
Matt Ebb
9acba540db Fix [#21756] Texture paint "quick edit" sending wrong path on unsaved scenes
* Made it use the temp directory in user preferences when the .blend file hasn't been saved yet
* Made bmain->name (wrapped as bpy.data.filename) contain an empty string when 
there's no .B25.blend and no file saved, rather than "<memory2>".

This is a good candidate for consistent file path api, retrieving temp dirs / project-
specific temp dirs / etc...
2010-04-07 09:07:06 +00:00
Brecht Van Lommel
45ce1c003d Modes are now toggled on using operators on load if the file was saved in
that mode. This ensures proper initialization happens like creating the
cursor or building an acceleration structure. It also means edit and
particle mode are now saveable.

Not sure yet if this is a good feature, though personally I like being able
to load my exact state again after saving, but maybe entering edit mode is
too slow in some cases? It's easy to make it work only for the sculpt/paint
modes again if wanted.

This fixes bug #21004 about a missing sculpt cursor on load.
2010-04-07 08:27:13 +00:00
Thomas Dinges
f4e312dd1b Revert a crappy line from revision 28060. 2010-04-07 05:48:52 +00:00
Matt Ebb
50726e7eb3 Fix [#21677] mouse dragging the translated object doesn't release the object
after a while

Drag code was inadvertently changing the eventstate->type, which isn't 
necessary. Patch #21723 by Anthony Edlin fixes this. Thanks!
2010-04-07 05:39:24 +00:00
Tom Musgrove
4fb5e5ce35 more functions to stubs.c 2010-04-07 02:14:46 +00:00
Matt Ebb
9bb23d93b0 Clarify tooltip for 'Align to View' option for adding objects -
It can only align to 3D view when adding the object from a 3d View (eg. shift A), 
not the top level add menu.
2010-04-07 01:51:32 +00:00
Matt Ebb
7efe41bc22 Fix [#21257] Renders blank images when audio clip is present.
Only render sequencer when there are non-audio strips on the timeline.
2010-04-07 01:21:10 +00:00
Matt Ebb
c960dc9401 [#21931] Rotate Edge CW inverted with CCW
Edge rotate directions were seemingly switched (when looking at geometry with face 
normal pointing at view), so flipped them.
2010-04-07 00:54:13 +00:00
Matt Ebb
58a38bfc08 Fix [#21760] Snap to Origin doesn't work
Removed the 'Snap selected to origin' operator, it was dysfunctional and other operators 
contain better functionality to do the same things.
2010-04-07 00:43:06 +00:00
Ton Roosendaal
6996d7b032 Brought back:
Node R-key: read scene layers (from temp buffers)
     SHIFT+R: read full sample layers.
2010-04-06 17:47:21 +00:00
Brecht Van Lommel
2a1644401e Fix #20365: new render window does not respect Windows taskbar at top of screen. 2010-04-06 17:11:38 +00:00
Brecht Van Lommel
be6d0ca63b Fix #21166: changing image file path does not update texture preview. I've
made it regenerate previews and icons now for this case. Depsgraph for all
datablocks could solve this much nicer..
2010-04-06 16:53:48 +00:00
Brecht Van Lommel
7b4536b3a9 Fix #20911: automatic bone weights work poorly when vertex lies
exactly on a bone, tweak epsilons to make this work better.
2010-04-06 16:25:06 +00:00
Brecht Van Lommel
080c49d176 Fix #21545: geometry node front/back incorrectly depended on camera angle, can
actually be implemented simpler now.
2010-04-06 10:24:57 +00:00
Joshua Leung
2275b69ff8 Quick fix to NLA-Baking for Beorn:
Group baked F-Curves by bones instead of by transform type.
2010-04-06 10:07:24 +00:00
Brecht Van Lommel
268e057e78 Area Swap: fix memory leak and access to freed memory. 2010-04-06 09:36:35 +00:00
Brecht Van Lommel
40273931a6 Fix, python changes to array properties were not yet calling update
and notifiers like other properties.
2010-04-06 09:11:33 +00:00
Brecht Van Lommel
86b38129c6 Fix #21402: python operator redo properties not refreshed. Now sends a
NC_WM|ND_HISTORY notifier on registering an operator.
2010-04-06 09:07:39 +00:00
Matt Ebb
c3f64b15ca Tweak/code shuffle to make disabled buttons draw nicer on nodes. 2010-04-06 09:05:00 +00:00
Brecht Van Lommel
4af2b61684 Fix #21393: some render error messages were not passed to the user. 2010-04-06 08:47:20 +00:00