11 years agobuilding scons blenderlite would fail when building the player
Campbell Barton [Thu, 17 Sep 2009 15:35:25 +0000 (15:35 +0000)]
building scons blenderlite would fail when building the player

11 years agobugfix for LineIntersectLine()
Remigiusz Fiedler [Wed, 16 Sep 2009 22:13:48 +0000 (22:13 +0000)]
bugfix for LineIntersectLine()
- was imperfect calculation for points marking shortest distance for non-crossing lines in 3d

11 years agoRevert endianess test to 2.49 style.
Guillermo S. Romero [Mon, 14 Sep 2009 23:00:58 +0000 (23:00 +0000)]
Revert endianess test to 2.49 style.
Reported by jms.

11 years agoBGE bug #19294: applying torque on a dynamic object turns it into a rigid body.
Benoit Bolsee [Sun, 13 Sep 2009 19:39:04 +0000 (19:39 +0000)]
BGE bug #19294: applying torque on a dynamic object turns it into a rigid body.

11 years ago== FFMPEG ==
Peter Schlaile [Sun, 13 Sep 2009 19:22:36 +0000 (19:22 +0000)]
== FFMPEG ==

fixes 2.4-branch according to trunk:

update anim->curposition even if video frame decoding failed.
Fixes nasty issues with DV-decoding on broken frames.

Also: cleans up color conversion a little bit.

11 years agoUpdate project files
Benoit Bolsee [Sun, 13 Sep 2009 15:23:50 +0000 (15:23 +0000)]
Update project files

11 years ago[#19290] Blender.Load(filename) -> FILE_MAXDIR to FILE_MAXDIR + FILE_MAXFILE and...
Campbell Barton [Sun, 13 Sep 2009 08:41:13 +0000 (08:41 +0000)]
[#19290] Blender.Load(filename) -> FILE_MAXDIR to FILE_MAXDIR + FILE_MAXFILE and unused argument removed

only changed the FILE_MAXDIR -> FILE_MAXDIR + FILE_MAXFILE part
since its possible scripts use this undocumented arg.

11 years agoPatch [#19293] NearSensor: Changing distance and resetDistance from Python did not...
Campbell Barton [Sun, 13 Sep 2009 08:17:22 +0000 (08:17 +0000)]
Patch [#19293] NearSensor: Changing distance and resetDistance from Python did not take effect immediately
from Frank Papenmeier (hodka)
 --- from the submission
Changing the distance and resetDistance Properties of a NearSensor from Python did only take effect, once there was
a collision within the old radius.

The radius of the PHY_IPhysicsController was not set to the new values.

It is set at the end of the CheckResetDistance function. I moved the relevant code snippet from the Evaluate function
into a new function called SetPhysCtrlRadius in order to avoid duplicating code doing the same thing.

11 years agoPatch [#19315], Fix for Jpeg2000 alpha channel bug [#19280]
Campbell Barton [Sun, 13 Sep 2009 08:07:15 +0000 (08:07 +0000)]
Patch [#19315], Fix for Jpeg2000 alpha channel bug [#19280]
thanks to Albertas Vyšniauskas (thezbyg)

11 years agoremove minimal twist from 2.4x, is too much in development which changed in 2.5,...
Campbell Barton [Sun, 13 Sep 2009 07:35:31 +0000 (07:35 +0000)]
remove minimal twist from 2.4x, is too much in development which changed in 2.5, better keep in 2.5x then try have them in sync.

11 years agomoving trunk to branch
Martin Poirier [Sat, 12 Sep 2009 12:58:01 +0000 (12:58 +0000)]
moving trunk to branch

11 years agoCurve cleanup
Campbell Barton [Thu, 10 Sep 2009 02:57:25 +0000 (02:57 +0000)]
Curve cleanup

Renamed BevPoint's members
* x,y,z -> vec[3]; compatible with other functions.
* f1 -> split_tag; used by displist to set the splitting flag.
* f2 -> dupe_tag; used in curve.c to remove duplicates.

* flag -> dupe_nr; was being used as a counter for duplicate points.

* use arithb.c functions where possible.

* arrays for coords, tilt and radius were being allocated, then copied into the BevPoint's, now write directly into the values without allocing/freeing arrays.

11 years agoSmall code cleanup related to curves, to avoid cryptic names:
Brecht Van Lommel [Wed, 9 Sep 2009 18:09:03 +0000 (18:09 +0000)]
Small code cleanup related to curves, to avoid cryptic names:

renamed set_four_ipo -> key_curve_position_weights
renamed set_afgeleide_four_ipo -> key_curve_tangent_weights
added key_curve_normal_weights

11 years agono functional changes, use hole rather then dutch 'gat' for bevel lists and made...
Campbell Barton [Mon, 7 Sep 2009 07:42:12 +0000 (07:42 +0000)]
no functional changes, use hole rather then  dutch 'gat' for bevel lists and made some comments English.

11 years agoMathutils fix: Vector.reflect
Dalai Felinto [Sun, 6 Sep 2009 19:51:57 +0000 (19:51 +0000)]
Mathutils fix: Vector.reflect
* correct function for reflection and moving it to arithb.c
* note: 2.5 has an already more elegant solution for it (still wrong, but the code is cleaner).
Therefore the merge may need to be manual in that case.

Specifically in 2.5 we are doing:
if(!BaseMath_ReadCallback(self) || !BaseMath_ReadCallback(value)) return NULL;
And there we don't need to create a VectorObject *mirrvec; only to get the values.

Code used to test it:

* YoFrankie script probably needs to be fixed too.

11 years agoRename Vec3ToTangent VecBisect3, since that's what it does.
Martin Poirier [Sun, 6 Sep 2009 01:11:47 +0000 (01:11 +0000)]
Rename Vec3ToTangent VecBisect3, since that's what it does.

11 years agoremove MTC_ functions, (don't merge)
Campbell Barton [Sun, 6 Sep 2009 00:19:15 +0000 (00:19 +0000)]
remove MTC_ functions, (don't merge)

MTC_cross3Float -> Crossf
MTC_diff3Float -> VecSubf
MTC_dot3Float -> Inpf
MTC_Mat3CpyMat4 -> Mat3CpyMat4
MTC_Mat3MulVecd -> Mat3MulVecd
MTC_Mat3MulVecfl -> Mat3MulVecfl
MTC_Mat4CpyMat4 -> Mat4CpyMat4
MTC_Mat4Invert -> Mat4Invert
MTC_Mat4Mul3Vecfl -> Mat4Mul3Vecfl
MTC_Mat4MulMat4 -> Mat4MulMat4
MTC_Mat4MulSerie -> Mat4MulSerie
MTC_Mat4MulVec4fl -> Mat4MulVec4fl
MTC_Mat4MulVecfl -> Mat4MulVecfl
MTC_Mat4One -> Mat4One
MTC_Mat4Ortho -> Mat4Ortho
MTC_Mat4SwapMat4 -> Mat4SwapMat4

11 years agoOption to correct for 3D curve twist error. example before and after.
Campbell Barton [Sat, 5 Sep 2009 09:54:01 +0000 (09:54 +0000)]
Option to correct for 3D curve twist error. example before and after.
Access next to the "3D" edit button.

- open curves use the first points orientation and minimize twist for each new segment.
- cyclic curves calculate the least twist in both directions and blend between them
- AxisAngleToQuat replaced inline code.
- Notice the model on the right now has more even corners. added Vec3ToTangent to arithb.c.

11 years agoPart 2 of the 2.49b commit.
Ton Roosendaal [Mon, 31 Aug 2009 18:17:06 +0000 (18:17 +0000)]
Part 2 of the 2.49b commit.
We now should freeze and tag!

11 years agoPart 1 of the 2.49b commit
Ton Roosendaal [Mon, 31 Aug 2009 18:16:18 +0000 (18:16 +0000)]
Part 1 of the 2.49b commit

11 years agoMore MSVC project file update (don't propagate those changes to 2.5).
Benoit Bolsee [Mon, 31 Aug 2009 17:00:03 +0000 (17:00 +0000)]
More MSVC project file update (don't propagate those changes to 2.5).

11 years agoBGE bug #19020: The GE Torque actuator x -& y-axis do not work in 2.49a (winxp)
Benoit Bolsee [Mon, 31 Aug 2009 15:54:56 +0000 (15:54 +0000)]
BGE bug #19020: The GE Torque actuator x -& y-axis do not work in 2.49a (winxp)

11 years agoBGE bug #18963: obj.sendMessage() with 4 arguments crashes Blender.
Benoit Bolsee [Mon, 31 Aug 2009 15:28:43 +0000 (15:28 +0000)]
BGE bug #18963: obj.sendMessage() with 4 arguments crashes Blender.

11 years agoUpdate MSVC project files.
Benoit Bolsee [Mon, 31 Aug 2009 14:25:39 +0000 (14:25 +0000)]
Update MSVC project files.

11 years agocorrections to epydocs
Campbell Barton [Mon, 31 Aug 2009 13:03:38 +0000 (13:03 +0000)]
corrections to epydocs

11 years agobugfix [#19254] KX_PolyProxy returns improper VertexIndex with triangles, using ...
Campbell Barton [Mon, 31 Aug 2009 03:36:02 +0000 (03:36 +0000)]
bugfix [#19254] KX_PolyProxy returns improper VertexIndex with triangles, using .getVertexIndex() and .v1, .v2, etc.

Surprising this wasn't noticed before. Any mix of quads/tris caused the face verts of either quads/tries (whichever comes last).

Tested by exporting the KX_MeshProxy and re-importing as an OBJ.

This fix assumes there are only 2 m_darray's per face array which is currently true, but wont be if edge support is added back.

11 years ago== Sequencer ==
Peter Schlaile [Sun, 30 Aug 2009 19:38:22 +0000 (19:38 +0000)]
== Sequencer ==

Fixed hddaudio for sample formats other than 16 bit (8 bit e.g.)

11 years agofix for crash when a parent compound object didn't get a physics controller.
Campbell Barton [Thu, 27 Aug 2009 23:29:07 +0000 (23:29 +0000)]
fix for crash when a parent compound object didn't get a physics controller.
also show this in the UI.

11 years ago- BGE crash fix when casting a ray to the same location as the object from python.
Campbell Barton [Thu, 27 Aug 2009 06:55:54 +0000 (06:55 +0000)]
- BGE crash fix when casting a ray to the same location as the object from python.
- Incorrect Mathutils vector docstrings.
- last rayshade commit had an incomplete comment.

11 years ago[#18837] if a sunlamp is set to a too high energy, speculars turn black
Campbell Barton [Wed, 26 Aug 2009 16:05:01 +0000 (16:05 +0000)]
[#18837] if a sunlamp is set to a too high energy, speculars turn black

shr->spec values could be greater then 1.0, causing negative color when using (1.0-shr->spec[i]) as a blending factor.

When shr->spec[i] is 1.0 the mircol is ignored, so only mix the mircol when needed (like clamping the spec).

11 years agoremoving GameLogic.EvalExpression(),
Campbell Barton [Tue, 25 Aug 2009 12:43:25 +0000 (12:43 +0000)]
removing GameLogic.EvalExpression(),
unlikely anyone will miss it, was only accessible in 2.49, invalid expressions would crash, valid ones leak memory.

11 years agoSVN maintenance.
Guillermo S. Romero [Mon, 24 Aug 2009 23:09:35 +0000 (23:09 +0000)]
SVN maintenance.

11 years agoEDL importer for the sequencer.
Campbell Barton [Mon, 24 Aug 2009 11:34:48 +0000 (11:34 +0000)]
EDL importer for the sequencer.
- audio and video edits
- fades, wipes, speed changes (video only)
- importing from multiple reels

example import from final cut pro.

11 years ago[#18936] Particle Related Patch
Campbell Barton [Mon, 24 Aug 2009 10:37:39 +0000 (10:37 +0000)]
[#18936] Particle Related Patch
from Alberto Santos (dnakhain)

This also adds the option to duplicate a particle system with an object.

 --- description from the patch submission.

This patch includes my latest additions to the Python API developed for my Degree's Project.

It includes:
 - Particle
    - Vertex group dictionary in doc (to use with setvertexgroup/getvertexgroup)
    - Particle.New return psys (not specified in doc)
    - Draw As variable and dict
    - Strand render toggle
 - Object
   - psys variable in duplicate
 - Material
   - Strand render variables
 - Texture
   - Use colorbands
 - Lamp
   - Spot buffer type selection

11 years ago[#19029] Baking selected to active with nearby dupliframes objects crashes blender
Campbell Barton [Mon, 24 Aug 2009 10:16:39 +0000 (10:16 +0000)]
[#19029] Baking selected to active with nearby dupliframes objects crashes blender
from Jorge Hodge (watcom)

Confirmed the crash. baking didn't account for RE_RAY_TRANSFORM_OFFS in R.objectinstance.

11 years ago* changes to work with updated FFMPEG libs. Mainly build system. CMake files may...
Nathan Letwory [Mon, 24 Aug 2009 02:49:57 +0000 (02:49 +0000)]
* changes to work with updated FFMPEG libs. Mainly build system. CMake files may need changing too.

NOTE: remember to svn up in lib/windows!

11 years agoOption for MouseFocus sensor. only used when 'Mouse over any' type is set.
Campbell Barton [Sun, 23 Aug 2009 06:17:59 +0000 (06:17 +0000)]
Option for MouseFocus sensor. only used when 'Mouse over any' type is set.

Previously the only way to detect if the mouse moved over a different object was to enable true-level-triggering and have a python script detect the change.

When the Pulse option is set, focusing on a different object pulses true.
Python attribute is focusSensor.usePulseFocus.

This is similar to the collision sensors pulse option where changes in the set of collision objects generates an event too.

Found this functionality missing when trying to make a logic demo that used mouse-over with overlapping objects.

11 years agomissed this in last commit. keyboard event manager was stored twice.
Campbell Barton [Sat, 22 Aug 2009 14:19:27 +0000 (14:19 +0000)]
missed this in last commit. keyboard event manager was stored twice.

11 years ago- BGE, Some sensors, stored the event manager in 2 places (became confusing to do...
Campbell Barton [Sat, 22 Aug 2009 10:51:21 +0000 (10:51 +0000)]
- BGE, Some sensors, stored the event manager in 2 places (became confusing to do changes in this area)
- Change compiler warnings for linux/scons/C++

11 years agobug fix #18982
Jens Ole Wund [Fri, 21 Aug 2009 12:49:21 +0000 (12:49 +0000)]
bug fix #18982
non mesh objects missing initializers

11 years agofix for own bug added since 2.49a,
Campbell Barton [Fri, 21 Aug 2009 03:06:36 +0000 (03:06 +0000)]
fix for own bug added since 2.49a,
2.49a tries to remove the object from the conversion list every time. Now remove from the conversion list directly without being apart of the remove object function.

11 years ago== Sequencer ==
Peter Schlaile [Sun, 16 Aug 2009 14:52:05 +0000 (14:52 +0000)]
== Sequencer ==

Forgot coverity id: CID 598

11 years ago== Sequencer ==
Peter Schlaile [Sun, 16 Aug 2009 14:43:30 +0000 (14:43 +0000)]
== Sequencer ==

Make coverity scan happy and check for input strip on speed control map

11 years agohad support for single triangular brush commented when it works ok.
Campbell Barton [Sat, 15 Aug 2009 19:28:28 +0000 (19:28 +0000)]
had support for single triangular brush commented when it works ok.
thanks to j michaelson for pointing out.

11 years agogameObject -> blenderObject mapping was being created but wasnt needed.
Campbell Barton [Fri, 7 Aug 2009 03:51:28 +0000 (03:51 +0000)]
gameObject -> blenderObject mapping was being created but wasnt needed.
Added utility func tag_main for (un)tagging every ID in a Main database with LIB_DOIT.

11 years ago[#19206] Fix MD2 Vertex Normal Export
Campbell Barton [Thu, 6 Aug 2009 22:24:14 +0000 (22:24 +0000)]
[#19206] Fix MD2 Vertex Normal Export
from Calvin Loncaric (marvinx03)

[#18965] Blender Load and Run need fully qualified specs
[#18966] getMaterials not used
from Roger Wickes (roger)

11 years ago[#19035] New Python command to set the active flag of Armature Bones
Campbell Barton [Thu, 6 Aug 2009 22:11:33 +0000 (22:11 +0000)]
[#19035] New Python command to set the active flag of Armature Bones
from Ivo Grigull (loolarge)

Removed redraw calls from the python function, added epydocs.

11 years agooutput the origin for each map node.
Campbell Barton [Thu, 6 Aug 2009 13:30:23 +0000 (13:30 +0000)]
output the origin for each map node.
thanks to j michaelson for the patch

11 years agocopy openal dlls
Nathan Letwory [Wed, 5 Aug 2009 15:21:10 +0000 (15:21 +0000)]
copy openal dlls

11 years agoUpdate for new OpenAL windows library.
Joerg Mueller [Wed, 5 Aug 2009 14:10:29 +0000 (14:10 +0000)]
Update for new OpenAL windows library.

11 years agofix for writing to freed memory in cases where python wasn't holding a reference...
Campbell Barton [Tue, 4 Aug 2009 22:59:50 +0000 (22:59 +0000)]
fix for writing to freed memory in cases where python wasn't holding a reference to the PyObject

11 years agono need to store the physics env in each KX_GameObject
Campbell Barton [Tue, 4 Aug 2009 05:14:10 +0000 (05:14 +0000)]
no need to store the physics env in each KX_GameObject

11 years ago* apparently I forgot to update this one for the python zip copying business. Thanks...
Nathan Letwory [Tue, 4 Aug 2009 01:05:31 +0000 (01:05 +0000)]
* apparently I forgot to update this one for the python zip copying business. Thanks to JMS for spotting.

11 years ago* remove unused member of KX_Scene - m_objecttree
Campbell Barton [Sun, 2 Aug 2009 23:53:53 +0000 (23:53 +0000)]
* remove unused member of KX_Scene - m_objecttree
* implicit declaration of getenv in glutil.c

11 years ago- X11 tablet was using uninitialized variables.
Campbell Barton [Sun, 2 Aug 2009 03:41:42 +0000 (03:41 +0000)]
- X11 tablet was using uninitialized variables.
- Added BLENDER_FORCE_SWAPBUFFERS in help message.

11 years agoAllow users enabling workaround for menus with some Mesa3D drivers.
Guillermo S. Romero [Sat, 1 Aug 2009 22:23:57 +0000 (22:23 +0000)]
Allow users enabling workaround for menus with some Mesa3D drivers.
Define the env var BLENDER_FORCE_SWAPBUFFERS to enable (1, yes, oui, the
value does not matter, code just checks for existence).

The issue seems to happen with Intel and Radeon, but enabling myswapbuffers()
hack solves it (or reduces to just flicker) for now.

Reported by Philippe Van Hecke.

11 years agosizeof() was being used incorrectly to clear X11 m_keyboard_vector, would only have...
Campbell Barton [Sat, 1 Aug 2009 09:07:45 +0000 (09:07 +0000)]
sizeof() was being used incorrectly to clear X11 m_keyboard_vector, would only have 4-8 bytes cleared rather then 32.
fix for harmless memleak too.

11 years ago- Ancient resource leak (rev 2) where checkPackedFile would open a file and never...
Campbell Barton [Sat, 1 Aug 2009 06:27:40 +0000 (06:27 +0000)]
- Ancient resource leak (rev 2) where checkPackedFile would open a file and never close it.
- Running simulations missed freeing some variables.

11 years agomissed this line in last commit
Campbell Barton [Fri, 31 Jul 2009 23:15:00 +0000 (23:15 +0000)]
missed this line in last commit

11 years agoBug fix in low value setting. Originally checked against the wrong channel (chroma...
Robert Holcomb [Fri, 31 Jul 2009 12:51:18 +0000 (12:51 +0000)]
Bug fix in low value setting.  Originally checked against the wrong channel (chroma) instead of the luminence channel.
Changed default value for high value to 1.0 from 0.0.

11 years agoremove more unneeded args, also allow ipo to animate the ref value for KX_BlenderMate...
Campbell Barton [Fri, 31 Jul 2009 09:05:13 +0000 (09:05 +0000)]
remove more unneeded args, also allow ipo to animate the ref value for KX_BlenderMaterial's

11 years agoremove some unused function args
Campbell Barton [Thu, 30 Jul 2009 21:42:29 +0000 (21:42 +0000)]
remove some unused function args

11 years agochanged some sprintfs to strcats, thanks to Fredrik Axelsson for the patch
Joseph Eagar [Tue, 28 Jul 2009 17:23:45 +0000 (17:23 +0000)]
changed some sprintfs to strcats, thanks to Fredrik Axelsson for the patch

11 years ago[#19036] blender should use 'static inline' in BKE_cloth.h to work with C99
Campbell Barton [Tue, 28 Jul 2009 01:48:10 +0000 (01:48 +0000)]
[#19036] blender should use 'static inline' in BKE_cloth.h to work with C99
Török Edwin (edwintorok)

this was the only thing stopping blender being compiled with clang

11 years agoReplaceMesh Actuator option to replace the physics mesh and display mesh + python...
Campbell Barton [Sun, 26 Jul 2009 01:32:37 +0000 (01:32 +0000)]
ReplaceMesh Actuator option to replace the physics mesh and display mesh + python api options.

When the mesh field is left blank and Physics option is enabled, it reinstances the physics mesh from the existing mesh.
like calling gameOb.reinstancePhysicsMesh() from python.

11 years agoBGE Physics
Campbell Barton [Sat, 25 Jul 2009 22:57:29 +0000 (22:57 +0000)]
BGE Physics
Add support back for reinstancePhysics mesh, a frequently requested feature in the BGE forums.
from what I can tell Sumo supported this but bullet never did.
Currently only accessible via python at the moment.

- rigid body, dynamic, static types work.
- instanced physics meshes are modified too.
- compound shapes are not supported.

Physics mesh can be re-instanced from...
* shape keys & armature deformations
* subsurf (any other modifiers too)
* RAS_TexVert's (can be modified from python)

Moved the reinstancePhysicsMesh functions from RAS_MeshObject into KX_GameObject since the physics data is stored here.

video and blend file demo.

11 years agofix memleak in BGE py api - action.channelNames
Campbell Barton [Sat, 25 Jul 2009 20:51:45 +0000 (20:51 +0000)]
fix memleak in BGE py api - action.channelNames

11 years ago- BGE Python API converting a mesh from a python arg was broken but happened to work...
Campbell Barton [Sat, 25 Jul 2009 19:34:38 +0000 (19:34 +0000)]
- BGE Python API converting a mesh from a python arg was broken but happened to work if the uninitialized pointer was not NULL.
- iris.c - looks like a copy/paste error, was using rect where it could not have been initialized.

11 years agoThis is patch# 19017 16bit SGI image loading
Kent Mein [Fri, 24 Jul 2009 17:17:04 +0000 (17:17 +0000)]
This is patch# 19017 16bit SGI image loading
submitted by Albertas Vyšniauskas (thezbyg)

Improves SGI image support.


11 years agoDon't link gameplayer against the decimation code (CMake).
Chris Want [Thu, 16 Jul 2009 18:44:48 +0000 (18:44 +0000)]
Don't link gameplayer against the decimation code (CMake).

11 years ago== Sequencer ==
Peter Schlaile [Wed, 15 Jul 2009 16:17:22 +0000 (16:17 +0000)]
== Sequencer ==

Small fix for:

* Scene-Strip rendering with compositor scenes failed, if they
  had no camera attached...

11 years agoerror in setting the alpha value when drawing text into a char buffer.
Campbell Barton [Tue, 14 Jul 2009 15:08:07 +0000 (15:08 +0000)]
error in setting the alpha value when drawing text into a char buffer.

Would only show the errors with sequencer rendering with the stamp option enabled, since blenders rendering uses a float buffer.

11 years prepared for work with python 2.5 and 2.6 controlled by only one...
Remigiusz Fiedler [Wed, 8 Jul 2009 22:37:49 +0000 (22:37 +0000)] prepared for work with python 2.5 and 2.6 controlled by only one parameter: BF_PYTHON_VERSION.
It needs the files: libpython25.a and libpython26.a to be copied to \\lib\windows\python\lib\

11 years agotrunk bugfix: added missing undo push.
Joseph Eagar [Wed, 8 Jul 2009 07:02:59 +0000 (07:02 +0000)]
trunk bugfix: added missing undo push.

11 years agofix for a bug reported by j michaelson, empty nodes were not exported, also noticed...
Campbell Barton [Mon, 6 Jul 2009 11:23:22 +0000 (11:23 +0000)]
fix for a bug reported by j michaelson, empty nodes were not exported, also noticed files were invalid if there were no meshes or surfaces.

11 years ago== Python ==
Peter Schlaile [Sat, 4 Jul 2009 15:35:16 +0000 (15:35 +0000)]
== Python ==

Fix for the fix: G.scene slipped in at one point and the
filepath generation was broken due to a typo.

11 years ago== Python ==
Peter Schlaile [Sat, 4 Jul 2009 14:59:28 +0000 (14:59 +0000)]
== Python ==

This fixes:
* background rendering on scenes different from active scene
* makes scene.render() behave the same in interactive and background mode
* makes saveRenderedImage() work correctly in background mode

11 years agosaving runtime on win32 didnt work with python2.6
Campbell Barton [Sat, 4 Jul 2009 12:41:34 +0000 (12:41 +0000)]
saving runtime on win32 didnt work with python2.6

11 years agofix for python error when running in local view, the layer wasnt being set from the...
Campbell Barton [Sat, 4 Jul 2009 00:33:50 +0000 (00:33 +0000)]
fix for python error when running in local view, the layer wasnt being set from the right object.

11 years agoconverting nurbs to a mesh ignored smoothing for Alt+C and from pythons getFromObject()
Campbell Barton [Wed, 1 Jul 2009 13:07:28 +0000 (13:07 +0000)]
converting nurbs to a mesh ignored smoothing for Alt+C and from pythons getFromObject()

11 years agofix for bug while importing transparent faces:
Dalai Felinto [Mon, 29 Jun 2009 02:37:44 +0000 (02:37 +0000)]
fix for bug while importing transparent faces:

image.has_data can't be called before you load an image, otherwise it will return false even for valid images.
The workaround is to try to run image.glLoad() before. That will crash if the image is corrupted (for we are using try/catch here).

Campbell (ideasman42) thinks it would be better to have an api call proper for that. Since 2.4xx is close to its end I really don't think it's time to keep working in its API. Specially if we have similar functions doing what we need.

@ Arystanbek (kazanbas): I'm done with the obj fixes I told you. You are free to go with the importers :)
You may want to take a look at implementing a proper image.load() to 2.5 as Campbell suggested.

11 years agopatch [#18950] Get/set bone and type of drivers
Campbell Barton [Sun, 28 Jun 2009 14:55:22 +0000 (14:55 +0000)]
patch [#18950] Get/set bone and type of drivers
by Alberto Torres Ruiz (dithi)

--- quoting the patch submission
This patchs adds the properties IpoCurve.driverBone and IpoCurve.driverBone2 and modifies IpoCurve.driverChannel to
allow OB_ROT_DIFF.

It sets the driver type to pose if IpoCurve.driverBone is not empty or None. Otherwise the driver type is set to

Attached is the patch (with python doc) and an example .blend.

It also fixes the confusing description of IpoCurve.driver

11 years agofix for importing of transparent faces from .mtl files - ZTrans now is set for them...
Dalai Felinto [Fri, 26 Jun 2009 21:51:23 +0000 (21:51 +0000)]
fix for importing of transparent faces from .mtl files - ZTrans now is set for them as well.
(what makes importing from SketchUp really nice)

11 years ago== Sequencer ==
Peter Schlaile [Fri, 26 Jun 2009 19:40:28 +0000 (19:40 +0000)]
== Sequencer ==

Small fix by jms: rint() isn't available on win32...
(hmm, rint() is conforming to C99, that is _really_ strange...)

11 years ago== Sequencer ==
Peter Schlaile [Fri, 26 Jun 2009 15:09:39 +0000 (15:09 +0000)]
== Sequencer ==

Additional speed control fixes:
frame blending can now be done on more than two
frames, enabling really fine grained motion blur
if you speed up a sequence with high factors (bigger
than two).

Next step: add morphing support using motion

11 years ago== Sequencer ==
Peter Schlaile [Fri, 26 Jun 2009 07:32:24 +0000 (07:32 +0000)]
== Sequencer ==

This fixes several issues with the Speed Control Effect:
* IPO curve-deletion resulted in non-working effect
* easy retiming only allowed enlarging of strips,
  now shrinking is also possible (easy retiming:
  use the right display handle of input strip and
  shrink or enlarge, will make the speed of the
  strip exactly fit the effect strip's length)
* frames after end-of-display of input strips can
  now be accessed (which is necessary for fix #2)

=> just use easy retiming from now on, it's fun :)

11 years agobugfix [#18949] bvh import does not do single rigid bodies
Campbell Barton [Fri, 26 Jun 2009 02:49:47 +0000 (02:49 +0000)]
bugfix [#18949] bvh import does not do single rigid bodies
these BVH files are not that common but may as well support it.

11 years agousing the edge length to weight the vertex blue wasnt wokring very well (removed)
Campbell Barton [Fri, 26 Jun 2009 02:22:53 +0000 (02:22 +0000)]
using the edge length to weight the vertex blue wasnt wokring very well (removed)

11 years agoBugfix, testing venom's lab .blends
Ton Roosendaal [Thu, 25 Jun 2009 12:32:55 +0000 (12:32 +0000)]
Bugfix, testing venom's lab .blends

Using LightGroups override for material doesn't work for preview
renders. Code didn't correctly return correct light listbase then,
crashing Blender on preview render.

11 years agoMathutils quat1 * quat2 was broken, returned quat1*quat1 instead.
Campbell Barton [Thu, 25 Jun 2009 01:37:19 +0000 (01:37 +0000)]
Mathutils quat1 * quat2 was broken, returned quat1*quat1 instead.

11 years agobug fix SoftBody module
Jens Ole Wund [Wed, 24 Jun 2009 23:42:45 +0000 (23:42 +0000)]
bug fix SoftBody module
vertex groups are not notified on deletion .. and other relevant changes  ..
sneak in Mass and Spring Painting

11 years agoBGE pyAPI update
Dalai Felinto [Sun, 21 Jun 2009 17:40:56 +0000 (17:40 +0000)]
BGE pyAPI update
(adding "when accessing it from the Game Engine use Mathutils instead of Blender.Mathutils" message in Blender pyAPI doc)

11 years ago== AVI ==
Peter Schlaile [Sun, 21 Jun 2009 17:00:18 +0000 (17:00 +0000)]
== AVI ==

Only open AVI files with at least one supported video track type.
(This is the real fix for DV-Type1-AVIs, since the FCC of iads, that
is used there, wasn't detected. But the code will happily open AVI-files
with only audio tracks... So the real fix is: only try to open things, that
contains something we know how to handle :) )

11 years ago== Sequencer ==
Peter Schlaile [Sun, 21 Jun 2009 12:02:40 +0000 (12:02 +0000)]
== Sequencer ==

Very, very last minute patch for Blender on Windows systems:
move blender's internal AVI reader the last try in the list of
codecs, when opening movie files.

Otherwise, it will fail on Movie Maker captured DV-AVI files.
(isavi() seems to mistreat these files as RAW/MJPEG AVI and fails
later on IMB_anim_absolute() )

11 years agotypo in logic buttons
Campbell Barton [Sat, 20 Jun 2009 05:16:09 +0000 (05:16 +0000)]
typo in logic buttons

11 years agoMistake in FBX export broke importing on some apps (but not the ones I tested with...
Campbell Barton [Sat, 20 Jun 2009 04:03:13 +0000 (04:03 +0000)]
Mistake in FBX export broke importing on some apps (but not the ones I tested with. grr)

Reported by James Dolan on autodesks forum

12 years agoown copy/paste error, euler.wrapped would give a bad value
Campbell Barton [Thu, 18 Jun 2009 18:23:22 +0000 (18:23 +0000)]
own copy/paste error, euler.wrapped would give a bad value

12 years agoPart two of svn release commit, last one!
Ton Roosendaal [Thu, 18 Jun 2009 18:12:13 +0000 (18:12 +0000)]
Part two of svn release commit, last one!

12 years agoPart one of 2.49a release commit
Ton Roosendaal [Thu, 18 Jun 2009 18:11:51 +0000 (18:11 +0000)]
Part one of 2.49a release commit

12 years agoBufix #18942
Ton Roosendaal [Thu, 18 Jun 2009 17:00:47 +0000 (17:00 +0000)]
Bufix #18942

Composite "Map UV" node was using false UVs (0,0) from neighbouring
pixels when those pixels were not rendered (or have no UV).

This commit checks for each neighbour sample it takes if the UV was
correctly set. Solves bad errors on edges of UV maps. With FSA even
totally smooth. :)