blender.git
10 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.

10 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

10 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.

10 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.
https://bugs.freedesktop.org/show_bug.cgi?id=21774

Reported by Philippe Van Hecke.

10 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.

10 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.

10 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

10 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.

10 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

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

10 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

10 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

10 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.

10 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.
http://www.graphicall.org/ftp/ideasman42/reinstance.ogv
http://www.graphicall.org/ftp/ideasman42/reinstance_demo.blend

10 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

10 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.

10 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.

Kent

10 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).

10 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...

10 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.

10 years agomingw-config.py 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)]
mingw-config.py 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\

10 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.

10 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.

10 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.

10 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

10 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

10 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.

10 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()

10 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.

10 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
object.

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

It also fixes the confusing description of IpoCurve.driver

10 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)

10 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...)

10 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
estimation.

10 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 :)

10 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.

10 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)

10 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.

10 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.

10 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

10 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)

10 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 :) )

10 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() )

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

10 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
http://area.autodesk.com/forum/autodesk-fbx/fbx-sdk/fbx-files-exported-from-blender-cause-assert/

10 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

10 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!

10 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

10 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. :)

10 years agoAttribute PolyDimensions GmbH for funding OBJ spline import/export.
Campbell Barton [Thu, 18 Jun 2009 16:01:47 +0000 (16:01 +0000)]
Attribute PolyDimensions GmbH for funding OBJ spline import/export.

10 years agocoverity issue CID: 596
Kent Mein [Thu, 18 Jun 2009 12:57:39 +0000 (12:57 +0000)]
coverity issue CID: 596
Checker: FORWARD_NULL (help)
File: base/src/source/blender/render/intern/source/texture.c
Function: do_lamp_tex
Description: Variable "dx" tracked as NULL was dereferenced.

Also found a typo the 3rd check was checking projx instead of projz
I also expanded the elses to set dyt as well as dxt.

Kent

10 years agoDXF-Exporter v1.35 - 2009.06.18 by migius
Remigiusz Fiedler [Thu, 18 Jun 2009 10:34:16 +0000 (10:34 +0000)]
DXF-Exporter v1.35 - 2009.06.18 by migius
- missing support for multiple-instances of Curve-Objects as BLOCK/INSERTs

10 years agoDXF-Exporter: apply modifiers: reactivate temporary deactivated code
Remigiusz Fiedler [Wed, 17 Jun 2009 23:25:22 +0000 (23:25 +0000)]
DXF-Exporter: apply modifiers: reactivate temporary deactivated code

10 years agoFix for bug: [#18619] Shadow face flag ignores object's scale
Dalai Felinto [Wed, 17 Jun 2009 21:18:32 +0000 (21:18 +0000)]
Fix for bug: [#18619] Shadow face flag ignores object's scale
In time for the 2.49a ahoy :)

10 years agoDXF-Exporter v1.35 - 2009.06.17 by migius
Remigiusz Fiedler [Wed, 17 Jun 2009 14:06:55 +0000 (14:06 +0000)]
DXF-Exporter v1.35 - 2009.06.17 by migius
- added export Cameras (ortho and persp) to VPORTs, incl. clipping
- added export Cameras (ortho and persp) to  VIEWs, incl. clipping
- export multiple-instances of Mesh-Objects as BLOCK/INSERTs
- on start prints dxfLibrary version

10 years agofix for a bug reported by zapman on blenderartist.
Campbell Barton [Wed, 17 Jun 2009 12:32:28 +0000 (12:32 +0000)]
fix for a bug reported by zapman on blenderartist.

De-activating a loop-end actuator didnt work (it kept looping).
Looked into this further and it turns out that the actuators run with both positive and negative events false, the sound actuator assumes because its not negative that its a positive event and plays the sound anyway.

Fix by checking that its a positive event before playing.

The size limit on the message actuator was 100 which broke some scripts, set to 16384 instead.

10 years agoDXF-Importer v1.12 - 2009.06.16 by migius
Remigiusz Fiedler [Wed, 17 Jun 2009 11:35:35 +0000 (11:35 +0000)]
DXF-Importer v1.12 - 2009.06.16 by migius
 d7 fix for ignored BLOCKs (e.g. *X) which are members of other BLOCKs

10 years agoBGE PyAPI
Campbell Barton [Wed, 17 Jun 2009 09:42:04 +0000 (09:42 +0000)]
BGE PyAPI
while making a demo of using python to control bones found some more problems.
also added channelNames attribute to BL_ActionActuator to get a list of valid channels to use.
demo: http://www.graphicall.org/ftp/ideasman42/armature_python.blend

its still not that useful since theres not way to know rest bone locations yet but better then nothing.

10 years agoBGE #18823: Loading older blend files (from the blender Gamekit 1.0 demos) that use...
Benoit Bolsee [Wed, 17 Jun 2009 08:36:37 +0000 (08:36 +0000)]
BGE #18823: Loading older blend files (from the blender Gamekit 1.0 demos) that use Sumo crash on playback in 2.48.5, worked in rc3. Fixed by upgrading Sumo to support the new method of sensor synchronization introduced with Sensor objects in Bullet. Sumo demo will not crash but may still not run well as other features and methods have not been ported.

10 years agoBGE bug #18931: YoFrankie bug in 249-trunk (works in 248).
Benoit Bolsee [Wed, 17 Jun 2009 06:54:35 +0000 (06:54 +0000)]
BGE bug #18931: YoFrankie bug in 249-trunk (works in 248).

10 years ago== FFMPEG ==
Peter Schlaile [Tue, 16 Jun 2009 21:28:19 +0000 (21:28 +0000)]
== FFMPEG ==

This fixes:
[#18262] From FFMPEG/audio menu the PCM selection is missing
(thanks to Mika Saari (mikasaari) for the patch!)

10 years ago== Sequencer ==
Peter Schlaile [Tue, 16 Jun 2009 21:16:22 +0000 (21:16 +0000)]
== Sequencer ==

Fixed color balance tool. Problem was: we pretended to do Lift/Gamma/Gain,
but in reality we did (1-Offset)/Power/Slope. (slightly modified ASC CDL).

So now, the GUI is able to switch modes between ASC CDL-mode and real
Lift/Gamma/Gain.

It also adds a switch to enable Neutral Black/White flipping
(very usefull for black point selection)

This closes:

[#18078] bugfix #18010 Sequencer lift

10 years agoBGE Action Actuator setChannel() function was broken in a number of ways.
Campbell Barton [Tue, 16 Jun 2009 18:25:48 +0000 (18:25 +0000)]
BGE Action Actuator setChannel() function was broken in a number of ways.
* extract_pose_from_pose only checked one of the list items for NULL when looping over them yet its possible they are different sizes.
* game_free_pose needed to be used rather then MEM_freeN, channels would never be freed leaking memory.
* setChannel() would make a new pose that wasnt aligned with the existing pose, the lists are assumed aligned so when extracting the channels its unlikely this was ever useful.
* Added getChannel() - returns pose loc/size/quat
* Added option args for setChannel(channel, matrix) or setChannel(channel, loc, size, quat)

10 years agolooks like a mistake. should check with the scene render size, not the current scenes.
Campbell Barton [Tue, 16 Jun 2009 15:44:08 +0000 (15:44 +0000)]
looks like a mistake. should check with the scene render size, not the current scenes.

10 years agoDXF-export update: dxfLibrary.py v1.33 - 2009.06.16
Remigiusz Fiedler [Tue, 16 Jun 2009 10:43:43 +0000 (10:43 +0000)]
DXF-export update: dxfLibrary.py v1.33 - 2009.06.16
 - fix _point(): converts all coords to floats
 - fix LineType class: implement elements
 - added VPORT class, incl. defaults
 - fix Insert class

10 years agoKX_PythonSeq (used for a number of BGE sequence types)
Campbell Barton [Tue, 16 Jun 2009 08:52:04 +0000 (08:52 +0000)]
KX_PythonSeq (used for a number of BGE sequence types)
* cont.actuators.get("key", default) # dict like get function
* if "key" in cont.sensors: ...

Updated docs
Added missing include to Particle.c

10 years agoBGE Py API
Campbell Barton [Tue, 16 Jun 2009 07:16:51 +0000 (07:16 +0000)]
BGE Py API
* Removed modules Expression and CValue, neither were ever available.
* Added GameLogic.EvalExpression(exp) from the Expression module, evaluates an expression like the expression controller (not sure if this is really that useful since python is far more advanced).
* resetting the original blend file path didint work (own fault == -> =)
* Py3.x PyModule_Create didnt allow importing since it didn't add to sys.modules,
  Looks like they want us to use init-tab array, but this doesn't suit us since
  it needs to be setup before python is initialized.
* Documented GameLogic.globalDict

10 years agosaving globalDict didnt work with python3.x
Campbell Barton [Mon, 15 Jun 2009 20:22:50 +0000 (20:22 +0000)]
saving globalDict didnt work with python3.x

10 years agoBug #18920, clarification in tooltip of Mirror Vgroup option in
Brecht Van Lommel [Mon, 15 Jun 2009 12:18:17 +0000 (12:18 +0000)]
Bug #18920, clarification in tooltip of Mirror Vgroup option in
the mirror modifier.

10 years agoFix for bug #18924: OpenGL performance issue with particle modifiers,
Brecht Van Lommel [Mon, 15 Jun 2009 11:48:42 +0000 (11:48 +0000)]
Fix for bug #18924: OpenGL performance issue with particle modifiers,
actually two modifier datamask optimizations that were never done.

* Don't use modifier data mask for disabled modifiers.
* Check if UV data is needed for particle system instead of always
  requesting it.

10 years ago== Sequencer ==
Peter Schlaile [Sun, 14 Jun 2009 20:52:43 +0000 (20:52 +0000)]
== Sequencer ==

Fixes an irritating but harmless error message when using custom proxy files.

10 years agoBGE bug #18869: Can't create Windows runtime.
Benoit Bolsee [Sun, 14 Jun 2009 20:01:12 +0000 (20:01 +0000)]
BGE bug #18869: Can't create Windows runtime.

10 years agoUpdate MSVC9 project files. Use pthreadVC2 instead of pthreadVSE2 to match scons...
Benoit Bolsee [Sun, 14 Jun 2009 19:59:59 +0000 (19:59 +0000)]
Update MSVC9 project files. Use pthreadVC2 instead of pthreadVSE2 to match scons (don't know why we were using VSE2 in the first place).

10 years ago== Sequencer ==
Peter Schlaile [Sun, 14 Jun 2009 18:54:35 +0000 (18:54 +0000)]
== Sequencer ==

Big proxy fix (addressing hopefully most complaints on mailing list and
in tracker)
* proxy render settings are now independent of render size settings.
  That means: which proxy size is used, is controlled by two parameters
  now: the proxy size of the files, can be controlled with additional
  buttons within the proxy panels. What is shown in a specific preview
  window depends on the header settings of the preview panel.
  So: proxies are _only_ used in those windows, that are switched to a
  specific proxy resolution.
* output rendering is always done _without_ proxies.
* proxy generation now shows a waitcursor with numbers.
  (closing Bug: [#18909] Building Proxies doesn't give any feedback
  which was rather a feature request, since the problem mentioned there
  was always the case :) )

10 years ago== Sequencer ==
Peter Schlaile [Sun, 14 Jun 2009 10:59:54 +0000 (10:59 +0000)]
== Sequencer ==

This fixes:
* free_imbuf_seq() didn't free all scenes. That will lead to steady memory
  growth in case of nested timelines with several scenes.
* sequencer panels were always jumping around, depending on strip type,
  which was caused by choosing always the same panel position and the
  silly limitation, that
* effect strips had no filter option, which was therefore added.
  So you can apply color balance on effect filter output now :)

10 years agotypo in gpu_extensions.c, removed unused function
Campbell Barton [Sun, 14 Jun 2009 06:52:46 +0000 (06:52 +0000)]
typo in gpu_extensions.c, removed unused function

10 years agochanging the scale of a sleeping object wasnt working with bullet.
Campbell Barton [Sun, 14 Jun 2009 06:03:12 +0000 (06:03 +0000)]
changing the scale of a sleeping object wasnt working with bullet.

Example is a cube that lands on a plane, sleeps after some time, a script changes the scale.
It would still use the scale when the object first went to sleep.

reported on blenderartist.
http://blenderartists.org/forum/showthread.php?t=158617

10 years agocoverity issue CID: 275
Kent Mein [Sat, 13 Jun 2009 22:31:14 +0000 (22:31 +0000)]
coverity issue CID: 275
Checker: FORWARD_NULL (help)
File: base/src/source/blender/gpu/intern/gpu_extensions.c
Function: GPU_shader_create
Description: Variable "fragcode" tracked as NULL was passed to a function that dereferences it.

fix provided by Brecht. :)

Kent

10 years agocoverity issue CID: 307
Kent Mein [Sat, 13 Jun 2009 22:23:24 +0000 (22:23 +0000)]
coverity issue CID: 307
Checker: FORWARD_NULL (help)
File: base/src/source/blender/blenkernel/intern/modifier.c
Function: meshdeformModifier_deformVerts
Description: Variable "dm" tracked as NULL was passed to a function that dereferences it.

fix provided by Brecht.

Kent

10 years agocoverity issue CID: 469
Kent Mein [Sat, 13 Jun 2009 16:57:26 +0000 (16:57 +0000)]
coverity issue CID: 469
Checker: REVERSE_INULL (help)
File: base/src/source/blender/blenkernel/intern/BME_tools.c
Function: BME_split_face
Description: Pointer "example" dereferenced before NULL check

Check for null before we try to use it.

Kent

10 years agocoverity issue CID: 401
Kent Mein [Sat, 13 Jun 2009 16:52:01 +0000 (16:52 +0000)]
coverity issue CID: 401
Checker: NULL_RETURNS (help)
File: base/src/source/blender/imbuf/intern/radiance_hdr.c
Function: imb_loadhdr
Description: Incrementing possibly NULL value "ptr"

Make sure were not trying to index past our array.

Kent

10 years agocoverity issue CID: 228
Kent Mein [Sat, 13 Jun 2009 16:49:30 +0000 (16:49 +0000)]
coverity issue CID: 228
Checker: DEADCODE (help)
File: base/src/source/blender/gpu/intern/gpu_material.c
Function: GPU_materials_free
Description: Conditional "ma != 0"

was looping over wrong variable I'm guessing a cut and
paste error from above.

Kent

10 years agocoverity issue CID: 44
Kent Mein [Sat, 13 Jun 2009 15:54:39 +0000 (15:54 +0000)]
coverity issue CID: 44
Checker: FORWARD_NULL (help)
File: base/src/source/blender/render/intern/source/texture.c
Function: do_lamp_tex
Description: Variable "co" tracked as NULL was dereferenced.

co was set to NULL at the beginning of the function and it could
possibly slip through all the logic above so lets test it before
we use it blindly.

Kent

10 years agoOmission of a texture node to specify coordinates was regarded as a bug by some users...
Robin Allen [Sat, 13 Jun 2009 14:22:40 +0000 (14:22 +0000)]
Omission of a texture node to specify coordinates was regarded as a bug by some users. I rather agree :)

10 years agoG.sipo was being passed in the BGE when it wasnt needed, just access G.sipo directly.
Campbell Barton [Sat, 13 Jun 2009 13:02:01 +0000 (13:02 +0000)]
G.sipo was being passed in the BGE when it wasnt needed, just access G.sipo directly.
KX_PythonSeq.cpp - disable the cmpfunc with py3, need to have richcmp.

10 years agoallow building without SDL
Campbell Barton [Sat, 13 Jun 2009 11:28:29 +0000 (11:28 +0000)]
allow building without SDL

10 years agoin some cases importing without materials could raise a python error.
Campbell Barton [Sat, 13 Jun 2009 09:33:55 +0000 (09:33 +0000)]
in some cases importing without materials could raise a python error.
surprising nobody found before.

reported by <chewed-on> who doesnt want his real name used for some reason.

10 years agono need to use mathutils
Campbell Barton [Sat, 13 Jun 2009 04:31:30 +0000 (04:31 +0000)]
no need to use mathutils

10 years agoOBJ Import
Campbell Barton [Sat, 13 Jun 2009 03:54:27 +0000 (03:54 +0000)]
OBJ Import
* Wasn't setting the curve 3D option
* The nurbs object name could be None which caused an error, check its set.

OBJ Export
* Off by 1 error on closed nurbs was incorrect, broke other importers but worked with blender.
* Nurbs verts were not adding to the total vert count, scrambling meshes added after (somehow my first test case had all the curve objects last)

10 years agocoverity issue CID: 523
Kent Mein [Sat, 13 Jun 2009 03:08:58 +0000 (03:08 +0000)]
coverity issue CID: 523
Checker: UNINIT (help)
File: base/src/source/blender/blenlib/intern/freetypefont.c
Function: objchr_to_ftvfontdata
Description: Using uninitialized value "face" in call to function "freetypechar_to_vchar"

freetypechar_to_vchar expects face to be defined so we need to
return before then if we have a problem.  Also it doesn't
make sense to not return FALSE if there is an error because we
didn't do anything.

Kent

10 years agoX90 Rotate option so you can export without rotation and import, keeping the same...
Campbell Barton [Sat, 13 Jun 2009 03:05:20 +0000 (03:05 +0000)]
X90 Rotate option so you can export without rotation and import, keeping the same orientation.

10 years ago=== SCons ===
Nathan Letwory [Fri, 12 Jun 2009 15:37:23 +0000 (15:37 +0000)]
=== SCons ===
* make the nsis installer script automatically use the Python version we build against
* bump Python version used

10 years agouse contains for ListValue and KX_GameObject types (has_key is deprecated by python)
Campbell Barton [Fri, 12 Jun 2009 12:56:12 +0000 (12:56 +0000)]
use contains for ListValue and KX_GameObject types (has_key is deprecated by python)
eg.
 if 'prop' in gameOb: ...
 if 'GameOb' in sce.objects: ...

10 years agoOBJ import support for nurbs curves
Campbell Barton [Fri, 12 Jun 2009 04:16:12 +0000 (04:16 +0000)]
OBJ import support for nurbs curves
Imports nurbs with orderU and endpointU (inferred from weights).

No support for vert-weights, surfaces, 2D curves or non-bspline's yet.

fix for exporting closed nurbs, was overlapping too much of the curve.

10 years ago== Sequencer ==
Peter Schlaile [Thu, 11 Jun 2009 22:21:00 +0000 (22:21 +0000)]
== Sequencer ==

This fixes:
[#18894] Scene iterfer with movie in sequencer

(the real use cases that also triggered that bug are fixed with the
previous commit)

10 years agoBugfix for [#18911] Applied torque breaks rigid bodies in game engine
Erwin Coumans [Thu, 11 Jun 2009 13:42:41 +0000 (13:42 +0000)]
Bugfix for [#18911] Applied torque breaks rigid bodies in game engine

10 years ago== SEQUENCER ==
Peter Schlaile [Thu, 11 Jun 2009 11:44:47 +0000 (11:44 +0000)]
== SEQUENCER ==

This fixes
* some issues with Scene strips containing audio by removing
  the curpos pointer from sequence structure. (the same scene
  strip can now be used in a row)

  That also makes the code a lot cleaner.
* fixed a corner case on the beginning of a strip, where audio was
  not mixed in, depending of current audio buffer state.

* Also: made some hardwired variables macros to enhance readability.

Problem remaining: mixing the same scene strip several times (read
put it into a stack instead of into a row) has
problems with HD-audio since the same HD-audio state structure is
used and therefore the system will seek permanently, which leads to
audio distortions...

10 years agoupdate from Aaron Keith, fixes normal flipping
Campbell Barton [Thu, 11 Jun 2009 10:46:13 +0000 (10:46 +0000)]
update from Aaron Keith, fixes normal flipping

10 years agoSound actuator bug reported by zapman on blenderartist.
Campbell Barton [Thu, 11 Jun 2009 10:26:53 +0000 (10:26 +0000)]
Sound actuator bug reported by zapman on blenderartist.
Negative events would play on an actuator if it hadn't played a sound yet.

10 years agowas printing all warnings twice
Campbell Barton [Wed, 10 Jun 2009 19:33:59 +0000 (19:33 +0000)]
was printing all warnings twice

10 years agoOption to export curves as OBJ native curves (rather then a bunch of edges)
Campbell Barton [Wed, 10 Jun 2009 19:14:05 +0000 (19:14 +0000)]
Option to export curves as OBJ native curves (rather then a bunch of edges)
- nurbs and polyline (not bezier)
- closed / open curves
- OrderU works as expected
- Endpoint U works too.