blender.git
13 years agoFix typo in doc. CurNurb.setType() was getType() which hid the
Stephen Swaney [Thu, 13 Apr 2006 01:41:42 +0000 (01:41 +0000)]
Fix typo in doc.  CurNurb.setType() was getType() which hid the
real getType() definition and made getType() into the setter.   All that
confusion from a single character!

13 years agolast release we lost our reassuring msg when no local python install
Stephen Swaney [Tue, 11 Apr 2006 19:05:58 +0000 (19:05 +0000)]
last release we lost our reassuring msg when no local python install
was found.  Restore warm fuzzy msg.  Text is now

  Looking for installed Python version XXX

followed by either

  Got it!
or
  'import site' failed; use -v for traceback
  No installed Python found.
  Only built-in modules are available.  Some scripts may not run.
  Continuing happily.

And while we are at it, clean up a couple of compiler warnings.

13 years agoBugfix #3665
Ton Roosendaal [Tue, 11 Apr 2006 12:27:50 +0000 (12:27 +0000)]
Bugfix #3665

Using "International Fonts" (silly name, it's pixmap fonts) the special
characters (values above 127) were disregarded completely.
This was caused with the extremely confusing unicode conversion call, which
actually only was needed when translations were set.

Disabling the unicode conversion then gives correct text drawing. However,
I suspect that this code will give issues for translations too... that I
cannot judge nor fix.

13 years agoBugfix #3698
Ton Roosendaal [Tue, 11 Apr 2006 10:17:15 +0000 (10:17 +0000)]
Bugfix #3698

Crash fix for deleting all vertices in a Mesh when this Mesh had a
Vertex parent.

13 years agoBugfix #3699
Ton Roosendaal [Tue, 11 Apr 2006 10:09:33 +0000 (10:09 +0000)]
Bugfix #3699

When using non-relative Shape keys, the lock option (live updates) in the
IpoWindow didn't work after one of the keylines was selected.

13 years ago#bugfix #3659
Ton Roosendaal [Tue, 11 Apr 2006 09:52:00 +0000 (09:52 +0000)]
#bugfix #3659

Zero-sized bones in an Armature didn't result in a stable rest position.
This caused bones to rotate to random positions on each editmode exit.

This commit will automatically remove such bones on exit editmode now, and
adds a warning print for it. I've tried to code exception handling for
zero-sized bones, but this is just too hard to get stable. Better to define
by default that Bones always should have a length.

Typically zero-sized bones only get added by accident, for example while
ctrl+clicking new bones.

13 years agoapplied Charlies patch, reverted some GLSL shader stuff, improved penetration depth...
Erwin Coumans [Tue, 11 Apr 2006 05:57:30 +0000 (05:57 +0000)]
applied Charlies patch, reverted some GLSL shader stuff, improved penetration depth estimate.

13 years agofinished RemoveHandle implementation
Erwin Coumans [Tue, 11 Apr 2006 02:48:34 +0000 (02:48 +0000)]
finished RemoveHandle implementation

13 years agoFixed 2 bugs in mesh brush. 3805 and 3806
Campbell Barton [Tue, 11 Apr 2006 02:41:11 +0000 (02:41 +0000)]
Fixed 2 bugs in mesh brush. 3805 and 3806
Verts being set to NAN and cursor being placed as well as painting.

13 years ago=== Transform ===
Martin Poirier [Tue, 11 Apr 2006 00:24:07 +0000 (00:24 +0000)]
=== Transform ===
Bug #3779: In camera view with center cursor (on camera), it's impossible to use translations.

Initgrabz didn't account for negative zero values (nor near zero values). Works now.

Of course, this is just a safety to give back the appearance of working, since the cursor is on the point of convergence, there's no way to properly calibrate anything.

Word of advice: Always check where the transform center is.

13 years agoSome Maya dev thaught it would be a fun joke to format floats with a comma instead...
Campbell Barton [Tue, 11 Apr 2006 00:00:07 +0000 (00:00 +0000)]
Some Maya dev thaught it would be a fun joke to format floats with a comma instead of a full stop.
Obj importer now supports 4,845 as well as the more useual 4.845 floating point value.

13 years ago=== Transform Constraining ===
Martin Poirier [Mon, 10 Apr 2006 23:20:18 +0000 (23:20 +0000)]
=== Transform Constraining ===
Bug #3733
Constraining on a perpendicular axis was broken on (half - 1) cases.
Silly oversight on my side which didn't turn out in the test case (moving camera in and out) and only appeared in front view (not side nor top) because of positive reasons.

Frankly, I still think translating an object perpendicular to the viewport is a bit silly, but now, at least, people can be silly in a predictable fashion.

13 years agoA utility script that refinds all image paths for images that have a path whos file...
Campbell Barton [Mon, 10 Apr 2006 23:14:17 +0000 (23:14 +0000)]
A utility script that refinds all image paths for images that have a path whos file dosent exist.
Running this script is usefull for moving projects to new computers and fixing broken image paths.
It works by taking a searchdir and finding all the images in that dir, then using the largest images (if doubles are found) to avoid using thumbnails.

This should be mived from the UV to the image menu when a python slots available.

13 years agoremoved debug print.
Campbell Barton [Mon, 10 Apr 2006 21:49:46 +0000 (21:49 +0000)]
removed debug print.

13 years agoMoved ngon creating function from obj_import into BPyMesh so other importers can...
Campbell Barton [Mon, 10 Apr 2006 21:42:18 +0000 (21:42 +0000)]
Moved ngon creating function from obj_import into BPyMesh so other importers can use it.
Exporter free's mesh vertex data each run (was causing memory errors when exporting fluidsim meshes... poke ken for Mesh.Unlink() since many meshes are still created)
Exporter had an indentation error also.
Added an NMesh wrapper around Mesh for importers to use, so as to work around slow 1 by 1 adding of data. used in upcoming flt_importer update.
Mesh cleanup now has the dangerous option to perform a cleanup on ALL mesh data. (needed it for a project)

13 years agoBrought back the option "remove all used texture images". It was
Ton Roosendaal [Mon, 10 Apr 2006 18:27:51 +0000 (18:27 +0000)]
Brought back the option "remove all used texture images". It was
committed to be default, but should react to the button in scene panels.

13 years agoBugfix #3702
Ton Roosendaal [Mon, 10 Apr 2006 13:27:06 +0000 (13:27 +0000)]
Bugfix #3702

Background image in 3d window didn't react on "reload image" options in
UV WIndow or Buttons Window.

13 years agoBugfix #3720
Ton Roosendaal [Mon, 10 Apr 2006 10:31:11 +0000 (10:31 +0000)]
Bugfix #3720

Using stride-bone in an NLA, on a path without speed Ipo, didn't correct
the case when an action starts on a non-zero value.
Patch provided by Roland Hess. Thanks!

13 years agoBugfix #3725
Ton Roosendaal [Mon, 10 Apr 2006 10:14:26 +0000 (10:14 +0000)]
Bugfix #3725

When you disable a texture channel using Displacement in a Material, the
initialize code and renderconvert code still though this was active.

13 years agoBugfix #3778
Ton Roosendaal [Sun, 9 Apr 2006 19:10:41 +0000 (19:10 +0000)]
Bugfix #3778

Removed the haha-fun "eekadoodle" error, which was popping up for each
faulty face (could be 1000s), and renamed it to give a proper message:

"This Mesh has old style edgecodes, please put it in the bugtracker!"

13 years agoBugfix #3781
Ton Roosendaal [Sun, 9 Apr 2006 18:31:20 +0000 (18:31 +0000)]
Bugfix #3781

Using the new "Add constraint" hotkey (CTRL+ALT+C) or the option in the
pulldown menu, didn't set a proper flag in Curve object when a "Follow
Path" constraint was choosen.

13 years agoBugfix #3906
Ton Roosendaal [Sun, 9 Apr 2006 18:22:05 +0000 (18:22 +0000)]
Bugfix #3906

Restored animated background picture, using a bad call actually, but thats
clearly noted in comments in code. Is remainder work for cleaning up the
whole render api. :)

13 years agoBugfix #3862
Ton Roosendaal [Sun, 9 Apr 2006 17:14:55 +0000 (17:14 +0000)]
Bugfix #3862

Wire render normals were exactly opposite to the normals for solid faces.
This caused displacement to work inverse too. Flipped them.
(Note; for shading normals are corrected to point towards viewer)

13 years agoBugfix #3860
Ton Roosendaal [Sun, 9 Apr 2006 16:43:03 +0000 (16:43 +0000)]
Bugfix #3860

Ipo Driver on a curve-path speed Ipo was not assigned yet to dependency
graph, so it appeared as if it didnt work.

13 years ago#bugfix #3791
Ton Roosendaal [Sun, 9 Apr 2006 16:36:19 +0000 (16:36 +0000)]
#bugfix #3791

Missing depsgraph update tag in Object made dxf import seem as if it
didn't import anything.

13 years agoBugfix #3840
Ton Roosendaal [Sun, 9 Apr 2006 11:10:11 +0000 (11:10 +0000)]
Bugfix #3840

Reading DXF curves can result in corrupted edges (with 2 identical
vertex indices). Probably thats OK for autocad or so.. but it made
Blender crash on entering editmode.

13 years agofixed mistake in checking face verts (for face weight filling), and made C++ comments...
Campbell Barton [Sun, 9 Apr 2006 05:12:13 +0000 (05:12 +0000)]
fixed mistake in checking face verts (for face weight filling), and made C++ comments, C style

13 years agoHrms... the fix for bug #4010 didn't work as expected.
Ton Roosendaal [Sat, 8 Apr 2006 18:13:47 +0000 (18:13 +0000)]
Hrms... the fix for bug #4010 didn't work as expected.

The issue was that particle emittors were still transformed by the object
matrix itself. That was solved in the previous commit, but there was
still an error in correctly evaluating dependencies for the object...
Current commit uses depsgraph to recalculate all objects that influence
the emittor.

The depsgraph code doesn't like particles much (because it uses baking).
Current construct is still weak, is on the list to solve nice.

13 years agoBugfix #3939
Ton Roosendaal [Sat, 8 Apr 2006 17:36:27 +0000 (17:36 +0000)]
Bugfix #3939

"Full OSA" render used wrong subsample pattern for accumulating passrender
info. Was only noticable for the 'normal' pass, for example on raytraced
images. Image looked as if it had a wireframe render.

13 years agoBugfix #3948
Ton Roosendaal [Sat, 8 Apr 2006 16:46:00 +0000 (16:46 +0000)]
Bugfix #3948

Raymirror didn't use proper texture-space 'osa vectors' for sky texture,
causing extremely blurred reflections of sky.
Error was actually a mixup of arguments for sky render...

13 years agoBugfix #3961
Ton Roosendaal [Sat, 8 Apr 2006 15:58:49 +0000 (15:58 +0000)]
Bugfix #3961

When using CTRL+L for materials, you can end up with non-existing material
indices in faces. The drawing code then was still happily drawing the old
situation (or something random, its a static array).

This commit checks the maximum amount of materials on an object, and draws
the last available material for a non-existing index. It uses an ugly
global yes, but this code is bad anyway. :)

13 years agoBugfix #4015
Ton Roosendaal [Sat, 8 Apr 2006 14:58:37 +0000 (14:58 +0000)]
Bugfix #4015

Sequencer:
Typo in code committed by Peter; which made range for Glow button negative,
causing malloc errors and glow to not work at all.

13 years agoBugfix #4010
Ton Roosendaal [Sat, 8 Apr 2006 14:50:04 +0000 (14:50 +0000)]
Bugfix #4010

Dynamic particles sometimes didn't properly use global coordinates.
Meaning they were transformed by an Object, for example when it has
animation constraints.

Error caused by attempt to get duplicators to work for particles. Will
need re-evaluation this.. for now restored old functionality, with
exception of dupli-groups.

13 years agoBugfix #4066
Ton Roosendaal [Sat, 8 Apr 2006 13:50:15 +0000 (13:50 +0000)]
Bugfix #4066

Particle strands with a width set (like 10 pixels), and with extreme
bending of strands (like a very course subdivision), could create non-flat
quads. For speed reasons, the quad-to-triangle splitting was turned off
for hair, but in this case that should be done nevertheless.

Solves another Dandruff issue for furry bunnies!

13 years agofixed a lot of GCC 4.0 warnings.
Erwin Coumans [Sat, 8 Apr 2006 13:05:22 +0000 (13:05 +0000)]
fixed a lot of GCC 4.0 warnings.

13 years agoMade face filling (Shift+K) in weightpaint mode, work with x-mirror.
Campbell Barton [Sat, 8 Apr 2006 10:44:19 +0000 (10:44 +0000)]
Made face filling (Shift+K) in weightpaint mode, work with x-mirror.

13 years agoBugfix #4079
Ton Roosendaal [Sat, 8 Apr 2006 10:02:20 +0000 (10:02 +0000)]
Bugfix #4079

Rendering with 'Wire' material, and with Autosmooth set, made wire faces
get a zero'ed normal. Added exception handling code fir wire.

13 years agoBugfix #4055: the "sel" attributes for faces/edges/verts were basically
Ken Hughes [Fri, 7 Apr 2006 02:49:15 +0000 (02:49 +0000)]
Bugfix #4055: the "sel" attributes for faces/edges/verts were basically
oblivious of each other, so setting/clearing the face edit mode select status
did not set/clear the corresponding vertex select statuses.  This patch makes
a change of any select status recalculate the selection state of all edges an
faces.  One unresolved issue is what effect this should have on the recent
edge mesh's stored selection.  Currently changing the selection state will
delete store selection info, but it may be desirable to emulate the stored
selection (but I need to discuss how this should work in more depth with
Geoffrey Bantle).

As an added bonus (while I was messing with this), I added a "sel" attribute
to edges so they are the same as faces and vert.

13 years agoUndo Campbell's last commit that disabled face select mode on fluidsim
Brecht Van Lommel [Fri, 7 Apr 2006 02:46:20 +0000 (02:46 +0000)]
Undo Campbell's last commit that disabled face select mode on fluidsim
meshes, and actually fix the bug that caused the crash. The fluidsim result
doesn't preserve a mapping to the original mesh, so it shouldn't be displayed
in face select mode.

13 years agogoing into face select mode for fluidsim meshes segfaulted blender, do a check so...
Campbell Barton [Fri, 7 Apr 2006 01:14:08 +0000 (01:14 +0000)]
going into face select mode for fluidsim meshes segfaulted blender, do a check so it dosent happen.

13 years agoDid some changes to the getMeshFromObject wrapper.
Campbell Barton [Fri, 7 Apr 2006 00:47:39 +0000 (00:47 +0000)]
Did some changes to the getMeshFromObject wrapper.
Made obj_export use getMeshFromObject

obj_export now copies images from mtex as well as texface when copy images enabled.
obj_export tested to work with exporting fluidsim animations (somebody reported it was broken, must have been fixed at some point?)

13 years agoadded HingeConstraint.cpp to SConscript
Erwin Coumans [Thu, 6 Apr 2006 21:58:46 +0000 (21:58 +0000)]
added HingeConstraint.cpp to SConscript

13 years agoadded hinge constraint support to Bullet physics
Erwin Coumans [Thu, 6 Apr 2006 20:37:38 +0000 (20:37 +0000)]
added hinge constraint support to Bullet physics

13 years agoReordering OpenEXR libraries to correctly reflect dependencies.
D.J. Capelis [Thu, 6 Apr 2006 20:11:06 +0000 (20:11 +0000)]
Reordering OpenEXR libraries to correctly reflect dependencies.

This fixes some ld errors when the static versions of the EXR libs are used.

13 years agoI renamed a couple of simple variables to prevent warnings about
Kent Mein [Thu, 6 Apr 2006 17:27:15 +0000 (17:27 +0000)]
I renamed a couple of simple variables to prevent warnings about
variable blah at a higher scope is already defined...
(one of these was introduced by me when I moved a variable declaration
to the top of the function.)

Kent

13 years agoFor 3ds import script, try to get set() function by importing the
Chris Want [Wed, 5 Apr 2006 19:28:21 +0000 (19:28 +0000)]
For 3ds import script, try to get set() function by importing the
function Set() from sets (stoopid python!) if the python version is
less than 2.4.

Campbell: please check!

13 years agoAdded BPyMesh for mesh python mesh functions.
Campbell Barton [Wed, 5 Apr 2006 18:54:38 +0000 (18:54 +0000)]
Added BPyMesh for mesh python mesh functions.
at the moment it only has meshWeight2Dict and dict2MeshWeight
  These allow you to deal with vertex weights as a list of dicts which makes scrips short and easy to understand.
   (kh_python, perhaps dict access to the python verts could replace this )

Used the above util functions to update mesh_cleanup.
Copied from the source

'Material Clean', 'Remove unused materials.'
'VGroups'
'Group Clean', 'Remove vertex groups that have no verts using them.'
'Weight Clean', 'Remove zero weighted verts from groups (limit is zero threshold).'
'Weight Normalize', 'Make the sum total of vertex weights accross vgroups 1.0 for each vertex.'

Normalizing lets you see how much % of the vertex a bone owns just by looking at 1 of the bone weights.

Would be nice to have this functionality in Blender but theres not much room for new buttons in teh vgroup and material area :/

13 years agoFix #3999
Ton Roosendaal [Wed, 5 Apr 2006 17:21:24 +0000 (17:21 +0000)]
Fix #3999

Outliner, Group view, operation menu "unlink group" also set the group user
counter to zero, which it should not do.
Note; the definition of this command is to make sure no users exist of this
group, but the group itself can still be there with objects.

13 years agoBugfix #4009
Ton Roosendaal [Wed, 5 Apr 2006 17:11:01 +0000 (17:11 +0000)]
Bugfix #4009

Missing redraw in menu to choose 'metric' for Voronoi texture.

13 years agoAdded an option to batch rename vert Groups.
Campbell Barton [Wed, 5 Apr 2006 16:48:55 +0000 (16:48 +0000)]
Added an option to batch rename vert Groups.

13 years agoTwo more quicktime changes for compiling after OSX software update
Ton Roosendaal [Wed, 5 Apr 2006 15:31:21 +0000 (15:31 +0000)]
Two more quicktime changes for compiling after OSX software update

13 years agoAnother #define __CARBONSOUND__ needed because of wacko Quicktime decision
Ton Roosendaal [Wed, 5 Apr 2006 12:03:43 +0000 (12:03 +0000)]
Another #define __CARBONSOUND__ needed because of wacko Quicktime decision
to leave carbon framework in bad state.

13 years agoUpgrading in 10.3 to quicktime 7 seems to remove a header file, which
Ton Roosendaal [Wed, 5 Apr 2006 11:59:20 +0000 (11:59 +0000)]
Upgrading in 10.3 to quicktime 7 seems to remove a header file, which
stops Ghost from compiling.

Information on this link here:
http://www.cocoadev.com/index.pl?CarbonSound

13 years agoAdded the option only to update selected verts in the target mesh when copying bone...
Campbell Barton [Wed, 5 Apr 2006 07:10:30 +0000 (07:10 +0000)]
Added the option only to update selected verts in the target mesh when copying bone weights.
Good when you need to update a copy with changes to the weights.

13 years agofixed two issues that hinder linux build
Erwin Coumans [Wed, 5 Apr 2006 02:01:34 +0000 (02:01 +0000)]
fixed two issues that hinder linux build

13 years ago==misc spelling and typos ==
Tom Musgrove [Wed, 5 Apr 2006 00:53:07 +0000 (00:53 +0000)]
==misc spelling and typos ==

a patch from Ed Halley to fix assorted typos in tooltips

13 years ago==makefiles==
Tom Musgrove [Wed, 5 Apr 2006 00:15:19 +0000 (00:15 +0000)]
==makefiles==

pthreads wasn't added to the release zipfile on cygwin, patch by rob hausauer

13 years agoimproved some Bullet Dynamics, related to friction/contact constraints.
Erwin Coumans [Tue, 4 Apr 2006 22:26:11 +0000 (22:26 +0000)]
improved some Bullet Dynamics, related to friction/contact constraints.

13 years ago - properly prototype dummy fnmatch to match call
Daniel Dunbar [Tue, 4 Apr 2006 20:37:08 +0000 (20:37 +0000)]
 - properly prototype dummy fnmatch to match call

13 years agoNew option for convert-menu font->curve: "Curve (Single filling group)".
Alexander Ewering [Tue, 4 Apr 2006 09:14:07 +0000 (09:14 +0000)]
New option for convert-menu font->curve: "Curve (Single filling group)".

Since the text-object remake, it was not possible anymore to 'cut out'
text from, say, a box made by a polycurve, by converting text to curve
and then joining - only the first character would be cut out.

This is because of the filling groups (nu/dl->charidx)
I introduced for getting the vast speedup and the possibility
of overlapping characters.

The new convert menu option now assigns filling group 0 to all of
the nurbs generated.

Maybe filling groups should be exposed in the UI in general for curves -
there are various occasions where they are useful.

(Hint to the UI mafia! ;)

13 years agofixed error in boneweight copy and type in obj export.
Campbell Barton [Mon, 3 Apr 2006 21:48:18 +0000 (21:48 +0000)]
fixed error in boneweight copy and type in obj export.

13 years agoFix some warning for unsigned vs signed comparisons.
Ken Hughes [Mon, 3 Apr 2006 20:31:10 +0000 (20:31 +0000)]
Fix some warning for unsigned vs signed comparisons.

13 years agoFixed small but that was causing an eternal loop.
Campbell Barton [Mon, 3 Apr 2006 20:15:24 +0000 (20:15 +0000)]
Fixed small but that was causing an eternal loop.

13 years ago-> Stored Selections in Mesh DNA
Geoffrey Bantle [Mon, 3 Apr 2006 19:02:22 +0000 (19:02 +0000)]
-> Stored Selections in Mesh DNA

Stored selections now get saved to mesh library blocks as direct data.
The idea that stored selections are 'erased' when leaving editmode and
switching objects is pretty mysterious for the user. Note that currently
the mselect array in a mesh is not written to file.  Not sure whether
to change this or not.

13 years agoFixed a but where applying the modifier option was disabled, Meshes woudl have there...
Campbell Barton [Mon, 3 Apr 2006 16:14:24 +0000 (16:14 +0000)]
Fixed a but where applying the modifier option was disabled, Meshes woudl have there objects matricies applied.
(Now always work on copied data- Blender.Mesh could do with a copy function)
Now triangulate works without "Apply Modifiers" enabled.

Much thanks to Gianluca Faletti for helping me track down the problem.

13 years agomade some gfx debug code win32 specific
Erwin Coumans [Mon, 3 Apr 2006 01:28:43 +0000 (01:28 +0000)]
made some gfx debug code win32 specific

13 years agocommented out some asserts that don't work multiplatform
Erwin Coumans [Sun, 2 Apr 2006 22:36:15 +0000 (22:36 +0000)]
commented out some asserts that don't work multiplatform

13 years agoapplied Charlies patch for game engine graphics. display list support, and bumpmappin...
Erwin Coumans [Sun, 2 Apr 2006 21:04:20 +0000 (21:04 +0000)]
applied Charlies patch for game engine graphics. display list support, and bumpmapping shader improvements.

13 years agoSped up quite a bit using zsorting and fast index guessing. so verts can find the...
Campbell Barton [Sun, 2 Apr 2006 20:59:02 +0000 (20:59 +0000)]
Sped up quite a bit using zsorting and fast index guessing. so verts can find the closest vert in the other mesh.
from 37.3sec to 8.65 sec on the test I used (human with 24 bones) - 24k verts on the source mesh.

13 years agoFix gcc warnings about NULL used in arithmetic comparison.
Ken Hughes [Sun, 2 Apr 2006 20:19:30 +0000 (20:19 +0000)]
Fix gcc warnings about NULL used in arithmetic comparison.

13 years agofixed a crashing bug in new vehicle physics, and removed some debugging code in conta...
Erwin Coumans [Sun, 2 Apr 2006 20:15:24 +0000 (20:15 +0000)]
fixed a crashing bug in new vehicle physics, and removed some debugging code in contact/friction physics code.

13 years ago - fix some minor typing/redefinition errors, should
Daniel Dunbar [Sun, 2 Apr 2006 18:11:02 +0000 (18:11 +0000)]
 - fix some minor typing/redefinition errors, should
   not be misconstrued as "working" by myself

13 years agoBugfix #3996
Ton Roosendaal [Sun, 2 Apr 2006 17:44:14 +0000 (17:44 +0000)]
Bugfix #3996

Particles were fully recalculated each time on frame advance, when they
had an animation itself (like Ipo). Was not needed for dynamic particles.

13 years agoAdded to select group-
Campbell Barton [Sun, 2 Apr 2006 15:40:56 +0000 (15:40 +0000)]
Added to select group-
Siblings, ad Type
This removes the need for the "Select Type" menu (please review Broken)

13 years agoA calculation was using an integer 100000000000, which was being truncated:
Ken Hughes [Sun, 2 Apr 2006 14:22:19 +0000 (14:22 +0000)]
A calculation was using an integer 100000000000, which was being truncated:

source/blender/src/writeimage.c: In function `save_rendered_image_cb_real':
source/blender/src/writeimage.c:129: warning: integer constant is too large
for "long" type

Since the calculation is on a float anyway, changed constant to a float.

Ken

13 years agoBugfix #4046
Ton Roosendaal [Sun, 2 Apr 2006 12:45:55 +0000 (12:45 +0000)]
Bugfix #4046

Copying constraints should refresh the dependency graph, otherwise the
new relations don't get calculated properly.

13 years agoBugfix #4042
Ton Roosendaal [Sun, 2 Apr 2006 12:39:11 +0000 (12:39 +0000)]
Bugfix #4042

New empty drawsize and type are initialized on loading old files now.

13 years agoBugfix #4047
Ton Roosendaal [Sun, 2 Apr 2006 12:20:46 +0000 (12:20 +0000)]
Bugfix #4047

"Delete scene" should exit modes too, crashed in dependency graph then.
Now it exits editmode and paint modes first.

13 years agoFix for #4048
Ton Roosendaal [Sun, 2 Apr 2006 12:08:34 +0000 (12:08 +0000)]
Fix for #4048

Camera was excluded from depsgraph when not visible in current layer...
resulting in camera animations to not move.

Solved with just an exception, but it certainly is attention point for the
depsgraph cleanup.

13 years agoBugfix #4051
Ton Roosendaal [Sun, 2 Apr 2006 11:48:22 +0000 (11:48 +0000)]
Bugfix #4051

- particle duplicators should not include parent animation (error in
  duplicator recode of last december)
- added exception for 'died' particles to keep correct orientation

Also in this commit:

- added comment in code to explain why vertexnormals in mesh are equal to
  vertex location when no faces exist
- cleanup of BKE_object.h for functions that don't need export.

13 years agoAdded proper initialize for curve pointer, fix for commit of march 24th.
Ton Roosendaal [Sun, 2 Apr 2006 11:41:46 +0000 (11:41 +0000)]
Added proper initialize for curve pointer, fix for commit of march 24th.

13 years agoBugreport #4057
Ton Roosendaal [Sun, 2 Apr 2006 08:21:47 +0000 (08:21 +0000)]
Bugreport #4057

Uninitialized variable used in viewmove for 2d windows... the reporter
found it himself. thanks Michael Jones!

13 years agoBugfix when checking for a container mesh (Mesh.Unlink needed here)
Campbell Barton [Sun, 2 Apr 2006 01:46:10 +0000 (01:46 +0000)]
Bugfix when checking for a container mesh (Mesh.Unlink needed here)

13 years agoSilly var typo fix.
Campbell Barton [Sat, 1 Apr 2006 19:28:55 +0000 (19:28 +0000)]
Silly var typo fix.

13 years agoBug fix #3900, washed out AO colors
Ton Roosendaal [Sat, 1 Apr 2006 15:35:25 +0000 (15:35 +0000)]
Bug fix #3900, washed out AO colors

Darn typo in AO code... it only multiplied the red compononent for AO. :)

13 years agoThis script copys vertex groups and weights from 1 weighted mesh, to all unweighted...
Campbell Barton [Sat, 1 Apr 2006 15:32:58 +0000 (15:32 +0000)]
This script copys vertex groups and weights from 1 weighted mesh, to all unweighted meshes.
It just uses the closest to copy the weights, but this means the meshes need not have the same number of verts.
Worldspace coords are used so the meshes only need to overlap in worldspace.

13 years agoAnd the preview.blend for texture preview fix
Ton Roosendaal [Sat, 1 Apr 2006 14:09:23 +0000 (14:09 +0000)]
And the preview.blend for texture preview fix

13 years agoTexture button preview:
Ton Roosendaal [Sat, 1 Apr 2006 14:08:57 +0000 (14:08 +0000)]
Texture button preview:

- now draws intensity value correct (black/white was inversed)
- added option to show texture alpha too

13 years agoSequence render bug: pressing ANIM didn't update renderwindow, when files
Ton Roosendaal [Sat, 1 Apr 2006 12:53:51 +0000 (12:53 +0000)]
Sequence render bug: pressing ANIM didn't update renderwindow, when files
for input were 32 bits.

13 years agoPreviewrender fix: when moving the mouse still while previews should render
Ton Roosendaal [Sat, 1 Apr 2006 09:36:18 +0000 (09:36 +0000)]
Previewrender fix: when moving the mouse still while previews should render
the escape happened without resetting a variable correctly, resulting in
black preview.

This can still be coded better...

13 years agomore Bullet physics improvements, mainly stability and performance related.
Erwin Coumans [Sat, 1 Apr 2006 03:30:15 +0000 (03:30 +0000)]
more Bullet physics improvements, mainly stability and performance related.
AddObjectActuator has new python method to immediately create objects (this allows to create multiple objects in 1 frame in different positions)

13 years agoAdded relative vertex references to obj importer,
Campbell Barton [Fri, 31 Mar 2006 13:07:27 +0000 (13:07 +0000)]
Added relative vertex references to obj importer,
Found a model that used negative relative vertex indicies.
positive relative vert indicies should work also but untested (no example models).

13 years agoAdded matt's empty drawsize property to python.
Campbell Barton [Fri, 31 Mar 2006 09:50:39 +0000 (09:50 +0000)]
Added matt's empty drawsize property to python.

13 years agoRemoved debug printing.
Campbell Barton [Fri, 31 Mar 2006 02:35:16 +0000 (02:35 +0000)]
Removed debug printing.

13 years agoFREE_WINDOWS was declaring a typedef for __int64. __int64 was alredy defined.
Campbell Barton [Thu, 30 Mar 2006 22:44:33 +0000 (22:44 +0000)]
FREE_WINDOWS was declaring a typedef for __int64. __int64 was alredy defined.
so WIngws' GCC was seeing it as
typedef long long long long... and not compiling.

Added an ifndef around this decleration. safe solution. but probably remove the typedef entirely.

- Cam

13 years agoBugfix: isffmpeg() could access a pointer array using an index of -1,
Ken Hughes [Thu, 30 Mar 2006 21:51:59 +0000 (21:51 +0000)]
Bugfix: isffmpeg() could access a pointer array using an index of -1,
causing a segfault.

13 years ago==Nothing to see here, move along==
Chris Want [Thu, 30 Mar 2006 14:23:25 +0000 (14:23 +0000)]
==Nothing to see here, move along==

Removing some outdated files from elbeem, as suggested by Nils.
(Compiles OK without them.)

13 years agofixed vehicle related issue (re-enabled them)
Erwin Coumans [Thu, 30 Mar 2006 06:08:41 +0000 (06:08 +0000)]
fixed vehicle related issue (re-enabled them)

13 years ago==Nothing to see here, move along==
Chris Want [Wed, 29 Mar 2006 23:16:09 +0000 (23:16 +0000)]
==Nothing to see here, move along==

A header (BKE_Scene.h) was not included.

13 years ago==Nothing to see here, move along==
Chris Want [Wed, 29 Mar 2006 23:14:37 +0000 (23:14 +0000)]
==Nothing to see here, move along==

Try to get the yy_wrap and yy_parse definitions for IRIX. Hoping
that it will also help Kent's multiply resolved warnings, I've done
this so that these symbols are defined only if they are currently
undefined. I'm not sure if it will work though, please test!