Commit Graph

3112 Commits

Author SHA1 Message Date
331406ea27 Bugfix #3702
Background image in 3d window didn't react on "reload image" options in
UV WIndow or Buttons Window.
2006-04-10 13:27:06 +00:00
b2b1b7c90b 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!"
2006-04-09 19:10:41 +00:00
13cd984f6c 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.
2006-04-09 18:31:20 +00:00
cbb48709eb 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. :)
2006-04-09 18:22:05 +00:00
8bfe762927 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.
2006-04-09 11:10:11 +00:00
e804042c8e fixed mistake in checking face verts (for face weight filling), and made C++ comments, C style 2006-04-09 05:12:13 +00:00
1e0037045d 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. :)
2006-04-08 15:58:49 +00:00
f27870096b 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.
2006-04-08 14:58:37 +00:00
16082eb732 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.
2006-04-08 14:50:04 +00:00
7fdeb4830a Made face filling (Shift+K) in weightpaint mode, work with x-mirror. 2006-04-08 10:44:19 +00:00
db80e251f7 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.
2006-04-07 02:46:20 +00:00
2ddb445c28 going into face select mode for fluidsim meshes segfaulted blender, do a check so it dosent happen. 2006-04-07 01:14:08 +00:00
de44e6c29e 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.
2006-04-05 17:21:24 +00:00
1772b62d22 Bugfix #4009
Missing redraw in menu to choose 'metric' for Voronoi texture.
2006-04-05 17:11:01 +00:00
a4c110f8eb Two more quicktime changes for compiling after OSX software update 2006-04-05 15:31:21 +00:00
666120ad9a Another #define __CARBONSOUND__ needed because of wacko Quicktime decision
to leave carbon framework in bad state.
2006-04-05 12:03:43 +00:00
35f1059887 ==misc spelling and typos ==
a patch from Ed Halley to fix assorted typos in tooltips
2006-04-05 00:53:07 +00:00
21ca6c3db8 - properly prototype dummy fnmatch to match call 2006-04-04 20:37:08 +00:00
Alexander Ewering
3be66f6d8d 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! ;)
2006-04-04 09:14:07 +00:00
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
6839ec6640 applied Charlies patch for game engine graphics. display list support, and bumpmapping shader improvements. 2006-04-02 21:04:20 +00:00
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
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
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
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
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
3be5302e40 Added proper initialize for curve pointer, fix for commit of march 24th. 2006-04-02 11:41:46 +00:00
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
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
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
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
f350b18291 - fixed elbeem header include problems 2006-03-29 14:57:14 +00:00
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
c72bd5fd00 Removed a bad return and and unused variable.
swappsed all // for /**/.
2006-03-28 03:20:10 +00:00
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
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
d26f0e8995 needed to normalize the plane for the manipulator. 2006-03-27 08:52:28 +00:00
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
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
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
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
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
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
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
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
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
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
ed36b797a0 Fixed a but where DupStart and DupEnd (duplivert settings) max values were larger then a short. which made the buttons act oddly.
Also added tooltips.

Idealy these would be unsigned shorts or ints because they should be able to go up to the max frame number 300000.
2006-03-25 10:06:40 +00:00
ec664be2d7 Added select group edges (Length/Direction/FaceUsers)
Added VecAngle2 - needed for grouping by normal and planer faces.
Made select face & edge group ignore hidden faces.
fixed a bug where hiding faces didnt update G.tot*sel
2006-03-25 06:32:39 +00:00