Commit Graph

4488 Commits

Author SHA1 Message Date
Joseph Gilbert
08127dd5ec _.NET projectfile updates_
This fixes a number of build issues with msvc7 projectfiles
 * fixes the zlib problem
 * fully builds bullet + solid + blender
 * updates project files
2005-07-28 18:31:16 +00:00
Joseph Gilbert
66c7f07280 _build environment for bullet physics_
- adds bullet projectfiles to the extern.sln build
(please rebuild extern.sln)
2005-07-28 18:29:18 +00:00
Johnny Matthews
0f3303b7c5 Fix for zlib with MSVC/SCONS. Should compile now. This does not fix the bullet issues yet. But with this Blender should compile without the gameengine. 2005-07-28 18:11:10 +00:00
Erwin Coumans
b5ec3efeaf removed duplicate testing files 2005-07-28 12:21:55 +00:00
Ton Roosendaal
d501f56e96 Bugfix #2875
Removed old code that was used when the global undo still saved files. It
was restoring pointers in the UI based on names, which gave confusing
results when loading the quit.blend file (actually undobuffer).
Instead it should treat the quit.blend same as "Load without UI" option.
2005-07-28 11:05:21 +00:00
Ton Roosendaal
4cc96528b8 Nice time saver for Armatures: Introduced Bone type "Hinge", which doesn't
inherit pose rotation/scale from its parent pose-channel.
Button is available in Editing Buttons for PoseMode as well as EditMode.

Aim is to reduce overhead of Constraint usage (copy location).

(in object.c I removed old code for IK)
2005-07-28 10:01:10 +00:00
Jens Ole Wund
a2c4044b27 zlib.lib update. some includes too. 2005-07-28 08:33:17 +00:00
Chris Burt
28bd71602d Killed some warnings. No please.. hold the applause. 2005-07-28 03:20:21 +00:00
Chris Burt
539a9ad08f Part of a fix to the makefiles for compiling the new ZLib stuff. This
seemed to do the trick for me, however a game engine error has prevented me
from compiling to test. Anyone who has time to test compiling it would be
appreciated.
2005-07-28 00:13:18 +00:00
Daniel Dunbar
8828aa060a - move zlib.h around to make windows happy
still having linking issues with zlib, grumble grumble
2005-07-27 21:31:44 +00:00
Daniel Dunbar
4b1588e277 - update storage.c to use standard time codes (should fix issue
with MSVS 8)
 - broke mesh_create_shadedColors out of shadeDispList, used to
   build vertex colors for mesh in vpaint as well (also fixed
   bug where they were not initialized correctly for subsurfs)
 - added modifier_copyData and modifier_findByType functions
 - change editmode modifiers to only calculate if Realtime and
   Editmode bits are both set, makes more sense for copying
   modifiers
 - update object_copy to correctly copy modifiers
 - removed duplicate redefinition of ME_ attributes in python,
   this is a horrible idea, why was it done in the first place?
 - update armature auto vertex group code to check for subsurf
   in modifier stack
 - fixed flip_subdivision to work with move to modifier stack
 - added copymenu_modifiers, can copy all modifiers or just
   data from first modifier of a certain type (not sure how
   to deal with multiple modifiers of same type... not
   a big issue though I think)
2005-07-27 20:16:41 +00:00
Ton Roosendaal
410512e265 Patch provided by Shaul Kedem: Compressed files are back!
He even made a nice doc in wiki:
http://wiki.blender.org/bin/view.pl/Blenderdev/Blendgz

Usage: set the option "Compress File" in the main "File" pulldown menu.
This setting is a user-def, meaning it is not changed on reading files.
If you want it default, save it with CTRL+U.

The longest debate went over the file naming convention. Shaul started
with .blend.gz files, which gave issues in Blender because of the code
hanging out everywhere that detects blender files, and that appends the
.blend extension if needed.

Daniel Dunbar proposed to just save it as .blend, and not bother users
with such details. This is indeed the most elegant solution, with as
only drawback that old Blender executables cannot read it.
This drawback isn't very relevant at the moment, since we're heading
towards a release that isn't upward compatible anyway... the recode
going on on Meshes, Modfiers, Armatures, Poses, Actions, NLA already
have upward compatibility issues.
We might check - during the next month(s) - on a builtin system to
warn users in the future when we change things that make a file risky
to read in an older release.
2005-07-27 19:46:06 +00:00
Ton Roosendaal
cd6cbda7db Bug fix #2870
Wire material doesn't work with raytrace, but the wire faces were still
trace-able, giving weird results.
Now the wire faces are excluded from the octree.
2005-07-27 18:53:59 +00:00
Johnny Matthews
2da63a1ad7 Added Name flip for
_L
_l
_R
_r

Also added if suffix == 001, do not re-add suffix. So allows the following procedure

 bone named Bone_R is copied, becomes Bone_R.001
Bone_R.001 is Flipped, becomes Bone_L

Currently only works for 001, could be extended later
2005-07-27 18:48:08 +00:00
Ton Roosendaal
59672145a9 Cleanup & goodies for rigging geeks! :)
- PoseMode: Wkey menu, "Flip Left/Right Names". On selected bones, it flips
  the L/R tags in names, and calls the proper code to rename everything
  that's related (constraint targets, bone-childs, etc).
- PoseMode: Shift+S snapmenu: snap cursor to selected now works
- Outliner: select bones now correctly sets 'active' flag for bones,
  updating the UI as well.
  Also made sure you cannot select hidden bones in outliner.
- 3DWindow: in PoseMode/EditMode draws name of active Bone too (with user
  option "Draw active object name" set.
- Added the new Armature/PoseMode options in View3D pulldowns.

Cleanup:

- moved Pose code from editaction.c to poseobject.c
- removed BSE_editaction.h and BSE_editaction_types.h, moved contents of
  it to BIF_editaction.h. One include per C file should be fine. :)
  I know the src/ structure would require more elaborated includes, but
  we don't have that now...
2005-07-27 10:37:20 +00:00
Erwin Coumans
8f15f9805a got some "_1400 <= _MSC_VER" wrong, should be "_1400 < _MSC_VER"
Lets hope gcc doesn't define this :)
2005-07-27 09:47:08 +00:00
Erwin Coumans
411123b250 - added debug line drawing in gameengine (handy for debugging physics problems)
- added #ifdef for a visual studio 8 crashing problems
- added scaling and tolerances to triangle meshes
2005-07-27 09:30:53 +00:00
Erwin Coumans
b8142515ce visual studio 8 crashes on this R argument, todo: find replacement 2005-07-27 09:09:36 +00:00
Martin Poirier
21e59fd927 Correct init_userdef_file to not overwrite CollectRate and Image TimeOut every time it loads. 2005-07-27 07:50:28 +00:00
Martin Poirier
2e73199ea7 Image memory garbage collection:
clock seemed to work weird on some machine, switching to PIL_check_seconds_timer.
It's more in line with the rest of Blender anyway.
2005-07-27 07:43:48 +00:00
Martin Poirier
fe30da1775 Image memory garbage collection wasn't working correctly due to a poorly constructed if clause (it was collecting only images marked as NO_COLLECT, which only happens with Python loaded images).
Another problem now is that the userpref values aren't correctly saved in .b.blend, they always reset to the default. Will look into that.
2005-07-27 06:21:50 +00:00
Daniel Dunbar
c25b7117d0 - decimator modifier was giving wrong # of verts when a previous
modifier was active
2005-07-26 23:38:26 +00:00
Stephen Swaney
348890d423 SCons fix for blenderplayer: add blender_LOD to link lib list. 2005-07-26 22:22:48 +00:00
Ton Roosendaal
f253d4693a Fix in outliner. Renaming PoseChannels didn't call the routine that checked
all bones, other poses, constraints, actions, etc.

Also: for clarity, brought back the display of both Armature Bones as
Pose Channels. Renaming either works, but you can notice the constraints
are on Pose, not Armature.

Little bug still; the order of drawing (pose, armature) sometimes flips,
don't know why yet. Tomorrow!
2005-07-26 20:42:11 +00:00
Ton Roosendaal
b0065e3451 Added PoseMode CTRL+C copy menu. Does loc/rot/size and constraints. 2005-07-26 19:51:15 +00:00
Daniel Dunbar
eadfd13123 - missed in remove wave effect commit, option was still in effect menu 2005-07-26 19:27:56 +00:00
Ton Roosendaal
dacfebb115 Made do_versions() have proper arguments to do linked-library version
conversions as well, with proper check for each version of each linked
file.
2005-07-26 18:46:28 +00:00
Stephen Swaney
fd4df5e8b0 SCons fix: move blender_LOD after blender_blenkernel in link list to fix
problems with undefined refs.  Let's see what this breaks!
2005-07-26 14:32:03 +00:00
Johnny Matthews
913a1d657f In Vertex Select Mode
CTRL-Alt-RMB = Faceloop Select
2005-07-26 14:09:46 +00:00
Johnny Matthews
f48fa716c4 Removed Vertloop Select and Faceloop select from toolbox 2005-07-26 13:55:10 +00:00
Joseph Gilbert
3e34ff9a09 _update to .NET projectfiles_
- removed wave from python
- added include path for decimation header
- added additional line to eof in point
2005-07-26 13:30:08 +00:00
Johnny Matthews
ea52177b27 Added ../../../intern/decimation/extern to CPPPATH 2005-07-26 13:15:29 +00:00
Ton Roosendaal
4b69bcc7ad Added correct call to have curve paths calculated, when the anim system
discovers it wasn't done yet. Needs displist now, not calc-path. :)

Solves reported bug in regression file bowl.blend (camera didnt move) and
errors in NLA stride paths.
2005-07-26 09:21:20 +00:00
Daniel Dunbar
a8ae1c64f4 - move libdecimation in link order to keep gnu ld happy 2005-07-26 07:15:17 +00:00
Jens Ole Wund
a9d7042da9 help mscv6 to find
LOD_decimation.h for BKE_blenderkernel

BPY_python
waves good bye yo wave.c + .h
2005-07-26 07:00:32 +00:00
Daniel Dunbar
8564169543 - added decimation include dir to makefiles 2005-07-26 06:46:21 +00:00
Daniel Dunbar
2c20d7529a - bugfix, mirror modifier didn't copy deformed vertex cos for shared
verts
2005-07-26 06:39:58 +00:00
Daniel Dunbar
951a4934b0 - added wave modifier & removed old wave effect
- added decimate modifier & removed old decimate interface
   (currently lacks warning about destroying data, and there needs
   to be a way for modifiers to return errors back to the interface)
 - allow applyModifier to return NULL to indicate error
 - unfortunately new decimate modifier means it does not know exact
   number of faces in mesh (other modifiers may come before) and so
   instead interface uses a percentage. if people need exact face
   count slider then I will have to think of some hack to fit this
   in. note that it does display the output face count so its possible
   to tweak the pct to get what you want regardless.
 - removed python Wave object

If you are bored now how much easier it is to implement something
like decimate as a modifier. Very few changes to interface, very
few entry points.
2005-07-26 02:44:59 +00:00
Daniel Dunbar
ee8e41c65a - added apply button for individual modifiers 2005-07-26 00:45:19 +00:00
Daniel Dunbar
3abbc85ae0 - commit some testing code for LetterRip's bit button conversion 2005-07-25 23:56:57 +00:00
Daniel Dunbar
8655d65a7e - displacement fix, need to calc normals before displacing 2005-07-25 22:02:13 +00:00
Daniel Dunbar
b52d31965a - removed internal functions from effect header
- made particle system generation use its own RNG object,
   keeps it safe against varying calculation order in the renderer

Still a funny bug where having a material on a particle object
changes the particle locations (in renderer, not in interface...
bizarro)
2005-07-25 21:53:58 +00:00
Ton Roosendaal
e8347e8b28 - Dupliframes mball didn't work anymore (should be added to scene_update)
- restored nicer drawing for duplicator wireframe. Draws before selected,
  so you can see the duplicated object better
2005-07-25 21:38:13 +00:00
Daniel Dunbar
3dcc653365 - mixed up RNG type definition 2005-07-25 20:56:48 +00:00
Daniel Dunbar
40a5ed791d - added RNG abstract random object rng_{new/free/seed/get{Int,Double,Float}}
to avoid use of global generator. at the moment the renderer owns the
   number generator and this is important for retaining render consistency.
2005-07-25 20:33:10 +00:00
Daniel Dunbar
cb988ff8a9 - fix some error handling in blend loader, correct error codes
were not always returned.
2005-07-25 18:35:49 +00:00
Johnny Matthews
dec3fa07f3 Some bad use of non-public API. Changed the calls to BIF_undo_push() and BIF_undo() instead 2005-07-25 17:03:09 +00:00
Jens Ole Wund
8d3987466d build.c + .h going
point.c + .h coming
/me wonders if there ara any MSVC6er
2005-07-25 14:12:28 +00:00
Ton Roosendaal
26b2648a72 Little issues, combined commit!
- Bug #2857: Spin didn't create nice consistant normals
- removed unnecessary call to where_is_object() in init-render phase.
- Added DAG_scene_sort() calls when objects were removed (join cases)
- When using texture fonts, the file window header didn't display OK
- Saving a file didn't set the 'wait cursor' anymore (oldie!)
2005-07-25 10:58:21 +00:00
Ton Roosendaal
1295ed872c Regression file teapot.blend didn't render... this due to a hack removal of
a month ago (trying to cope with vertexcolor 'paint' and 'light'.)
Forgot to add the correct check for calculaing UV texture coords, needed to
have vertexcolor 'paint' working.
2005-07-25 09:19:23 +00:00