Stephen Swaney [Wed, 14 Mar 2007 16:09:12 +0000 (16:09 +0000)]
fix gcc warnings about no newline at end of file
Campbell Barton [Wed, 14 Mar 2007 09:08:41 +0000 (09:08 +0000)]
many menu items would crash blender if there was no 3d view. added checks.
Campbell Barton [Wed, 14 Mar 2007 06:01:59 +0000 (06:01 +0000)]
apply the 3ds matrix to the mesh, This fixes some 3ds files and breaks others, but it seems to follow the 3ds format. for the files it messes up, just remove transformation.
Campbell Barton [Wed, 14 Mar 2007 03:01:24 +0000 (03:01 +0000)]
made all python types that can do .__copy__(), also do .copy()
added copy function to lamp, texture and ipo types
Campbell Barton [Wed, 14 Mar 2007 02:11:42 +0000 (02:11 +0000)]
disabled Object.Duplicate() in background mode bacause it needs the 3d view, added a note in the docs.
Andrea Weikert [Tue, 13 Mar 2007 18:23:05 +0000 (18:23 +0000)]
==== MSVC 7.1 projectfiles ====
- small update, added missing files.
Campbell Barton [Tue, 13 Mar 2007 16:15:59 +0000 (16:15 +0000)]
[ #6214 ] Select object of the same group.
rewritten to find the groups that an object is apart of only once (less listbase searching).
with the limitation of 24 maximum in the menu.
Campbell Barton [Tue, 13 Mar 2007 12:50:36 +0000 (12:50 +0000)]
renamed norepeatX/Y to ClampX/Y
Ton Roosendaal [Tue, 13 Mar 2007 12:20:55 +0000 (12:20 +0000)]
Bugfix #6211
Group nodes with animation nodes inside (like Time) did not get updated
correctly.
I also noticed that with time Nodes, the hotkey "E" (execute) fails to do
a composite after frame changes, fixed that too.
Campbell Barton [Tue, 13 Mar 2007 11:54:53 +0000 (11:54 +0000)]
added back videoscape for python
Campbell Barton [Tue, 13 Mar 2007 10:00:27 +0000 (10:00 +0000)]
removed videoscape support, a format from 1988 that nobody uses anymore.
Campbell Barton [Tue, 13 Mar 2007 03:05:12 +0000 (03:05 +0000)]
exiting editmesh when in face select mode could result in hidden and selected faces.
Kent Mein [Tue, 13 Mar 2007 00:06:37 +0000 (00:06 +0000)]
patch [#6213] msvc had problems with GL_CLAMP_TO_EDGE being undefined
on some systems. If its undefined define it.
Kent
Ken Hughes [Mon, 12 Mar 2007 19:45:42 +0000 (19:45 +0000)]
Python API
----------
Chris Want on IRC pointed out a grammatical error in the Bpy doc file. While fixing
it, I found about a dozen more.
Ton Roosendaal [Mon, 12 Mar 2007 16:27:20 +0000 (16:27 +0000)]
Bugfix #6167
Metaball delete could crash, if selected/active ball is not the 'mother'
ball.
Ton Roosendaal [Mon, 12 Mar 2007 14:25:44 +0000 (14:25 +0000)]
Bugfix #6181
An acos() getting a negative value caused 'ray trace shadow bias' to go
wrong (and object render entirely black). Only in very rare cases... but
nevertheless a nice discovery fixing other unpredictable issues.
(Symptom: entire object renders black)
Ton Roosendaal [Mon, 12 Mar 2007 13:31:47 +0000 (13:31 +0000)]
Bugfix #6183
Option "Align view to selected face(s)" (shift+v) did not work for non-
uniform scaled objects.
Ton Roosendaal [Mon, 12 Mar 2007 10:30:39 +0000 (10:30 +0000)]
Bugfix #6173
Dupliverts + shaded mode did not work; patch provided by Riku Palomäk
(tonttu)
Campbell Barton [Mon, 12 Mar 2007 06:21:58 +0000 (06:21 +0000)]
python api
removed most custom add_*data* wrappers from Main.c
removed makeCurrent() from Text.c (was never in a release), use "bpy.texts.active = text" now
clamp new image sizes
made add_empty_action accept a string rather then a blocktype since the blocktype was only being used to choose one of 3 strings anyway.
Campbell Barton [Mon, 12 Mar 2007 01:43:11 +0000 (01:43 +0000)]
added no-xtile and no-ytile to the images realtime properties and python api.
Brecht Van Lommel [Mon, 12 Mar 2007 00:30:46 +0000 (00:30 +0000)]
Fix for bug #6127:
Import scripts could create meshes with old style edgecodes.
Ken Hughes [Sun, 11 Mar 2007 18:20:55 +0000 (18:20 +0000)]
Python API
----------
Fixed some broken/disabled Texture attributes after Image refactor.
Added texture.autoRefresh attribute.
Ken Hughes [Sun, 11 Mar 2007 17:31:27 +0000 (17:31 +0000)]
Remove gcc compiler warnings from various files.
Campbell Barton [Sun, 11 Mar 2007 16:25:17 +0000 (16:25 +0000)]
made all data adding functions accept a name such as add_mesh or add_curve, previously only some datatypes adding functions accepted a name.
also updated the Bpy.py epydocs
Campbell Barton [Sun, 11 Mar 2007 12:35:01 +0000 (12:35 +0000)]
Documentation for the new automatically imported "bpy" module. (was Blender.Main)
Joseph Eagar [Sun, 11 Mar 2007 12:27:57 +0000 (12:27 +0000)]
=Cineon Bug=
In my attempts to get cinepaint's cineon code to work with files in memory,
I accidently rewrote something that should have been left as it is. This
causes images whose image buffers didn't start right after the cineon header to
become "shifted" to the left.
The DPX code looks correct, though.
Ton Roosendaal [Sun, 11 Mar 2007 12:14:50 +0000 (12:14 +0000)]
Bugfix #6201
Shape key drivers were not copied correctly, when choosing the option
"ADD NEW Scene -> Full copy".
Joshua Leung [Sun, 11 Mar 2007 04:39:19 +0000 (04:39 +0000)]
Action Editor - Remove unused code.
Nothing ever called that part of code, and that code was
'not implemented' anyway.
Campbell Barton [Sun, 11 Mar 2007 04:05:45 +0000 (04:05 +0000)]
moved python functions that deal with blender libdata into gen_library.c from gen_utils and BPY_interface
small cleanup, removed unused functions and explicetly cast pointers..
Campbell Barton [Sat, 10 Mar 2007 12:37:03 +0000 (12:37 +0000)]
PyApi: fix for own bad bug, obdata was having a user removed when the object was removed with (scene.objects.unlink(ob))
Campbell Barton [Sat, 10 Mar 2007 11:47:24 +0000 (11:47 +0000)]
removed python oops access, (was unreliable and nobody used it)
oops data access need to be done differently.
Blender.sys fix for win32 path bug 6193
Campbell Barton [Sat, 10 Mar 2007 09:43:43 +0000 (09:43 +0000)]
Main
* Added bpy.*.new() - works for all except sound and font types
* Added bpy.*.load() - works for sound, font and image types
Text3d - removed unneeded check.
Campbell Barton [Sat, 10 Mar 2007 06:33:19 +0000 (06:33 +0000)]
added "bpy" as a module imported by default to replace Blender.Main as a new way to access blender data
gen_utils was missing some type checks that made assigning a objects DupGroup and meshes texcomesh not work.
Ken Hughes [Fri, 9 Mar 2007 22:21:23 +0000 (22:21 +0000)]
Python API
----------
Added Image.source attribute, so image type can be get/set for still, movie,
sequence or generated images.
Ken Hughes [Fri, 9 Mar 2007 21:48:47 +0000 (21:48 +0000)]
Python API
----------
Rearrange includes, remove dead code to fix gcc warnings.
Geoffrey Bantle [Fri, 9 Mar 2007 19:54:05 +0000 (19:54 +0000)]
-> Fix for bug #6150
Missing call to update despgraph caused merge tools to crash
when called from toolbox or header menus.
Geoffrey Bantle [Fri, 9 Mar 2007 15:36:21 +0000 (15:36 +0000)]
-> Small bug fix for modifiers and info header stats
Small but very annoying issue with modifiers meant that G.totvert/totedge/totface
were updated to reflect the effects of a subsurf modifier in object mode but all other
modifier types were ignored. This was not only inconsistent, but also made it very
difficult to keep track of poly budgets. Now in order to obtain accurate counts
object_handle_update is called immediatly after adding a modifier and precedes a call
to countall() which has been modified to query the final derived mesh directly
using dm->getNumVerts/Edges/Faces callbacks. Editmode behaviour is unchanged.
Matt Ebb [Fri, 9 Mar 2007 04:19:59 +0000 (04:19 +0000)]
* Visualise material 'Shadeless' a bit better in the 3D View solid mode.
Now it draws as if Ref = Emit = 1.0 - not as accurate as shaded mode,
but it's better than before, and at least it allows transparency.
Ken Hughes [Fri, 9 Mar 2007 00:11:02 +0000 (00:11 +0000)]
Python API
----------
Fix bug with variable declaration in middle of function.
Campbell Barton [Thu, 8 Mar 2007 14:37:34 +0000 (14:37 +0000)]
BPython API
added a function - GenericLib_assignData for assigning blender data, to assign an ipo to a camera or world to a scene for instance.
Using this function removed ~300 lines of code.
also fixes user count error in some places that didnt check.
also made it possible to clear the colorband by setting it to []
Campbell Barton [Thu, 8 Mar 2007 13:43:59 +0000 (13:43 +0000)]
bugfix, material copy wasnt increasing the lighting groups user count, but removing the lighting group decreased it.
Ton Roosendaal [Thu, 8 Mar 2007 12:22:50 +0000 (12:22 +0000)]
Bugfix #6176
Matrix cache for particles was read out of bounds. Fix found by Ken Hughes.
Ton Roosendaal [Thu, 8 Mar 2007 12:05:34 +0000 (12:05 +0000)]
Bugfix #6190
Composite: renderlayer nodes were not tagged 'changed' when rerendered,
causing a composite to skip them. (only for nodes having another scene)
Campbell Barton [Thu, 8 Mar 2007 06:35:01 +0000 (06:35 +0000)]
Added python access to material and texture colorbands.
mat.colorbandDiffuse
mat.colorbandSpecular
tex.colorband
gen_utils - removed unused func
Nicholas Bishop [Thu, 8 Mar 2007 05:54:39 +0000 (05:54 +0000)]
== Multires ==
Fixed bug #6153, Blender Crash during rendering (internal) with object selected in edit mode.
* Added a render parameter to several of multires's functions. If render==true, multires won't push data onto the undo stack, and regular Mesh data is always used (as opposed to EditMesh data.)
Campbell Barton [Thu, 8 Mar 2007 03:04:17 +0000 (03:04 +0000)]
Was missing a define for intern_pos_update, somehow GCC didnt complain but MSVC did.
Charlie Carley [Thu, 8 Mar 2007 03:00:33 +0000 (03:00 +0000)]
Added a guard to prevent more than one texture to be generated per image.
Campbell Barton [Wed, 7 Mar 2007 14:58:29 +0000 (14:58 +0000)]
made alloc_sequence accept a linkedList so it can be used from Python.
the start/end points for new strips were not set properly.
Brecht Van Lommel [Wed, 7 Mar 2007 14:57:01 +0000 (14:57 +0000)]
Bugfix (forum report):
Texture space copy (ctrl+c) crashed.
Matt Ebb [Wed, 7 Mar 2007 11:09:03 +0000 (11:09 +0000)]
Compositor/assorted nodes fixes:
* Auto-create compbufs for first socket of alphaover and set alpha nodes.
This allows you to eg. plug something into the second socket of an
alphaover node, and choose a solid colour in the first empty socket for
the image to be superimposed over.
Previously I had to create a bunch of extra nodes to (for example) mix
100% black over my render, just to get a black compbuf of the right size
that I could plug in. Not nice.
The Mix node already works this way, and these two should have, but
didn't.
* Allow the 'Fac' value to be used on RGB curves when there is no input
image. This lets you easily fade the changes in and out to check it
against the original, or to tone down the effect of the colour correction.
Campbell Barton [Wed, 7 Mar 2007 09:53:40 +0000 (09:53 +0000)]
DNA_meta_types.h - had a max element type defined that wasnt used anywhere, and some metaballs alredy use more then 1024 elements.
Metaball - added metaball.update attribute and constants Mataball.Update.ALWAYS, NEVER, HALFRES and NEVER
Campbell Barton [Wed, 7 Mar 2007 08:53:26 +0000 (08:53 +0000)]
Type header_seq.c - Reassing Inputs -> Reassign Inputs
Mesh.c added new function to mesh - mesh.pointInside(vec)
Ken Hughes [Wed, 7 Mar 2007 06:19:15 +0000 (06:19 +0000)]
Tools
-----
Bugfix #6174: files larger than (2^31)-1 bytes were reported with negative
sizes in file manager windows. Added a cast to unsigned int before doing
conversions for the UI.
Ken Hughes [Wed, 7 Mar 2007 00:56:09 +0000 (00:56 +0000)]
Python API
----------
Add some missing Py_DECREF() calls.
Ken Hughes [Tue, 6 Mar 2007 18:55:35 +0000 (18:55 +0000)]
Python API
----------
Converted CurNurb module to tp_getseters.
Added patch #5761 to provide read access to NURB knot vectors.
Ken Hughes [Tue, 6 Mar 2007 18:35:03 +0000 (18:35 +0000)]
Python API
----------
Bugfix #6166: Mesh.getFromObject() didn't accept three parameters.
Ken Hughes [Tue, 6 Mar 2007 16:50:58 +0000 (16:50 +0000)]
Python API
----------
Forgot to put sentinel at end of Curve_getseters, probably the cause of
crashes on OSX (thanks Stephen!). Also add doc strings for attributes, add
missing "taperob" attribute to python docs.
Ed Halley [Tue, 6 Mar 2007 03:39:15 +0000 (03:39 +0000)]
Uses the bglFlush() and is_a_really_crappy_intel_card() hacks to give
better support on low-end Macintoshes with integrated Intel graphics
chipsets. Patch received from "UncleZiev" on #blendercoders, but I
adjusted it so other video chipsets and platforms are unaffected.
The only visual difference is that on MacBook and iMac machines, the box
select outline is drawn with solid, not dashed lines like other platforms
and not invisible as they were previously.
Kent Mein [Mon, 5 Mar 2007 20:50:36 +0000 (20:50 +0000)]
extra space in CCFLAGS was causing problems on some systems.
reported on irc... by bdiego
Kent
Ton Roosendaal [Mon, 5 Mar 2007 20:49:04 +0000 (20:49 +0000)]
Small silly feature: menus in blender now scroll with mouse wheel. :)
Note that activiting it works as if you used arrow keys, not with mouse.
Ton Roosendaal [Mon, 5 Mar 2007 20:47:59 +0000 (20:47 +0000)]
bugfix #6163
Dupligroup: the recursive option did not check for the button (flag) to
be set, only for the pointer ->dupli_group
Campbell Barton [Mon, 5 Mar 2007 15:26:03 +0000 (15:26 +0000)]
adding experemental sequencer module, This may change or be removed before next release.
scene.sequence - This is an iterator that loops over strips, metastrips are intern iterable.
currently has support for dealing with scene strips and metastrips, generic strip options and moving strips about.
Campbell Barton [Mon, 5 Mar 2007 13:07:31 +0000 (13:07 +0000)]
mesh_skin - syntax error stopped ths script from working.
svg2obj.py update from JMS
- Exec was removed from the collect_ATTRIBUTS function .
- Other uses was evaluated.
Nathan Letwory [Mon, 5 Mar 2007 06:38:30 +0000 (06:38 +0000)]
=== SCons ==
* fix by Malcolm Tredinnick for #6148
* some other misc changes by myself.
Ken Hughes [Mon, 5 Mar 2007 04:36:48 +0000 (04:36 +0000)]
Tools
-----
Bugfix #6156: Fluid simulation crashed on meshes with no vertices. Add a
check for mesh->totvert==0 and print a message in that case.
Ken Hughes [Mon, 5 Mar 2007 03:44:48 +0000 (03:44 +0000)]
Python API
----------
Conversion of Curve module to tp_getseters.
Ken Hughes [Mon, 5 Mar 2007 03:38:41 +0000 (03:38 +0000)]
Python API
----------
Removed prototype for recently-removed Blender_RemoveFakeuser().
Ken Hughes [Mon, 5 Mar 2007 03:34:40 +0000 (03:34 +0000)]
Python API
----------
Fix potential problem with tex.evaluate(); calling multitex_ext() with
non-zero integers instead of pointers. Campbell, double-check that this fix
is correct, otherwise take another look at what it should do.
Campbell Barton [Sun, 4 Mar 2007 11:48:37 +0000 (11:48 +0000)]
made it possible to set a modifiers object to None to remove the object
added initial support for the displacement modifier
Campbell Barton [Sat, 3 Mar 2007 14:05:36 +0000 (14:05 +0000)]
Added functions to Text3d that allow modifying of text frames
* .addFrame()
* .removeFrame(index)
getseters
* .activeFrame
* .totalFrames
* .frameWidth
* .frameHeight
* .frameX
* .frameY
Andrea Weikert [Sat, 3 Mar 2007 11:28:15 +0000 (11:28 +0000)]
==== MSVC 7.1 project files ====
- fix for 3DPlugin compile
- cleanup of bullet path
- removed PHY_ODE project from 3D plugin too, not used anymore
Now all configurations should build again, let me know of any problems!
Not been able to test if the 3DPlugin is actually working,is job for another day ;)
Also the 3DPlugin is compiled without OpenExr, this needs to be looked into once too.
Ton Roosendaal [Sat, 3 Mar 2007 10:40:44 +0000 (10:40 +0000)]
Bugfx #6138
Raytraced transparent shadow: did not respect lamp option "Layer".
Campbell Barton [Sat, 3 Mar 2007 01:29:22 +0000 (01:29 +0000)]
Pose.c - added option not to update IPO's when adding a keyframe to a bone.
bvh_import.py
- delaying IPO updates gives a significant speedup.
- IPO's use linear interpolation now
- Added an option to loop the animation.
- fix for own bug, importing to empties never worked.
Matt Ebb [Fri, 2 Mar 2007 22:02:40 +0000 (22:02 +0000)]
* Compo:
Added the curve options buttons (clipping, vector handles, etc)
to the time node
Willian Padovani Germano [Fri, 2 Mar 2007 18:15:41 +0000 (18:15 +0000)]
Interface:
Added option "Load Factory Settings" in the "File" menu.
With this, users don't have to remove .B.blend if they want to load the default data stored in Blender. Thanks Ton for ok'ing it and suggesting a better place in the menu (I had put it as "New (factory defaults)").
Campbell Barton [Fri, 2 Mar 2007 09:48:04 +0000 (09:48 +0000)]
vector.c - bugfix, vec.w accessed vec[4] not vec[3]! (probably my fault)
Texture.c - added "val = tex.evaluate(vec)" so you can find the color/intensity at a given loaction for a texture.
Joshua Leung [Fri, 2 Mar 2007 07:30:52 +0000 (07:30 +0000)]
Bugfix:
Removed the ability to change the name of a constraint or vertex group
to "" as it was causing problems. Anyway, it shouldn't be allowed.
Campbell Barton [Fri, 2 Mar 2007 05:47:14 +0000 (05:47 +0000)]
made libdata iterator types use existing function from BPY_interface - ID_asPyObject(*id)
Joseph Gilbert [Thu, 1 Mar 2007 21:30:48 +0000 (21:30 +0000)]
various warnings fixes - mostly casting and initialization issues
Joseph Gilbert [Thu, 1 Mar 2007 20:49:44 +0000 (20:49 +0000)]
updating vc7 projectfiles to link to python2.5
Campbell Barton [Thu, 1 Mar 2007 15:40:13 +0000 (15:40 +0000)]
own error, missing braces.
Campbell Barton [Thu, 1 Mar 2007 13:22:26 +0000 (13:22 +0000)]
Scene.c - world could not be set to None, added "cursor" attribute.
Scene.py - added docs for new scen attributes.
meshtools.c - typo
Campbell Barton [Thu, 1 Mar 2007 10:51:28 +0000 (10:51 +0000)]
added face sorting from the distance to cursor. (near to far and far to near)
Matt Ebb [Thu, 1 Mar 2007 10:22:16 +0000 (10:22 +0000)]
* Fix for Bug #6091:
Ambient Occlusion baking uses hidden objects
Campbell Barton [Thu, 1 Mar 2007 05:32:06 +0000 (05:32 +0000)]
new script seams from islands, adds seams at the boundries of existing UV islands.
uvcalc_smart_project - needed to import Main
Nathan Letwory [Thu, 1 Mar 2007 05:00:24 +0000 (05:00 +0000)]
=== SCons ===
Copy the Python 2.5 dll on windows, not 2.4. Also commented out the copying of the
python24.zip and zlib.pyd. I'm under the impression there is a concensus we want
users to install py25 if they want to use it.
Campbell Barton [Thu, 1 Mar 2007 02:25:20 +0000 (02:25 +0000)]
quake map exporter, supports lamps, cubes as brushes, complex meshes face per brush, nurbs surfaces as a patch
texture mapping dosnt work yet.
Campbell Barton [Wed, 28 Feb 2007 22:49:20 +0000 (22:49 +0000)]
fixes to this script pointed out by JMS
Martin Poirier [Wed, 28 Feb 2007 22:04:37 +0000 (22:04 +0000)]
=== Misc ===
Removing leftover debugging printfs.
Andrea Weikert [Wed, 28 Feb 2007 21:37:14 +0000 (21:37 +0000)]
=== bugfix ===
[ #6077 ] Scripts in sub-sub-folders of Blender's scripts folder won't run.
[ #5572 ] Scripts in sub-folders of Blender's scripts folder won't run
- I've added a function in blenlib to join two strings with a path separator in between.
- Willian, Campbell, please check if commit in BPY_menus is ok and test - thanks!
Nicholas Bishop [Wed, 28 Feb 2007 21:10:41 +0000 (21:10 +0000)]
== Sculpt Mode ==
When switching scenes, turn Sculpt Mode off (same as for other special modes.)
Andrea Weikert [Wed, 28 Feb 2007 20:11:10 +0000 (20:11 +0000)]
=== bugfix ===
filename and path issues:
[ #6107 ] Animation crashes when ouput folder does not exist
- using the Windows drive as default and only then degrading to the
Blender installation drive and then the first valid drive.
- in case of degrading added error message print to console to make it
transparent
[ #6106 ] fluids - no default path
- setting the default path to U.tempdir where Blender stores temporary files
Brecht Van Lommel [Wed, 28 Feb 2007 17:50:15 +0000 (17:50 +0000)]
Fix for bug #6136:
Yafray rendering with 2 or cameras linked crashes. Iterating over and
erasing from STL map at the same time wasn't being done correct.
Martin Poirier [Wed, 28 Feb 2007 17:16:17 +0000 (17:16 +0000)]
=== Transform Snap ===
Snapping to other meshes from edit mode.
This commit adds the capacity to snap to vertice of other selected meshes. (This is for sanity reasons, big scenes would kill the speed)
So, if you want to snap to another mesh, just add it to the selection and you're done.
NOTE: Priority is given to vertice inside the current mesh (if they overlap with outside verts)
Martin Poirier [Wed, 28 Feb 2007 15:29:18 +0000 (15:29 +0000)]
=== Transform Snap ===
[ #6131 ] Vertex snapping broken in shaded face + edge select mode
The problem was trying to use the OGL optimisation when vertex selection was turned off. Added a check for that in all the find_nearest functions (vert, edge, face) so nobody falls in that trap again.
The offshot is that snapping in shaded view without vertex select on can snap to occluded vertice.
Joshua Leung [Wed, 28 Feb 2007 08:54:32 +0000 (08:54 +0000)]
Added a few extra defines for adding constraints. No new constraints added yet.
Nathan Letwory [Wed, 28 Feb 2007 04:51:13 +0000 (04:51 +0000)]
=== SCons ===
Update configs to use Python 2.5. To quote from IRC:
07:17 * stivs waves his +5 Mouse of Power and authorizes jestie to update all of scons to py 2.5.
07:17 < stivs> let the screaming begin!
Campbell Barton [Wed, 28 Feb 2007 04:50:39 +0000 (04:50 +0000)]
mis named Layer, should be Scene.Layers
Campbell Barton [Wed, 28 Feb 2007 03:07:07 +0000 (03:07 +0000)]
plumiferos request,
Simple script to copy the active vertex group, also has the option to only copy the selected faces into the new group.
Nicholas Bishop [Tue, 27 Feb 2007 23:54:55 +0000 (23:54 +0000)]
== Sculpt Mode ==
Added a SculptSession parameter to sculptmode_propset_end, to avoid propset_end creating a new session (propset_end is called when freeing the session, so this can cause a memory leak.)