Commit Graph

53000 Commits

Author SHA1 Message Date
Ton Roosendaal
f83a7dfc11 - fixed warning by not prototyping something a couple of commits ago... 2003-11-19 22:13:53 +00:00
Ton Roosendaal
4a5ae4a55f Fix for undo... it didn't do the UV coords (tface) nor the vertexpaint
colors. This because of the pretty weird (ab)use of load & make editmesh...

For each added undo step, the load_editmesh was fed with an empty mesh
to assign data to, without knowledge of what was in the original mesh.
That way UV and color data got lost.

Solved it in 2 steps:

1. removing the ->tface pointer from EditVlak, and make TFace a builtin
  struct inside EditVlak. This didnt cost much extra mem, since it already
  stored UV and color. This enabled some pretty cleanup in editmesh.c as
  well, storing tface pointers was cumbersome.
2. for each undo step, it then generates always a tface and mcol block to
  link to the undo Mesh.
  Even when it wasn't in the actual Mesh, at exit editmode the original
  Mesh is used as reference anyway, and undo-meshes are freed correctly.

The enormous commit is because I had to change the BLI_editVert.h file, and
found it was included in about every file unnecessary. I removed it there.
ALso found out that subsurf has code ready (unfinished) to make UV coords for
the displaylist in EditMode as well, nice to know for later...
2003-11-19 22:00:14 +00:00
Ton Roosendaal
4347b1a752 - fix: keys couldnt have more than 32k vertices. Just made a short into an
int in the key struct.
  warn: this recompiles dna!
2003-11-19 17:07:17 +00:00
Alexander Ewering
79f753531e - Fixes hidden vertices for undo. They are now stored in mvert->flag and
thus also preserved over exiting/entering editmode (is this desirable?)
  Can be turned off easily ...

- "Half-fixes" lost UV info problem with undo. I couldn't get it to
  crash or lose UV info anymore, but we now have a memory leak (me->tface).

  Ton, please check this!
2003-11-19 16:21:37 +00:00
Ton Roosendaal
ffd7fc9005 - fixed reported bug with constraints... somehow someone managed to save
a follow-path constraint in 2.28c without data assigned.
  this patch checks for proper data in a constraint, if not available
  it will turn the type into CONSTRAINT_TYPE_NULL
- i will forward the demo file to theeth for further check
2003-11-19 15:20:18 +00:00
Ton Roosendaal
ab9e6f69a0 - fixed bug caused by changing order of drawing buttons in material panel 2
the 'OB' and 'ME' buttons were not visible in all situations anymore...
2003-11-19 12:43:21 +00:00
Ton Roosendaal
76766ed969 - further small alignment errors...
- 'unlink set' button from f10 menu only draws when set is linked
- 'copy sound' in sound buttons only draws when sound is available
2003-11-18 21:16:24 +00:00
Roel Spruit
c6b7148487 While I'm at it, loopselect/cut also didn't update vertexcount :) 2003-11-18 14:26:42 +00:00
Roel Spruit
b043165fb6 edge select: bad selected vert count (fixes bug #681) 2003-11-18 14:18:00 +00:00
Ton Roosendaal
a140c07795 - changed evaluation order for drawing pulldowns in 3d header. In editmode
it didnt show the 'Mesh' options when 'vertex paint' mode was still on.
2003-11-18 11:52:28 +00:00
Ton Roosendaal
bc22e2242a - removed temporal patch from myortho2() in mywindow.c, and changed
all calls to ortho2 with correctness offset of 0.375 instead of 0.5.
  this efficiently solves bug in drawing UV lines as reported.

cvS: ----------------------------------------------------------------------
2003-11-18 11:22:17 +00:00
Ton Roosendaal
683b51fe83 - added color for constraint dashed line 2003-11-17 22:33:11 +00:00
Ton Roosendaal
0894c8e3e2 - fix: vpaint and weightpaint and texturepaint allow drawmode wire-extra
again.
2003-11-17 21:10:18 +00:00
Ton Roosendaal
3e938a9223 - bug fix: moved vertex group buttons to first panel (F9 editing buts).
these buttons should be available outside editmode as well.
- fix: changed order of tools in f9 mesh a bit... it was totally random
- fix: fileselect draw error; text sometimes draws over outer border

cvs: ----------------------------------------------------------------------
2003-11-17 20:20:14 +00:00
Joseph Gilbert
f2a9e34346 - added vgrouping methods for renaming headers 2003-11-17 17:12:58 +00:00
Ton Roosendaal
b5e6b84dc8 - finished some minor drawing stuff which i couldnt complete last friday:
(related to rounded theme)
  - layer buttons in view3d header grouped
  - outline colour now blends darker with respect to background (better
    visibility on dark backgrounds)
  - added some align calls to user settings menu

Now back to real bugs!
2003-11-17 14:31:25 +00:00
Ton Roosendaal
0af974d757 - bug fixes:
- "Crop and Anim" panel had wrong name... now "Anim and Movie"
  - this panel didnt draw buttons always, should be for 'anim option' (which
    is different from 'movie' option!
  - added call to re-align the panels each time a new screen is set (also
    after file read) to make sure new panels (or with new name) are properly
    initialized
  - fixed drawing error in nurbs buttons
2003-11-17 12:11:42 +00:00
Joseph Gilbert
61f203c80b - added vgrouping methods for renaming to documentation 2003-11-17 07:22:29 +00:00
Joseph Gilbert
33da577d34 - added vgrouping methods for renaming a vertex group and returning all vgroup names 2003-11-17 07:13:27 +00:00
Martin Poirier
b43e74a1db Fixed the fix for constraint loop :P
Everything works properly now
2003-11-17 02:25:33 +00:00
Chris Want
12a5ea3e67 Fix for bf-bug #389 (endless loop when creating constraint) 2003-11-16 21:29:12 +00:00
Martin Poirier
dc4e0d2295 Fixed the material window crash
Thanks to Meino from the mailing list and MadProf
2003-11-16 21:02:45 +00:00
Martin Poirier
4bdf7cfcf0 delimiters are you friends
fixed a silly bug with merge and mirror
2003-11-16 00:31:27 +00:00
Michel Selten
ad9e1e44d8 Fixed compiler errors. The new function uiBlockBeginAlign() has been updated to
be smarter. The result was only 1 argument instead of 2 were needed.
Unfortunately, not all calls to uiBlockBeginAlign() were updated accordingly.
2003-11-15 18:40:51 +00:00
Ton Roosendaal
d8f8605098 - Bug fix: at osx, default AA font couldnt be written in .b.blend
(unless you manually install font)
- Bug fix: string for AA font was only 64 chars... made 256.

- Changed API for buttons aligning... it now detects automatic what rows
  are, or collums, and aligns buttons. This makes call easier:
  uiBlockBeginAlign(block);
  ... defBut....
  uiBlockEndAlign(block);
  Only works when you provide buttons in row order!
- made sure only 'rounded' theme uses this align stuff
- still work in progress.. I commit now because I leave to denmark for 2 days!

http://www.blender.org/bf/rt.jpg  <- now also groups with rows+collums
2003-11-14 15:49:26 +00:00
Ton Roosendaal
4d1b1545f2 - fixed 2 drawing errors because of new align code.
thanks ztonzy for report!
2003-11-14 12:32:32 +00:00
Martin Poirier
dab8b69cd8 Fixed edge select shift modifier 2003-11-14 12:29:05 +00:00
Martin Poirier
7fc95b35c5 Fixed typing mode for Warp 2003-11-14 01:34:13 +00:00
Joseph Gilbert
61b3a9f8e1 - Lattice documentation 2003-11-14 01:10:59 +00:00
Ton Roosendaal
a291ea6683 - Added button align code:
uiBlockBeginAlign(block, 'v');  'v'= vertical. 'h'=horizontal
  ..... (button def calls)
  uiBlockEndAlign(block);

  this will allow new themes to have buttons nicely drawn together.
- added new rounded draw theme, to test & illustrate the above.
- only did parts of button code with align... rest for later
- fixed 'minimal' theme to make it usable (with some decoration)
- put back 'oldskool' theme... but it just looks plain ugly! remove?

Lazy people: http://www.blender.org/bf/rt.jpg
check the top header, or Nkey menu, to see the meaning of 'align'.
2003-11-14 00:44:48 +00:00
Martin Poirier
baf23c7648 Fixed the lag with Follow Path and optimized constraint loops with Track To and Lock Track. I was plainly disabling the refresh of the target, but that caused a lag (3D window, not Render). Now, it raises a flag when it find a loop, so it only disables the refreshing when it needs to.
This is a temporary fix, but a complete fix will require a rewrite of of some part of the where_is_object function, and that would take too much time before 2.31.
2003-11-13 23:04:46 +00:00
Martin Poirier
163292f34f Fixed the last bug with Mirror and removed it from the Wkey menu (it seemed to confuse some people). Merge should probably be removed too. 2003-11-13 22:57:42 +00:00
Willian Padovani Germano
e3f6c6cfdc BPython: fixing a few warnings 2003-11-13 17:24:47 +00:00
Ton Roosendaal
74eccb3bbc - found one other wrong ortho2... causing wrong ortho2 matrices in
3d window...
2003-11-13 14:55:13 +00:00
Rob Haarsma
43f2470173 The Quicktime-Options-Button-Freeze warning is only nescessary on OSX
machines. The problem doesn't occur on windows platforms.
2003-11-13 14:13:48 +00:00
Ton Roosendaal
2ffb2376e0 - bug fix #694
when using linked-duplicated mesh, with subsurf and tfaces (UV texture)
  the render crashed.
  Found out the renderloop makes a new displaylist for each Mesh, also when
  it is linked multiple times. That way pointers to previous created elements
  in displaylists become invalid. Crash!
  Result now it even renders faster for linked-duplis. :)
2003-11-13 12:44:34 +00:00
Joseph Gilbert
994e0c40b1 - modified insertKey() to set current frame back to 1 instead of redraw the headers 2003-11-13 12:24:18 +00:00
Joseph Gilbert
a4aad039aa The new Lattice module for python
- enabled all the Lattice methods in Object.c
- added Lattice types to Types.c
- add Lattice initialization to Blender.c
- updated makefile for new lattice file
- added Lattice.c/Lattice.h
2003-11-13 04:00:59 +00:00
Martin Poirier
0e9dd3060e Fixed a majority of the mirror function bug. AFAIK, the last bug remaining is related to flipping normals.
Also added a couple of undo_push_mesh where they were lacking (mainly Merge, Smooth, Mirror)
2003-11-12 23:34:24 +00:00
Ton Roosendaal
c51180b860 fixed two errors in events for knife tool:
- ESC for pupmenu was not handled
- pressing ENTER at pupmenu caused mousetrail call to exit
2003-11-12 22:20:27 +00:00
Ton Roosendaal
3e972a57e9 - added themecolor text for textwindow
- fixed bug introduced by rwenzlaff commit in interface.c
  why replace the defButI call with defButS ? you should have seen the
  compile warning... :)
2003-11-12 21:34:12 +00:00
Ton Roosendaal
fcc8aefd48 - fixed safety area for 'floating' popup menus, such as move-to-layer
but also works for toolbox, quit menu, etc.
2003-11-12 21:23:37 +00:00
Ton Roosendaal
1c8ae70249 - further cleanup of window matrix code. Now ALL 2d ortho calls are
using an identical offset; which is 0.375 and official recommended
  by OpenGL.
  This to further investigate the AA font errors on some systems
  with ATI cards.
2003-11-12 21:14:30 +00:00
Ton Roosendaal
e9d9a7282e All related to unified render:
- fixed bug in halo rendering combined with spothalo
- fixed bug in no antialiasing with sky with spothalo
- cleaned some weird usage of gamma for spothalo and sky
  (when rendering sky + spothalo, sky got gamma corrected
- removed old test code and #ifdefs for code readability

On test scenes here unified render looks much better. still some minor
issues with antialiasing... cant pin that down yet.
2003-11-12 20:43:01 +00:00
Ton Roosendaal
3a7dc92cd6 - bug fix: alpha wrong in unified render halos with lines or rings 2003-11-12 15:07:04 +00:00
Robert Wenzlaff
a0471975d8 Adds Hotspot control to custom cursor. 2003-11-12 13:32:11 +00:00
Stephen Swaney
bd993f13d4 unfix previous fix.
Scene and Text don't need their user counts adjusted.
2003-11-12 07:46:07 +00:00
Martin Poirier
2403120f33 Constraint dashed line drawing.
Still one little problem: It draws the line even where there is not constraint target. Guess I'll have to wip a function to check for that if there isn't one already.

Note to Ton: You just need to add the color link to theme
2003-11-11 16:56:51 +00:00
Stephen Swaney
011203c45f fixed the bug Joseph Gilbert found in numerous python files.
newly created data objs had incorrect user counts.
2003-11-11 10:13:04 +00:00
Joseph Gilbert
1018943b3d Fixed some problems with makeParent() 2003-11-11 05:37:28 +00:00