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

10 years agofix for bug #18898: GE perspective 3D View not working properly (missing LENS)
Dalai Felinto [Tue, 9 Jun 2009 22:56:43 +0000 (22:56 +0000)]
fix for bug #18898: GE perspective 3D View not working properly (missing LENS)

note: I'm not changing GamePlayer files. There is no such a thing as 3D view camera in gameplayer (override_camera).

10 years agoFix for bug #18710: a crash with hair emitted from vertices.
Brecht Van Lommel [Tue, 9 Jun 2009 18:50:02 +0000 (18:50 +0000)]
Fix for bug #18710: a crash with hair emitted from vertices.

10 years agoFix for bug #18860: particle hair strands missed first segment
Brecht Van Lommel [Tue, 9 Jun 2009 18:25:57 +0000 (18:25 +0000)]
Fix for bug #18860: particle hair strands missed first segment
when rendering as regular geometry (not strand render).

10 years agoBuilt in limitations for script scanning was making python fail on meta-androcto...
Campbell Barton [Tue, 9 Jun 2009 18:21:48 +0000 (18:21 +0000)]
Built in limitations for script scanning was making python fail on meta-androcto script pack.

If a total of 30 subdirs was hit, or 4 dirs deep was hit - script scanning would quit, skipping files in the root scripts path too.

To work around this the script pack included some of blenders scripts twice just so they would get into the menu but this is a dodgy workaround.

* dont stop scanning for scripts when limits are reached (just dont scan further).
* global 30 dir limit per scan is silly - removed.
* limit recursive depth is kept but keep scanning at lower depths.
* bumped recursive limit from 4 to 6

* flt_properties.py had #!BPY without a menu header.

10 years agoUse fputs instead of fprintf in mem_error_cb(). This silences the
Chris Want [Tue, 9 Jun 2009 18:08:45 +0000 (18:08 +0000)]
Use fputs instead of fprintf in mem_error_cb(). This silences the
gcc warning "format not a string literal and no format arguments".

10 years agoFix for bug #18855: in texture node editor, "Add New" for world
Brecht Van Lommel [Tue, 9 Jun 2009 17:56:07 +0000 (17:56 +0000)]
Fix for bug #18855: in texture node editor, "Add New" for world
did not set texture in correct place and crashed without an active
object.

10 years agoTools
Ken Hughes [Tue, 9 Jun 2009 17:04:50 +0000 (17:04 +0000)]
Tools
-----
Bugfix #18835: negatively scaled objects resulted in incorrect boolean
output.  Commit to trunk instead of tagged release this time :-p

10 years agoFix for bug #18900: game engine lights in non-glsl mode did move
Brecht Van Lommel [Tue, 9 Jun 2009 13:51:32 +0000 (13:51 +0000)]
Fix for bug #18900: game engine lights in non-glsl mode did move
anymore, missing matrix update. Also move some code to KX_LightObject
to avoid duplication with player.

10 years agoFix for bug #18881 and #18866: Surface option for Fields crashed
Brecht Van Lommel [Tue, 9 Jun 2009 13:03:00 +0000 (13:03 +0000)]
Fix for bug #18881 and #18866: Surface option for Fields crashed
on non-mesh objects, so hide it if not applicable. Also made it
support surf, curve, font objects.

10 years ago[#18847] Material.c Python API calls
Campbell Barton [Tue, 9 Jun 2009 12:18:20 +0000 (12:18 +0000)]
[#18847] Material.c Python API calls
Adds access to...
- Anisotropy
- Mirr Threshold
- Trans Threshold

Breaks rule of no additions but python data access is quite safe, vray exporter needed these attributes.

[#18891] BGE Convert script Python 2.5 compatible

10 years agoFix "no newline at end of file" warning.
Ken Hughes [Mon, 8 Jun 2009 17:30:53 +0000 (17:30 +0000)]
Fix "no newline at end of file" warning.

10 years agoneeded to use sizeof(string)-1 for text button lengths
Campbell Barton [Mon, 8 Jun 2009 11:04:05 +0000 (11:04 +0000)]
needed to use sizeof(string)-1 for text button lengths

10 years agoDXF-Exporter script update
Remigiusz Fiedler [Mon, 8 Jun 2009 01:29:58 +0000 (01:29 +0000)]
DXF-Exporter script update
v1.34 - 2009.06.08
- export Lamps and Cameras as POINTs
- export passepartout for perspective projection
- added option for export objects only from visible layers

10 years agoDXF-Exporter script update
Remigiusz Fiedler [Sun, 7 Jun 2009 14:57:50 +0000 (14:57 +0000)]
DXF-Exporter script update
v1.34 - 2009.06.07 by migius
- cleaning code for release
- fix nasty bug in getExtrusion()
- support text-objects, also in ortho/persp-projection
- support XYmirrored 2d-curves to 2dPOLYLINEs

10 years agoBugfix to avoid crashing BGE on Mobile Intel GMA 950/945 Express GPU (2009 latest...
Erwin Coumans [Sun, 7 Jun 2009 06:04:44 +0000 (06:04 +0000)]
Bugfix to avoid crashing BGE on Mobile Intel GMA 950/945 Express GPU (2009 latest driver 6.14.10.4926 Windows XP)
Command-line option to disable vertexarrays in BGE:
-g novertexarrays

10 years agoBGE VideoTexture: fix VideoFFmpeg range attribute + error message.
Benoit Bolsee [Sat, 6 Jun 2009 21:54:12 +0000 (21:54 +0000)]
BGE VideoTexture: fix VideoFFmpeg range attribute + error message.

10 years agoPatch/Bugfix so wind noise got controlable seed and therefore redoable cloth sims...
Daniel Genrich [Sat, 6 Jun 2009 21:49:00 +0000 (21:49 +0000)]
Patch/Bugfix so wind noise got controlable seed and therefore redoable cloth sims - bug reported by istvan

10 years agoDXF exporter: dxfLibrary.py update
Remigiusz Fiedler [Sat, 6 Jun 2009 13:24:06 +0000 (13:24 +0000)]
DXF exporter: dxfLibrary.py update
v1.32 - 2009.06.06
 - modif Style class: changed defaults to widthFactor=1.0, obliqueAngle=0.0
 - modif Text class: alignment parameter reactivated

10 years agoSetting the directories and files is buggy still, but this should prevent some simple...
Campbell Barton [Sat, 6 Jun 2009 11:26:43 +0000 (11:26 +0000)]
Setting the directories and files is buggy still, but this should prevent some simple crashes, file was 80 chars long but it let the text input type in 160 chars.

10 years agoDXF exporter: library
Remigiusz Fiedler [Sat, 6 Jun 2009 10:33:10 +0000 (10:33 +0000)]
DXF exporter: library
v1.32 - 2009.06.06
 - modif Text class: alignment parameter reactivated

10 years agoBlender.Particle.New() wasnt documented.
Campbell Barton [Sat, 6 Jun 2009 04:56:22 +0000 (04:56 +0000)]
Blender.Particle.New() wasnt documented.
Changed to accept Object as well as Object name to avoid name collisions with libraries.

10 years agoone more bugfix, related to 6dof constrains, inside Bullet
Erwin Coumans [Sat, 6 Jun 2009 00:29:22 +0000 (00:29 +0000)]
one more bugfix, related to 6dof constrains, inside Bullet

10 years ago#18872 bugfix for torque on dynamic objects
Erwin Coumans [Sat, 6 Jun 2009 00:12:49 +0000 (00:12 +0000)]
#18872 bugfix for torque on dynamic objects
#18893, fix to getParam for generic 6dof constraints

10 years agobpy.config.sequenceMemCacheLimit is the only way to set the memcache in background...
Campbell Barton [Fri, 5 Jun 2009 19:22:23 +0000 (19:22 +0000)]
bpy.config.sequenceMemCacheLimit is the only way to set the memcache in background mode and it didnt work.
removed some unused vars from KX_Scene

10 years agoA bunch of the same logic issues. (missed these before)
Kent Mein [Fri, 5 Jun 2009 17:45:17 +0000 (17:45 +0000)]
A bunch of the same logic issues.  (missed these before)

Kent

10 years agoFix "duplicate strip" always increase the user count for ipo.
Diego Borghetti [Fri, 5 Jun 2009 16:54:06 +0000 (16:54 +0000)]
Fix "duplicate strip" always increase the user count for ipo.

As venomgfx point, the shift+d function never duplicate the ipo block
if we have enable the option in UserDef -> Edit Methods -> Ipo.

Now, if Ipo option is disable, we just increase the user count, otherwise
we duplicate the ipo.

Note: Alighorith, we need call ipo_idnew here ? (like single_ipo_users)

10 years agocoverity issue CID: 97
Kent Mein [Fri, 5 Jun 2009 16:53:21 +0000 (16:53 +0000)]
coverity issue CID: 97
Checker: FORWARD_NULL (help)
File: base/src/source/blender/src/poseobject.c
Function: pose_special_editmenu
Description: Variable "ob" tracked as NULL was dereferenced.

logic was wrong (gets complicated when you use !'s ;))

Kent

10 years agocoverity issues:
Kent Mein [Fri, 5 Jun 2009 04:15:19 +0000 (04:15 +0000)]
coverity issues:
CID: 478
Checker: REVERSE_INULL (help)
File: base/src/source/blender/blenkernel/intern/softbody.c
Function: apply_spring_memory
Description: Pointer "sb" dereferenced before NULL check

and
CID: 480
Checker: REVERSE_INULL (help)
File: base/src/source/blender/blenkernel/intern/softbody.c
Function: springs_from_particles
Description: Pointer "ob" dereferenced before NULL check

again moved assignment after check to make sure pointer is valid.

Kent

10 years agocoverity issues:
Kent Mein [Fri, 5 Jun 2009 03:52:24 +0000 (03:52 +0000)]
coverity issues:
CID: 506
Checker: REVERSE_INULL (help)
File: base/src/source/blender/src/editparticle.c
Function: PE_mirror_x
Description: Pointer "(edit)->keys" dereferenced before NULL check

and
CID: 507
Checker: REVERSE_INULL (help)
File: base/src/source/blender/src/editparticle.c
Function: PE_mirror_x
Description: Pointer "(psys)->particles" dereferenced before NULL check

No need to copy the memory if the pointer isn't valid.

Kent

10 years agocoverity issue CID: 484
Kent Mein [Fri, 5 Jun 2009 03:40:58 +0000 (03:40 +0000)]
coverity issue CID: 484
Checker: REVERSE_INULL (help)
File: base/src/source/blender/imbuf/intern/anim.c
Function: IMB_anim_absolute
Description: Pointer "anim" dereferenced before NULL check

again moving init code after check to valid pointer.

Kent

10 years agogetScreenPosition, Ray and Vect fixes:
Dalai Felinto [Fri, 5 Jun 2009 00:51:36 +0000 (00:51 +0000)]
getScreenPosition, Ray and Vect fixes:

- fix for [#18867] getScreenRay error
 ... the Vector wasn't been added to KX_Camera origin. Therefore the Ray was always casted to the wrong coordinate when camera wasn't in [0,0,0] (where is obviously was in my tests :)

- making the input parameter compatible with Blender/BGE window coordinate system (Top-Bottom).
 ... that will break scripts done in 2.49. Since this feature was added only in 2.49 that fix is OK. (and the fix is ridiculous.

Note:
the input parameter is normalized. That means it runs from 0.0 to 1.0. Some users found it confusing, but it allows to make a game compatible with multiple desktop resolutions.a

10 years agoBGE [#18884] light in skinned object only work properly after running the action...
Benoit Bolsee [Thu, 4 Jun 2009 21:24:41 +0000 (21:24 +0000)]
BGE [#18884] light in skinned object only work properly after running the action once.

10 years agobugfix and updates for DXF-Importer/Exporter scripts
Remigiusz Fiedler [Thu, 4 Jun 2009 19:49:19 +0000 (19:49 +0000)]
bugfix and updates for DXF-Importer/Exporter scripts

DXF-Library log:
v1.31 - 2009.06.02 by migius
 - modif _Entity class: added paperspace,elevation
v1.30 - 2009.05.28 by migius
 - bugfix 3dPOLYLINE/POLYFACE: VERTEX needs x,y,z coordinates, index starts with 1 not 0

DXF-Importer: minor changes

DXF-Exporter log:
v1.34 - 2009.06.02 by migius
- support XYmirrored 2d-curves to POLYLINEs: works correct only for rotX,rotY==0.0
- support thickness and elevation for curve-objects
- fix extrusion 210-code (3d orientation vector)
- fix POLYFACE export, synchronized with dxfLibrary.py
- changed to the new 2.49 method Vector.cross()
- output style manager (first try)
v1.33 - 2009.05.25 by migius
- bugfix flipping normals in mirrored mesh-objects
- added UI-Button for future Shadow Generator
- support curve objects in projection-2d mode
- UI stuff: camera selector/manager

10 years agocoverity issue CID: 488
Kent Mein [Thu, 4 Jun 2009 15:58:47 +0000 (15:58 +0000)]
coverity issue CID: 488
Checker: REVERSE_INULL (help)
File: base/src/source/blender/src/hddaudio.c
Function: sound_hdaudio_extract_small_block
Description: Pointer "hdaudio" dereferenced before NULL check

Moved some init code that uses a pointer to after the check
to see if pointer is valid.

Kent

10 years agoBugfix
Ton Roosendaal [Thu, 4 Jun 2009 15:44:43 +0000 (15:44 +0000)]
Bugfix

Loading font used a minimal string array (80 chars) and copied file name
strings in it without size checks. Triple tsk!

10 years agoBGE small fixes
Campbell Barton [Thu, 4 Jun 2009 07:42:03 +0000 (07:42 +0000)]
BGE small fixes
- script template use new property syntax
- Python could set the axis/hat to a negative index and crash blender (nobody complained)
- Servo control UI had overlapping text

10 years agoMake release wasn't stripping the gameplayer
Kent Mein [Wed, 3 Jun 2009 21:03:44 +0000 (21:03 +0000)]
Make release wasn't stripping the gameplayer
(typo)

Kent

10 years agoKX_MouseFocusSensor - bug reported by Micro27 on blenderartist
Campbell Barton [Wed, 3 Jun 2009 20:06:40 +0000 (20:06 +0000)]
KX_MouseFocusSensor - bug reported by Micro27 on blenderartist
vertical bounds checking for multiple viewports was inverted.

quiet some compiler warnings and minor corrections

10 years agocoverity CID: 374
Kent Mein [Wed, 3 Jun 2009 15:24:42 +0000 (15:24 +0000)]
coverity CID: 374
Checker: FORWARD_NULL (help)
File: base/src/source/blender/src/toolbox.c
Function: tb_do_render
Description: Variable "ca" tracked as NULL was dereferenced.

Moved check for null to include else statement.

Kent

10 years agoMissed this one before. It's another coverity issue:
Kent Mein [Wed, 3 Jun 2009 15:14:09 +0000 (15:14 +0000)]
Missed this one before.  It's another coverity issue:
CID: 477
Checker: REVERSE_INULL (help)
File: base/src/source/blender/blenkernel/intern/cloth.c
Function: cloth_apply_vgroup
Description: Pointer "dm" dereferenced before NULL check

Just like the others it assigned the value twice, removed
the one that was before checking for NULL.

Kent

10 years agoThis is coverity issue:
Kent Mein [Wed, 3 Jun 2009 14:55:41 +0000 (14:55 +0000)]
This is coverity issue:
CID: 595
Checker: OVERRUN_STATIC (help)
File: base/src/source/blender/python/api2_2x/sceneSequence.c
Function: Sequence_setProxyDir
Description: Overrun of static array "&((((self)->seq)->strip)->proxy)->dir" of size 160 bytes by passing it to a function which indexes it with argument "248" at byte position 247

Wasn't using the size of dir it was using the sizeof the struct dir is in.

Fixed.

Kent

10 years agoBGE PyAPI fixes
Campbell Barton [Wed, 3 Jun 2009 04:12:59 +0000 (04:12 +0000)]
BGE PyAPI fixes
- CValue warning ShowDeprecationWarning("val = ob.attr", "val = ob['attr']"); had false positives because of python using getattr() internally. Only show the wanring now when a CValue is found.
- Py functions that accepted a vector and a GameObject were slowed down by PySequence_Check() first called on the GameObject, though this would fail it would try and get attributes from the game object - ending up in ~8 attribute lookups each time. Avoiding PySequence_Check() makes ob.getDistanceTo(otherOb) over twice as fast.

- Joystick hat events could crash the BGE for joysticks with more then 4 hats.
- PLY Import failed on PLY files from Carve, added some extra types.

10 years agoThis commit fixes the following two coverity issues:
Kent Mein [Tue, 2 Jun 2009 19:29:20 +0000 (19:29 +0000)]
This commit fixes the following two coverity issues:

CID: 475
Checker: REVERSE_INULL (help)
File: base/src/source/blender/blenkernel/intern/cloth.c
Function: bvhselftree_build_from_cloth
Description: Pointer "clmd" dereferenced before NULL check

CID: 476
Checker: REVERSE_INULL (help)
File: base/src/source/blender/blenkernel/intern/cloth.c
Function: bvhtree_build_from_cloth
Description: Pointer "clmd" dereferenced before NULL check

You'll notice in the code the var is actually set again
a few lines down before being used so better to set it
after you've made sure the pointer is valid.

Kent

10 years agoFixed limits on translate node
Robin Allen [Mon, 1 Jun 2009 21:38:03 +0000 (21:38 +0000)]
Fixed limits on translate node

10 years agoBugfix for faulty noise function in bricks node
Robin Allen [Mon, 1 Jun 2009 21:22:43 +0000 (21:22 +0000)]
Bugfix for faulty noise function in bricks node

10 years agoBGE: memory leak in Random actuator + make actuator truly random when seed=0 in the...
Benoit Bolsee [Mon, 1 Jun 2009 18:41:58 +0000 (18:41 +0000)]
BGE: memory leak in Random actuator + make actuator truly random when seed=0 in the UI. When running the game, seed 0 is replaced by a random seed accessible through Python in seed attribute of the actuator. Other seed value will be left unchanged and will generate fixed pseudo random series.

10 years ago== Sequencer ==
Peter Schlaile [Mon, 1 Jun 2009 16:35:05 +0000 (16:35 +0000)]
== Sequencer ==

This fixes:
[#18507] Wrong audio mixdown

Also: you can change output sample rate while blender is running
and the audio device get's reopened automatically.

Subframe-precision seeking was also broken for some releases...
(shame on me)

10 years agofmod directory wasn't removed when all references to fmod were. (patch [#18260] FMOD...
Campbell Barton [Mon, 1 Jun 2009 12:49:16 +0000 (12:49 +0000)]
fmod directory wasn't removed when all references to fmod were. (patch [#18260] FMOD Removal, committed 19395)

10 years agoBGE Blendfile path bug (use for loading and saving the GameLogic.globalDict)
Campbell Barton [Mon, 1 Jun 2009 12:36:22 +0000 (12:36 +0000)]
BGE Blendfile path bug (use for loading and saving the GameLogic.globalDict)
the original blendfile path wasn't reset when loading new blendfiles.
blenderplayer was ok, but running the BGE from blender would set the blendfile original path and never reset it on loading other blend files.

10 years agoBGE bug fix: dynamically added sensor objects didn't have their physic shape synchron...
Benoit Bolsee [Mon, 1 Jun 2009 09:44:41 +0000 (09:44 +0000)]
BGE bug fix: dynamically added sensor objects didn't have their physic shape synchronized with movement.

10 years ago== Sequencer ==
Peter Schlaile [Mon, 1 Jun 2009 09:24:46 +0000 (09:24 +0000)]
== Sequencer ==

This removes the need of using "-g noaudio", if only HD Sound strips
are used. (In opposite to the RAM Sound strips, they don't need an
initialized Game Sound Engine for obvious reasons...)

10 years ago== Sequencer ==
Peter Schlaile [Mon, 1 Jun 2009 09:01:29 +0000 (09:01 +0000)]
== Sequencer ==

This fixes:
[#18707] Syncing animation to audio (works fine in 2.45. It does not work properly in 2.48)

10 years agoYoFrankie bug [#18857] On start gives ImportError: No module named frankie_scripts
Campbell Barton [Mon, 1 Jun 2009 05:43:58 +0000 (05:43 +0000)]
YoFrankie bug [#18857] On start gives ImportError: No module named frankie_scripts

GameEngine sys.path creation was broken because of a pesky slash at the end of each path name.
Win32 sys.paths were also failing when running a game that switched between blend files in different directories

On win32 for some reason making absolute paths from lib->name failed, work around this by using lib->filename.

STR_String.h, cast to float to quiet compiler warnings.

10 years ago== Sequencer ==
Peter Schlaile [Sun, 31 May 2009 21:14:25 +0000 (21:14 +0000)]
== Sequencer ==

This fixes dependency of scrub duration on mixbuffer size.
(start audio with a mixbuffer size of 2048, let it play = initialize,
change mixbuffer to smaller value, you will here 1 second
of audio instead of a scrub)

should hopefully fix
[#18850] 2.49 scrubbing creates an echo

10 years ago== Sequencer ==
Peter Schlaile [Sun, 31 May 2009 17:59:57 +0000 (17:59 +0000)]
== Sequencer ==

This fixes: IPO pinning on sequencer strips was lost during Undo.

10 years agoBug in KX_GameObject.get() and ListValue.get(), wasn't checking if the CValue derived...
Campbell Barton [Sun, 31 May 2009 17:44:38 +0000 (17:44 +0000)]
Bug in KX_GameObject.get() and ListValue.get(), wasn't checking if the CValue derived objects could be converted to a PyObject.
so where foo is an int prop,
 gameOb.get("foo") == 0, would end up returning a CValue int proxy.

This is more a problem for KX_GameObject since ListValues with python access mostly don't contain ints, strings, floats.
This also wont break games from 2.48 since the .get() function wasn't available.

10 years agoAnisotropic Friction bugfix for #18854 http://projects.blender.org/tracker/index...
Erwin Coumans [Sun, 31 May 2009 16:22:22 +0000 (16:22 +0000)]
Anisotropic Friction bugfix for #18854 projects.blender.org/tracker/index.php?func=detail&aid=18854&group_id=9&atid=125
Thanks to Campbell for the reproduction case!

10 years agoBGE: fix refcount bug causing crash with Object texture coordinates.
Benoit Bolsee [Sun, 31 May 2009 14:54:31 +0000 (14:54 +0000)]
BGE: fix refcount bug causing crash with Object texture coordinates.

10 years agoAO render error, caused by bugfix after RC3 :(
Ton Roosendaal [Sun, 31 May 2009 11:22:11 +0000 (11:22 +0000)]
AO render error, caused by bugfix after RC3 :(

My bug fix to support AO with "Amb" texture channel changed code too that calls
AO as a pre-shade process, when texture isn't calculated yet. This caused very
first pixel in a tile to show wrong AO.

Especially myself deserves a kick in butt for not testing the regression files
for release binaries again! Error shows clearly... in the cornelius_passes
.blend file.

10 years agoThis was found by coverity
Kent Mein [Fri, 29 May 2009 19:11:04 +0000 (19:11 +0000)]
This was found by coverity

CID: 568
Checker: FORWARD_NULL (help)
File: base/src/extern/libopenjpeg/jp2.c
Function: jp2_decode
Description: Variable "image" tracked as NULL was dereferenced.

fixed by just updating to latest version of the file from
external svn branch.

Kent

10 years agoLast pre-2.49 commit part 2: the original file (png btw), and txt and
Ton Roosendaal [Fri, 29 May 2009 17:52:45 +0000 (17:52 +0000)]
Last pre-2.49 commit part 2: the original file (png btw), and txt and
VERSION update.

Image credits go to Clemens Granjon; http://clems.g.free.fr

And now: release!

10 years agoLast pre-2.49 commit part 1: splash c file and release number
Ton Roosendaal [Fri, 29 May 2009 17:51:16 +0000 (17:51 +0000)]
Last pre-2.49 commit part 1: splash c file and release number

10 years agoBGE: small performance problem: object set invisible at startup were still put in...
Benoit Bolsee [Fri, 29 May 2009 17:09:20 +0000 (17:09 +0000)]
BGE: small performance problem: object set invisible at startup were still put in the DBVT, causing unnecessary culling.

10 years agoBGE: sensor object will now have Actor filter optional: new button 'Detect Actor...
Benoit Bolsee [Fri, 29 May 2009 16:55:22 +0000 (16:55 +0000)]
BGE: sensor object will now have Actor filter optional: new button 'Detect Actor' in physics settings indicate if you want the sensor to detect only Actor object or all objects. This way you don't need to set the scenery to Actor to detect ground for example.

10 years agoBGE modifier: last minute commit to fix a nasty bug with modifers messing the alpha...
Benoit Bolsee [Fri, 29 May 2009 13:37:51 +0000 (13:37 +0000)]
BGE modifier: last minute commit to fix a nasty bug with modifers messing the alpha blend mode of the GE. Note the alpha sorting on modified mesh is not implemented so derived mesh should not have alpha faces (clip will work though). Incidently fixed a performance problem in GLSL where the derived mesh was possibly rendered multiple times. Modifier support is still a bit experimental and should not be used in production game.

10 years agothe option for saving images as jpeg2000 was missing
Campbell Barton [Fri, 29 May 2009 13:33:33 +0000 (13:33 +0000)]
the option for saving images as jpeg2000 was missing

10 years agotypo in message
Campbell Barton [Fri, 29 May 2009 09:27:48 +0000 (09:27 +0000)]
typo in message

10 years agoworkaround for strange python problem in the BGE and BPy API where printing warnings...
Campbell Barton [Fri, 29 May 2009 09:22:24 +0000 (09:22 +0000)]
workaround for strange python problem in the BGE and BPy API where printing warnings mistook the blender binary for a script - argv[0], Binary lines were printed into the console sometimes causing console beeps and corrupting future console output.

Internal texts file on disk is not used it seems python warnings dont support this (even though exceptions do).

The most common cause of this is passing a float as an argument to a method that took an int.
get around this by setting __file__ in the namespace to the script name before executing the script, the file lines are not found but at least the output is not weird and confusing.

Added read only 'mode' attribute to the python controller so there is a way to tell if its executing a module or a script. Updated docs to better explain execution methods.

10 years agoRevert commit 20478: instead of changing the default in blender, it's better to chang...
Benoit Bolsee [Fri, 29 May 2009 08:55:14 +0000 (08:55 +0000)]
Revert commit 20478: instead of changing the default in blender, it's better to change the values for the demos that need it.

10 years agobugfix and update DXF-Exporter scripts
Remigiusz Fiedler [Fri, 29 May 2009 06:50:31 +0000 (06:50 +0000)]
bugfix and update DXF-Exporter scripts
please get it in 2.49 release

10 years agoBullet Physics maxphystep = 1 is better general default to avoid vicious circle
Erwin Coumans [Thu, 28 May 2009 22:26:28 +0000 (22:26 +0000)]
Bullet Physics maxphystep = 1 is better general default to avoid vicious circle
(graphics slower -> physics slower -> overall frametime slower -> graphics slower etc.)
See difference in vault.blend

10 years agobugfix: added import Curve module
Remigiusz Fiedler [Thu, 28 May 2009 20:28:52 +0000 (20:28 +0000)]
bugfix: added import Curve module

10 years agoPython API
Ken Hughes [Thu, 28 May 2009 14:24:16 +0000 (14:24 +0000)]
Python API
----------
Bugfix: make bpy.data.meshes.new() work the same way as Blender.Mesh.New().

10 years ago[#18803] 'ShadeModes' dictionary and 'shadeMode' instance variable exported to Python API
Campbell Barton [Thu, 28 May 2009 14:01:10 +0000 (14:01 +0000)]
[#18803] 'ShadeModes' dictionary and 'shadeMode' instance variable exported to Python API
Ton was ok with adding Vladislav Turbanov (vladius)'s patch during the freeze.

10 years ago[#18840] Joystick sensor lag
Campbell Barton [Thu, 28 May 2009 13:44:32 +0000 (13:44 +0000)]
[#18840] Joystick sensor lag
if(SDL_PollEvent(&sdl_event)) // if -> while fixed it
removed 'm_buttonnum' was misleading, wasn't used as you expect.

Added gravity to variable to world to be used by collada.

10 years agoBGE: no sleeping and lock axis physics options were not propagated to replicas.
Benoit Bolsee [Thu, 28 May 2009 11:04:45 +0000 (11:04 +0000)]
BGE: no sleeping and lock axis physics options were not propagated to replicas.

10 years agorenamed python 'bookmark' attribute to 'useHighPriority', was renamed in the UI but...
Campbell Barton [Thu, 28 May 2009 07:11:12 +0000 (07:11 +0000)]
renamed python 'bookmark' attribute to 'useHighPriority', was renamed in the UI but not in python.

10 years agogrsaaynoel spent ~2hrs to figure this out, theeth, feel free to elaborate if the...
Campbell Barton [Thu, 28 May 2009 06:34:56 +0000 (06:34 +0000)]
grsaaynoel spent ~2hrs to figure this out, theeth, feel free to elaborate if the tip isnt quite correct.

10 years agoProjection paint, cloning from 1 layer to another would show ugly black lines at...
Campbell Barton [Thu, 28 May 2009 06:13:56 +0000 (06:13 +0000)]
Projection paint, cloning from 1 layer to another would show ugly black lines at the seams because interpolation didnt wrap across the image.
Added bilinear_interpolation_color_wrap to be used instead of bilinear_interpolation_color for painting.

10 years ago== FFMPEG ==
Peter Schlaile [Wed, 27 May 2009 22:37:45 +0000 (22:37 +0000)]
== FFMPEG ==

This fixes:
[#17505] Bad Interlacing for NTSC in mpeg-2 files