Commit Graph

1010 Commits

Author SHA1 Message Date
Ton Roosendaal
abe3881a19 - added check before freeing a font pointer... dunno if its needed, but
better do this anyway!
  theres a 0.01% chance errors with AA goes away now on some platforms...
  but i doubt!
2003-11-22 16:59:54 +00:00
Ton Roosendaal
3c60f8778a - made calloc for clear mverts in subsurf-mesh conversion 2003-11-21 20:52:27 +00:00
Ton Roosendaal
dfc72b3f90 - Fix: the MKEY 'movetolayer' option doesnt close anymore on numeric
input. Somewhere in end  NaN period this was changed... weird.

  Now you can set layers with numeric buttons, including using ALT for
  numbers larger than 10, and using SHIFT for extend-select buttons.

  for the UI diehards who like to know; when you create a menu block, you
  can provide two flags to control behaviour on keyboard input:
  UI_BLOCK_RET_1  == return on any keypress (not mouse)
  UI_BLOCK_ENTER_OK  == return on Enter key

  this was not correct in the doc/interface_API.txt , which will be fixed.
2003-11-21 13:14:50 +00:00
Ton Roosendaal
71500a2df1 - fixed another oldie... displaylists for MBall was generated FAR too often.
even for each redraw! Now its all smooth & fast again.

  introduced new kernel API call: int is_basis_mball(ob), this provides a
  quick check of the object is the actual basis for the displaylist and
  polygonization.
2003-11-21 12:30:15 +00:00
Chris Want
94496ca80f Fixed it so that "Parent Armature->Name Groups" puts the mesh in a state
that is ready for weight paint.
2003-11-21 04:07:45 +00:00
Martin Poirier
b70171c5bc newline conversion speed up by intrr 2003-11-20 22:22:48 +00:00
Ton Roosendaal
711af5cf5e - fixed an oldie! When using a spotlamp in 'potato' textured drawmode, the
normal opengl light didnt work proper anymore.
2003-11-20 17:51:37 +00:00
Ton Roosendaal
763cf2d69f - bug fix: when moving an object to not-visible layer, and selecting an
other object, the moved one was drawn in 3d window...
  Hopefully the last error caused be me cleaning up frontbuffer draw... :/
2003-11-20 17:41:46 +00:00
Martin Poirier
81d309e68e Fix for bug #238 and #435 (same bug difference effect).
I've tested pretty much everything, but please proof read the code, the fonction calls and IFDEF could be used elsewhere (especially the IFDEFs, I wasn't sure if I had to enclose the whole function or whatnot.
2003-11-20 01:54:34 +00:00
Ton Roosendaal
487fd93a2b - bug fix: subdiv level 0 and drawtype 'optim' caused mesh not drawing
in editmode...
2003-11-19 22:38:19 +00:00
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