Commit Graph

5615 Commits

Author SHA1 Message Date
Geoffrey Bantle
cc8051eead -> 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.
2006-04-03 19:02:22 +00:00
Erwin Coumans
36f498aae0 made some gfx debug code win32 specific 2006-04-03 01:28:43 +00:00
Erwin Coumans
d537ce9b25 commented out some asserts that don't work multiplatform 2006-04-02 22:36:15 +00:00
Erwin Coumans
6839ec6640 applied Charlies patch for game engine graphics. display list support, and bumpmapping shader improvements. 2006-04-02 21:04:20 +00:00
Ken Hughes
15a78cb9c8 Fix gcc warnings about NULL used in arithmetic comparison. 2006-04-02 20:19:30 +00:00
Daniel Dunbar
1d5cca805b - fix some minor typing/redefinition errors, should
not be misconstrued as "working" by myself
2006-04-02 18:11:02 +00:00
Ton Roosendaal
04a7653412 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.
2006-04-02 17:44:14 +00:00
Campbell Barton
0e01b351fe Added to select group-
Siblings, ad Type
This removes the need for the "Select Type" menu (please review Broken)
2006-04-02 15:40:56 +00:00
Ken Hughes
8f38a91602 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
2006-04-02 14:22:19 +00:00
Ton Roosendaal
828cab295e Bugfix #4046
Copying constraints should refresh the dependency graph, otherwise the
new relations don't get calculated properly.
2006-04-02 12:45:55 +00:00
Ton Roosendaal
9e53e4ee47 Bugfix #4042
New empty drawsize and type are initialized on loading old files now.
2006-04-02 12:39:11 +00:00
Ton Roosendaal
00737de5bd Bugfix #4047
"Delete scene" should exit modes too, crashed in dependency graph then.
Now it exits editmode and paint modes first.
2006-04-02 12:20:46 +00:00
Ton Roosendaal
609fe2d575 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.
2006-04-02 12:08:34 +00:00
Ton Roosendaal
546cf1d5ba 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.
2006-04-02 11:48:22 +00:00
Ton Roosendaal
3be5302e40 Added proper initialize for curve pointer, fix for commit of march 24th. 2006-04-02 11:41:46 +00:00
Ton Roosendaal
1b50d353b7 Bugreport #4057
Uninitialized variable used in viewmove for 2d windows... the reporter
found it himself. thanks Michael Jones!
2006-04-02 08:21:47 +00:00
Ton Roosendaal
5f12ccd0f1 Bug fix #3900, washed out AO colors
Darn typo in AO code... it only multiplied the red compononent for AO. :)
2006-04-01 15:35:25 +00:00
Ton Roosendaal
5468351d6e Texture button preview:
- now draws intensity value correct (black/white was inversed)
- added option to show texture alpha too
2006-04-01 14:08:57 +00:00
Ton Roosendaal
766e6fe321 Sequence render bug: pressing ANIM didn't update renderwindow, when files
for input were 32 bits.
2006-04-01 12:53:51 +00:00
Ton Roosendaal
a82910b1b9 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...
2006-04-01 09:36:18 +00:00
Erwin Coumans
36fd42ac85 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)
2006-04-01 03:30:15 +00:00
Campbell Barton
9d30a3a5ec Added matt's empty drawsize property to python. 2006-03-31 09:50:39 +00:00
Campbell Barton
79e58e66c2 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
2006-03-30 22:44:33 +00:00
Ken Hughes
e677cec518 Bugfix: isffmpeg() could access a pointer array using an index of -1,
causing a segfault.
2006-03-30 21:51:59 +00:00
Chris Want
10adb211fc ==Nothing to see here, move along==
A header (BKE_Scene.h) was not included.
2006-03-29 23:16:09 +00:00
Kent Mein
42930c643c Added BOP_Mesh constructor to get rid of this:
BOP_Mesh.h:45: warning: ‘class BOP_Mesh’ only defines private constructors and h
as no friends

drawimasel.c initalized a variable so it didn't give warnings about it.
(wasn't really needed but if the code changes could be potential issue)

Kent
2006-03-29 16:47:56 +00:00
Nils Thuerey
f350b18291 - fixed elbeem header include problems 2006-03-29 14:57:14 +00:00
Nils Thuerey
0a63b3c0ca Several minor fixes:
- Added part of Austin's msvc8 fixes (vector::erase function
  was "misused"), hopefully compiles better now.
- Ctrl-b now also bakes a selected fluidsim domain
  similar to the softbodies.
- Added surface smoothing option for domains: default is
  1, higher values result in a smoother surface (and probably
  slightly higher comupation times), while 0 means the surface
  is not modified at all.
- Added BLENDER_ELBEEMBOBJABORT environment variable in readBobj,
  if >0 quits blender when a not yet existing fluidsim
  frame should be loaded. Useful for rendering simulations
  as far as possible from the command line.
- Surface normals pointer is now set to NULL in readfile.c
- Fixed win32 error string handling, now uses a function
  to return the string from the solver.
- Fixed fluidsim particle halo scaling problem.
- Solver update
2006-03-29 07:35:54 +00:00
Erwin Coumans
e8ce63fcf9 more physics work: fixed some deactivation bug, improved contact constraint stability and friction (lower the number of iterations). 2006-03-29 03:11:30 +00:00
Campbell Barton
c72bd5fd00 Removed a bad return and and unused variable.
swappsed all // for /**/.
2006-03-28 03:20:10 +00:00
Ken Hughes
7c0deed11c Fix gcc warning about usage of identifier "main"; renamed the variable to
"mainptr".
2006-03-27 22:33:21 +00:00
Ken Hughes
95ae057983 Add structure declaration to beginning of file to fix gcc warnings. 2006-03-27 22:22:08 +00:00
Ken Hughes
ac31b20448 Move variable declaration to beginning of code block, to avoid compiler
warnings or errors.
2006-03-27 22:20:24 +00:00
Campbell Barton
2f09ff00ef Modified editmesh_mods.c
Added "Similar Edge Face Angles" to "Select Edge Groups"
This means you can select edges based on the angles of edges in the existing selection.
Only works for edges with 2 face users at the moment.
2006-03-27 21:35:31 +00:00
Kent Mein
abd9113fbf another couple of uninitalized variables get the axe.
This is only to make things predictable until that section of the
code is finished.  Ton said it'd be a good idea to drop in in for now.

Kent
2006-03-27 16:15:44 +00:00
Campbell Barton
04fc04bcdd Make editmesh edge length and face area drawing's precission proportonate to the gridsize.
Needed when working with small models.
2006-03-27 14:57:53 +00:00
Campbell Barton
d26f0e8995 needed to normalize the plane for the manipulator. 2006-03-27 08:52:28 +00:00
Campbell Barton
9053425e72 removed 2 warnings from Image.py epydocs 2006-03-27 08:34:06 +00:00
Campbell Barton
0e8e848588 Seperated out some functionality into 3 new functions.
EM_editselection_center
EM_editselection_normal
EM_editselection_plane
These functions are used by the manipulator to get data from an editselection. regardless of weather its a face/edge/vert.
2006-03-27 08:25:06 +00:00
Erwin Coumans
af9573e9ea Synchronized Bullet physics to latest version.
- Changed license from MIT to ZLib.
- Added 3D Sweep and Prune contribution
- More stable native constraint solver

Sorry for any inconvenience caused by this checkin.
All Blender buildsystems require update: added files and moved files.
2006-03-27 06:37:30 +00:00
Campbell Barton
75ce4ca859 Added rotate about centre for active Vert/Edge/Face in mesh editmode. also works for getting the V/E/F normal. Means we can now rotate about the last selected edge. 2006-03-27 05:28:36 +00:00
Geoffrey Bantle
7b1d69a35c -> Stored Selections
Previously Blender did not store the order in which vertices, edges
or faces were selected in edit mode. In many cases it is useful to
have this data, however it is not desirable to store every selection
made. Now blender stores selections in the order in which they were
made in a linked list called 'selected' in  EditMesh. EditSelection structs
are created whenever 'EM_store_selection' from  editmesh_lib.c is called
(currently only on user selection with mouse). There are several cases
in which they might be deallocated by calling the 'EM_remove_selection'
function however:

-When the user deselects something with the mouse ('mouse_mesh' in
 editmesh_mods.c)

-When switching selection modes stored selections that are not relevant
to the new mode are removed by the 'EM_strip_selections' function
(multi-select mode is supported)

-When the vertex, edge or face pointed to by a certain stored selection is
deallocated

-When EM_clear_flag_all is called and where the flag passed to the function
contains the 'SELECT' bitmask.

-When leaving edit mode (making stored selection data persistent across
editing sessions will require modifications to mesh DNA later)

Todo:

There are a few cases still where you can temporarily end up with a stored
selection that points to an element that is no longer selected
(edge loop de-select can cause this for instance). The solution to this is to
add a call to EM_remove_selection from 'EM_select_edge' and 'EM_select_face' when
these functions are being used to deselect elements. For the sake of completeness
however this will also require that an 'EM_select_vert' function be coded and
called at all appropriate parts of the editmesh code. I will look into this
later in the week.

For now there are two tools that already take advantage of the stored selections.
The first one is 'merge at first or last vertex' in the merge menu (the 'firstvert' and
'lastvert' pointers are gone from EditMesh). The second tool is path select, which builds
a path between the last vert selected and the second to last vert selected. This allows you
to build complex path selections in a short amount of time like this
'select A, select B, path select. select C, path select. select D...'
2006-03-27 05:19:14 +00:00
Martin Poirier
07b88496e0 === Transform Display ===
Based on a patch by Matthias Derer, this adds the distance moved to a translation (grab) transform
(both 3D and 2D, although the 2D transform displays the normalised distance only).
2006-03-26 22:35:03 +00:00
Tom Musgrove
f674689006 ==sequencer==
a tiny patch by Luis de Bethencourt Guimera (luisbg) adds RETKEY as completing a transform for consistency
2006-03-26 22:31:11 +00:00
Peter Schlaile
2dce179e9d ==Sequencer==
This patch is mostly a usability patch for the sequencer, mainly written by
Anders Gudmundson and twisted a little bit by me.

- Lock Time to other windows
- Possibility to switch the X-Axis between frames and seconds-display
- IPO-Frame Locking for plugins (T-Key)
- Additional Popup to add HD-Sound and Movie at once
- In Timeline-Window: Sequencer windows only playback
- Make the IPOs a little bit IPO-Frame-Lock friendlier (doesn't jump;
  the frame that is drawn has the right dimension)
- Wheel-Mouse buttons make the sequencer window zoom again.
- The "This is not a sound/movie-file message" now reads "... or
  FFMPEG-support not compiled in!" since I learned some prominent
  people who complained, that hdaudio does not work for them ;-)
- Make SPACEKEY open up the "Add Strip"-Popup on the timeline and start
  playback in the preview window.
2006-03-26 21:36:42 +00:00
Campbell Barton
915cd5b80b Added python image pack/unpack per image. 2006-03-26 09:25:30 +00:00
Campbell Barton
e2637de00f select group with large selections could make blender hang. break out of the loop when no more can be done. 2006-03-26 01:54:52 +00:00
Campbell Barton
05fb90a867 Made group work from multiple selection's (before it used the first selected face/vert/edge)
so you can select 2 faces and then get all coplaner faces around both.
Added fp to face and edge edit data so as to store edge length and face area/perimeter. (in the union so minimal overhead)
current implimentation is fairly optimized.

Change to arithb.c was just to command Inpf as being the dot producr.
2006-03-26 01:02:22 +00:00
Tom Musgrove
9fcf5f0957 ==paint==
change CKEY to toggle paint on or off in image paint patch by Stephan Kassemeyer
2006-03-25 22:29:48 +00:00
Campbell Barton
97fbe88dc1 Fixed a possible bug where counting faces was a short and could be less then the number of items selected.
Added Vertex group select menu- Similar Normal|Same FaceUsers|Shared Vertex Groups
2006-03-25 11:51:33 +00:00