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

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

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

13 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

13 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.
Comment:
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.

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

13 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

13 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

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

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

13 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:
http://users.pandora.be/blendix/notsmooth.png
http://users.pandora.be/blendix/smooth.png

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

13 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

Kent

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

13 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

Kent

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

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

- Tested and works well.

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

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

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

Kent

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

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.

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

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

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

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

13 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

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

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

13 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

13 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):
http://projects.blender.org/tracker/?func=detail&atid=125&aid=3658&group_id=9

Running scripts from command line in bg mode:
blender -b -P myscript.py
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.

13 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

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

Kent

13 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

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

13 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

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

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

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

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

Kent

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

Kent

13 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

See http://www.elysiun.com/forum/viewtopic.php?t=58057

13 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.
Lamp.py - Example indent
Object.py - Improved join documentation.

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

Kent

13 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; }

Kent

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

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

13 years agoThree minor fixes:
Nils Thuerey [Thu, 5 Jan 2006 15:49:27 +0000 (15:49 +0000)]
Three minor fixes:
- removed debugging output from fluidsim export
- directores with "+" are now valid for fluidsim data
- simulation now always uses frame 1 to endframe, so changing start frame settings should work again

13 years ago[ #3661 ] resize4x4 in Matrix class doesn't set ones on the diagonal
Joseph Gilbert [Wed, 4 Jan 2006 16:02:02 +0000 (16:02 +0000)]
[ #3661 ] resize4x4 in Matrix class doesn't set ones on the diagonal

* resizing a matrix now puts 1's back on the diagonals.

13 years agoFix for CrazySpace correction. (Special request of our Argentinan bird
Ton Roosendaal [Wed, 4 Jan 2006 15:37:48 +0000 (15:37 +0000)]
Fix for CrazySpace correction. (Special request of our Argentinan bird
movie friends :)

There were two issues with it, which both have been tackled as follows:

- the correction transformations (quaternions) were calculated per face,
  and then averaged over the vertices. This gave annoying inaccuracies,
  especially when the geometry is irregular.
  The new code first calculates two tangent vectors in a vertex, based on
  the associated edges it has in a face. These tangents then are used to
  define the transform. Tangents are 20% of the length of an edge now.

- When a SubSurf modifier was in the chain, the deformation caused by the
  subsurf was also included in CrazySpace correction, giving even larger
  errors.
  New code temporally disables Subsurf, recalculates vertices, and then
  does the crazy tricks. :)

All in all, quite well working!

13 years agoAdded some notes regarding Object.GetSelected() - it uses the last localview.
Campbell Barton [Wed, 4 Jan 2006 15:11:35 +0000 (15:11 +0000)]
Added some notes regarding Object.GetSelected() - it uses the last localview.

13 years ago[ #3712 ] Calling makeEditable() and update() on an armature twice duplicates bones
Joseph Gilbert [Wed, 4 Jan 2006 15:07:15 +0000 (15:07 +0000)]
[ #3712 ] Calling makeEditable() and update() on an armature twice duplicates bones

* fixes bug where editbones are not freed on calling update()

13 years agoGave an example of changing lamp modes in epydocs. - answers a q on elysuin.
Campbell Barton [Wed, 4 Jan 2006 01:55:39 +0000 (01:55 +0000)]
Gave an example of changing lamp modes in epydocs. - answers a q on elysuin.

13 years agoBugfix #3646
Ton Roosendaal [Tue, 3 Jan 2006 20:59:51 +0000 (20:59 +0000)]
Bugfix #3646

Outliner, using scrollwheel with mouse in scrollbar didn't scroll in the
correct direction.

13 years agoBugfix #3643
Ton Roosendaal [Tue, 3 Jan 2006 20:26:24 +0000 (20:26 +0000)]
Bugfix #3643

Editmode mesh: after an unhide ("reveal") the countall() needed to be
called. This caused for example extrude not to work when all was hidden.

13 years agoBugfix #3673
Ton Roosendaal [Tue, 3 Jan 2006 20:06:08 +0000 (20:06 +0000)]
Bugfix #3673
Threadsafe patch for environment maps type "Load" missed to include a
call, so still crashed. Only for non-debug builds though, so not reported
earlier.

From my cvs log 7 months ago:

"Added threadsafe patch from Martin.
Now envmaps of type "Load" should not give errors. I assume Martin tested!"

 :)

13 years agoBug #3681 The never ending bump mapping saga!
Ton Roosendaal [Tue, 3 Jan 2006 19:49:38 +0000 (19:49 +0000)]
Bug #3681 The never ending bump mapping saga!

With the fix over a month ago, which added correct texture space vectors for
the bump, gave results so crispy that normals could invert after normalize.
This only when the normal "fac" slider was > 1.0.

The normals from imagetextures now get clipped to prevent it to result in
flipping normals. Will do more tests though...

Also note that the real good way would be have the tangent vectors for the
actual render normal available to perturb for bump, thats another story.

13 years ago*bpy fix
Joseph Gilbert [Tue, 3 Jan 2006 17:24:24 +0000 (17:24 +0000)]
*bpy fix
- include file capitialized wrong

13 years ago*warnings fixes
Joseph Gilbert [Tue, 3 Jan 2006 16:27:34 +0000 (16:27 +0000)]
*warnings fixes
- fixes a number of warnings in bpy project

13 years ago*msvc7 update
Joseph Gilbert [Tue, 3 Jan 2006 16:19:36 +0000 (16:19 +0000)]
*msvc7 update
- added bullet files to project
- fixed compiler path on bBullet project

13 years agoreplaced more M_Object_Get for the faster Object_CreatePyObject.
Campbell Barton [Tue, 3 Jan 2006 06:14:53 +0000 (06:14 +0000)]
replaced more M_Object_Get for the faster Object_CreatePyObject.
Object.GetSelected now dosnt return None if there is no 3d view. - wasnt documented and likely would mess up scripts that always expected a list. - Just return an empty list instead.

13 years agomade scene.getChildren() a heap faster. 983.3 times faster in my test.
Campbell Barton [Tue, 3 Jan 2006 05:38:39 +0000 (05:38 +0000)]
made scene.getChildren() a heap faster. 983.3 times faster in my test.
getting 7200 objects did take: 1.18 sec,  now 0.0012 sec

It was doing a full object list lookup for every object in the scenes base using the name to compare.
now it just gets the object directly from the base and converts it to a python object, adding it to the list.
- Cam

13 years agoAdds a boarder around the oops, usefull to know where the oops bounds end with larger...
Campbell Barton [Tue, 3 Jan 2006 04:20:43 +0000 (04:20 +0000)]
Adds a boarder around the oops, usefull to know where the oops bounds end with larger scenes.
I needed to do a make clean, then make to see this change.

13 years agoMoved Object.Join() into a function of an object.
Campbell Barton [Tue, 3 Jan 2006 02:35:45 +0000 (02:35 +0000)]
Moved Object.Join() into a function of an object.
eg.
ret_val = ob.join(objects)
Now it dosent depend on the current selection, or change the selection context.

Made respective join_* functions return 0 if the join was not mode, 1 when it workes.

13 years agoSmall commit, hopefully the last Duplicate change.
Campbell Barton [Mon, 2 Jan 2006 23:26:54 +0000 (23:26 +0000)]
Small commit, hopefully the last Duplicate change.
Made pythons duplicate not redraw, documented adduplicate()

13 years agoChanged adduplicate() to take the dupflags as an argument. so faking the Alt Key...
Campbell Barton [Mon, 2 Jan 2006 10:40:13 +0000 (10:40 +0000)]
Changed adduplicate() to take the dupflags as an argument. so faking the Alt Key isnt needed anymore in Blender or python.
Changed Pythons Object.Duplicate() to take keyword parms to enable duplication of spesific data.
Eg- Object.Duplicate(mesh=1) # to duplicate mesh data also.

13 years agoBugfix #3652: material.setSpecCol() only accepted a tuple, not separate
Ken Hughes [Sun, 1 Jan 2006 16:28:57 +0000 (16:28 +0000)]
Bugfix #3652: material.setSpecCol() only accepted a tuple, not separate
parameters as it used to (prior to my tp_getset update).  Fixed this and
other similar situations.

13 years agoCreated local function check_NMeshLists(), which performs checking on
Ken Hughes [Sun, 1 Jan 2006 15:54:30 +0000 (15:54 +0000)]
Created local function check_NMeshLists(), which performs checking on
NMesh lists before trying to build a new mesh (used by mesh.PutRaw() and
mesh.update()).  It was possible to put junk into the NMesh lists, resulting
in some messed-up meshes.

13 years agoBug fix #3671: Blender.Beztriple.New() did not accept sequences as parameters,
Ken Hughes [Sun, 1 Jan 2006 15:50:53 +0000 (15:50 +0000)]
Bug fix #3671: Blender.Beztriple.New() did not accept sequences as parameters,
even though its error messages suggested it did.  Thanks to Yann for the
patch (I also added the ability to accept parameters without requiring
them to be in a tuple).  Also documented the New() function.

13 years agoTwo bug fixes for mesh.faces.extend() method; fix a error checking for
Ken Hughes [Sun, 1 Jan 2006 15:43:34 +0000 (15:43 +0000)]
Two bug fixes for mesh.faces.extend() method; fix a error checking for
duplicate faces in the input list, and also extend texture faces if they are
enabled.

13 years agoFix boolean modifier crash; if boolean code cannot do the operation on the
Ken Hughes [Sun, 1 Jan 2006 15:41:20 +0000 (15:41 +0000)]
Fix boolean modifier crash; if boolean code cannot do the operation on the
meshes, print an error dialog and delete the modifier object.

13 years agoSome rigidbody dynamics fixes (scaling again) to make Happy 2006 domino simulation...
Erwin Coumans [Sun, 1 Jan 2006 00:20:50 +0000 (00:20 +0000)]
Some rigidbody dynamics fixes (scaling again) to make Happy 2006 domino simulation to work.

See http://www.continuousphysics.com/ftp/pub/test/index.php?dir=blender/&file=happy_2006_blend.zip
For the baked dominos. Thanks to Tom M (LetterRip) for the blend.

13 years agomore game engine bug-fixes, hooked up 'formfactor' as inertia tensor tweaker, frictio...
Erwin Coumans [Sat, 31 Dec 2005 21:59:56 +0000 (21:59 +0000)]
more game engine bug-fixes, hooked up 'formfactor' as inertia tensor tweaker, friction/restitution, more scaling related fixes.

13 years agoFixed several bugs: python refcounting related and Bullet related (basic add/remove...
Erwin Coumans [Sat, 31 Dec 2005 07:20:08 +0000 (07:20 +0000)]
Fixed several bugs: python refcounting related and Bullet related (basic add/remove object support, bounding volume hierarchy). Added a few files, updated the Bullet scons. Vc6/7 Bullet projectfiles need to add a couple of files: 'Bullet/CollisionShapes/BvhTriangleMeshShape.cpp',
'Bullet/CollisionShapes/ConvexTriangleCallback.cpp',
'Bullet/CollisionShapes/EmptyShape.cpp',
'Bullet/CollisionShapes/OptimizedBvh.cpp',
'Bullet/CollisionShapes/TriangleCallback.cpp',
'Bullet/CollisionShapes/TriangleIndexVertexArray.cpp',
'Bullet/NarrowPhaseCollision/ManifoldContactAddResult.cpp'.
Sorry, no armatures fix yet.

13 years agoAdded a python hook to Joining objects
Campbell Barton [Fri, 30 Dec 2005 14:17:15 +0000 (14:17 +0000)]
Added a python hook to Joining objects
Object.Join()

Seperated the join calls from space.c and view3dmenu into join_menu() in space.c, like the select_group_menu(),
okee's from join_curve, join_mesh.. etc are in join_menu() so python can call them without UI menu's in the way.
this is also a bit neater since there were 2 places that were doing what join_menu() does now.

- Cam

13 years agoOoops 2 tipos in the epydocs...
Campbell Barton [Fri, 30 Dec 2005 11:56:44 +0000 (11:56 +0000)]
Ooops 2 tipos in the epydocs...

13 years agoAdded the function Duplicate to the object module.
Campbell Barton [Fri, 30 Dec 2005 11:54:53 +0000 (11:54 +0000)]
Added the function Duplicate to the object module.
Object.Duplicate(linked=1)

Basicly a wrapper for adduplicate();

There was previously no easy way to copy objects in python. even the ways that do exist dont take modifiers, particles etc into account.
Uses the current selection.. epydocs included also.

- Cam

13 years agofor Mesh_getFromObject made Mesh and Surf types copy the material list to the new...
Campbell Barton [Fri, 30 Dec 2005 09:56:02 +0000 (09:56 +0000)]
for Mesh_getFromObject made Mesh and Surf types copy the material list to the new mesh.
Still need to do Mball and Text.
Ken- this is fairly straight fwd but if you dont like it - its line 4867 of Mesh.c and 1 block that can be removed.
I tested for memory leaks and correct material user adjustment.
This is realy needed for using getFromObject to export to external rendering engines.
- Hope its ok.
Cam

13 years ago*crash fix
Joseph Gilbert [Thu, 29 Dec 2005 19:27:52 +0000 (19:27 +0000)]
*crash fix
- previous fix crashes win32 and creates an unreachable code block

13 years agoFixed a python segfault when linking a new object to a scene that had no data and...
Campbell Barton [Thu, 29 Dec 2005 12:06:42 +0000 (12:06 +0000)]
Fixed a python segfault when linking a new object to a scene that had no data and was a Surf. the data wasnt created and blender died. Now an error is raised instead.

13 years agoJust added some comments about face material incides and the material list.
Campbell Barton [Thu, 29 Dec 2005 11:08:55 +0000 (11:08 +0000)]
Just added some comments about face material incides and the material list.

13 years agoAdded some details to the Object documentation, some parts were a big vague..
Campbell Barton [Thu, 29 Dec 2005 10:33:00 +0000 (10:33 +0000)]
Added some details to the Object documentation, some parts were a big vague..

13 years agoNew icon image
Ton Roosendaal [Wed, 28 Dec 2005 16:02:52 +0000 (16:02 +0000)]
New icon image

13 years ago- include path and file changes for FreeBSD
Hans Lambermont [Tue, 27 Dec 2005 20:37:15 +0000 (20:37 +0000)]
- include path and file changes for FreeBSD

13 years agoFix crash in EXPP_(int|obj)Error. These functions are redundant;
Yann Vernier [Tue, 27 Dec 2005 15:28:09 +0000 (15:28 +0000)]
Fix crash in EXPP_(int|obj)Error. These functions are redundant;
they only differ by return type, so it's easier to just call
PyErr_Format and return appropriately.

13 years agoSome compilers don't like it when you initialize the fields in a
Chris Want [Mon, 26 Dec 2005 21:43:35 +0000 (21:43 +0000)]
Some compilers don't like it when you initialize the fields in a
struct using the values of variables during the declaration of
the struct.

13 years agoFixing a bit of horrible code in Armature.c (BonesDict_repr).
Alexander Ewering [Fri, 23 Dec 2005 22:16:33 +0000 (22:16 +0000)]
Fixing a bit of horrible code in Armature.c (BonesDict_repr).
There is a lot of very dangerous (and slow) string manipulation code in
there. I do not want to appear arrogant, but a bit of basic code QA in this
module certainly can't hurt.

Please see the diff for further explanation ;-)

13 years agoCopy release/text/*.pdf into release tarball v2.40
Chris Want [Thu, 22 Dec 2005 05:58:30 +0000 (05:58 +0000)]
Copy release/text/*.pdf into release tarball

13 years agoFix typo in epydocs for Mesh example
Ken Hughes [Wed, 21 Dec 2005 18:12:28 +0000 (18:12 +0000)]
Fix typo in epydocs for Mesh example

13 years agoTinsy wee little commit!
Ton Roosendaal [Wed, 21 Dec 2005 17:24:13 +0000 (17:24 +0000)]
Tinsy wee little commit!
In non-OSX environments, the render window opened too high, due to missing
offset. (Simon can get this in windows build still, DJ?)

13 years agoThis fixes two things:
Kent Mein [Wed, 21 Dec 2005 16:18:59 +0000 (16:18 +0000)]
This fixes two things:
http://www.blender.org/forum/viewtopic.php?t=7646
and loading of old corrupt blendfiles.

Makes sure bhead.len is not < 0 (hacked blendfile)
also sets buffer to 0 when fails to read correctly (wasn't set so
was causing problems)

The second thing was provided by pidhash.

Kent

13 years agoRelease code (in Blender) to 2.40
Ton Roosendaal [Tue, 20 Dec 2005 15:21:57 +0000 (15:21 +0000)]
Release code (in Blender) to 2.40

And: first bugfix as found by doing regression files; bowl.blend did not
play realtime due to depsgraph omission.

13 years ago* Teeny tiny menu item correction
Matt Ebb [Tue, 20 Dec 2005 15:17:04 +0000 (15:17 +0000)]
* Teeny tiny menu item correction

13 years agoForgot to remove obsolete button "correct normal mapping"
Ton Roosendaal [Tue, 20 Dec 2005 15:00:13 +0000 (15:00 +0000)]
Forgot to remove obsolete button "correct normal mapping"

13 years agoSmall fix in alpha for icons image.
Ton Roosendaal [Tue, 20 Dec 2005 14:54:30 +0000 (14:54 +0000)]
Small fix in alpha for icons image.

13 years agoPart 2 of commits for release, the release target name/version
Ton Roosendaal [Tue, 20 Dec 2005 14:21:18 +0000 (14:21 +0000)]
Part 2 of commits for release, the release target name/version

13 years ago* Updated the splash with credit!
Matt Ebb [Tue, 20 Dec 2005 14:18:14 +0000 (14:18 +0000)]
* Updated the splash with credit!

13 years agoBased on bugreport, fixed the confusing tooltip for Subdivide options
Ton Roosendaal [Tue, 20 Dec 2005 14:04:41 +0000 (14:04 +0000)]
Based on bugreport, fixed the confusing tooltip for Subdivide options
"Short" or "Beauty".

13 years ago* uncommented some pre-2.40 file conversion code for cameras, for the release
Matt Ebb [Tue, 20 Dec 2005 13:27:35 +0000 (13:27 +0000)]
* uncommented some pre-2.40 file conversion code for cameras, for the release

13 years agoForgot to add 'ForgetReference' for game-python objects.
Erwin Coumans [Tue, 20 Dec 2005 09:13:06 +0000 (09:13 +0000)]
Forgot to add 'ForgetReference' for game-python objects.

13 years agoAdded missing mode rayShadow and updated docs, "NoSpecular" was also missing from...
Campbell Barton [Tue, 20 Dec 2005 06:50:13 +0000 (06:50 +0000)]
Added missing mode rayShadow and updated docs, "NoSpecular" was also missing from the docs too.

13 years agoWhen adding a Mesh in python a file saved caused blender to segfault when reloading.
Campbell Barton [Mon, 19 Dec 2005 23:04:58 +0000 (23:04 +0000)]
When adding a Mesh in python a file saved caused blender to segfault when reloading.
turns out that oops->id->lib isnt initialized? anyhow
if (oops->id && oops->id->lib) // works
where
if (oops->id->lib) // crashes

so made the needed change in a few places.