14 years agofixed a runtime problem with stl container usage, as reported on bf-committers mailin...
Erwin Coumans [Mon, 16 Jan 2006 19:34:52 +0000 (19:34 +0000)]
fixed a runtime problem with stl container usage, as reported on bf-committers mailing list

14 years agoclean up some warnings in bpy code
Stephen Swaney [Mon, 16 Jan 2006 17:55:03 +0000 (17:55 +0000)]
clean up some warnings in bpy code

14 years ago* added missing file
Joseph Gilbert [Mon, 16 Jan 2006 16:37:00 +0000 (16:37 +0000)]
* added missing file
- for some reason mesh_data types file was not in project

14 years ago*fixes global redefinitions
Joseph Gilbert [Mon, 16 Jan 2006 16:34:08 +0000 (16:34 +0000)]
*fixes global redefinitions
- added some extern keywords

14 years agoAlligned bone pose copy buttons (noticed in orange screenshot)
Campbell Barton [Mon, 16 Jan 2006 11:57:04 +0000 (11:57 +0000)]
Alligned bone pose copy buttons (noticed in orange screenshot)
Also found that Proportional edit button starts allign but dosent end align. Didnt chgange incase this is intended??
Take a look header_view3d.c:4390

14 years ago* Tiny tweak to button alignment after Campbell's commit.
Matt Ebb [Mon, 16 Jan 2006 11:27:50 +0000 (11:27 +0000)]
* Tiny tweak to button alignment after Campbell's commit.

Campbell, most of the changes you made seem ok, but you do have to be careful since it's not just about looking good, it's also about grouping things meaningfully. We did some thoughts on more concrete guidelines for this here:

14 years agoAdded user interface to OBJ import.
Campbell Barton [Mon, 16 Jan 2006 06:33:55 +0000 (06:33 +0000)]
Added user interface to OBJ import.
With options.
('Material (*.mtl)', IMPORT_MTL, 'Imports material settings and images from the obj\'s .mtl file'),\
('All *.obj\'s in dir', IMPORT_DIR, 'Import all obj files in this dir (avoid overlapping data with "Create scene")'),\
('Create scene', IMPORT_NEW_SCENE, 'Imports each obj into its own scene, named from the file'),\
('Edges', IMPORT_EDGES, 'Import faces with 2 verts as in edge'),\
('Smooths all faces', IMPORT_SMOOTH_ALL, 'Smooth all faces even if they are not in a smoothing group'),\

14 years agoHopefully clear up the last of the obj import bugs.
Campbell Barton [Mon, 16 Jan 2006 05:28:34 +0000 (05:28 +0000)]
Hopefully clear up the last of the obj import bugs.
* 8% speedup by using list comprehension.
* Slightly better smoothing group import.
* Handles bug in python that puts spaces before every line with '\r\n' line endings.

14 years agoBPython:
Willian Padovani Germano [Mon, 16 Jan 2006 03:51:32 +0000 (03:51 +0000)]

- minor: added missing theme options (bone_solid, bone_pose, strip,
strip_select) to Blender.Window.Theme and also updated accordingly
(version info) the script that saves themes as scripts and the module's

14 years agoFixed Window.Editmode(0) so that it only calls undo_push_mesh() when
Ken Hughes [Mon, 16 Jan 2006 02:06:02 +0000 (02:06 +0000)]
Fixed Window.Editmode(0) so that it only calls undo_push_mesh() when
U.undosteps is nonzero.  Also added optional parameter to avoid pushing
undo info alltogether if desired.

14 years ago==python scripts==
Tom Musgrove [Sun, 15 Jan 2006 20:05:28 +0000 (20:05 +0000)]
==python scripts==
slight bug fix update to ply importer by Bruce Merry

14 years agoIn fixing for negative indicies I broke positive indicies. Fixed. not helped by the...
Campbell Barton [Sun, 15 Jan 2006 17:56:40 +0000 (17:56 +0000)]
In fixing for negative indicies I broke positive indicies. Fixed. not helped by the fact the files I had for testing were 32 and 70 meg..
ALso modified the MTL loader for Object.Get's new ValueError.
- Should be good for release now.

14 years agoRemoved printfs in setPoints(), add proper exception handling.
Ken Hughes [Sun, 15 Jan 2006 17:14:58 +0000 (17:14 +0000)]
Removed printfs in setPoints(), add proper exception handling.

14 years agolast of the cosmetic fixes with aligning buttons in the path setting/info win prefs...
Campbell Barton [Sun, 15 Jan 2006 14:47:16 +0000 (14:47 +0000)]
last of the cosmetic fixes with aligning buttons in the path setting/info win prefs area.

14 years agoMesh sculpting event handeler script,
Campbell Barton [Sun, 15 Jan 2006 14:44:09 +0000 (14:44 +0000)]
Mesh sculpting event handeler script,
see for details,

14 years agoAligned all remaining non-aligned header buttons, (was looking yuck with rounded...
Campbell Barton [Sun, 15 Jan 2006 13:30:56 +0000 (13:30 +0000)]
Aligned all remaining non-aligned header buttons, (was looking yuck with rounded theme, hope this doesn't mess you up Broken)
Aligned filesel buttons|text entry- looked arse also.
Added tooltips for filesel text entry- "Type in dir to create" and "+/- increment" or somthing like that.
- Cam

14 years agomore graphics patches from Snailrose,
Erwin Coumans [Sun, 15 Jan 2006 11:34:55 +0000 (11:34 +0000)]
more graphics patches from Snailrose,
remove constraint fixed,
Bullet timestep now subdivides Blender game engine timestep, so it runs 60 hertz,
SphereShape reverted to old style, so no support for non-uniform scaled spheres for now,

14 years agoBugfix #3731: User reported that cyclic IPO curves reported the wrong value
Ken Hughes [Sat, 14 Jan 2006 22:05:16 +0000 (22:05 +0000)]
Bugfix #3731: User reported that cyclic IPO curves reported the wrong value
in the BPy API for the "end point".  It was a minunderstanding of what
happens with cyclic Ipos, but we updated the documentation to make this
clearer in the future.

14 years agoBug fix: #3684
Martin Poirier [Sat, 14 Jan 2006 20:52:39 +0000 (20:52 +0000)]
Bug fix: #3684

When grabing a camera in camera view, the constraint center wasn't the center used for initgrabz, so it messed up a lot.

14 years agofix previously fixed error msg.
Stephen Swaney [Sat, 14 Jan 2006 19:05:33 +0000 (19:05 +0000)]
fix previously fixed error msg.

14 years agoObject.Get( name ) was throwing an AttributeError.
Stephen Swaney [Sat, 14 Jan 2006 02:13:15 +0000 (02:13 +0000)]
Object.Get( name ) was throwing an AttributeError.
Change to throw more correct ValueError when name
is not found as per IRC discussion

14 years agoCam Barton discovered the setter for me.faces[i].col was missing.
Ken Hughes [Fri, 13 Jan 2006 17:22:53 +0000 (17:22 +0000)]
Cam Barton discovered the setter for me.faces[i].col was missing.

14 years ago* [ #3746 ] Calling getPose on a mesh object generates "RuntimeError: Pose - Error...
Joseph Gilbert [Fri, 13 Jan 2006 16:19:11 +0000 (16:19 +0000)]
* [ #3746 ] Calling getPose on a mesh object generates "RuntimeError: Pose - Error: PyPose_FromPose: Internal Error Ocurred"
- added returns where appropriate.

14 years ago*head/tail addition
Joseph Gilbert [Fri, 13 Jan 2006 15:53:22 +0000 (15:53 +0000)]
*head/tail addition
- forgot to add the ability to get pose head/tail positions
- no setters (yet) as they are calculated

14 years ago*bone.children fix
Joseph Gilbert [Fri, 13 Jan 2006 15:27:23 +0000 (15:27 +0000)]
*bone.children fix
- fixes bone.children to return direct bone children
- added bone.getAllChildren() to allow previous behavior

14 years agoFixed bug in importing OBJ files with negative indicies (UV and VERTS, normals are...
Campbell Barton [Fri, 13 Jan 2006 15:26:15 +0000 (15:26 +0000)]
Fixed bug in importing OBJ files with negative indicies (UV and VERTS, normals are ignored)
Have alredy tested 100's of obj files and cant believe this is the first I have found with negative coords.
May fix the UI before 2.41, Importing a whole dir isnt very user friendly. and may want to support sequence import.
- Cam

14 years agoBugfix as provided by 'stealth apprentice' on the bf-comitters list.
Ton Roosendaal [Fri, 13 Jan 2006 12:14:13 +0000 (12:14 +0000)]
Bugfix as provided by 'stealth apprentice' on the bf-comitters list.
Function get_constraint_target() should catch the case when a constraint
has unknown type, to prevent a pointer to become unitialized.

14 years agoAnother bug fix for reference counting in extend methods.
Ken Hughes [Fri, 13 Jan 2006 07:11:30 +0000 (07:11 +0000)]
Another bug fix for reference counting in extend methods.

14 years agoSubsurf UV crasher fix - thanks Malefico and Matthew for test files.
Brecht Van Lommel [Fri, 13 Jan 2006 06:56:32 +0000 (06:56 +0000)]
Subsurf UV crasher fix - thanks Malefico and Matthew for test files.

14 years agomake clear that 'concave mesh' is really for static triangle mesh. too many people...
Erwin Coumans [Fri, 13 Jan 2006 01:00:35 +0000 (01:00 +0000)]
make clear that 'concave mesh' is really for static triangle mesh. too many people try to make it moving, it is for landscapes/static environment.

14 years ago==python scripts==
Tom Musgrove [Fri, 13 Jan 2006 00:24:23 +0000 (00:24 +0000)]
==python scripts==
added xfig exporter by Dino Ghilardi

ply import and export in previous commit were by Bruce Merry

14 years ago==python scripts==
Tom Musgrove [Thu, 12 Jan 2006 21:33:42 +0000 (21:33 +0000)]
==python scripts==
added ply import and export, extensively tested on files from

they give correct results for both import and export, however they could use some speed optimization for large mesh

14 years agobugfix: #3738 Armature bones returns none instead of key error
Stephen Swaney [Thu, 12 Jan 2006 21:21:41 +0000 (21:21 +0000)]
bugfix: #3738  Armature bones returns none instead of key error

BonesDict was returning None instead of throwing a KeyError
when key not found.
Also fixed a few compile warnings about struct initialization.

14 years agoFixed a segfault in zooming out on long wave files- 6min+
Campbell Barton [Thu, 12 Jan 2006 13:34:55 +0000 (13:34 +0000)]
Fixed a segfault in zooming out on long wave files- 6min+

Was using shorts which couldent code with viewing many samples at once.

14 years agoRenamed to
Campbell Barton [Thu, 12 Jan 2006 12:39:14 +0000 (12:39 +0000)]
Renamed to
Rewrote to use Kens Mesh module, much faster, cleaner and nicer UI. - Another use for PupBlock.

14 years agoClean-up of some reference counting issues with delete() methods. Also
Ken Hughes [Thu, 12 Jan 2006 07:51:19 +0000 (07:51 +0000)]
Clean-up of some reference counting issues with delete() methods.  Also
further relax the input types for edge.extend() and face.extend() so that
single lists or tuples are accepted without errors.

14 years agorenamed some variables to make the timing in the game engine less confusing+minor...
Erwin Coumans [Thu, 12 Jan 2006 06:30:01 +0000 (06:30 +0000)]
renamed some variables to make the timing in the game engine less confusing+minor improvements in this area.
enabled game engine for scons

14 years agoAdded tri2quad script finds all possible quads to be made from selected triangle...
Campbell Barton [Thu, 12 Jan 2006 05:28:47 +0000 (05:28 +0000)]
Added tri2quad script finds all possible quads to be made from selected triangle pairs, then joins the best first until the error limit is reached.
Just Updated and faster 8.5sec to 0.6sec for 2k triangles in my test.
Also my fav new function PupBlock for the UI input!

14 years agoFixed a bug in boxpack that archimap not to clear data between uses, and become progr...
Campbell Barton [Thu, 12 Jan 2006 03:34:37 +0000 (03:34 +0000)]
Fixed a bug in boxpack that archimap not to clear data between uses, and become progressivly slower.
Updated Archimap to set UV's aslists (dont need to convert to tuples anymore)

14 years agooverlooked IMB_imbuf.h was already included inside an extern "C" section.
Erwin Coumans [Thu, 12 Jan 2006 01:37:33 +0000 (01:37 +0000)]
overlooked IMB_imbuf.h was already included inside an extern "C" section.

14 years agouncommented include "IMB_imbuf.h", it is needed?
Erwin Coumans [Thu, 12 Jan 2006 01:15:09 +0000 (01:15 +0000)]
uncommented include "IMB_imbuf.h", it is needed?

14 years agoBPy: Mathutils fix: bug #3737
Martin Poirier [Thu, 12 Jan 2006 01:11:42 +0000 (01:11 +0000)]
BPy: Mathutils fix: bug #3737
Vector.resize4D() didn't put 1 in the 4th component (the scale factor), as it did in 2.37.
While this is more "correct", it is much less usefull. Also, matrix.resize4x4 puts a 1 there too,
so might as well revert and be consistent.

14 years agore-enable game engine by default, for 2.41 preparation
Erwin Coumans [Thu, 12 Jan 2006 00:57:28 +0000 (00:57 +0000)]
re-enable game engine by default, for 2.41 preparation

14 years agoScons fix:
Martin Poirier [Thu, 12 Jan 2006 00:07:08 +0000 (00:07 +0000)]
Scons fix:

new BPy Pose files weren't added to Sconscript

14 years agoremove Constraint.h since it doesn't exist.
Kent Mein [Wed, 11 Jan 2006 21:58:37 +0000 (21:58 +0000)]
remove Constraint.h since it doesn't exist.

Provided by Letterrip.


14 years ago- override the temporary disabling of KETSJI and OPENAL for FreeBSD.
Hans Lambermont [Wed, 11 Jan 2006 21:11:07 +0000 (21:11 +0000)]
- override the temporary disabling of KETSJI and OPENAL for FreeBSD.

14 years agoForgot the pose file.... :p
Joseph Gilbert [Wed, 11 Jan 2006 20:48:46 +0000 (20:48 +0000)]
Forgot the pose file.... :p

14 years ago*pose docs
Joseph Gilbert [Wed, 11 Jan 2006 20:44:24 +0000 (20:44 +0000)]
*pose docs
- some pose python documentation

14 years ago- sanitize spacings and tabs a bit. It's still not completely clean though.
Hans Lambermont [Wed, 11 Jan 2006 20:25:04 +0000 (20:25 +0000)]
- sanitize spacings and tabs a bit. It's still not completely clean though.

14 years ago*vc7 project file update
Joseph Gilbert [Wed, 11 Jan 2006 19:42:58 +0000 (19:42 +0000)]
*vc7 project file update
- adds pose to python project

14 years agoProbably need these....
Joseph Gilbert [Wed, 11 Jan 2006 19:41:01 +0000 (19:41 +0000)]
Probably need these....

14 years ago*pose code for python
Joseph Gilbert [Wed, 11 Jan 2006 19:40:06 +0000 (19:40 +0000)]
*pose code for python
- adds object.getPose
- ability to manipulate poses /posebones
- fixes a overflow bug in matrix sequence accessor
- adds code to get vec/roll from mat3
- few internal fixes to NLA
- ability to set bone matrices

14 years agoAt least FreeBSD needs to know where to find gl.h
Hans Lambermont [Wed, 11 Jan 2006 19:31:15 +0000 (19:31 +0000)]
At least FreeBSD needs to know where to find gl.h

14 years agoA few Mesh fixes:
Ken Hughes [Wed, 11 Jan 2006 18:37:47 +0000 (18:37 +0000)]
A few Mesh fixes:
* edge and face extend() methods now add edges and faces in the order given
  by their parameters.  Note that if duplicate edges or faces are specified,
  the order is preserved but the dups are removed, so indices won't match.
* allow extend(), findEdges() and faces.uv to accept lists or tuples
* fix bug in mesh.verts.extend() which didn't correctly check argument types

14 years agoExclude labels from grouping. - Clever numbuts look nicer with rounded theme.
Campbell Barton [Wed, 11 Jan 2006 16:55:31 +0000 (16:55 +0000)]
Exclude labels from grouping. - Clever numbuts look nicer with rounded theme.

14 years agoattempt to avoid nameclashes (although it is already in a namespace) -> extension...
Erwin Coumans [Wed, 11 Jan 2006 13:31:45 +0000 (13:31 +0000)]
attempt to avoid nameclashes (although it is already in a namespace) -> extension names renamed from glXXX to blXXX.

14 years agoFixed a silly bug when copying images.
Campbell Barton [Wed, 11 Jan 2006 10:12:03 +0000 (10:12 +0000)]
Fixed a silly bug when copying images.

14 years agoupdate to obj export:
Campbell Barton [Wed, 11 Jan 2006 09:47:17 +0000 (09:47 +0000)]
update to obj export:
Added options.
pup_block = [\
('Apply Modifiers', EXPORT_APPLY_MODIFIERS, 'Use transformed mesh data from each object. May break vert order for morph targets.'),\
('Selection Only', EXPORT_SEL_ONLY, 'Only export objects in visible selection.'),\
('Edges', EXPORT_EDGES, 'Edges not connected to faces.'),\
('Normals', EXPORT_NORMALS, 'Export vertex normal data (Ignored on import).'),\
('Materials', EXPORT_MTL, 'Write a seperate MTL file with the OBJ.'),\
('All Scenes', EXPORT_ALL_SCENES, 'Each scene as a seperate OBJ file.'),\
('Animation', EXPORT_ANIMATION, 'Each frame as a seperate OBJ file.'),\
('Copy Images', EXPORT_COPY_IMAGES, 'Copy image files to the export directory, never everwrite.'),\

Obj import was updated to import edges (2 vert faces), will update some more later.

14 years agoMSVC6 projects for happy GE compiling
Jens Ole Wund [Wed, 11 Jan 2006 09:13:59 +0000 (09:13 +0000)]
MSVC6 projects for happy GE compiling

14 years agoFixed bug in do_clever_numbuts not displaying tooltips.
Campbell Barton [Wed, 11 Jan 2006 04:03:19 +0000 (04:03 +0000)]
Fixed bug in do_clever_numbuts not displaying tooltips.
Clear all events so tooltips work, this is not ideal and
only needed because calls from the menu still have some events
left over when do_clever_numbuts is called.
Calls from keyshortcuts do not have this problem.

14 years agoremoved slow list handeling
Campbell Barton [Tue, 10 Jan 2006 17:40:50 +0000 (17:40 +0000)]
removed slow list handeling
faster vert comparisons
replaced spaces for tabs
removed unneeded getData() calls
general cleanup.

14 years ago*project file updates
Joseph Gilbert [Tue, 10 Jan 2006 16:08:03 +0000 (16:08 +0000)]
*project file updates
- gets project files in line for compiling again

14 years agoAdded openflight import/export- Blight v1.2
Campbell Barton [Tue, 10 Jan 2006 13:42:20 +0000 (13:42 +0000)]
Added openflight import/export- Blight v1.2

14 years agoMSVC compile error fix for subsurf UV.
Brecht Van Lommel [Tue, 10 Jan 2006 12:25:07 +0000 (12:25 +0000)]
MSVC compile error fix for subsurf UV.

14 years agoWarning fixes for gcc 4 in iksolver and ghost.
Brecht Van Lommel [Tue, 10 Jan 2006 11:49:53 +0000 (11:49 +0000)]
Warning fixes for gcc 4 in iksolver and ghost.

14 years agoApply Subsurf to UV's.
Brecht Van Lommel [Tue, 10 Jan 2006 11:36:57 +0000 (11:36 +0000)]
Apply Subsurf to UV's.

This fixes most of the UV distortion issues with subsurf. Near seams
however there might still be some distortion, but this should at least
not be worse than before. Subsurf UV is enabled by default on new meshes,
and can be enabled in the modifier panel for existing ones.

Before and after:

14 years agoapplied patch from snailrose, related to multi-platform OpenGL extensions.
Erwin Coumans [Tue, 10 Jan 2006 06:34:42 +0000 (06:34 +0000)]
applied patch from snailrose, related to multi-platform OpenGL extensions.

14 years agoAnother msvc issue. Added #include <ctype.h> so it compiles.
Kent Mein [Tue, 10 Jan 2006 02:23:47 +0000 (02:23 +0000)]
Another msvc issue.  Added #include <ctype.h> so it compiles.
See patch #3686


14 years agoFixed bug in convert function with Mesh objects.
Campbell Barton [Tue, 10 Jan 2006 02:01:24 +0000 (02:01 +0000)]
Fixed bug in convert function with Mesh objects.
Objects with no modifier could still be converted, but resulting meshes were corrupt and segfaulted Blender when cycling edit mode.
This tests each mesh object for modifiers before converting.

Resulting metaballs meshes were not visible in wireframe.

Also made the selection context nicer, All new converted objects are selected while objects that are converted are deselected.

14 years agoadded prototypes for bottom_sel_action and friends.
Kent Mein [Tue, 10 Jan 2006 01:36:36 +0000 (01:36 +0000)]
added prototypes for bottom_sel_action and friends.
Steath Apprentice said its needed for MSC.  Bug # 3687


14 years agoThere was a problem with typing over text selections, where you had an object with...
Campbell Barton [Mon, 9 Jan 2006 15:24:23 +0000 (15:24 +0000)]
There was a problem with typing over text selections, where you had an object with 21 letter name (19 is the max but 21 is supported, just copy a mesh a few times)
After this click on the object name and start typing, even though the selection makes it that the new string would be overwritten, it dosent let you type in any text.

if(len <= but->max) {
if(len-SELWIDTH+1 <= but->max) {

- Tested and works well.

14 years agoMade buttons in clever numbuts allign.
Campbell Barton [Mon, 9 Jan 2006 05:01:17 +0000 (05:01 +0000)]
Made buttons in clever numbuts allign.
Commented out crufty name spesific actions that changed variables and added a label of buttons started with "Rot" - Since panels are used for rotating now.

14 years ago* Added PupBlock for user options.
Campbell Barton [Mon, 9 Jan 2006 03:43:48 +0000 (03:43 +0000)]
* Added PupBlock for user options.
* Improved context, unwraps active object if not selected and makes sure it only unwraps a mesh once even if 2+ instances are selected.
* Added Option to stretch to bounds
* Added option to have a margin, thanks to letterrip
* Fixed bug whe nassigning UV's to zero area faces.

14 years agoAnother small gameengine build tweak. Included a missing header directory.
Kent Mein [Mon, 9 Jan 2006 02:23:04 +0000 (02:23 +0000)]
Another small gameengine build tweak.  Included a missing header directory.

I also provided a fix for tiff images.  (It was appending tif even if
it was already in the name, now it does it correctly)
(no more image.tif.tif)


14 years agoBPy:
Martin Poirier [Sun, 8 Jan 2006 18:59:55 +0000 (18:59 +0000)]

PupBlock method. This wraps the "clevernumbut" code to allow scripters to use popup blocks for user input instead of a sequence of multiple different popups.
See the blend file for a comprehensive test and example file.

14 years agoNew plus/minus icons
Ton Roosendaal [Sun, 8 Jan 2006 11:50:52 +0000 (11:50 +0000)]
New plus/minus icons

14 years agomore linux game engine work. hopefully works now!
Erwin Coumans [Sun, 8 Jan 2006 09:37:15 +0000 (09:37 +0000)]
more linux game engine work. hopefully works now!

14 years agoGot the armatures, GLSL shaders and other snailrose changes to work for Linux.
Erwin Coumans [Sun, 8 Jan 2006 09:11:17 +0000 (09:11 +0000)]
Got the armatures, GLSL shaders and other snailrose changes to work for Linux.
now attempting to get this in cvs :)

14 years agoremoved testing code
Erwin Coumans [Sat, 7 Jan 2006 02:00:44 +0000 (02:00 +0000)]
removed testing code

14 years agomore work to get armatures/blender materials to work under non-windows platforms
Erwin Coumans [Sat, 7 Jan 2006 00:14:37 +0000 (00:14 +0000)]
more work to get armatures/blender materials to work under non-windows platforms

14 years agoadded new files
Erwin Coumans [Fri, 6 Jan 2006 21:01:03 +0000 (21:01 +0000)]
added new files

14 years agoadded few new files
Erwin Coumans [Fri, 6 Jan 2006 21:00:11 +0000 (21:00 +0000)]
added few new files

14 years agouse relative paths to avoid including extra folder
Erwin Coumans [Fri, 6 Jan 2006 20:35:02 +0000 (20:35 +0000)]
use relative paths to avoid including extra folder

14 years agoBug #3658 reported by Daniel Holtz (thanks):
Willian Padovani Germano [Fri, 6 Jan 2006 20:15:18 +0000 (20:15 +0000)]
Bug #3658 reported by Daniel Holtz (thanks):

Running scripts from command line in bg mode:
blender -b -P
crashes Blender 2.40.

The problem is in add_text() in text.c: G.scene can be NULL at this
point (in bg mode). Added a check:

line 323:
if (G.scene) /* can be NULL (bg mode) */
BLI_convertstringcode(str, G.sce, G.scene->r.cfra);

The text being added with add_text() in this particular case is the
script filename specified at the command prompt, so it should be ok to skip
BLI_convertstringcode. Feel free to disagree, though.

14 years ago*vc7 projectfile update
Joseph Gilbert [Fri, 6 Jan 2006 17:57:26 +0000 (17:57 +0000)]
*vc7 projectfile update
- removed PHY_ode project
- removed ode control from ketsji project

14 years agochanged the size of some local vars for 64bit linux.
Kent Mein [Fri, 6 Jan 2006 15:29:11 +0000 (15:29 +0000)]
changed the size of some local vars for 64bit linux.
also added a newline at the end of the file to shut gcc up.


14 years ago#3706 (patch tracker)
Nathan Letwory [Fri, 6 Jan 2006 13:33:20 +0000 (13:33 +0000)]
#3706 (patch tracker)
- Adds missing ipos for texture
   * color, contrast, brightness
- Adds IKey menu in the texture subcontext

#3711 (bug tracker)
- report and patch for missing blend types Halo and Radial

Patches by Levon Hudson

14 years agoTodo #2574
Nathan Letwory [Fri, 6 Jan 2006 12:37:45 +0000 (12:37 +0000)]
Todo #2574

Setchain: it allows you to chain sets. It checks for loops when trying
to assign new scene, and will notify if changing set would create a loop.

14 years agofixed copy/paste bug in physicscontroller applyforce, and crashing radar sensor
Erwin Coumans [Fri, 6 Jan 2006 09:57:27 +0000 (09:57 +0000)]
fixed copy/paste bug in physicscontroller applyforce, and crashing radar sensor

14 years agoremoved extra characters
Erwin Coumans [Fri, 6 Jan 2006 09:40:00 +0000 (09:40 +0000)]
removed extra characters

14 years agodisable game engine and gameplayer for all platforms except windows.
Erwin Coumans [Fri, 6 Jan 2006 09:02:53 +0000 (09:02 +0000)]
disable game engine and gameplayer for all platforms except windows.
Then after cvs is unfrozen, development can continue.

14 years agoopenal didn't compile under linux, some casting problem.
Erwin Coumans [Fri, 6 Jan 2006 07:34:35 +0000 (07:34 +0000)]
openal didn't compile under linux, some casting problem.

14 years agoAdded current directory to includes so it could find some headers.
Kent Mein [Fri, 6 Jan 2006 04:43:17 +0000 (04:43 +0000)]
Added current directory to includes so it could find some headers.
(I still do not have the whole thing working but I'm stumped now and
figured this will save someone a little time)


14 years agoHeaderfile had wrong Capatalization.
Kent Mein [Fri, 6 Jan 2006 04:13:20 +0000 (04:13 +0000)]
Headerfile had wrong Capatalization.


14 years agoSorry to break the cvs-closed status, so if you really need to make a new 2.40 build...
Erwin Coumans [Fri, 6 Jan 2006 03:46:54 +0000 (03:46 +0000)]
Sorry to break the cvs-closed status, so if you really need to make a new 2.40 build, just disable the game engine if it doesn't compile for a platform. Again, sorry if this breaks non-windows platforms, but I hope people help to get this amazing fix working for all platforms. Armature-fixing contribution from Snailrose. Also lots of cool things from Snailrose and Lagan.

Armatures are back
Split screen
Double sided lightning
Ambient lighting
Alpha test
Material IPO support (one per object atm)
Blender materials
GLSL shaders - Python access
Up to three texture samplers from the material panel ( 2D & Cube map )
Python access to a second set of uv coordinates


14 years agoScene.c - Removed redraw when in non UI mode.
Campbell Barton [Fri, 6 Jan 2006 01:53:26 +0000 (01:53 +0000)]
Scene.c - Removed redraw when in non UI mode. - Example indent - Improved join documentation.

14 years agoLots of stupid warning fixes:
Kent Mein [Thu, 5 Jan 2006 23:10:54 +0000 (23:10 +0000)]
Lots of stupid warning fixes:
Added newlines at end of a bunch of files that didn't have them.
removed a couple of unused variables and an extra ';'
(Also removed config.h crap from these files)


14 years agoI added {}'s around an if block of code to prevent gcc from saying
Kent Mein [Thu, 5 Jan 2006 20:52:51 +0000 (20:52 +0000)]
I added {}'s around an if block of code to prevent gcc from saying
this else is ambiguous...
code was
if (blah) if (blah2) stuff; else stuff2;
its now
if (blah) { if (blah2) stuff; else stuff2; }


14 years agoBugfix for Toni: Ipo_addCurve() needed to call set_icu_vars() in order to
Ken Hughes [Thu, 5 Jan 2006 19:25:38 +0000 (19:25 +0000)]
Bugfix for Toni: Ipo_addCurve() needed to call set_icu_vars() in order to
properly initialize data for new Ipo curves.

14 years agoChanged so all errors raise an excepton. - As per Toni's suggestions.
Campbell Barton [Thu, 5 Jan 2006 15:53:07 +0000 (15:53 +0000)]
Changed so all errors raise an excepton. - As per Toni's suggestions.
TypeError for pythonCoder error.
RuntimeError for blender not being able to be joined. (Sorry stivs, no BadJuJu yet)

Documented this in the epydocs also.