13 years agoMerge 16964:17122
Martin Poirier [Mon, 20 Oct 2008 00:27:33 +0000 (00:27 +0000)]
Merge 16964:17122

13 years agoAdding undo push and redraw for convert calls.
Martin Poirier [Mon, 20 Oct 2008 00:04:40 +0000 (00:04 +0000)]
Adding undo push and redraw for convert calls.

13 years agoFixed overlapping panels in Armature Buttons that resulted after adding a constraint...
Joshua Leung [Sun, 19 Oct 2008 23:52:28 +0000 (23:52 +0000)]
Fixed overlapping panels in Armature Buttons that resulted after adding a constraint/IK using the hotkeys.

13 years ago=== Blender Python API ===
Nathan Letwory [Sun, 19 Oct 2008 23:20:17 +0000 (23:20 +0000)]
=== Blender Python API ===

* add DataSize() to module level
  with this one can get datablock struct size.

13 years agoforgot to add removeRenderLayer() documentation
Nathan Letwory [Sun, 19 Oct 2008 22:09:45 +0000 (22:09 +0000)]
forgot to add removeRenderLayer() documentation

13 years ago=== SCons ===
Nathan Letwory [Sun, 19 Oct 2008 22:01:46 +0000 (22:01 +0000)]
=== SCons ===

[#17867] Adds option to SCONS to generate Python API documentation

Added patch from Brandano with some small improvements (BF_DOCDIR, clean) by yours truly.

To use make sure you have epydoc installed. Enable with WITH_BF_BPYDOC=1.

13 years ago=== Blender Python API ===
Nathan Letwory [Sun, 19 Oct 2008 21:39:50 +0000 (21:39 +0000)]
=== Blender Python API ===
* fix two typos in RenderLayer API (renderosiy -> renderosity in two places. Will break .py's saved with, just fix passRadiosiy and passRadiosiyXOR)
* add some docs on RenderLayer API
* fix some copy/paste leftover in

13 years agoAdded WITH_BF_NOBLENDER to scons so that blenderplayer can be compiler by itself...
Ken Hughes [Sun, 19 Oct 2008 21:25:17 +0000 (21:25 +0000)]
Added WITH_BF_NOBLENDER to scons so that blenderplayer can be compiler by itself (false by default).  Also added dependency for 'blender' on command line;  seems 'blender' was intended to be a target, but would give the error "Do not know how to make target `blender' ".

13 years agomodified OBJ import and export UI's to be less confusing with nicer layout. removed...
Campbell Barton [Sun, 19 Oct 2008 15:53:22 +0000 (15:53 +0000)]
modified OBJ import and export UI's to be less confusing with nicer layout. removed an unneeded workaround in fbx export.

13 years ago* small code change from Split to env.Glob()
Nathan Letwory [Sun, 19 Oct 2008 13:51:52 +0000 (13:51 +0000)]
* small code change from Split to env.Glob()

13 years ago=== BPy API ===
Nathan Letwory [Sun, 19 Oct 2008 13:48:37 +0000 (13:48 +0000)]
=== BPy API ===
* Add read access for octree resolution

13 years agoonly set the SDL audio driver to alsa when not running in background mode and when...
Campbell Barton [Sun, 19 Oct 2008 06:12:11 +0000 (06:12 +0000)]
only set the SDL audio driver to alsa when not running in background mode and when blender is compiled with SDL.

13 years agosource/blender/blenloader/intern/readfile.c - use memmove rather then strncpy for...
Campbell Barton [Sun, 19 Oct 2008 04:02:37 +0000 (04:02 +0000)]
source/blender/blenloader/intern/readfile.c - use memmove rather then strncpy for overlapping strings.
source/blender/blenlib/intern/fileops.c - zero length strings would check for a slash before the strings first char.
source/gameengine/GameLogic/SCA_JoystickSensor.cpp - m_istrig_prev was not initialized
source/blender/src/editmesh.c - active face pointer was not set to NULL in free_editMesh()

13 years agoFew tiny cleanups in Action Editor code (comments only)
Joshua Leung [Sun, 19 Oct 2008 03:41:49 +0000 (03:41 +0000)]
Few tiny cleanups in Action Editor code (comments only)

13 years agoSelf intersection detection for gestures.
Martin Poirier [Sun, 19 Oct 2008 03:33:53 +0000 (03:33 +0000)]
Self intersection detection for gestures.

Two new gestures:

- Merge: remove cuts on a stroke (gesture is a circle around the cuts to remove). The encircled points are changed to continuous points.
- Convert: convert selected strokes to bones (gesture is a stroke that loops back on itself once).

Note that all those different gestures are experimental. First, to get a good hang on recognition. Second, to try different things.

13 years agoAlt-C and Del/X for convert and delete (no confirmation, no undo, LIVE ON THE EDGE!)
Martin Poirier [Sun, 19 Oct 2008 00:35:00 +0000 (00:35 +0000)]
Alt-C and Del/X for convert and delete (no confirmation, no undo, LIVE ON THE EDGE!)

Fix bug with mouse selection (would selected last stroke when clicking in empty space).

13 years agoDelete Gesture:
Martin Poirier [Sat, 18 Oct 2008 23:54:09 +0000 (23:54 +0000)]
Delete Gesture:

2 segments gesture, going back and forth over a stroke (intersecting twice, angle between segments > 120). Can delete more than one stroke at once. Stroke crossed only once are not deleted.

13 years agoGesture recognition:
Martin Poirier [Sat, 18 Oct 2008 22:16:42 +0000 (22:16 +0000)]
Gesture recognition:
- straight segments are extracted from the strock
- Cut gesture is now on straight strokes only

Trim Gesture:
- Two segments gesture. First segment indicates where the cut is, second indicates which side to trim.

Gesture / Stroke intersection bugfix: better code to deal with perspective (this is very brute force still).

13 years agoBGE bug #17858 fixed: [SHOWSTOPPER] BGE Memory leak. The memory leak has been identi...
Benoit Bolsee [Sat, 18 Oct 2008 18:37:58 +0000 (18:37 +0000)]
BGE bug #17858 fixed: [SHOWSTOPPER]  BGE Memory leak. The memory leak has been identified and fixed in bullet.

13 years agopatch [#17856] Correction on docs for Ipo module. from Lucas Vella (lvella) + some...
Campbell Barton [Sat, 18 Oct 2008 13:33:27 +0000 (13:33 +0000)]
patch [#17856] Correction on docs for Ipo module. from Lucas Vella (lvella) + some other minor changes.

13 years agoAdded joystick epydocs, only changed incorrect docstrings in SCA_JoystickSensor.cpp
Campbell Barton [Sat, 18 Oct 2008 13:23:30 +0000 (13:23 +0000)]
Added joystick epydocs, only changed incorrect docstrings in SCA_JoystickSensor.cpp
patch [#17857] HotKeys Update by dfelinto - SmoothStroke and Anchored.
Made own edits, removed videoscape and added curve and armature specials.

13 years ago* Fixed eekadoodle problem where faces with a zero index vert in the wrong place...
Campbell Barton [Sat, 18 Oct 2008 09:04:25 +0000 (09:04 +0000)]
* Fixed eekadoodle problem where faces with a zero index vert in the wrong place would reotate the UVs and VCols incorrectly
* Fixed an error that made IndexedLineSet and IndexedPointSet not load for x3d's
* Added support for opening gzip x3d/wrl files

13 years agoSkeleton Sketching
Martin Poirier [Fri, 17 Oct 2008 21:52:50 +0000 (21:52 +0000)]
Skeleton Sketching

Cut gesture: drawing a line with RMB adds exact points (joints in the final skeleton) on strokes. Can cut multiple strokes at once as long as it cuts each one only once (this could be changed).

Shape of the gesture doesn't matter, but eventually it would be straight lines shapes for cuts.

13 years agox3d and vrml importer for loading thes files as static scenes. x3d needs a full pytho...
Campbell Barton [Fri, 17 Oct 2008 19:06:24 +0000 (19:06 +0000)]
x3d and vrml importer for loading thes files as static scenes. x3d needs a full python install. VRML97 files can be imported without python.

for details on what is supported see

13 years agoFix for bug #17829: with ATI drivers, GLSL shadows crashed on physics
Brecht Van Lommel [Fri, 17 Oct 2008 13:36:40 +0000 (13:36 +0000)]
Fix for bug #17829: with ATI drivers, GLSL shadows crashed on physics
'show pivot' drawing in the viewport. Also added checks for some other
cases where this could happen.

13 years agoFix for imagepaint soften tool giving a bit too dark results,
Brecht Van Lommel [Fri, 17 Oct 2008 13:34:20 +0000 (13:34 +0000)]
Fix for imagepaint soften tool giving a bit too dark results,
due to poor float-to-char conversion.

13 years agoBGE bug fix (continuation of previous bug fix):
Benoit Bolsee [Fri, 17 Oct 2008 09:24:35 +0000 (09:24 +0000)]
BGE bug fix (continuation of previous bug fix):
- Forgot to make SCA_ISensor::UnregisterToManager() virtual to intercept active-inactive transition on collision sensor to clear colliders reference.
- Don't record collision on inactive sensor.
  This situation occurs when an object with an inactive collision sensor collides with an object with an active collision sensor: the collision handler triggers both sensors.
  The result of this bug was pending references that eventually cause temporary memory leak (until the sensor is reactivated).

13 years agoBugfixes for sketching with multiple 3d view (correct update and poly line preview...
Martin Poirier [Fri, 17 Oct 2008 04:17:16 +0000 (04:17 +0000)]
Bugfixes for sketching with multiple 3d view (correct update and poly line preview in all views).

Fixed a bug with correlation conversion (matrix application wasn't done at the correct place).

13 years agoBGE showstopper bug fix:
Benoit Bolsee [Thu, 16 Oct 2008 23:33:40 +0000 (23:33 +0000)]
BGE showstopper bug fix:
- Reset hit object pointer at end of frame of touch sensor to avoid returning invalid pointer to getHitObject().
- Clear all references in KX_TouchSensor::m_colliders when the sensor is disabled to avoid loose references.
- Test GetSGNode() systematically for all KX_GameObject functions that can be called from python in case a python controller keeps a reference in GameLogic (bad practice anyway).

13 years agoFirst draft for sketching gestures.
Martin Poirier [Thu, 16 Oct 2008 21:48:35 +0000 (21:48 +0000)]
First draft for sketching gestures.
Destures are done with RMB drag
ESC can now also be used to end a polyline.

13 years ago[#17845] View Snapping causes background grid confusion
Martin Poirier [Thu, 16 Oct 2008 21:43:25 +0000 (21:43 +0000)]
[#17845] View Snapping causes background grid confusion

view needs to be reset while moving to take care of view snapping properly.

13 years agoColor fade out to indicate the direction of a stroke.
Martin Poirier [Wed, 15 Oct 2008 21:25:42 +0000 (21:25 +0000)]
Color fade out to indicate the direction of a stroke.

13 years agoSubdivision schemes for continuous strokes:
Martin Poirier [Wed, 15 Oct 2008 19:31:32 +0000 (19:31 +0000)]
Subdivision schemes for continuous strokes:

Subdivide in equal length bones
Subdivide by correlation (linearity limits)

Code borrowed in parts from the skeleton generator. Will be eventually reuse code more efficiently.

13 years agovrml exporting with images was broken.
Campbell Barton [Tue, 14 Oct 2008 23:43:08 +0000 (23:43 +0000)]
vrml exporting with images was broken.

13 years agocleanup epydoc errors
Campbell Barton [Tue, 14 Oct 2008 22:31:10 +0000 (22:31 +0000)]
cleanup epydoc errors

13 years ago== windows installer ==
Andrea Weikert [Tue, 14 Oct 2008 20:27:37 +0000 (20:27 +0000)]
== windows installer ==
small update for release 2.48 - no need to re-tag

13 years agoConvert and Delete only selected strokes.
Martin Poirier [Tue, 14 Oct 2008 20:03:21 +0000 (20:03 +0000)]
Convert and Delete only selected strokes.
Convert no longer remove converted strokes.
Akey -> select all/deselect all strokes

13 years ago=== Installer (win32) ===
Nathan Letwory [Tue, 14 Oct 2008 16:24:27 +0000 (16:24 +0000)]
=== Installer (win32) ===

* Fix for [#17651] Silent Install Issue
  - make sure silent install is really silent ( /S on command-line)
* Improve installer to check for msvc90.dll
* Improve installer to check for py 25 install (using registry)

13 years agoresaved in the gimp, now loads with libpng 1.2.30
Campbell Barton [Tue, 14 Oct 2008 14:10:49 +0000 (14:10 +0000)]
resaved in the gimp, now loads with libpng 1.2.30

13 years agoBugfix #17832
Ton Roosendaal [Tue, 14 Oct 2008 12:16:12 +0000 (12:16 +0000)]
Bugfix #17832

Particle system crashed in convertblender, missing NULL check.
This fixes crash, render survives, but I doubt it was meant so...

Will leave it Janne to evaluate later.

13 years agoCollisions: CollisionModifier needs to be resetted for every loop
Daniel Genrich [Tue, 14 Oct 2008 11:54:07 +0000 (11:54 +0000)]
Collisions: CollisionModifier needs to be resetted for every loop

13 years agoBugfix for regression from 2.46 on cloth collisions reported by Daniel Salazar via IRC
Daniel Genrich [Tue, 14 Oct 2008 11:50:30 +0000 (11:50 +0000)]
Bugfix for regression from 2.46 on cloth collisions reported by Daniel Salazar via IRC

13 years agoBugfix on IRC report. Luckily Daniel Salazar *does* carefully check our
Ton Roosendaal [Tue, 14 Oct 2008 11:42:53 +0000 (11:42 +0000)]
Bugfix on IRC report. Luckily Daniel Salazar *does* carefully check our
regression files, it showed small dark outline errors on envmap.

This commit rewinds bugfix #8437, which actually had to be fixed on
another location in code, which was done a few weeks ago. :)

13 years agoBugreport in IRC: Area lamp, "Constant jitterred" had wrong alignment
Ton Roosendaal [Tue, 14 Oct 2008 10:55:18 +0000 (10:55 +0000)]
Bugreport in IRC: Area lamp, "Constant jitterred" had wrong alignment
code, causing the "SamplesY" button to overlap others.

13 years agoBugfix #17830
Ton Roosendaal [Tue, 14 Oct 2008 10:44:22 +0000 (10:44 +0000)]
Bugfix #17830

Index OB pass didn't support FSA for Ztransp.
Also made buttons to set black/white for non-RGBA images hide in Image Window,
the Curves color code only supports 4 channels atm.

13 years agoAction Editor - Grease Pencil Bugfix:
Joshua Leung [Tue, 14 Oct 2008 10:11:01 +0000 (10:11 +0000)]
Action Editor - Grease Pencil Bugfix:

When Action Editor was maximised, Grease Pencil data disappeared. This was due to the screen-swapping that went on. Now, it uses the old-screen that was stored in the maximised Action Editor's screen (should be safe...)

13 years agoGrease Pencil Bugfixes:
Joshua Leung [Tue, 14 Oct 2008 09:36:08 +0000 (09:36 +0000)]
Grease Pencil Bugfixes:
* Onion-skinning with GStep > 0 was not showing enough of a noticable difference between ghosts. Improved method of calculating this.

* Clicking in a Grease-Pencil datablock channel in the Action Editor would crash

13 years agobugfix: copy/paste bug merged from Bullet main repo into Blender, hope it still can...
Erwin Coumans [Tue, 14 Oct 2008 06:14:25 +0000 (06:14 +0000)]
bugfix: copy/paste bug merged from Bullet main repo into Blender, hope it still can make 2.48

13 years agoEmbed point looks at last point, whether it was part of a continuous stroke or not...
Martin Poirier [Tue, 14 Oct 2008 01:25:30 +0000 (01:25 +0000)]
Embed point looks at last point, whether it was part of a continuous stroke or not (gives better results for poly lines)

Stroke selection (LMB and Shift-LMB).
Selected strokes drawn in red.
Eventually convert and delete will work on selection.

13 years agoSkeleton Sketching
Martin Poirier [Mon, 13 Oct 2008 23:41:38 +0000 (23:41 +0000)]
Skeleton Sketching

- Delete Sketch button
- During continuous strokes, when moving out from and back into an embeding, interpolate depth of the stroke like is done when snapping

13 years agoPart two of the 2.48 release preparation!
Ton Roosendaal [Mon, 13 Oct 2008 10:03:17 +0000 (10:03 +0000)]
Part two of the 2.48 release preparation!
(After this svn tag)

13 years agoPart one of the release 2.48 commit.
Ton Roosendaal [Mon, 13 Oct 2008 10:01:52 +0000 (10:01 +0000)]
Part one of the release 2.48 commit.

13 years agomissing calls to countall() on switching scenes in the outliner.
Campbell Barton [Mon, 13 Oct 2008 03:55:59 +0000 (03:55 +0000)]
missing calls to countall() on switching scenes in the outliner.

13 years agoAdded a -noglsl option to disable GLSL from the command line.
Brecht Van Lommel [Sun, 12 Oct 2008 18:32:26 +0000 (18:32 +0000)]
Added a -noglsl option to disable GLSL from the command line.

13 years agoMultiply by armature inverse matrix to make sure converted bones are where they shoul...
Martin Poirier [Sun, 12 Oct 2008 17:54:47 +0000 (17:54 +0000)]
Multiply by armature inverse matrix to make sure converted bones are where they should be.

13 years agoFirst draft for converting sketches to armature.
Martin Poirier [Sun, 12 Oct 2008 17:33:03 +0000 (17:33 +0000)]
First draft for converting sketches to armature.

- New Convert button in the bone sketching float panel
- Only adds straight bones between exact points (not continuous strokes) for now.

13 years agohard limit in for bpy material was wrong
Campbell Barton [Sun, 12 Oct 2008 15:35:17 +0000 (15:35 +0000)]
hard limit in for bpy material was wrong

13 years agocorrection to epydoc
Campbell Barton [Sun, 12 Oct 2008 14:27:30 +0000 (14:27 +0000)]
correction to epydoc

13 years ago- Fix for bug #17825: baking SSS is not supported, but it didn't give
Brecht Van Lommel [Sun, 12 Oct 2008 13:32:28 +0000 (13:32 +0000)]
- Fix for bug #17825: baking SSS is not supported, but it didn't give
  proper results, should bake as if SSS was disabled.
- Fix for GLSL to handle failing shadow buffer creation better.
- Fix for sky/atmosphere version patch, was not doing files from 2.46
  and newer.

13 years agoBugfix, studio report by Pablo Venomgfx
Ton Roosendaal [Sun, 12 Oct 2008 13:16:23 +0000 (13:16 +0000)]
Bugfix, studio report by Pablo Venomgfx

- insert key crashed when object ipo was in action, but action got unlinked
  from object

13 years ago== Sequencer ==
Peter Schlaile [Sun, 12 Oct 2008 12:00:26 +0000 (12:00 +0000)]
== Sequencer ==

This fixes (works around):
[#13598] LOAD / SAVE: Segfault after attempting to load surround encoded file

13 years agoin rare cases the screen cant be found for BPy's file/image selector
Campbell Barton [Sun, 12 Oct 2008 11:31:11 +0000 (11:31 +0000)]
in rare cases the screen cant be found for BPy's file/image selector

13 years agoSmall fix, ancient issue:
Ton Roosendaal [Sun, 12 Oct 2008 11:13:35 +0000 (11:13 +0000)]
Small fix, ancient issue:
drawing object names in 3d window, zbuffered mode, didn't show up.

13 years agoc3d_import needed encoding defined for python 2.5+ to run.
Campbell Barton [Sun, 12 Oct 2008 10:39:45 +0000 (10:39 +0000)]
c3d_import needed encoding defined for python 2.5+ to run.
wav file reading minor fix checking array bounds.

13 years agoread wave files block align value, rather then assuming 2 or 4.
Campbell Barton [Sun, 12 Oct 2008 07:58:05 +0000 (07:58 +0000)]
read wave files block align value, rather then assuming 2 or 4.

13 years ago* Patch #17729 from Dalai Felinto
Matt Ebb [Sun, 12 Oct 2008 06:39:47 +0000 (06:39 +0000)]
* Patch #17729 from Dalai Felinto

Additional sculpt mode hotkeys to toggle Smooth stroke (Shift S) and Anchored brush (Shift A) . Menus are updated with hotkeys too. This is a real last minute one, but it was given the ok previously, and I've just had time to commit this for him.

13 years agoBugfix:
Joshua Leung [Sun, 12 Oct 2008 00:59:58 +0000 (00:59 +0000)]

Grease Pencil panel in Sequencer and Nodes were not able to be minimised.

13 years agofix for [#17783] problem when packing wav
Campbell Barton [Sun, 12 Oct 2008 00:51:55 +0000 (00:51 +0000)]
fix for [#17783] problem when packing wav
"data" is aligned differently in this wave file and the buffer was read past its allocated length.

Fix this by searching for the buffer in increments of 2 (this finds the "data" for the wav file)
added a check not to allow the search to go past the buffer length, so corrupt wave files should not crash.

13 years agoFix for opengl errors being thrown when creating textures, it was
Brecht Van Lommel [Sun, 12 Oct 2008 00:41:28 +0000 (00:41 +0000)]
Fix for opengl errors being thrown when creating textures, it was
setting the magnification to GL_LINEAR_MIPMAP_NEAREST but that is
only valid for minifaction, should be GL_LINEAR instead. OpenGL
driver should refuse setting this so should be harmless, but better
to fix it anyway.

13 years agoGrease Pencil Bugfixs:
Joshua Leung [Sun, 12 Oct 2008 00:13:25 +0000 (00:13 +0000)]
Grease Pencil Bugfixs:

- Eraser now works in Sequence Editor. Cleaned up the code that handles Sequencer coordinate-conversions so that it should be a bit faster (doesn't need to recalculate offsets+scaling for every point that is made).

- Fixed mistake made in previous commit that made the pressure value (for tablets) an integer instead or a float. This should solve some of the reports of bits of strokes being missed on tablets.

13 years agoFix for two more game engine issues:
Brecht Van Lommel [Sat, 11 Oct 2008 23:48:37 +0000 (23:48 +0000)]
Fix for two more game engine issues:
* Debug text drawing didn't disable textures correct leaving
  texture state invalid, quite old issue.
* Multitexture materials didn't get enabled correct, recent bug.

Both pointed out by José Ignacio Romero, thanks!

13 years agoFix crash in game engine IPO code, got out of sync after IPO cleanup, removed the...
Brecht Van Lommel [Sat, 11 Oct 2008 22:29:50 +0000 (22:29 +0000)]
Fix crash in game engine IPO code, got out of sync after IPO cleanup, removed the duplicated function declarations.

13 years agoActual fix for bug #17819, that doesn't disable the functionality, crash with tiled...
Brecht Van Lommel [Sat, 11 Oct 2008 22:16:39 +0000 (22:16 +0000)]
Actual fix for bug #17819, that doesn't disable the functionality, crash with tiled image textures in the game engine.

13 years agoprevent crash in gpu_draw.c, so tilemode might not have GLSL/GPU features
Erwin Coumans [Sat, 11 Oct 2008 20:54:18 +0000 (20:54 +0000)]
prevent crash in gpu_draw.c, so tilemode might not have GLSL/GPU features

/* for tiles, copy only part of image into buffer */
if (GTS.tilemode) {
return 0; //disabled for now, it causes crashes

See tracker issue here:

13 years agoLast (hopefully) soft body fixes:
Erwin Coumans [Sat, 11 Oct 2008 20:19:04 +0000 (20:19 +0000)]
Last (hopefully) soft body fixes:
Enable soft body collision clusters by default.
Add option to 'disable collision' button between soft body and rigid body connected by constraint (option was already available between two rigid bodies)

13 years agoBone sketching clean up
Martin Poirier [Sat, 11 Oct 2008 19:53:39 +0000 (19:53 +0000)]
Bone sketching clean up

Armature edit mode only (panel accessible in Armature header menu)
Can be turned on or off
Ctrl also snaps to edit bones' head and tail

13 years agoFix for bug #17794: GLSL didn't take into account normal maps
Brecht Van Lommel [Sat, 11 Oct 2008 19:34:48 +0000 (19:34 +0000)]
Fix for bug #17794: GLSL didn't take into account normal maps
for Nor texture inputs.

13 years agoremove constraints from world, if not done yet
Erwin Coumans [Sat, 11 Oct 2008 19:32:53 +0000 (19:32 +0000)]
remove constraints from world, if not done yet

13 years agoFix for recent commit, should only do glFinish() on Windows.
Brecht Van Lommel [Sat, 11 Oct 2008 18:58:07 +0000 (18:58 +0000)]
Fix for recent commit, should only do glFinish() on Windows.

13 years agoFix for bug #17809: crash with glsl materials and nodes refresh,
Brecht Van Lommel [Sat, 11 Oct 2008 18:52:36 +0000 (18:52 +0000)]
Fix for bug #17809: crash with glsl materials and nodes refresh,
didn't attach to the right materials to the lamp.

13 years agoFix for bug #17793: the glFinish() call in ghost that was disabled in a previous...
Brecht Van Lommel [Sat, 11 Oct 2008 16:03:17 +0000 (16:03 +0000)]
Fix for bug #17793: the glFinish() call in ghost that was disabled in a previous commit, because it was causing performance issues for the game engine, apparently still is needed to solved issues with FSAA. Now instead it will still call this for blender but not anymore for blenderplayer.

13 years agoUpdated python license, this is compatible with current 2.5 and older.
Ton Roosendaal [Sat, 11 Oct 2008 15:55:22 +0000 (15:55 +0000)]
Updated python license, this is compatible with current 2.5 and older.

13 years agoBugfix #17810: Blender crashes when constraint-keys are moved in NLA
Joshua Leung [Sat, 11 Oct 2008 12:23:56 +0000 (12:23 +0000)]
Bugfix #17810: Blender crashes when constraint-keys are moved in NLA

Copy and paste error. Was using ob-ipo instead of conchan->ipo

13 years agoQuick PyAPI patch:
Joshua Leung [Sat, 11 Oct 2008 12:17:16 +0000 (12:17 +0000)]
Quick PyAPI patch:

Now it is possible to clean IPO-curves using the call:
There's an optional value to specify the threshold to use for cleaning.

This just wraps the internal clean_ipo_curve() function.

13 years agoGrease Pencil Bugfixes:
Joshua Leung [Sat, 11 Oct 2008 11:07:25 +0000 (11:07 +0000)]
Grease Pencil Bugfixes:

* Fix for #17808: Can't compile using SunCC - gpencil.c uses DOS line endings.
Added some svn-properties on gpencil files and also keyframing ones that I added, so that this shouldn't be a problem anymore.

* In Node Editor, it is now possible to close an open Grease Pencil panel when there is no node-tree being shown (i.e. after switching between node editing modes)

13 years agoremoved warning in fluidsim.c
Campbell Barton [Sat, 11 Oct 2008 04:30:09 +0000 (04:30 +0000)]
removed warning in fluidsim.c
fixed tooltip for delay sensor - delay is in tics not frames

13 years agoFix for a relative paths issue in the game engine. G.sce was being
Brecht Van Lommel [Sat, 11 Oct 2008 00:56:49 +0000 (00:56 +0000)]
Fix for a relative paths issue in the game engine. G.sce was being
kept as the original file, but that can't work correct for solving
relative paths once a .blend in another directory is loaded. The
reason it went OK with the apricot tech demo is that the images there
were lib linked into the level file, which still worked.

Now it sets G.sce to the current loaded .blend file. Note that the
python config file path still uses the first loaded .blend file so it
looks in the same location each time.

Also added some NULL pointer checks in the joystick code because it
was crashing there on Mac, there's similar checks in related functions
so I'm assuming this was just a missed case.

13 years agoBugfix #17802: Grease Pencil still draws when not shown in Image Editor
Joshua Leung [Fri, 10 Oct 2008 22:49:17 +0000 (22:49 +0000)]
Bugfix #17802: Grease Pencil still draws when not shown in Image Editor

Added missing check for this case.

13 years agoSketch Embed: fix bug when used in edit mode. It's not supposed to be used in mesh...
Martin Poirier [Fri, 10 Oct 2008 20:23:49 +0000 (20:23 +0000)]
Sketch Embed: fix bug when used in edit mode. It's not supposed to be used in mesh edit mode, but at least now it doesn't crash.

13 years agoThis commit fixes bug: [#17770] Texture Plugins do not work. (on windows)
Kent Mein [Fri, 10 Oct 2008 17:52:25 +0000 (17:52 +0000)]
This commit fixes bug: [#17770] Texture Plugins do not work. (on windows)
Thanks to Lguillaume for helping with this one.

Had to go back to bug: [#17631] PIL_dynlib_get_error_as_string() returns NULL, causes crash

and revert the fix and make some new updates.
function needs to return NULL so fix the functions that were assuming it
always returns a string.


13 years agoMissing include, apparently only scons+mingw suffers this, strange.
Ton Roosendaal [Fri, 10 Oct 2008 14:22:54 +0000 (14:22 +0000)]
Missing include, apparently only scons+mingw suffers this, strange.

13 years agoContinuous Embedded Stroke: First point was incorrectly embedded because of missing...
Martin Poirier [Fri, 10 Oct 2008 13:36:05 +0000 (13:36 +0000)]
Continuous Embedded Stroke: First point was incorrectly embedded because of missing variable assign.

13 years agoBGE bug #17789 fixed: Lock Active Camera and Layer to Scene doesn't work in BGE....
Benoit Bolsee [Fri, 10 Oct 2008 07:20:42 +0000 (07:20 +0000)]
BGE bug #17789 fixed: Lock Active Camera and Layer to Scene doesn't work in BGE. This bug fix applies only to games started from the 3D view. Now the BGE will use the layer and camera selected in the 3d viewport under the mouse when the user presses P. Note that there is still a problem with the restart game actuator but that's another bug.

13 years agofix: leave default behaviour the same to be backward compatible with previous rigid...
Erwin Coumans [Fri, 10 Oct 2008 05:32:04 +0000 (05:32 +0000)]
fix: leave default behaviour the same to be backward compatible with previous rigid body constraints: No Collision between linked objects if button is pressed.

13 years agouse BLI_strcasecmp instead of strcasecmp so it actually links under Windows
Erwin Coumans [Fri, 10 Oct 2008 05:17:47 +0000 (05:17 +0000)]
use BLI_strcasecmp instead of strcasecmp so it actually links under Windows

13 years agoFix bug in rigid body constraint buttons drawing, and while we are at it, add 'Collis...
Erwin Coumans [Fri, 10 Oct 2008 05:12:57 +0000 (05:12 +0000)]
Fix bug in rigid body constraint buttons drawing, and while we are at it, add 'Collision' button to disable collisions between bodies, linked between constraint.

13 years agoStroke embedding. When doing continuous strokes, use the depth hit closests to last...
Martin Poirier [Fri, 10 Oct 2008 02:59:09 +0000 (02:59 +0000)]
Stroke embedding. When doing continuous strokes, use the depth hit closests to last, so you can start on a limb and then continue drawing inside it even if things overlap.

13 years agofix for [#12255] Rename the File at File Window,the file is deleted
Campbell Barton [Thu, 9 Oct 2008 22:44:52 +0000 (22:44 +0000)]
fix for [#12255] Rename the File at File Window,the file is deleted

renaming a file on win32 would delete it because it didnt test if the 2 filenames were the same (case insensitive), and remove the 'to' file to make way for the 'from' file.

13 years ago== Python ==
Willian Padovani Germano [Thu, 9 Oct 2008 22:28:44 +0000 (22:28 +0000)]
== Python  ==

Bug: [#17734] Loading a python script's help dosn't work

reported by Rian Tut (thanks).

Actual problem: scripts with spaces in their filenames were not supported by the code that registers scripts in menus and runs them. Added support w/o breaking eventual, rare scripts that parse the Bpymenus file. They will still need an update to support filenames with spaces, like done here for these scripts: Scripts Help Browser and Scripts Config Editor.

PS: tested on Linux. Please test on other platforms: just make sure scripts still appear in menus (the File->Export, for example), even after re-registering them (Scripts window -> Scripts Menu -> Update Menus) and that the Scripts Help Browser still works.

13 years ago- Filter continuous strokes as they are drawn instead of only when ending a line.
Martin Poirier [Thu, 9 Oct 2008 21:39:26 +0000 (21:39 +0000)]
- Filter continuous strokes as they are drawn instead of only when ending a line.
- Pair depth hits per object, to stay consistent if you have an object instead another one (say, if you're drawing on a coat and at one point the hand starts, you don't want to pair the first hit on the coat with the first hit on the hand).