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

10 years agolast-minute Bullet bugfix: accidently commented out a constraint limit test, causing...
Erwin Coumans [Wed, 27 May 2009 22:27:10 +0000 (22:27 +0000)]
last-minute Bullet bugfix: accidently commented out a constraint limit test, causing instability for springs.

10 years agoDXF-importer second update: v1.12 - 2009.05.26 by migius
Remigiusz Fiedler [Wed, 27 May 2009 13:32:09 +0000 (13:32 +0000)]
DXF-importer second update: v1.12 - 2009.05.26 by migius
 - changed to the new 2.49 method Vector.cross()

10 years agoDXF-importer update: v1.12 - 2009.05.26 by migius
Remigiusz Fiedler [Wed, 27 May 2009 11:57:39 +0000 (11:57 +0000)]
DXF-importer update: v1.12 - 2009.05.26 by migius
 - bugfix WORLDY(1,1,0) to (0,1,0)

10 years agoflag the images as dirty when projection painting (so there is the option to repack...
Campbell Barton [Wed, 27 May 2009 03:43:22 +0000 (03:43 +0000)]
flag the images as dirty when projection painting (so there is the option to repack a packed image)

10 years agoWorkaround for size 1 brushes not working with projection paint,
Campbell Barton [Wed, 27 May 2009 02:03:22 +0000 (02:03 +0000)]
Workaround for size 1 brushes not working with projection paint,
need to investigate why this wont work but for now just clamp the value while projection painting.

10 years ago"Motor at limit" jitter fixed for btGeneric6Dof constraint, fix taken from Bullet...
Erwin Coumans [Wed, 27 May 2009 01:29:41 +0000 (01:29 +0000)]
"Motor at limit" jitter fixed for btGeneric6Dof constraint, fix taken from Bullet SVN repo.

Now we need some cool constraint limit/motor/spring demos, such as a Forklift demo, moving robots, ragdolls etc. for Blender 2.49!

10 years agoBGE: fix a bug with kinematic object not giving the correct friction to dynamic objec...
Benoit Bolsee [Tue, 26 May 2009 21:32:19 +0000 (21:32 +0000)]
BGE: fix a bug with kinematic object not giving the correct friction to dynamic object when they have a translation and rotation movement at the same time (translation is ignored). Performance: avoid unnecessary synchronization for static object.

10 years agoBGE VideoTexture: VideoFFmpeg was missing a rewind function: rename stop() to pause...
Benoit Bolsee [Tue, 26 May 2009 18:37:46 +0000 (18:37 +0000)]
BGE VideoTexture: VideoFFmpeg was missing a rewind function: rename stop() to pause() and add stop() that will also reset the frame counter.

10 years agoBGE PyAPI Bug reported by Pitel on blenderartist.
Campbell Barton [Tue, 26 May 2009 18:06:09 +0000 (18:06 +0000)]
BGE PyAPI Bug reported by Pitel on blenderartist.
importing "pygame" failed when running the BGE for the second time.

Rather then clearing modules, backup and restore them (as its doing with sys.path)

This way the BGE will never remember any modules imported during game play (which can cause bugs/crashes), but it also wont break pythons state by possibly removing modules that are being used internally.

10 years agoBGE build probs with CMake: directory "source/gameengine/SceneGraph"
Chris Want [Tue, 26 May 2009 17:15:29 +0000 (17:15 +0000)]
BGE build probs with CMake: directory "source/gameengine/SceneGraph"
was been referenced as "source/gameengine/Scenegraph" in some
include paths.

10 years agoBGE Py API
Campbell Barton [Tue, 26 May 2009 16:15:40 +0000 (16:15 +0000)]
BGE Py API
- Deprecation warnings for using attribute access

- Added dictionary functions to KX_GameObject and ListValue
    ob.get(key, default=None)
    ob.has_key(key)
 ob.has_key is important since there was no way to do something like hasattr(ob, "attr") which can be replaced by ob.has_key("attr") - (both still work of course).
 ob.get is just useful in many cases where you want a property if it exists but can fallback to a default.

- CListValue::FindValue was adding a reference but the ~3 places it was used were releasing the reference. added a FindValue that accepts a const char* type to avoid converting python strings to STR_String.

10 years agoFix for bug #18788: vector math node subtract did not work,
Brecht Van Lommel [Tue, 26 May 2009 15:01:06 +0000 (15:01 +0000)]
Fix for bug #18788: vector math node subtract did not work,
patch by Matt D., thanks.

10 years agoBugfix #18801
Ton Roosendaal [Tue, 26 May 2009 13:46:08 +0000 (13:46 +0000)]
Bugfix #18801

Third transparent shadow bug... this time it's a Material Node, which
has mirror + transp-shadow on, and when it traces its own material it
enters an eternal loop...

Raytracing + shading + materialnode combo really needs work!

10 years ago== Sequencer ==
Peter Schlaile [Tue, 26 May 2009 12:57:16 +0000 (12:57 +0000)]
== Sequencer ==

This adds a per preview option to set render sizes (which proxy size is used).
That makes it possible to have
* several small preview screens which update really fast using the proxy files
* one large output screen that operates in full resolution

Since most of the time not all input strips are considered when calculating
an output screen, this is a big win.

Also: one can disable a preview screen completely using this option.

Other use cases: vector + chromaviews don't always need full resolution
pictures and work equally well on proxy files!

This option finally makes my working setup _completely_ realtime :)

10 years agoMisc warnings
Campbell Barton [Tue, 26 May 2009 10:44:14 +0000 (10:44 +0000)]
Misc warnings
- Removed/Commented some unused vars
- CValue::GetPropertyText() could return a temp reference to a variable on the stack, option wasnt used anywhere so removed.
- KX_ConstraintWrapper::GetConstraintId allows args but ignored them
- KX_ConstraintWrapper::PySetParam didnt return NULL on an error (messing up pythons exceptions).
- BLI_natstrcmp didnt return 0 when the while loop exited

10 years agoBugfix: (discovered by course participant :)
Ton Roosendaal [Tue, 26 May 2009 08:30:28 +0000 (08:30 +0000)]
Bugfix: (discovered by course participant :)

Brush option "Clone" didn't read linked Clone Image from file.
No idea how this ever could work even... even for Undo it
would crash.

10 years agoBGE Script template for a python module (set EOL to native this time)
Campbell Barton [Tue, 26 May 2009 07:41:34 +0000 (07:41 +0000)]
BGE Script template for a python module (set EOL to native this time)
BGE PyAPI use defines for error return values
 - del gameOb['var'] error message was wrong.

10 years agoInterface
Ken Hughes [Tue, 26 May 2009 00:14:22 +0000 (00:14 +0000)]
Interface
---------
Fixing typo in TimeOffset tooltip.

10 years agoIRIX: use python 2.5 by default
Stefan Gartner [Mon, 25 May 2009 23:35:29 +0000 (23:35 +0000)]
IRIX: use python 2.5 by default

10 years agotiny fix for irix: use putenv instead of setenv
Stefan Gartner [Mon, 25 May 2009 23:20:38 +0000 (23:20 +0000)]
tiny fix for irix: use putenv instead of setenv

10 years agoInterface
Ken Hughes [Mon, 25 May 2009 16:09:22 +0000 (16:09 +0000)]
Interface
---------
Bugfix 18811: long filenames caused stack corruption in BLI_adddirstrings().

10 years ago* UI tweaks to python controller (more space for module name), setParent actuator...
Campbell Barton [Mon, 25 May 2009 11:39:09 +0000 (11:39 +0000)]
* UI tweaks to python controller (more space for module name), setParent actuator use less space
* object_drop.py - option to orient to face normal (useful for scattering objects over terrain), accounts for normal flipping and can adjust the orientation %.

10 years agoBGE Joystick Hat Bugfix
Campbell Barton [Mon, 25 May 2009 06:24:23 +0000 (06:24 +0000)]
BGE Joystick Hat Bugfix
bug reported by blenderage on blenderartist (found other bugs too).

- "All Hat Events" didnt work.
- Multiple hats didnt work
- use a menu with direction names rather then have the user guess. disallow zero as a direction.
- Allow up to 4 hats (was 2).
- Python api was clamping the axis to 2, maximum is currently JOYAXIS_MAX - 16
- New python attributes hatValues and hatSingle, match axis functions.
- Use SDL Axis events to fill in the axis and hat array rather then filling in every axis with SDL_JoystickGetAxis for each axis event.

10 years agoPressing the '~' key in the ipo view didnt store the view state in the ipo curves...
Campbell Barton [Mon, 25 May 2009 03:06:03 +0000 (03:06 +0000)]
Pressing the '~' key in the ipo view didnt store the view state in the ipo curves as clicking on the ipo channel names does.

10 years ago[#18819] save and load globalDictionary actuators don't load the proper files in...
Campbell Barton [Mon, 25 May 2009 02:39:05 +0000 (02:39 +0000)]
[#18819] save and load globalDictionary actuators don't load the proper files in 2.49 RC3
For this actuator to be useful it needs to use the first opened blendfile as the base name for the configuration file.
A recent fix that made the gp_GamePythonPath always match the current loaded blend file made this actuator work differently.

keep the original filename to use for making the config name so you can load the config between loading blendfiles.

10 years ago[#18808] Unstable results of Pack Margin in UV editor
Campbell Barton [Mon, 25 May 2009 02:11:18 +0000 (02:11 +0000)]
[#18808] Unstable results of Pack Margin in UV editor
was scaling the margin by the area twice

10 years ago[#18731] trouble with the python api in assigning script constraint's target.
Campbell Barton [Mon, 25 May 2009 01:45:35 +0000 (01:45 +0000)]
[#18731] trouble with the python api in assigning script constraint's target.
- Setting the constraint script from python didnt update the target count
- Setting objects didnt work at all, since it checked the input sequence for being an BPy_Object type (rather then an item in the sequence)

10 years agoquick fix still allowed for possible crash, check for valid newlibadr return value...
Campbell Barton [Mon, 25 May 2009 01:00:17 +0000 (01:00 +0000)]
quick fix still allowed for possible crash, check for valid newlibadr return value in the while loop.

10 years agomissing null check, would crash blender when loading some files
Campbell Barton [Mon, 25 May 2009 00:31:41 +0000 (00:31 +0000)]
missing null check, would crash blender when loading some files

10 years agoutility script for cleaning ipos animation curves,
Campbell Barton [Mon, 25 May 2009 00:30:06 +0000 (00:30 +0000)]
utility script for cleaning ipos animation curves,
used in YoFrankie to reduce file size for large actions

10 years ago- BGE Py API, any py function/attribute that took a KX_GameObject would not accept...
Campbell Barton [Sun, 24 May 2009 23:43:10 +0000 (23:43 +0000)]
- BGE Py API, any py function/attribute that took a KX_GameObject would not accept a KX_Light or KX_Camera (bad oversight on my part)
- Typo in occlusion variable init "m_buffer == NULL;" -> "m_buffer = NULL;"

CcdPhysicsEnvironment.cpp and CcdPhysicsController.cpp had too many warnings, fixed most of them.

10 years agoVideoTexture: exception in C++ was not returning an error in Python. Added function...
Benoit Bolsee [Sun, 24 May 2009 23:12:38 +0000 (23:12 +0000)]
VideoTexture: exception in C++ was not returning an error in Python. Added function name ini PyArg_ParseTuple.

10 years ago== Sequencer ==
Peter Schlaile [Sun, 24 May 2009 19:54:35 +0000 (19:54 +0000)]
== Sequencer ==

This fixes a stupid mistake in proxy handling with custom files:
CFRA not calculated correctly for proxy...

10 years agoAction actuator default value changed from 0.0 to 1.0. Bookmark renamed to Mark and...
Dalai Felinto [Sun, 24 May 2009 19:21:54 +0000 (19:21 +0000)]
Action actuator default value changed from 0.0 to 1.0. Bookmark renamed to Mark and other small logic tooltip changes

- IPOs and actions start it's frame counting in frame 1, not zero.
- Talked with Ben and we agreed to rename the "bookmark" feature before an official release.
- some English typos.
- removed all period in the end of tooltips for consistency's sake.

* note:
I resisted one more time to the temptation of alphabetical ordering the Sensors and Actuators.

That will be the first thing I would like to do after we are done with 2.49 :)
It really annoys me as a user.

10 years agoUser Interface
Ken Hughes [Sun, 24 May 2009 16:22:09 +0000 (16:22 +0000)]
User Interface
--------------
Bugfix 18817: DataBrowse for MTex used Material IDs instead of Texture IDs.

10 years ago== Sequencer ==
Peter Schlaile [Sun, 24 May 2009 14:14:58 +0000 (14:14 +0000)]
== Sequencer ==

Made relative paths work with custom proxy files.