Commit Graph

22660 Commits

Author SHA1 Message Date
Joerg Mueller
2fbfd11f8d Fix for [#24654] Sound Actuator doesn't find the file when Blender is reopened. 2010-11-13 13:44:45 +00:00
Ton Roosendaal
c1dec420b0 Bugfix #20382
Fixed old annoyance in Search menu, with a load of object-mode 
operators showing up in editmode. 
It's much cleaner now, but it will take further work and 
investigation to have context & polls work satisfying for all cases.
2010-11-12 17:35:51 +00:00
Ton Roosendaal
17ab7466a7 Makefile fix for compiling with quicktime. 2010-11-12 16:14:31 +00:00
Campbell Barton
b1c9e599d4 bugfix [#24661] Object.find_armature() only works on meshes 2010-11-12 15:05:57 +00:00
Ton Roosendaal
0b23f03503 Bugfix #24335
ZCombine node in compositor ignored alpha values. Enabling it
would break compatibility though, so it's a tickbox option now.

Patch provided by reporter, Martin Lubich. Thanks!
2010-11-12 14:59:01 +00:00
Brecht Van Lommel
e83ef4efc5 Related to #24653: added scene.collada_export() function, to use instead of an
operator for external render engines, since operators should not be called in
the render() callback.
2010-11-12 14:36:58 +00:00
Campbell Barton
0a467d5183 bugfix [#24682] Render artifacts with mat node 2010-11-12 12:45:55 +00:00
Campbell Barton
a102c07f7d add back red tint for zero user datablocks. 2010-11-12 11:49:33 +00:00
Campbell Barton
ee7bf4dab5 take delta's into account when applying the objects matrix (dloc, drot, dsize).
Now object_apply_mat4() can be used as the reverse of object_to_mat4().

Noticeable result is fly mode and 'Apply Visual Transform' dont jump when deltas are used, also means setting matrix from python works as expected.
2010-11-12 11:16:04 +00:00
Campbell Barton
73a91bc548 fix for vec * matrix always returning a 3D vector. 2010-11-12 09:06:50 +00:00
Mitchell Stokes
d43d5d7690 Getting BLF to work with the Blenderplayer. 2010-11-12 07:16:33 +00:00
Campbell Barton
4f4bd27512 bugfix [#24665] mathutils.Matrix initialization is counter-intuitive and generates bugs
was printing transposed, also nicer printing.

>>> from mathutils import Matrix
>>> Matrix()
Matrix((1.0, 0.0, 0.0, 0.0),
       (0.0, 1.0, 0.0, 0.0),
       (0.0, 0.0, 1.0, 0.0),
       (0.0, 0.0, 0.0, 1.0))

was...
Matrix((1.000000, 0.000000, 0.000000, 0.000000), (0.000000, 1.000000, 0.000000, 0.000000), (0.000000, 0.000000, 1.000000, 0.000000), (0.000000, 0.000000, 0.000000, 1.000000))
2010-11-12 02:50:57 +00:00
Campbell Barton
a34f525a21 bugfix [#24660] (vector * matrix) fails, (matrix * vector) succeeds
- Reverse vector * matrix multiplication order. now this matches how numpy works.
- Disallow 'matrix * vec' and 'quat * vec', now it raises an error.
- Add missing in-place multiply 'vec *= quat'

Many scripts will need to be updated for this but at least it will error rather then failing silently.
2010-11-12 01:38:18 +00:00
Nathan Letwory
44e36b5156 Revert the reversal :) 2010-11-11 22:12:49 +00:00
Nathan Letwory
9860832820 Fix compile problems for msvc. 2010-11-11 22:09:09 +00:00
Joshua Leung
bc3ea2cb66 Revert r33023
Was causing compile troubles with MSVC:
wm_operators.c
C:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE\io.h(322) : error C3163: '_write': attribute
s inconsistent with previous declaration
        C:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE\io.h(224) : see declaration of '_wri
te'
scons: *** [C:\blenderdev\b250\buildvc\source\blender\windowmanager\intern\wm_operators.obj] Error 2
2010-11-11 22:05:17 +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
Sergey Sharybin
0d488e00c8 System console toggling for MinGW
Define WINVER=0x0501 for MinGW due to some stuff requres this winver, but
MinGW's default is 0x0400 (thanks AlexKu for point)

Better to replace all #include <windows.h> with #include "BLI_winstuff.h" to
avoid possibility of different functions prototypes in different modules.
2010-11-11 20:32:28 +00:00
Sergey Sharybin
b96bd0a732 Fix for definitions checking. Now it should work with MinGW. 2010-11-11 19:28:10 +00:00
Nathan Letwory
3e01338094 Also !defined(FREE_WINDOWS) on appending operator. 2010-11-11 19:04:57 +00:00
Guillermo S. Romero
5aa9d804c9 SVN maintenance. 2010-11-11 19:00:52 +00:00
Andrea Weikert
c0da754d8d == filebrowser ==
When loading .blend file (F1) open the filebrowser with the most recently used .blend file. Another lost feature from 2.49 back ;)
2010-11-11 18:53:10 +00:00
Nathan Letwory
df487be82f wrong language :° 2010-11-11 18:24:03 +00:00
Nathan Letwory
fc667fdb8e For now have console toggling only when compiled with MSVC.
Need to find out how to enable for MingW too.
2010-11-11 18:21:57 +00:00
Janne Karhu
c69bc46c98 Smoke now uses the start and end of cached data properly when outside the cached frame range.
* Patch by MiikaH.
2010-11-11 17:59:52 +00:00
Janne Karhu
1659e3fca7 Bug fix: memoryleak when using smoke heat/velocity data as texture
* In addition to fixing the memleak it's much better to always copy the voxeldata to the texture. Smoke data can change at any time due to some changes, so we can't depend on that data.
* Thanks to MiikaH for finding this!
2010-11-11 17:03:09 +00:00
Ton Roosendaal
4d9684ebdf Bugfix #20027
Texture Nodes didn't work for normal output anymore anymore.
It was caused by new handling of bump code using derivatives,
but that's not how texture nodes work now. In case a texture
has nodes, it uses the old (2.4) method.
2010-11-11 16:50:04 +00:00
Ton Roosendaal
d9e7e71675 Bugfix #19534
Crash in Array Modifier. The merging-vertices option 
(mysteriously named "First Last") caused invalid indices in
faces to exist. This commit solves the crash, but not the
cause. For that Ben Batt's assistance is needed.
2010-11-11 15:33:28 +00:00
Nathan Letwory
a583ea5096 Apply patch [#24579] Fix for Win; Show/hide console
Submitted by Alexander Kuznetsov
2010-11-11 13:44:51 +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
Ton Roosendaal
5aea6c2181 Bugfix #24659
Material buttons: Wardiso slope button was not of type 'factor' (slider), 
making it very hard to use.
2010-11-11 11:53:30 +00:00
Campbell Barton
36901ff5bb use BLI_snprintf, fixed building on msvc. 2010-11-11 11:46:45 +00:00
Ton Roosendaal
4d0a5451c5 Makefile fix: new compile flag moved to correct Makefile 2010-11-11 11:06:15 +00:00
Campbell Barton
dfb27a3494 fix mistake in makefile 2010-11-11 11:01:15 +00:00
Joshua Leung
98e98bf5d2 Bugfix #24621: NLA strips move insensitively across tracks
This was a 2-part bug:
1) "Track index" (i.e. "index of NLA track within NLA Stack") was calculated incorrectly when the transform data is created. A typo meant that this was actually "index of strip within original track" 

2) Strips were flying around madly vertically (especially for downward movements, and with extreme difficulty for upwards) as the track index was being updated incorrectly. I suspect at the time I was misreading it as trackIndex = ... vs trackIndex += ..., though it obviously looked wrong looking at it now!
2010-11-11 10:27:24 +00:00
Joshua Leung
e3db157074 NLA Transform Bugfix:
Transforming strips into locked tracks meant that they were not unlocked properly (i.e. they stayed as temporary "meta" strips). This is now taken into account as part of the step which checks if there's any space for them in those tracks.
2010-11-11 10:07:33 +00:00
Sergey Sharybin
7d80a4a067 Get rid of G.rendering in curve_to_displist 2010-11-11 10:01:10 +00:00
Sergey Sharybin
cf673cf80a Fix #24643: Nurbs Surface Preview resolution overrides render resolution
NURBS surfaces always used resol{u,v} from spline and never used curve's render resolutions.
Now, if curve's render resolution is non-zero then it'll override resolution for all
splines when rendering (in needed direction only, ofcource).
2010-11-11 09:56:39 +00:00
Campbell Barton
030253cdf6 fix for building, also use const char in more places. 2010-11-11 07:51:12 +00:00
Campbell Barton
80a650dfb1 BLF_draw functions take an extra length argument, so the console drawing doenst need to swap in NULL chars to draw word wrapping. 2010-11-11 06:35:45 +00:00
Guillermo S. Romero
59cfe81085 Reorder library linking. 2010-11-11 06:22:55 +00:00
Guillermo S. Romero
85ac881d31 SVN maintenance. 2010-11-11 06:03:41 +00:00
Campbell Barton
e47d84026d make console wrapped text drawing into its own function in preparation to move report view out of the console space type. (no functional changes)
also remove incorrect messages about the original copyright in the GPL headers.
2010-11-11 05:45:55 +00:00
Joshua Leung
662b35a2c0 Preview Range operators were broken in Graph Editor 2010-11-11 05:11:37 +00:00
Ton Roosendaal
3b5ad51719 Bugfix #24524
Mesh loop tools allowed to be invoked outside 3d region (properties).
That caused crash, it needs 3d view code to work.
2010-11-10 18:00:51 +00:00
Ton Roosendaal
8df02539ba Bugfix #24570
When using a startup.blend without user prefs (themes etc) saved, Blender
crashed. Added a provision to then fall back to the compiled in startup, 
including a print in console.
2010-11-10 16:49:42 +00:00
Ton Roosendaal
278124669b bugfix #24573
View2d custom keymap to put zoom in RMB didn't work, the modal handler
still has a hardcoded check for mouse/keys. Fixed it for this case quickly,
added wiki todo and warning in code.
2010-11-10 16:22:19 +00:00
Ton Roosendaal
b8a3daea31 Bugfix #24603
Using ALT+B clipping and CTRL+R loopcut in wireframe mode, made 3d drawing
disappear. Was caused by faulty setting of zbuffering on in loopcut code.
2010-11-10 15:10:54 +00:00
Ton Roosendaal
97984e6562 Fix #24615
Light Cache resolution for volumetric material could be set to zero,
causing crashes.
2010-11-10 14:09:32 +00:00