Commit Graph

10593 Commits

Author SHA1 Message Date
Janne Karhu
c10ba357ca Fix for bug: [#8816] File saved with Explode modifier crashes blender
-Explode modifier didn't check for empty psmd->dm at file loading
2008-03-31 22:11:10 +00:00
Janne Karhu
fd46b91650 Fix for bug: [#8817] Particleradius doesn't update until changing the amount of particles
-Reactor particles didn't initialize their birth times etc. properly when cache was cleared
2008-03-31 21:51:46 +00:00
Janne Karhu
0ce8fe1ec4 Fix for bug: [#8818] Particle reflecting strange from a simple plane 2008-03-31 20:54:00 +00:00
Brecht Van Lommel
0efe0aa27b Bugfix: world exposure and range settings were applied twice to SSS materials. 2008-03-31 20:02:27 +00:00
Janne Karhu
5e3ff914cb Fix for bug: [#8302] Particle atributes (Materials) wrong behavior
-Particle texture calculations weren't using the mtex->def_var properly
-Texture buttons didn't set proper update flags for hair
2008-03-31 19:57:40 +00:00
Janne Karhu
1ccf92aecd Fix for bug: [#8782] particle mode issues 2008-03-31 19:03:18 +00:00
Kent Mein
e16a766620 I let a sqrtf in by accident when commiting this patch.
converted to sqrt for solaris and other platforms.

Kent
2008-03-31 17:01:08 +00:00
Campbell Barton
fe2d134a07 fix for odd error with image loading broke normal file loading 2008-03-31 14:57:09 +00:00
Campbell Barton
009e5d00cb TimeLine PyType was not getting initialized, causing auto-completion in the interactive console to crash. 2008-03-31 14:29:40 +00:00
Campbell Barton
8f48888bff fix for [#8795] Unable to load an image into Image Texture Type 2008-03-31 08:30:10 +00:00
Joshua Leung
5b73d96fd5 == Armature Tools - Separate (not yet functional) ==
Initial commit of Separate tool for Armatures. Currently, the functionality is hidden behind a temporary patch, as there are still issues to be worked out (crashes under certain conditions and a re-linking issue). It may remain like this for the release if I can't get it to work correctly.

Note:
- Hotkey for separate is Ctrl-Shift-P (it's a bit clumsy, and isn't consistent with P for separate for meshes, but Select Parent(s) is better as P)
2008-03-31 03:40:47 +00:00
Ton Roosendaal
bdfe2a6e0a Fix for change in default behaviour of adding objects: (commit oct 2007)
- The new default remains to add not aligned, not in editmode.
  But, this is only for new users (in .B.blend default)
- It's nicer  we don't change this for everyone automatic.

  Means: people who like the new options have to set the buttons in user
  menu and save .B.blend.
2008-03-30 18:08:55 +00:00
Brecht Van Lommel
e433465fc6 Fix for crash with UV unwrap without an image window open. It really
shouldn't be using the image window but for now this fixes the crash.
2008-03-30 17:54:06 +00:00
Ton Roosendaal
8c3c1c4a0b The next testing build, the 2.45-16, nicked "Gamera". :)
(Also: removed the ugly arbitrary 2 x rgb color hack that tried to make
shadeless color "useful" in opengl solid mode. Without overflowing
color it at least now shows the color you created.)
2008-03-30 17:29:32 +00:00
Andrea Weikert
d9de141077 == bugfix ==
fix for [#6950] Blender crashes when .blog file top line is 160 characters or more
- made sure BLI_convertstringcode doesn't return more than 240 chars 
- went through all callers and fixed places where string passed to BLI_convertstringcode was too short
- TODO: look into increasing sample->name and sound->name too, I prevented crashes, but filename might get shortened.
2008-03-30 16:18:01 +00:00
Peter Schlaile
cc4858cde0 == Sequencer ==
Added IPO-support to color strip.
2008-03-30 14:23:15 +00:00
Peter Schlaile
0eda26d126 == Sequencer ==
This fixes: [#8792] unable to de-assign ipo's from sequence-strips
2008-03-30 09:06:56 +00:00
Martin Poirier
3c0466ed31 [#8796] 2.46RC1 -- Incorrect Tool Tip on Ray Transp Gloss Button 2008-03-30 01:53:05 +00:00
Martin Poirier
2f1420301d [#7289] Orbit around selected in edit mode goes crazy with no verts selected
[#8784] orbiting around selection bug + a few kind of a must features (partial fix)

As suggested by Ton, keep last center and use that when nothing selected.

I don't really like it though as it wouldn't work ok when changing scene  or when using a different 3D view and is somewhat non trivial to explain (it's not the last selection, it's the last used orbiting center).
2008-03-30 01:47:06 +00:00
Campbell Barton
68f1f2b08d own typo in py api 2008-03-29 15:20:41 +00:00
Campbell Barton
73ca8a6fbf with displacement baking, white should be high 2008-03-29 15:16:33 +00:00
Campbell Barton
8960f53676 some fixes for python baking function
needed to add a small value to the baking distance for it to include faces of that distance (maybe should make this happen from the user interface too)
2008-03-29 14:50:05 +00:00
Joshua Leung
3ac7a415f7 Minor tweaks to action-groups code, while trying to track down some bug for broken. 2008-03-29 10:23:51 +00:00
Ken Hughes
4c2b6c4bee Tools
-----
Bugfix #6961: in certain circumstances, array modifier would use deleted
copies of merged vertices, resulting in memory corruption and crashes.
2008-03-28 17:03:34 +00:00
Kent Mein
967917ace9 This is patch:
[#8766] Scons build does not take into account WITH_BF_OPENEXR for 
	source/creator
Submitted By: Stephane SOPPERA

Fixes -F EXR on the commandline...

Kent
2008-03-28 14:55:49 +00:00
Kent Mein
35db540b49 This is patches:
[#8578] imbuf for DDS textures: minor bugs fixed 
	(syncing with upstream nvidia texture tools)
[#8727] imbuf for DDS textures: fix for DXT5 alpha channel corruption

Submitted by our DDS person, Amorilia

Kent
2008-03-28 14:44:31 +00:00
Campbell Barton
e7651c53c3 baking normals could crash in rare cases because the intersection data wasn't copied when the lambda was bigger then the previous or initialized.
python baking script had a simple error.
2008-03-27 16:28:21 +00:00
Campbell Barton
08bc0efecb made editmode only force smooth shading when vcols are present (as joe suggested)
pythons api's image.unpack() was broken
2008-03-27 11:52:58 +00:00
Brecht Van Lommel
c2ae2b51cf Fix for bug #8769: SSS materials were sometimes not rendered with nodes
due to recent bugfix.
2008-03-27 11:44:36 +00:00
Brecht Van Lommel
4dee3dc0ef Fix for bug #8771: hide deselected in particle editmode didn't work
correct. Also made it not do a depth test when editing in wire mode,
was using outdated depth buffer even.
2008-03-27 11:10:18 +00:00
Joshua Leung
bc518579a6 Fixed compiler warnings. (unused vars) 2008-03-27 05:12:14 +00:00
Nicholas Bishop
09e48b406b == Sculpt ==
Removed Painting Mask button from view3d header when in sculpt mode.
2008-03-27 01:11:48 +00:00
Brecht Van Lommel
5b6763fec3 Fix for bug #8595: texture mipmaps with gauss filter didn't work correct,
gave black borders.
2008-03-26 22:14:40 +00:00
Nathan Letwory
4e941b2eb7 * add stub for GLUByte stipple_quarttone[]; 2008-03-26 21:31:33 +00:00
Brecht Van Lommel
5183788fd6 Fix for bug #8746: the fake user button for datablocks was not a toggle
button, while it should be.
2008-03-26 20:17:50 +00:00
Campbell Barton
0599a56468 make solid faces draw vertex colors in editmode (they used to use only one of the faces colors per face) 2008-03-26 20:17:20 +00:00
Campbell Barton
87b5701b26 resetting defaults didnt set the some colors, added face dot size and color as uv/image theme options 2008-03-26 19:38:59 +00:00
Brecht Van Lommel
750836ec7d Fix for bug #8609: radius setting for hair child particles not symmetrical.
Bug might have actually caused more issues, there were some assumptions
that ParticleCacheKey and ParticleKey structs had members in the same order,
but the rotation was in a different place.
2008-03-26 18:34:24 +00:00
Brecht Van Lommel
b37cf7d75d Fix for bug #8407: merging vertices at first/last did not
preserve UVs correct.
2008-03-26 17:56:14 +00:00
Ken Hughes
2976a38fd9 Python API
----------
Bugfix #8615: NMesh.update() did not check if faces had less than 3 vertices, so would create bogus faces.  

Also discovered in the process that documentation and error message for Mesh.assignVertsToGroup() was wrong.
2008-03-26 17:29:20 +00:00
Brecht Van Lommel
972b0a5218 Fix for bug #8713: edge loop delete did an undo push too much. 2008-03-26 16:46:04 +00:00
Campbell Barton
4197e37200 made editmode face copy menu appier with when there is no active face (without options that required an active face)
active face drawing didnt always work since it used the last selected element for drawing.
moved stipple into glutil.c rather then using 128 bytes in the stack for each stipple draw.
2008-03-26 16:06:25 +00:00
Brecht Van Lommel
2af78ac944 Fix for bug #8750: depremul in the image texture code should check
with an epsilon rather than 0.0f, could give random spots otherwise
with e.g. calcalpha + negalpha.
2008-03-26 15:25:56 +00:00
Brecht Van Lommel
ba1f58ea73 Fix for bug #8747: normal map tangents didn't work correct with
splitting of non-flat quads.
2008-03-26 14:58:34 +00:00
Campbell Barton
5fa576a89f UV Unwrap (lscm, project from view, cube etc) now default to correcting for the active images aspect ratio.
This is now default but can be disabled in the UV Calculation panel. At the moment its called "Image Aspect" but another name could be better.
2008-03-26 14:50:29 +00:00
Campbell Barton
6184c07474 fix for [#8732] Unwrap Project from View not matching View
the active face could be unselected. now unwrapping with no UV layer will assign the current image to the selected faces.
2008-03-26 11:56:41 +00:00
Brecht Van Lommel
2a47d02975 Bugfix: selecting or muting an ipo curve in the action editor
would be undone on redraw with an ipo window open in editmode,
or with show keys enabled in the ipo window.
2008-03-26 11:27:52 +00:00
Campbell Barton
192021f068 check for null data when using ffmpegs swscale (for corrupt/partially corrupt videos) 2008-03-25 20:30:33 +00:00
Campbell Barton
4bf152fbcd lib error message was inconsistent when changing texture channels, enabled it for texture colorbands 2008-03-25 19:27:49 +00:00
Campbell Barton
1b94e21f9c selecting similar edges (Shift+G in edge mode) didnt flush selection from edges to faces, so you could have all edges of a face selected without the face being selected. 2008-03-25 16:16:11 +00:00
Joshua Leung
74e835342e Two constraints related fixes
* Bugfix #8599d: 
When using the ChildOf constraint on bones without parents, with cyclic-offset in action the effect of the cyclic-offset was applied twice. Added a bone option to make the effect of cyclic-offset not be applied to rootbones which have the option 'enabled'. 

In the UI, this is presented in the opposite way. It is represented by the 'Offs' button beside the parent-bone selector in the Armature Bones panel when in EditMode.

* Head/Tail setting and Constraint Channels:
Added back in checks to see if the head/tail IPO-curves for Constraint Channels can get applied for the target constraint. I had removed these when applying the patch, but I'd overlooked the fact that users could add an IPO-curve for this from the IPO-editor, potentially mucking up the behaviour of some constraints.
2008-03-25 10:36:36 +00:00
Campbell Barton
34494425fa Raise the limit for long filenames.
a few times peach guys have had the play button fail with "stack smash" warnings in the terminal and play button not working.

This fixes a reproducible crash where blender would segfault when pressing play on long filenames, and hopefully fixes odd user reports where pressing play quits X11 or reboots their system.
2008-03-25 09:40:06 +00:00
Joshua Leung
8c46419f3b Bugfix:
Resizing two text windows stacked one over the other, crashed in certain cases (i.e.  when dragging the border between them down to the header of the bottom one). Was caused by division by zero, resulting in a SIGFPE (floating point exception).
2008-03-25 09:17:58 +00:00
Campbell Barton
662c57d63e fix for [bf-blender-Bug Tracker][8739] image selector never exits.
This fix was made to the file selector weren't applied to the image selector.
Made file and image selector use same python api function.
2008-03-25 09:00:00 +00:00
Campbell Barton
a2dd82570a patch only to redraw on mouse move, broke continues zoom. 2008-03-25 08:30:39 +00:00
Matt Ebb
753a0e9746 Tweaks to labels on brightness/contrast node 2008-03-25 06:10:03 +00:00
Joshua Leung
88c2358f4f Bugfix #8736: Follow Path constraints does not work for Bones
This appears to be a long-standing bug, and it only affected the Follow-Path constraint as it was the only one which was dependant on time-based changes. An oversight in the depsgraph code meant that Follow-Path constraints on armature bones were not evaluated, unless there was an Action or some NLA-Strips for that armature. 

I've added a new flag to pose->flag (POSE_CONSTRAINTS_TIMEDEPEND) which only gets set/cleared by update_pose_constraint_flags. This flag indicates that the depsgraph needs to do an update for such cases, and will require going in/out of EditMode to set this for old files. 
It's been implemented as such to avoid having costly searches when trying to run animations realtime (as is done for modifiers).
2008-03-25 05:32:04 +00:00
Peter Schlaile
7de584337f == Sequencer ==
Forgot directory in input panel for sound files...
2008-03-24 21:01:36 +00:00
Peter Schlaile
8d2a0a566f == Sequencer ==
A lot of fixes for anim_startofs / anim_endofs:
* crashed when striplen was 0 and startstill / endstill still in use
* made it work for Audio (HD and RAM)
* made it work for Image Sequences
* added a new cutting tool, that uses anim_startofs / endofs instead of
  startofs / endofs. This is now the default and called "hard cut"
* moved old cutting method to "Shift-K" and renamed it "soft cut"
2008-03-24 17:35:01 +00:00
Campbell Barton
2b7e4f4d4a subdivide would give weired results especially when used after proportional edit mode because vertex temp flags wernt zero'd 2008-03-24 11:55:43 +00:00
Joshua Leung
659db30d50 Fix for transforming constraint-channel keys that appeared in a group-channel, but belonged to constraint channels that were collapsed and/or hidden. 2008-03-24 11:28:49 +00:00
Joshua Leung
186320f458 Peach Request: Fix for little bug in Action Editor
Quick patch for action-filtering system, so that the IKEY (Insert Key) -> "Key Only Selected" doesn't key in channels that are hidden. Documented the convoulted logic there a bit. 

Note: constraint channel keys in group channels seems to have become broken again at some point before this commit
2008-03-24 11:25:34 +00:00
Campbell Barton
dbd64ac751 uv stretch display respect image aspect ratio,
tooltip correction (bug #8660)
ghostwinlay.c was missing string.h include
2008-03-24 09:00:39 +00:00
Benoit Bolsee
b20f6e27ff Commit patch #8724:
This patch modifies the BL_ConvertMesh method from the data conversion module in order to reduce the number of polygon
material objects that are created.

Normally, there should be only one material object for each material bucket(the group of meshes that are rendered together
with a single material). However, the number of materials that are created right now in the converter is much higher
and eats a lot of memory in scenes with large polygon counts. This patch deletes those material objects(KX_BlenderMaterial)
that are used only temporarily in the converter(and are now deleted only when the converter is destroyed, at the end
of the game).

For a cube that's subdivided 7 times(90+ k polygons) I get 200 MB usage in the game engine in 2.45 and 44 MB with a
svn build with this patch applied if the "Use Blender Materials" option is activated in the Game menu.
2008-03-23 23:12:40 +00:00
Campbell Barton
f162428bd2 [#8717] ZOOM with CTRL+mouse drag (consumes all cpu)
patch from André Pinto to stop zoom from redrawing when the mouse didnt move.
2008-03-23 18:53:45 +00:00
Peter Schlaile
0f8fee26cf == Sequencer ==
Additional fixes to metastrip handling. The code is now even shorter :)
2008-03-23 18:32:20 +00:00
Nicholas Bishop
a572fb0e45 Fixed bug #6079, sculpt mode thin mesh problem
Calculating the area normal now checks each normal against the angle of the camera. If the normal is pointing away from the camera, it is ignored.
2008-03-23 18:08:20 +00:00
Peter Schlaile
c52695bafe == Sequencer / ImBuf ==
Fixed a long standing bug in IMB_dupImBuf: refcounter should be better 0
within the duplicated ImBuf...

Finally removed this strange STRIPELEM_META mumbo jumbo.

On a way to asset management: made METAs behave like true input strips:
* proxying should work
* input filter options should work (including transform and color balance :)
* IPOs now work in replace mode
2008-03-23 17:56:44 +00:00
Campbell Barton
096fcb3c8f fixed UV selection hide/reveal in the UV window. 2008-03-23 16:27:34 +00:00
Stefan Gartner
4a6d75af27 added support for linux on pa-risc 2008-03-23 12:59:26 +00:00
Daniel Genrich
cd3cf57842 Collision Modifier: 1. Bugfix: Enable hiding in modifier stack again, 2. Bugfix: Recalculate bounding volume if GUI setting changed 2008-03-22 22:08:46 +00:00
Campbell Barton
7e69e77609 lasso select for nodes 2008-03-22 20:54:09 +00:00
Benoit Bolsee
6615f8b74f BGE correction: AddRef() on source object of property actuator to protect against crash if the source object is deleted (bad game design anyway) 2008-03-22 14:47:42 +00:00
Martin Poirier
1d0e1d5406 [#8693] Align view to selected works differently called from menue then from shortcut
The header menu was sending the wrong axis (off by one) to the tool.
2008-03-22 13:27:34 +00:00
Joshua Leung
95e781c601 == Action Editor - Preview Range (Ctrl-Alt-P) ==
Quick feature for setting Preview Range in Action Editor: the hotkey Ctrl-Alt-P sets the Preview Range so that it matches the extents of the active action.
2008-03-22 11:06:51 +00:00
Jean-Luc Peurière
126ab7974d NDOF support added to trunk from ndof branch.
The latter is now obsolete and will be soon 
removed.

Some tiny build tweaks for darwin committed
in preparation of bigger changes for proper
SDK suport both on intel and ppc
2008-03-22 01:39:11 +00:00
Joshua Leung
1930a925c8 Removing some compiler warnings.
(Note to who-ever made all the changes referring to r.scemode:
r.scemode is an int, not a short!)
2008-03-21 23:10:23 +00:00
Nicholas Bishop
76f34bcdd9 Fixed bug #8597, Subsurf error
This was actually an error with the array modifier. Merging vertices would sometimes create degenerate faces (e.g. face.v1 == face.v3)
2008-03-21 23:06:15 +00:00
Benoit Bolsee
7e031b7a39 Correction on BGE fixes:
- check that an object has been created before setting the physics environment
- check that there is an active camera before using it
- when a camera is deleted, remove it from m_cameras list
2008-03-21 22:44:12 +00:00
Ton Roosendaal
4e8f06604f This commit disables fix for revision 14202 effectively.
The claim was:
Bugfix: don't do full sample merging on re-rendered layers in
the compositor.

But result was that rendering didn't happen at all for scenes
with a composite.

I also don't understand the commit, seems like it's incomplete?
2008-03-21 22:26:26 +00:00
Campbell Barton
4c29f3cf09 added camera shiftx/y for the UVProject modifier 2008-03-21 21:03:31 +00:00
Brecht Van Lommel
c49316a9eb Bugfix: don't do full sample merging on re-rendered layers in
the compositor.
2008-03-21 17:37:24 +00:00
Campbell Barton
d3116dd4d2 use Z depth for the ortho border zoom also, if there is no depth values set then fallback to previous method. 2008-03-21 17:13:35 +00:00
Jean-Luc Peurière
32b5138e64 update to trunk r14199 2008-03-21 17:00:40 +00:00
Campbell Barton
df1ba7da75 make border zoom ignore backfaces in texture mode and zero alpha areas of billboards. 2008-03-21 16:27:43 +00:00
Jean-Luc Peurière
473ba6ac71 corrected minor error of the merge
object center button was duplicated
2008-03-21 15:31:02 +00:00
Peter Schlaile
76adde8d19 == Sequencer ==
Forgot REDRAW in obscure cases...
2008-03-21 10:54:40 +00:00
Peter Schlaile
217401b593 == Sequencer ==
Reworked seq_cut completely. Now it is equivalent to: dup and set startofs /
endofs, which is what most people probably expected...

Fixes:
[#8388] Sequencer Cut on empty meta
[#8546] Sequencer: 2 different problems cutting some metastrips
2008-03-21 10:47:59 +00:00
Joshua Leung
9e9d88d7fc Two changes:
* Attempted fix for bug #8599c (inserting new keyframes mucked up existing IPO-Keys). Now it calls make_ipokey() regardless of whether they exist already (if ipokeys are being shown in the IPO-Editor). This might be a bit slower on some files.

* 'Auto-Sync PoseLib' button is now only visible when there's a PoseLib
2008-03-21 09:46:37 +00:00
Nicholas Bishop
e78d2b360a Fixed bug #8180, Simple subdivide modifier performs catmull-clark on single edges
Removed an incorrect check for original vertices on whether any faces used them.
2008-03-21 03:08:04 +00:00
Nicholas Bishop
b7bdc6c7a1 Fixed bug #8514, sculpt: pivot last and undo
Undoing in sculpt mode correctly returns to previous pivots now.
2008-03-21 01:10:32 +00:00
Campbell Barton
734db8cbff Objects with transp and xray work with border zoom (shift+b),
zooming behind an object to one with xray now works, transp objects work like normal objects.
2008-03-20 21:43:32 +00:00
Daniel Genrich
6111ad6551 Collision commit was messed up - reported by Mr. Barton :) 2008-03-20 20:28:51 +00:00
Campbell Barton
107bed0170 shift+b zoom in perspective mode, (apricot feature for better navigation on large maps) 2008-03-20 20:03:13 +00:00
Daniel Genrich
af8c68ddc4 Cloth structure names update: Sorry about this commit, it will kill all your cloth settings in old files but I had to do it before release because naming convention was really bad in cloth (e.g. using SimulationSettings instead of ClothSimSettings in DNA). Same for some structure in CollisionModifier but with no sideeffects. 2008-03-20 18:28:40 +00:00
Daniel Genrich
9362772ffd Collision modifier: Update from mvert was using only static update, now uses dynamic update and catches therefore also faster movements - reported by nudelZ (#blendercoders) 2008-03-20 18:16:11 +00:00
Martin Poirier
f59d353af2 == Skeleton Generator ==
Not time for documention and polishing before release, hiding the panel behind (rt == 42) check.
2008-03-20 15:16:33 +00:00
Stephen Swaney
cd3a910bf5 typo for REDRAWBUTSOBJECT broke build. 2008-03-20 14:54:57 +00:00
Joshua Leung
a4aee00c61 Bugfix #8599b:
Insert-Key in Action Editor didn't work correctly for Constraint Channels yet. This was because a pointer to constraint data was not being obtained (it's now hacked to assume that 'Influence' is being keyed all the time).
2008-03-20 11:31:52 +00:00
Joshua Leung
4eb0614c5b * Bugfix #8599a:
Deleting the first Action Channel in an Action Group acted odd. In some cases it crashed, other times it corrupted stuff (removing all subsequent Action Channels). Was missing a call to remove the Action Channel from group(s).

* Fixed whitespace in many places...
2008-03-20 10:50:46 +00:00
Ken Hughes
3c7308614a Python API
----------
Bugfix #6543: Blender.Library.Load() could segfault if called more than once
with a library of different endian type.  In the process discovered an
invalid memory reference in other another function calling library_append().
Thanks to Brecht for the pointers on tracking this old bug down.
2008-03-20 04:59:59 +00:00
Nathan Letwory
1a4bbf988c * add notification of new hotkey in object select menu 2008-03-19 22:59:11 +00:00
Stefan Gartner
8c704ec5a6 test commit: fix autothreads on irix 2008-03-19 22:58:16 +00:00
Nathan Letwory
1ced0b5e10 * add CTRL-I for Invert Selection in object mode.
* sanitise IKEY handling block for view3d (really weird if-structure)
2008-03-19 22:46:06 +00:00
Nathan Letwory
b400168e6d * enable hotkey Ctrl+I (Invert Selection) in UV editor 2008-03-19 21:53:00 +00:00
Brecht Van Lommel
cdc74b9081 Bugfix: scaling in posemode didn't translate bones properly. 2008-03-19 15:50:50 +00:00
Brecht Van Lommel
2f477a5a4d Bugfix: cloth crash applying effector forces to quads. 2008-03-19 13:32:16 +00:00
Campbell Barton
6222b1ca99 saveRenderedImage dosnt work in backgrond mode, so added a warning in the docs and an exception if called. 2008-03-19 10:37:19 +00:00
Campbell Barton
66374761e1 added a warning in python api abot ipo curves. minor change to curve.c 2008-03-19 09:26:01 +00:00
Campbell Barton
bedbbbbb42 [#8596] curve editing is unstable
Though I could not reproduce the crash, the example file would always reference an invalid pointer.
2008-03-18 20:54:52 +00:00
Campbell Barton
201a234c44 added a check so baking works in background mode (through a python script) 2008-03-18 17:34:00 +00:00
Campbell Barton
f47aec78c9 fix for [#7962] anomalous mem usage with pydrivers.py scripts 2008-03-18 14:49:31 +00:00
Campbell Barton
b10726a2ad patch from Paul Rotering (pryon)
[#7124] knot vector access for SurfNurb
2008-03-18 13:42:38 +00:00
Brecht Van Lommel
65b0e6245d Fix for bug #7986: tab in edit introduces garbage values. 2008-03-18 10:55:07 +00:00
Daniel Genrich
7c1a21c385 Collision Modifier/KDOP: Rearrange things to be more generic. Also fix possible crash if not enough memory there. 2008-03-17 21:45:40 +00:00
Brecht Van Lommel
db7457a6bb Fix for bug #6758: material nodes were not working correct with
ray mirror and transparency, was using the same stack for all
recursion depths, now creates new stacks as needed.

Fix for bug #8592: crash saving non-float image as 16bit tiff.
2008-03-17 20:57:16 +00:00
Campbell Barton
bc7b18131b Running scripts with Blender.Run() would crash when reloading. 2008-03-17 19:58:11 +00:00
Brecht Van Lommel
3de98a7cc1 Fix for bug #8093: editmesh knife with axis constraint + snapping rounded
down some values unnecessarily, which made it not entirely exact.
2008-03-17 18:49:30 +00:00
Brecht Van Lommel
25cf799ef8 Fix for bug #8464: particle system didn't attach to mesh in
case of a deforming modifier after subsurf.
2008-03-17 18:43:10 +00:00
Campbell Barton
aee5cb7762 - [#8589] Scripts which use file selector not working correctly
Fix for another bug I introduced with persistent python windows.
also removed unused var.
2008-03-17 18:01:59 +00:00
Campbell Barton
f96064d33c missing header 2008-03-17 16:45:20 +00:00
Martin Poirier
ade184e819 [#8586] 2.46 RC1 - Soft falloff problem
Manipulator event handler was out of sync with transform event handler.

The real hotkeys to increase/decrease the area of influence are Alt PAD+ / PAD- and PageUp / PageDown (has been that way in non-manipulator transform for years now).
2008-03-17 15:46:07 +00:00
Brecht Van Lommel
cfeeda4dc7 Bugfix: sequencer gamma cross didn't work correct on float buffers. 2008-03-17 13:43:03 +00:00
Brecht Van Lommel
2e95780d3d Bugfix: keyframes of hidden actions in action groups were still
drawing in the group row.
2008-03-17 13:02:48 +00:00
Brecht Van Lommel
b04c58c81a Bugfix: image texture with texface would not render sometimes, wasn't
setting image user correct. Also found that this texface rendering was
not threadsafe for > 2 threads.
2008-03-17 12:27:17 +00:00
Brecht Van Lommel
119d5e8526 Fix for bug #8537: converting particles to a mesh didn't work well. 2008-03-17 10:15:38 +00:00
Geoffrey Bantle
9aa6aafd4c -> Bevel tools sharp flag fix
Sharp flags were not being preserved by bevel modifier. Fixed now.
2008-03-17 03:50:22 +00:00
Brecht Van Lommel
a748c244a2 Fix for bug #8560: grouping nodes could lead to multiple links to the
same input, if the nodes had been grouped separately before.
2008-03-16 20:49:10 +00:00
Brecht Van Lommel
f48c8dea16 Fix for bug #8582: compositor math node did not output any result
without input connections.
2008-03-16 20:04:41 +00:00
Brecht Van Lommel
f2099aabf1 Fix for bug #6850: after zooming into the curve widget it could
become impossible to zoom out (with clipping enabled).
2008-03-16 20:01:52 +00:00
Brecht Van Lommel
411ade3036 Fix for bug #8516: mesh deform modifier didn't work correct with
transformed cage objects.
2008-03-16 19:38:04 +00:00
Peter Schlaile
bb98264bcc == Align ==
Bugfix:

Fix for "Use pupmenu menu to select align orientation. Faster workflow than always having to change the current transform orientation beforehand."

memory corruption... (theeth ? )
2008-03-16 17:43:59 +00:00
Peter Schlaile
f31d4af178 == Sequencer ==
This fixes:  	

[#8554] Sequencer: some metastrip plays audio outside of its limits
2008-03-16 17:34:39 +00:00
Willian Padovani Germano
dae503187c == PyNodes ==
Ongoing updates to the Blender.Node Python API:

- Changed Blender.Node.node to Blender.Node.Scripted to be more specific and conform to bpython API.
- Added a Blender.Node.Socket type to be used to define node sockets in a PyNode script. Also, socket type is inferred from the value(s) passed in, instead of also being defined by the script author.
- Added attr access to input and output sockets in the __call__ method. Ex: an input socket called 'color' can be accessed as self.input.color now.

These changes break existing pynode scripts, which shouldn't be a problem yet, of course, since we're still finishing this feature for 2.46. The wiki page and sample .blends have already been updated:

http://wiki.blender.org/index.php/BlenderDev/PyNodes
http://wiki.blender.org/index.php/BlenderDev/PyNodes/API
2008-03-16 17:24:29 +00:00
Martin Poirier
6a2e538d98 == Align ==
Use pupmenu menu to select align orientation. Faster workflow than always having to change the current transform orientation beforehand.
2008-03-16 16:00:00 +00:00
Campbell Barton
26daad49a3 [8559] Python script that uses FIleSelector and has an error in it segfaults Blender
Want completely fixed, check if the script was removed before running the callback.
2008-03-16 14:28:00 +00:00
Ton Roosendaal
bead422c1f Bugfix #8581
Edit mode stats draw, option "global stats", did not calculate correct
angles.
2008-03-16 12:42:54 +00:00
Ton Roosendaal
5fd2e74eff Bugfix #8361
Menu with group names, object buttons, didn't support large amounts yet.
Now it switches to collumn view.
2008-03-16 11:36:43 +00:00
Ton Roosendaal
92464ed680 Bugfix #8526
Sometimes a panel could not be moved, this caused by fact that its
parent was sometimes not visible. Old bug actually. :)

There's a lot of editbutton panels btw... so there it happened.
2008-03-16 11:09:34 +00:00
Joshua Leung
87c54fb784 Constraints PyAPI:
Added support for Limit Distance constraint
2008-03-16 10:26:13 +00:00
Jean-Luc Peurière
bf4e4234ae fixes for bugs #8496 & #8497
large sources defines cannot be used on darwin 
and windows
2008-03-16 08:08:28 +00:00
Joshua Leung
eab07f7322 Constraints Py-Api:
Fixed up Py-API access to PyConstraints. Also updated docs to reflect these changes.
2008-03-16 06:28:40 +00:00
Joshua Leung
e3d0508882 == Proxies + Bone Groups ==
Bone Groups are now always copied from the source armature. This does mean that it isn't possible to have 'local' bone groups as for constraints, but it is better than losing bone groups from the original.
2008-03-16 03:51:00 +00:00
Joshua Leung
f50eb9c0c9 Todo #8511: Lock Transform Channels does not work with Clear Transforms
When transform channels (i.e. LocX, RotY, ScaleZ) are 'locked' in the Transform Properties panel, the Clear Transform Tools (Alt-G/R/S) didn't respect these.

Also fixed typo in 3D-View Menu item.
2008-03-16 03:11:57 +00:00
Joshua Leung
a4283a139a == Action Editor - Fixed 2 Long-Standing Annoyances ==
This commit fixes two long-standing annoyances which were confusing to new users and also posed workflow bottlenecks:

* A 'Fake-User' button is now displayed beside the delete button. This makes it clear to the user that actions have a fake user (by default), and provides quicker access to them when 'deleting'.
** Related to this, I've adjusted the tooltips for the fake-user button when there is a fake user, to clear up any ambiguity over the purpose of the button.

* When an object has an Ob-IPO (i.e. keyframing object transforms), it is now possible to simply use the 'Add New' entry in the Action Editor to make a new action for the object, with the IPO assigned to a new Action. This removes the need to open an IPO-window just to do that.
2008-03-16 01:31:14 +00:00
Daniel Genrich
500554bca2 Bugfix in kdop - one leaf possible missing 2008-03-15 22:55:49 +00:00
Brecht Van Lommel
bc7aeb7062 Bugfix: radiosity was slower due to return lost in code refactor. 2008-03-15 20:59:26 +00:00
Benoit Bolsee
b194059b7f BGE fix: ghost objects created with AddObject actuator will retain their ghost property 2008-03-15 20:52:03 +00:00
Campbell Barton
a5d31fc28e fix for [#8559] Python script that uses FIleSelector and has an error in it segfaults Blender 2008-03-15 18:53:42 +00:00
Campbell Barton
02295c491f forgot to free memory for python api mesh.getTangents() 2008-03-15 17:19:53 +00:00
Benoit Bolsee
435a49dfe7 New rayCastTo() python method for KX_GameObject:
rayCastTo(other,dist,prop)

Look towards another point/KX_GameObject and return first object hit within dist with a property that match prop, None if no object found or if it does not match prop.

Parameters:
  other = 3-tuple (xyz coordinates) or object reference (target=center of object)
          (type = list [x,y,z] or object reference)
  dist = max distance of detection (can be negative => look behind)
         If 0 or omitted => detect up to other
	 (type=float)
  prop = property name that object must have
         If empty or omitted => detect any object
         (type=string)
2008-03-15 17:08:58 +00:00
Benoit Bolsee
d0b36bfeaa fix bug with unitialized variable (thanks VS) 2008-03-15 16:51:58 +00:00
Benoit Bolsee
f70d9ceed0 fix bug in walking through script linked list (thanks VS) 2008-03-15 16:49:22 +00:00
Brecht Van Lommel
2004e08964 Fix for bug #8565: bug rendering tangent space normal map on
solid faces, caused by recent commit to solve spikes problem.
2008-03-15 16:29:49 +00:00
Stephen Swaney
bb48a75c37 compiler warning cleanup 2008-03-15 14:41:47 +00:00
Kent Mein
4f553a59f7 Added a WITH_BF_OPENMP option
to add in proper flags for openmp support.

Kent
2008-03-14 20:11:43 +00:00
Campbell Barton
8e126216b0 added mesh.getTangents() to the python api 2008-03-14 18:53:51 +00:00
Brecht Van Lommel
7f556ba4ef Fix for bug #8467: a softbody hair crash. 2008-03-14 18:21:06 +00:00
Campbell Barton
56d7a612e3 fixed a possible use of uninitialized orco coords if the mesh has more totverts then keyblock elements. 2008-03-14 18:16:54 +00:00
Brecht Van Lommel
fcdf2d694f Fix for bug #8555: geometry node front/bake was broken.
Fix for bug #7418: texture ipo's didn't show for textures in node materials.
Fix for part of bug #6758: node materials in other node materials could
miss texture coordinates.
2008-03-14 18:08:27 +00:00
Ricki Myers
a8e8993355 Fix for linking error when building with blenderplayer. 2008-03-14 14:15:37 +00:00
Brecht Van Lommel
3f9f89fc18 Bugfix: baking selected to active did not include materials with
Traceable disabled.
2008-03-14 10:56:09 +00:00
Jean-Luc Peurière
8787ad14a2 update to trunk r14104
blenderbuttons is good
and it compiles
2008-03-14 09:59:44 +00:00
Campbell Barton
3bec4f5f87 my last commit to readfile.c crashes some files, must look further into this. 2008-03-14 09:46:53 +00:00
Stephen Swaney
ea460298bb cleanup some warnings about signed vs unsigned comparison 2008-03-14 01:08:23 +00:00
Daniel Genrich
93f8961cdb Bugfix for cloth vectorblur (back to normal) 2008-03-14 01:07:09 +00:00
Jean-Luc Peurière
a68a7f42b0 resolved conflict state with HEAD r14096
blenderbuttons still bad

not let this compile
2008-03-13 23:54:02 +00:00
Daniel Genrich
df27557b81 Cloth header cleanup, bugfix (again) in wind calculation, bugfix for not working fields mindist GUI option 2008-03-13 22:45:36 +00:00
Campbell Barton
2c78254f96 line commented out with the orange merge is needed for library linking when linking in objects that indirectly point to groups that are already directly linked in. This has been a problem for many peach scenes. but saving and reloading made the objects appear. 2008-03-13 21:41:28 +00:00
Brecht Van Lommel
6e24c23176 Fix for bug #5641: edge slide doesn't work straight after remove
doubles. Also fixed some 64bit warnings in this file.
2008-03-13 21:14:11 +00:00
Brecht Van Lommel
15215493bf Two bugfixes:
- Clicking below the list of items in the shift+f4 databrowser could crash.
- Text window crashed when making it zero size.
2008-03-13 19:40:36 +00:00
Martin Poirier
ecc4ccf68f Fix compiling error.
Typo in text.c
2008-03-13 18:47:55 +00:00
Brecht Van Lommel
174c09c718 Fix for bug #8421: curve shape keys were resetting the curve radius to 0.0. 2008-03-13 18:36:33 +00:00
Ricki Myers
217db14ae7 Fix for bug #8548: txt_copy_sel in txt_cut_sel only copied string in a local buffer.
Changed txt_cut_sel to use the clipboard.
2008-03-13 17:30:29 +00:00
Brecht Van Lommel
abc79af975 Fix for bug #8437: white borders in envmap reflection, cause was
change in imagewraposa that de-premuls colors, while envmap code
was expecting premultiplied colors.
2008-03-13 15:55:35 +00:00
Jean-Luc Peurière
526d0bec47 final (??) work on NDOF branch
it is now in a state where it can be safely
merged with trunk.

Note: basic icons were provided but I'm not
an icondesigner and working in a 16x15 grid
is way too small for me, so feel free to 
change them.
2008-03-13 15:40:24 +00:00
Ricki Myers
b3dab57232 Patch #8488: UserPref to switch between pan/paste on MMB in text editor. 2008-03-13 15:12:19 +00:00
Daniel Genrich
4d3c9e88ed Fixing compiler wanring 2008-03-13 14:38:29 +00:00
Brecht Van Lommel
89247a96e9 Fix for bake texture antialiasing commit, AO with constant jitter
didn't work. Also fixed a warning.
2008-03-13 14:36:17 +00:00
Brecht Van Lommel
6ca3b4a441 Fix for use of uninitialized value in active edge drawing. 2008-03-13 12:38:00 +00:00
Brecht Van Lommel
733f65cb53 Fix for bug #8387: active uv layer index could become invalid in editmode. 2008-03-13 11:42:32 +00:00
Brecht Van Lommel
e625266162 Fix for bug #8385: vector inputs of texture node in the compositor did
not work correct, it should use bNodeStack inputs like other nodes.
2008-03-13 11:26:18 +00:00
Brecht Van Lommel
363dcf9535 Fix for bug #8476: changing lamp buttons or new W-key lamp editing
didn't update shaded mode, and W-key didn't update lamp preview render.
2008-03-13 10:58:36 +00:00
Brecht Van Lommel
4afa6a2594 Attempted fix for bug #8441: editing in particle mode with limit visible
enabled is really slow on some cards. Cause might be the large number of
calls to glReadPixels, now it uses the same system as sculpt to store
the depths once, code was already there for the case those depths were
available, it just wasn't storing them.
2008-03-13 10:27:35 +00:00
Joshua Leung
923b577b26 Bugfix #8543:
New keyframes were being added 1 place too early. With just two keyframes, this resulted in keyframes being added in reverse order (which lead to problems until scrubbing timeline)
2008-03-13 10:24:40 +00:00
Brecht Van Lommel
2c937f0769 Fix for bug #8502: AO was being computed unnecessarily if it was
excluded from the combined pass and the AO pass was disabled.
2008-03-13 09:58:21 +00:00
Daniel Genrich
691e2d5ca8 Temporary bugfix [#8474]: Smaller fluid objects had no velocity assigned for vectorblur usage. All zero elements now get the average velocity assigned. I tried to fix the real source - but that seems to be somewhere in the fluids code not reachable by me 2008-03-13 01:24:59 +00:00
Peter Schlaile
db15615b5b == Quicktime ==
Hopefully fixes:
[#8518] 2.46RC1: Blender doesn't render animation correctly with Quicktime and 30/1.001

FPS was off by a factor of 10 in export...
2008-03-12 22:01:57 +00:00
Peter Schlaile
4eb225b817 == Sequencer ==
This fixes:
[#8521] Sequencer: numpad zoom is inconsistent
2008-03-12 21:53:09 +00:00
Benoit Bolsee
3444d6612a Delta Loc/Rot/Scale Ipo curve are now supporting in the BGE with the following limitations:
1. All Ipo channels are now independent. 
In Blender 2.45, all 3 Loc Ipo channels were automatically set
together. For example, having just a LocX Ipo channel was sufficient
to fix the X, Y and Z coordinates, with the Y and Z value taken
from the object original Y and Z location in Blender. The same
was true for the 3 Rot and the 3 Scale Ipo channels: the missing
channels were assumed to have constant value taken from the object
original orientation/scale in Blender.
With this patch, all Ipo channels are now independent. 
THIS WILL CREATE BACKWARD COMPATIBILITY PROBLEM if you omit to
define the 3 channels of a same type together in your Blend file:
the undefined Loc, Rot, Scale coordinates of the object will
be influenced by the parent/spawner Loc/Rot/Scale in case the
object is a child or dynamically created.

2. Delta Loc, Rot, Scale are now supported with the following
limitations:
- The delta Loc/Rot Ipo modify the object global (NOT local)
location/orientation
- The delta Scale change the object local scale
- The delta Ipo curves are relative to the object starting
Loc/Rot/Scale when the Ipo was first activated; after that, the
delta Ipo becomes global. This means that the object will return
to this initial Loc/Rot/Scale when you later restart the Ipo
curve, even if you had changed the object Loc/Rot/Scale in the
meantime. Of course this applies only to the specific Loc/Rot/Scale
coordinate that are defined in the Ipo channels as the channels
are now independent.

3. When the objects are converted from Blender to the BGE, the
delta Loc/Rot/Scale that might result from initial non-zero values
in delta Ipo Curves will be ignored. However, as soon as the
delta Ipo curve is activated, the non-zero values will be taken
into account and the object will jump to the same Loc/Rot/Scale
situation as in Blender. Note that delta Ipo curves with initial
non-zero values is bad practice; logically, a delta Ipo curver
should always start from 0.

4. If you define both a global and delta channel of the same
type (LocX and DLocX), the result will be a global channel equivalent
to the sum of the two channels (LocX+DLocX).
2008-03-12 21:33:24 +00:00
Brecht Van Lommel
598e075717 Baking now does material texture anti-aliasing if the OSA button is
enabled, result of that is mainly visible for image textures.
2008-03-12 20:22:05 +00:00
Brecht Van Lommel
d73ed401da Added two UV features (Apricot request):
- Alt+click edge loop select.
- Next to Align X/Y, Align Auto which will pick X or Y automatically,
  should give the expected result for nearly all cases.
2008-03-12 19:55:37 +00:00
Brecht Van Lommel
de718de316 Bugfix: recent insert keyframe optimization had an error in it
that made replacing the last keyframe not work correct.
2008-03-12 16:53:11 +00:00
Brecht Van Lommel
4cc603090e Action editor keys copy/paste did not create ipo curves if they didn't
exist yet, now it creates them if they are in the copy buffer.
2008-03-12 16:04:03 +00:00
Joshua Leung
85350f5eef Insert Keyframe Optimisations:
Now a binary search is performed instead of a linear one to see where to insert a keyframe. It also checks first whether the keyframe is out of the bounds of the existing ones (as most of the time, keyframes are inserted at the end of the array). 

When using the .BVH importer to import a particularly large file, the time taken to add the keyframes improved by about 1 second. Other factors probably limited the improvement seen.
2008-03-12 11:19:07 +00:00
Campbell Barton
af93553640 Moved recent addition of get/setPixelF to get/setPixelHDR and kept get/setPixelF limited to 0.0-1.0 range, to prevent existing scripts breaking. 2008-03-12 11:13:57 +00:00
Daniel Genrich
51c58f3ca2 Bugfix for wrong initial cloth settings pretending to be cotton 2008-03-12 10:41:47 +00:00
Campbell Barton
4c6ff955ed quick fix for null check that crashed blender when reading some files. 2008-03-12 10:20:45 +00:00
Campbell Barton
c8d9d60a99 Added python access to TEXFACE_ALPHA 2008-03-12 09:04:07 +00:00
Daniel Genrich
33a6bf610e Cloth bugfix for 1. reset of cloth sim during render with vector blur when cache was not protected, 2. fix of bad vector blur for cloth, put fluidsim like function in to get real speed vectors 2008-03-12 01:42:39 +00:00
Brecht Van Lommel
3c561ec216 Added an Alpha Convert compositor node, to convert between
premultiplied and key alpha.
2008-03-11 14:40:27 +00:00
Brecht Van Lommel
7f6889a63b Bugfix: render instancing didn't work correct with layer ipo's,
each instance should have it's own layer.
2008-03-11 12:29:59 +00:00
Joshua Leung
51a8a60d96 Bugfixes:
* Menus could no longer have their items accessed by number (i.e. W-5 didn't run merge tool in EditMode when accessed by keyboard). This was caused by my commit for BUTM (there was some extra code there that isn't really needed, but was causing havok). 
* NumPad can now be used for the above feature too now
* Typo in error message in Constraints PyAPI
2008-03-11 11:22:27 +00:00
Campbell Barton
294f884a7d fix for cam.setScale(), cam.setClipStart(), cam.setClipEnd() and
cam.setDrawSize(), they would raise errors when setting ints. but used not to.
better tooltips for Uv Stretch
2008-03-11 09:00:09 +00:00
Matt Ebb
eed5a7ec33 Tiny tweak, added a space in the node title between custom name and node type. 2008-03-11 05:31:50 +00:00
Matt Ebb
ef98283f6a * Small tweaks to the bevel modifier UI 2008-03-11 01:17:56 +00:00
Matt Ebb
a49aaa6b00 Increased the maximum allowed 'Max Dist' value in raytraced reflections 2008-03-11 00:45:44 +00:00
Benoit Bolsee
b1ef25663a BGE crash when using angV & linV actuator on static objects
The error was causing by the KINEMATIC flag not set automatically when the linear or angular velocity was set on static objects. Note that these actuators still won't work on static objects: the crash is fixed but not the actuator; linV and angV only work on dynamic objects. Fixing the linV and angV actuators on static object requires a bit more reflexion. For the time being, use dRot and dLoc on static objects.
Cleaned the code a bit: added systematic check on the physic controller presence before taking action.
2008-03-10 21:30:35 +00:00
Campbell Barton
2563733a5d stupid mistake for setting the bake mask (only masked half the faces), also exposed a possible bug since the malloc and null checks were done without mutex locking. 2008-03-10 20:58:53 +00:00
Brecht Van Lommel
4ecf0fffaf Fix for msvc compiler error in tiff saving. 2008-03-10 20:12:45 +00:00
Stephen Swaney
55b05d66a6 fix ugly code compiler warning: empty body in an if-statement 2008-03-10 19:32:20 +00:00
Brecht Van Lommel
59195b3e18 Fix for tiff 16bit saving commit, had memory leak. 2008-03-10 17:11:18 +00:00
Kent Mein
d5773b5c64 removed a duplicate line.
Kent
2008-03-10 16:59:08 +00:00
Daniel Genrich
cfc3a37a37 Another try to fix IRIX compile 2008-03-10 12:30:24 +00:00
Campbell Barton
2b42733105 Applied [#7076] Updated Python Image API to use float buffers in getPixelF/setPixelF
and added an image.updateDisplay() function to update imbuf->rect from imbuf->rect_float
also corrected some docstrings and epydocs
2008-03-10 12:17:58 +00:00
Brecht Van Lommel
0ec0f2a02f Add an option for saving/loading DPX with in log color space with
reference black, reference white and gamma.

Added 16 bit TIFF saving.

This needs more work to cleanup code and add 16 bit TIFF reading, but
committing it now so it can be tested.
2008-03-10 11:39:37 +00:00
Matt Ebb
397ece0008 * Updated the material preview so the 'hair' preview option
has UVs. Previously, it would show all noisy and messed up when
 using a UV texture.
2008-03-10 05:22:18 +00:00
Martin Poirier
cbfbe53ebe == Align to Transform Orientation ==
New rotation alignement fonction

Rotates objects/Pose bones to match the selected transform orientation.

Can be used to align to view, active object (normal) and custom transform orientations.

Accessible in the Object -> Transform submenu and through the hotkey Ctrl-Alt-A (which was previously a fall through for Apply but only Ctrl-A and Ctrl-Shift-A did anything special).

Can be eventually made to work in edit mode (not too hard).
2008-03-10 00:27:17 +00:00
Daniel Genrich
1a4f7a861e Cloth: Fixed wind force/speed calculation (was exploding with openmp before) 2008-03-09 22:55:49 +00:00
Benoit Bolsee
1f0ae739cb BGE memleak fix: OpenGL Display Lists not deleted when switching scene
This fix also improves performance of Display List for replica objects: Display List ID caching is now enabled for replica objects which avoids a tree search on each frame and for each replica.
2008-03-09 22:02:32 +00:00
Benoit Bolsee
52293831b2 BGE fix: game object to controller links consistancy maintained regardless of order of deletion
AddObject actuator forces last created object to hang in memory even after object is removed from scene => bad link between object and physic controller that causes Blender to crash in case a python script tries to use it (bad programming anyway). 
This patch avoids the crash by maintaining consistent links at all time.
2008-03-09 21:51:38 +00:00
Benoit Bolsee
822e51bd2d BGE memleak fixed: mesh/material not deleted when switching scene 2008-03-09 21:42:03 +00:00
Benoit Bolsee
ce7a21047f BGE memleak fixed: game actuator does not release file buffer 2008-03-09 21:37:01 +00:00
Peter Schlaile
ac8c39e58d == Sequencer ==
Added grab projection also to X- and Y-key to make it work like in 3d-view.
2008-03-09 20:50:43 +00:00
Peter Schlaile
af8d85256f == Sequencer ==
Removed sillyness on NUMPAD PERIOD that snapped CFRA to beginning of strip.
2008-03-09 20:25:57 +00:00
Campbell Barton
2299f0d946 masked/alpha baking commit was missing a null check for imbuf,
made textures also bake alpha
2008-03-09 18:06:48 +00:00
Campbell Barton
746888febd adjusted uv stretch angle error to show more errors for low values. 2008-03-09 17:32:32 +00:00
Campbell Barton
fc6577b6c3 replaced zero comparisons with FLT_EPSILON 2008-03-09 16:57:01 +00:00
Campbell Barton
47174e94ca removed printf and also removed some unneeded stuff, correct angles aren't needed since its only comparing the 2 angles 2008-03-09 15:07:01 +00:00
Campbell Barton
c6f423c1d2 optimized uv stretch display angle calculation 2008-03-09 14:49:12 +00:00
Campbell Barton
d9da14d8a7 fix for uninitialized variables in uv stretch drawing,
[#8428] 'Editmesh_active' theme colour not accessible via Python
bugfix problem where saving a theme would raise and error when ~/.blender didnt exist.
bugfix for file selector staying open (introduced with own undo resistant scripts)
2008-03-09 07:35:12 +00:00
Campbell Barton
a339bca9a1 uv stretch area display could flicker red sometimes, removed some GL settings that aren't needed. 2008-03-09 04:06:57 +00:00
Campbell Barton
6382acbc27 Added UV Stretch (area/angle) display options 2008-03-09 03:42:59 +00:00
Joshua Leung
ac750cf7a2 * Numeric input now works better for TimeSlide
* Removed a compiler warning
2008-03-09 03:41:13 +00:00
Campbell Barton
6f1b47d6af added snap cursor->active and adjusted snap menu order in toolbox and header menu's 2008-03-08 21:57:15 +00:00
Campbell Barton
027277fce0 * Bakeing fix for apricot, stop pixels being extended for parts of the image that are not being baked (useful for multiple objects)
* Added support for baking alpha, as well as extending alpha margins.
2008-03-08 21:35:38 +00:00
Ton Roosendaal
d7ef04a519 Long on the wishlist, quite simple even, and there it finally is:
Compositor:
  Muting option to temporary disable/enable nodes.
  Hotkey: press M on selection. It toggles.

Note: no menu entry yet, and drawing style could be tweakered...
2008-03-08 19:02:08 +00:00
Joshua Leung
19ec73c908 Bugfix:
Time-Slide transform tool in the Action Editor now works as well as it did before the Action-Keys transform refactor. However, numeric input is now broken as a side-effect of this.
2008-03-08 11:08:24 +00:00
Ricki Myers
b5cdd1f2d6 Changed getClipbaord and putClipboard functions to be more ghost like
Changed getClipboard to GHOST_getClipboard and putClipboard to GHOST_putClipboard

Removed ghost calls from blender and added the calls to winlay.h and ghostwinlay.c
This cleand up casts in drawtext.c
2008-03-08 04:22:52 +00:00
Joshua Leung
b1fcb254c4 * Clicking on constraint-buttons should now result in updates in the 3d-view without needing to move the mouse into the 3d-view first
* Added missing include
2008-03-08 03:02:36 +00:00
Joshua Leung
3e8b4ed8b6 The BUTM button type (used for 'R' button in StretchTo/LimitDist constraints) now acts like a button when clicked on. 2008-03-08 02:38:35 +00:00
Joshua Leung
b13cd8226e Bugfix #8478: Constraints PyApi for setting targetspace non-functional
Finishing off some unfinished business (from the multi-target constraints work), it is now possible to get/set target-space for constraints where this is relevant. 

For this to be possible, target-space setting(s) are now always presented as a list of ints, with each int representing the target-space setting for the relevant target. 

Constraints C-API note:
get_targets function now needs to return the number of targets the constraint can have
2008-03-08 02:16:37 +00:00
Janne Karhu
21dd86a159 Fix for bug [#8465] particle children for emitter particles doesn't render
-cached step didn't react to rendering and create child particles
-now emitter particle children can use the render amount too
2008-03-07 23:08:15 +00:00
Janne Karhu
64e76e7e02 Fix for bug [#8402] Hair particles don't react on changing of curve guides
-guide calculation was accessing wrong pointers in hair calculation
-now guides also respect the "apply effectors to children" - button, but not the "stiff" value
-disabled guide calculation for initial hair calculation as it's all done dynamically later
-few useless commented lines cleaned out
2008-03-07 22:39:54 +00:00
Campbell Barton
205ad1580c own missing null check 2008-03-07 22:39:45 +00:00
Campbell Barton
ff2cf42621 bugfix for [#8433] Retopo doesn't work with AutoMerge Editing.
Disable retopo while snapping, then run after. This means automerge happens first which is more useful.
2008-03-07 22:01:52 +00:00
Brecht Van Lommel
5b3dc15880 Normal map tangents are now not always averaged at vertices anymore,
but only when the UV's are connected. That fixes some artifacts when
baking and using tangent space normal maps. It does mean increased
memory usage because it now stores 4 tangents per face like UV's,
and increased processing time, but there's no simple way around that.
2008-03-07 15:38:56 +00:00
Campbell Barton
f13dc2aac1 snap menu order change, as suggested by Theeth, fix for own error with Window.TestBreak() 2008-03-07 09:33:18 +00:00
Joshua Leung
b4e13ae575 Another big purge of warnings. (Main culprits this time were Campbell and Geoffrey):
* no newline at end of file (2-3)
* uninitialised vars (1)
* unused vars (1-2)
* assigning/comparing pointers and ints (numerous)
* etc.
2008-03-07 03:24:23 +00:00
Campbell Barton
26c45844ac Attempt to fix [#6757] linked objects made "local" still not editable
But not sure exactly what the user is doing.
Made game logic work on linked objects and disabled "Add Material" for linked mesh data.
2008-03-06 23:45:17 +00:00